/* Footer — layout classique 4 colonnes */

.footer__tagline {
  font-size: 0.88rem;
  font-style: italic;
  opacity: 0.75;
  margin-top: 0.5rem;
}

.footer__social {
  margin-top: 1.25rem;
}

.footer__grid {
  grid-template-columns: minmax(220px, 1.45fr) repeat(4, minmax(140px, 1fr));
  gap: 2rem;
}

.footer__contact-list li {
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer__legal-list li {
  line-height: 1.45;
}

.footer__accordion {
  min-width: 0;
}

.footer__accordion-title {
  margin-bottom: 0;
}

.footer__accordion-toggle {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.footer__accordion-toggle:hover,
.footer__accordion.is-open .footer__accordion-toggle {
  color: var(--green-light, #22a06b);
}

.footer__accordion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.footer__accordion.is-open .footer__accordion-icon {
  transform: rotate(45deg);
  background: rgba(40, 167, 69, 0.22);
}

.footer__accordion-content {
  margin-top: 0.95rem;
  animation: footerAccordionIn 0.24s ease;
}

.footer__accordion-content[hidden] {
  display: none !important;
}

@keyframes footerAccordionIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer__submenu {
  margin: 0.25rem 0 0.65rem;
}

.footer__submenu-toggle {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.35rem 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.footer__submenu-toggle:hover,
.footer__submenu.is-open .footer__submenu-toggle {
  color: var(--green-light, #22a06b);
}

.footer__submenu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.2s ease, background 0.2s ease;
}

.footer__submenu.is-open .footer__submenu-icon {
  transform: rotate(45deg);
  background: rgba(40, 167, 69, 0.22);
}

.footer__submenu-list {
  list-style: none;
  margin: 0.35rem 0 0.2rem 0.65rem;
  padding: 0 0 0 0.75rem;
  border-left: 2px solid rgba(40, 167, 69, 0.25);
  animation: footerAccordionIn 0.24s ease;
}

.footer__submenu-list[hidden] {
  display: none !important;
}

.footer__submenu-list li {
  margin-bottom: 0.45rem;
}

.footer__download {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer__store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.85rem;
}

.footer__store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer__store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.footer__store-badge img {
  display: block;
  height: 46px;
  width: auto;
  max-width: 156px;
}

/* Barre PWA retirée — téléchargement via badges footer */
.pwa-install-bar {
  display: none !important;
}

.footer__partners {
  padding: 2.3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0;
  overflow: hidden;
}

.footer__partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.85rem;
  align-items: stretch;
  margin-top: 0.75rem;
}

.footer__partners-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  padding: 0.45rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.footer__partners-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: footerPartnersScroll 34s linear infinite;
  will-change: transform;
}

.footer__partners-marquee:hover .footer__partners-track {
  animation-play-state: paused;
}

.partner-logo {
  position: relative;
  flex: 0 0 220px;
  min-height: 136px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 247, 0.94));
  border-radius: 18px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(40, 167, 69, 0.18);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.partner-logo:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(40, 167, 69, 0.42);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.partner-logo__shine {
  position: absolute;
  inset: -40% auto -40% -60%;
  width: 52%;
  transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: footerPartnerShine 5.4s ease-in-out infinite;
}

.partner-logo__media {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 112px;
}

.partner-logo img {
  max-height: 108px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.partner-logo--ecole-rockefeller {
  flex-basis: 240px;
}

.partner-logo--ecole-rockefeller .partner-logo__media {
  height: 124px;
}

.partner-logo--ecole-rockefeller img {
  max-height: 122px;
  max-width: 112%;
}

.partner-logo--text {
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--gray-500, #5c6e66);
}

.footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  margin-left: 0.25rem;
  vertical-align: middle;
}

.footer__credit img {
  height: 52px;
  width: auto;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.footer__credit span {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.footer__credit:hover {
  color: var(--green-light, #22a06b);
}

@keyframes footerPartnersScroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes footerPartnerShine {
  0%,
  42% {
    left: -60%;
  }
  68%,
  100% {
    left: 125%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer__partners-track,
  .partner-logo__shine {
    animation: none;
  }
}

@media (max-width: 576px) {
  .partner-logo {
    flex-basis: 176px;
    min-height: 112px;
  }

  .partner-logo__media {
    height: 90px;
  }

  .partner-logo img {
    max-height: 86px;
  }

  .partner-logo--ecole-rockefeller {
    flex-basis: 190px;
  }

  .partner-logo--ecole-rockefeller .partner-logo__media {
    height: 102px;
  }

  .partner-logo--ecole-rockefeller img {
    max-height: 100px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}
