/* ═══════════════════════════════════════════════════════════════════
   components.css — AECJ Les Mureaux
   Composants partagés : navbar · footer
   Mobile-first. Aucune couleur hex — uniquement variables tokens.css.
   ═══════════════════════════════════════════════════════════════════ */


/* ──────────────────────────────────────────────────────────────────
   NAVBAR
   Structure :
     <header.navbar>
       <nav.navbar-inner.container>
         <a.navbar-logo>
         <ul.navbar-links>   (masqué sur mobile)
         <a.navbar-cta>      (masqué sur mobile)
         <button.navbar-hamburger>  (visible sur mobile)
       </nav>
       <div#mobile-menu.navbar-mobile[hidden]>
   ────────────────────────────────────────────────────────────────── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

/* ── Logo ── */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.navbar-logo svg {
  flex-shrink: 0;
}

.navbar-logo-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.navbar-logo-text span {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
  display: block;
}

/* ── Liens desktop (masqués sur mobile) ── */
.navbar-links {
  display: none;
  list-style: none;
  gap: 4px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.navbar-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.navbar-link:hover {
  color: var(--green);
  background: var(--green-pale);
  text-decoration: none;
}

.navbar-link.active,
.navbar-link[aria-current="page"] {
  color: var(--green);
  font-weight: 600;
  background: var(--green-pale);
}

/* ── CTA Inscription (masqué sur mobile) ── */
.navbar-cta {
  display: none;
  flex-shrink: 0;
  font-size: 12px;
  padding: 9px 18px;
}

/* ── Hamburger (visible sur mobile) ── */
.navbar-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.navbar-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.navbar-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Menu mobile ── */
.navbar-mobile {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 5%;
}

.navbar-mobile[hidden] { display: none; }

.navbar-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.navbar-mobile a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition);
}

.navbar-mobile a:hover,
.navbar-mobile a[aria-current="page"] {
  background: var(--green-pale);
  color: var(--green);
}

.navbar-mobile .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* ── Desktop : afficher les liens et masquer le hamburger ── */
@media (min-width: 768px) {
  .navbar-links    { display: flex; }
  .navbar-cta      { display: inline-flex; }
  .navbar-hamburger { display: none; }
  .navbar-mobile   { display: none !important; }
}


/* ──────────────────────────────────────────────────────────────────
   FOOTER
   Structure :
     <footer.site-footer>
       <div.footer-inner.container>   (3 colonnes)
         <div.footer-col.footer-identity>
         <nav.footer-col.footer-nav>
         <div.footer-col.footer-hours>
       </div>
       <div.footer-bottom>
         <div.container>
           <p.footer-legal>
   ────────────────────────────────────────────────────────────────── */

 .site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.75);
  font-size: 13px;
  line-height: 1.6;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 40px;
}

/* ── Colonne identité ── */
.footer-identity {}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 14px;
}

.footer-logo span {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

.footer-address {
  font-style: normal;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  line-height: 1.8;
  margin-bottom: 10px;
}

.footer-address a {
  color: var(--gold);
  text-decoration: none;
}

.footer-address a:hover {
  text-decoration: underline;
}

/* ── Heading colonnes ── */
.footer-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 8px;
}

/* ── Colonne navigation ── */
.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-nav a {
  font-size: 12px;
  color: rgba(255,255,255,.62);
  text-decoration: none;
  padding: 2px 0;
  display: block;
  transition: color .2s ease;
}

.footer-nav a:hover {
  color: var(--white);
  text-decoration: none;
}

/* ── Colonne horaires ── */
.footer-schedule {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-schedule li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  line-height: 1.5;
}

.footer-schedule strong {
  color: rgba(255,255,255,.82);
  font-weight: 600;
  flex-shrink: 0;
  min-width: 5.5em;
}

.footer-schedule span {
  color: rgba(255,255,255,.55);
}

.footer-cta {
  margin-top: 16px;
  font-size: 12px;
  padding: 9px 18px;
}

/* ── Réseaux sociaux footer ── */
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s ease;
}

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

/* ── Bas de footer ── */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 0;
}

.footer-legal {
  font-size: 11px;
  color: rgba(255,255,255,.32);
  line-height: 1.6;
}

.footer-legal a {
  color: rgba(255,255,255,.38);
  text-decoration: none;
  transition: color .2s ease;
}

.footer-legal a:hover {
  color: var(--white);
}

/* ── Responsive footer ── */
@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-identity {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1.6fr 1fr 1.2fr;
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 48px;
  }

  .footer-identity {
    grid-column: auto;
  }
}
