/* ============================================================
   RÉNO RESSOURCE — Main CSS
   Importe tous les modules dans le bon ordre
   ============================================================ */

@import 'variables.css';
@import 'reset.css';
@import 'typography.css';
@import 'components.css';

/* ----------------------------------------------------------
   HEADER
---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: var(--color-white);
  border-bottom: 1px solid #E8EEF6;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--margin-desktop);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

/* Logo horizontal */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 44px;
  width: auto;
}

.site-logo-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-marine);
  line-height: 1;
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-family: var(--font-display);
  font-size: var(--text-label);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-slate);
  text-decoration: none;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-marine);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* Langue switcher */
.lang-switch {
  font-family: var(--font-display);
  font-size: var(--text-label);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  color: var(--color-slate);
  cursor: pointer;
  border: 1.5px solid var(--color-ice);
  border-radius: var(--radius-btn);
  padding: 6px 12px;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.lang-switch:hover {
  color: var(--color-marine);
  border-color: var(--color-marine);
}

/* Burger mobile */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-sm);
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-marine);
  transition: all var(--transition-base);
  border-radius: 2px;
}

/* ----------------------------------------------------------
   FOOTER
---------------------------------------------------------- */
.site-footer {
  background-color: var(--color-marine);
  color: var(--color-ice);
  padding: var(--space-4xl) var(--margin-desktop) var(--space-2xl);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(168, 196, 229, 0.2);
}

.footer-brand .site-logo-name {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.footer-tagline {
  font-size: var(--text-small);
  color: var(--color-slate);
  line-height: var(--leading-relaxed);
  max-width: 280px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: var(--text-label);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  font-size: var(--text-small);
  color: var(--color-slate);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-ice);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  font-size: var(--text-small);
  color: var(--color-slate);
}

.footer-bottom a {
  color: var(--color-steel);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--color-ice);
}

/* ----------------------------------------------------------
   UTILITAIRES GLOBAUX
---------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--margin-desktop);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ----------------------------------------------------------
   RESPONSIVE HEADER / FOOTER
---------------------------------------------------------- */
@media (max-width: 1024px) {
  .site-nav { display: none; }

  .burger { display: flex; }

  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    padding: var(--space-2xl) var(--margin-mobile);
    gap: var(--space-xl);
    z-index: var(--z-overlay);
    overflow-y: auto;
  }

  .nav-link {
    font-size: 24px;
    letter-spacing: 1px;
  }

  .nav-cta {
    flex-direction: column;
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 var(--margin-mobile);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .site-footer {
    padding: var(--space-3xl) var(--margin-mobile) var(--space-xl);
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
