.footer {
  background: #68523f;
  color: #eee;
  padding-inline: clamp(1rem, 4vw, var(--grid-margin-inline));
  padding-block: clamp(1rem, 4vw, var(--grid-margin-inline));
  font-family: var(--font-sans);
  font-size: 1rem;
  position: relative;
  box-sizing: border-box;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  column-gap: var(--grid-gutter);
  width: 100%;
  max-width: var(--grid-max-width);
  min-height: clamp(22.5rem, 36vw, 25rem);
  margin-inline: auto;
  box-sizing: border-box;
}

/* ── COL GAUCHE ── */
.footer-col--infos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  gap: 0.65rem;
}

.footer-marque {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: #eee;
}

.footer-adresse {
  margin: 0.8rem 0 0.8rem 0;
  line-height: 1.5;
  color: #eee;
  font-size: 1rem;
}

.footer-separateur {
  width: 100%;
  max-width: 12rem;
  height: 1px;
  background: rgba(255, 255, 255, 1);
  border: none;
}

/* ——— Horaires (snippet partagé) ——— */
.hours {
  width: 100%;
  max-width: 22rem;
}

.hours__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.hours__row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  column-gap: 0.75rem;
  align-items: baseline;
  line-height: 1.4;
}

.hours__day {
  font-weight: 500;
}

.hours__time {
  font-variant-numeric: tabular-nums;
}

.hours__row--closed .hours__time {
  font-style: italic;
  opacity: 0.72;
}

.hours--footer {
  margin: 0.35rem 0 0;
}

.hours--footer .hours__day,
.hours--footer .hours__time {
  color: #eee;
  font-size: 0.9375rem;
}

.hours--footer .hours__row--closed .hours__time {
  opacity: 0.65;
}

.footer-reseaux {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-top: auto;
  margin-bottom: auto;
  padding-top: 0.35rem;
}

.footer-pastille {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: inherit;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.footer-pastille:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.footer-pastille:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.footer-pastille img {
  display: block;
  width: auto;
  height: auto;
  max-width: 22px;
  max-height: 22px;
  object-fit: contain;
}

.footer-pastille--mail img {
  width: 25px;
  height: 25px;
  max-width: 25px;
  max-height: 25px;
}

.footer-credit {
  font-size: 0.75rem;
  color: rgba(238, 238, 238, 0.72);
  margin-top: 0;
  padding: 0;
  text-align: left;
  box-sizing: border-box;
}

.footer-credit-link {
  color: rgba(238, 238, 238, 0.72);
  text-decoration: none;
  transition:
    color 0.2s ease,
    text-decoration 0.2s ease;
}

.footer-credit-link:hover {
  color: rgba(238, 238, 238, 0.95);
  text-decoration: underline;
}

.footer-credit-link:focus-visible {
  outline: 2px solid rgba(238, 238, 238, 0.85);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── COL DROITE ── */
.footer-col--nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  align-self: stretch;
  text-align: right;
}

.footer-liens {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.footer-liens .navbar-menu {
  width: 100%;
}

.footer-liens .navbar-liste-footer {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 1.5rem);
  text-transform: none;
}

.footer-liens .navbar-liste-footer .navbar-lien {
  font-size: 1rem;
  letter-spacing: normal;
  color: #eee;
  text-decoration: none;
  padding: 0.2em 0;
  border-bottom: 1px solid transparent;
}

.footer-liens .navbar-liste-footer .navbar-lien:hover {
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

.footer-liens .navbar-liste-footer .navbar-lien.actif {
  border-bottom-color: #fff;
}

.footer-logo-grande {
  line-height: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.footer-logo-grande img {
  display: block;
  height: auto;
  width: 100%;
  max-width: 533px;
}

.footer a:not(.footer-credit-link) {
  color: #eee;
}

/* ── TABLETTE INTERMÉDIAIRE : 1 colonne centrée ── */
@media (max-width: 1000px) {
  .footer-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    justify-items: center;
    text-align: center;
  }

  /* Nav passe en premier */
  .footer-col--nav {
    order: -1;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 1.5rem;
    width: 100%;
  }

  .footer-col--infos {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .footer-liens {
    justify-content: center;
  }

  .footer-liens .navbar-liste-footer {
    justify-content: center;
    gap: clamp(1rem, 5vw, 3rem);
  }

  .footer-separateur {
    margin-inline: auto;
  }

  /* Horaires : jour centré, créneaux en dessous */
  .hours--footer {
    width: 100%;
    max-width: 22rem;
    margin-inline: auto;
  }

  .hours--footer .hours__list {
    width: 100%;
    margin-inline: auto;
    gap: 0.5rem;
  }

  .hours--footer .hours__row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    text-align: center;
  }

  .hours--footer .hours__day,
  .hours--footer .hours__time {
    font-size: 0.875rem;
    min-width: 0;
    text-align: center;
  }

  .hours--footer .hours__day {
    font-weight: 500;
    letter-spacing: 0.02em;
  }

  .hours--footer .hours__time {
    opacity: 0.9;
    line-height: 1.35;
    text-wrap: pretty;
  }

  .hours--footer .hours__row--closed .hours__time {
    opacity: 0.65;
  }

  .footer-reseaux {
    justify-content: center;
    margin-top: 0.5rem;
    gap: 1.5rem;
  }

  .footer-logo-grande {
    justify-content: center;
    width: 100%;
  }

  .footer-logo-grande img {
    max-width: min(80%, 400px);
  }

  .footer-credit {
    text-align: center;
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* ── MOBILE ── */
@media (max-width: 500px) {
  .footer {
    padding-inline: 1rem;
    padding-block: 1rem;
  }

  .footer-liens .navbar-liste-footer {
    gap: clamp(0.75rem, 4vw, 1.5rem);
  }

  .hours--footer .hours__list {
    gap: 0.4rem;
  }

  .hours--footer .hours__day,
  .hours--footer .hours__time {
    font-size: 0.8125rem;
  }

  .footer-logo-grande img {
    max-width: min(90%, 280px);
  }

  .footer-pastille {
    width: 40px;
    height: 40px;
  }

  .footer-reseaux {
    gap: 1rem;
  }
}
