/* ==========================================================
   Pied de page : logo et présentation, adresse et réseaux, liens rapides ;
   puis les mentions et pages légales ; et pour finir le grand nom « Ashtanga Yoga Paris » (image).
   Couleurs : variables --footer-* (tokens.css ; bleu ardoise, mêmes valeurs pour tous les thèmes).
   Variantes : .footer-panel--name-first (accueil version 2) : le grand nom, puis les mentions ;
               .footer-panel--name-top (accueil version 3) : le grand nom tout en haut.
   Sur téléphone, les textes sont un peu plus petits.
   En fin de fichier : le bandeau des cookies.
   ========================================================== */

.site-footer--big {
  margin: 0;
  padding: 0;
}

.footer-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 0;
  background: var(--footer-bg);
}

.site-footer--big p {
  margin: 0 0 0.85rem;
  line-height: 1.6;
}

.site-footer--big a {
  color: var(--footer-strong);
  text-decoration: none;
}

.site-footer--big a:hover,
.site-footer--big a:focus-visible {
  color: var(--footer-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* ---------- Colonnes : logo et présentation, adresse et réseaux, liens rapides ---------- */

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem 3rem;
}

@media (min-width: 48em) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 64em) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.3fr; }
  .footer-brand { grid-column: auto; }
}

.footer-brand {
  max-width: 26rem;
}

.footer-brand__logo {
  display: block;
  width: clamp(9rem, 14vw, 12rem);
  height: auto;
  margin: 0 0 1.5rem;
}

.site-footer--big .footer-brand__tagline {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--footer-strong);
}

.footer-col__title {
  margin: 0 0 1.1rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--footer-text);
}

.footer-col__title--spaced {
  margin-top: 2rem;
}

/* Liens rapides sur deux colonnes */
.footer-links {
  columns: 2;
  column-gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin: 0 0 0.55rem;
  break-inside: avoid;
}

.site-footer--big .footer-links a {
  color: var(--footer-text);
}

/* Réseaux : icônes rondes */
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--footer-line);
  border-radius: 50%;
  color: var(--footer-strong);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  background: var(--footer-hover);
  border-color: var(--footer-text);
  text-decoration: none;
}

.footer-socials svg {
  width: 1.3rem;
  height: 1.3rem;
}

/* ---------- Mentions et pages légales (par défaut : au-dessus du grand nom) ---------- */

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.25rem;
  padding-bottom: 0;
  border-top: 1px solid var(--footer-line);
}

.site-footer--big .footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--footer-text);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
}

.site-footer--big .footer-legal a,
.footer-legal__button {
  color: var(--footer-text);
}

/* « Gérer les cookies » : un bouton qui ressemble aux liens voisins */
.footer-legal__button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.footer-legal__button:hover,
.footer-legal__button:focus-visible {
  color: var(--footer-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* Crédits photos : bulle au survol, ou au clic / toucher (comme la session B).
   Petit écran : sur leur propre ligne, bulle centrée au-dessus. Grand écran : à droite. */
.footer-credits {
  position: relative;
  flex-basis: 100%;
}

.site-footer--big .footer-credits__btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline dotted;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.25em;
  cursor: help;
}

.footer-credits__btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.footer-credits__tip {
  display: none;
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  z-index: 5;
  width: max-content;
  max-width: min(20rem, 100%);
  margin-inline: auto;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius, 0.5rem);
  background: var(--color-bg, #ffffff);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.3);
  color: var(--color-ink, #23282e);
  font-size: 0.85rem;
  line-height: 1.45;
}

.footer-credits:hover .footer-credits__tip,
.footer-credits.is-open .footer-credits__tip {
  display: block;
}

@media (min-width: 60em) {
  .footer-credits {
    flex-basis: auto;
    position: static;
  }

  /* La bulle se cale sur toute la bande du bas (et non sur le lien), à droite :
     elle reste toujours dans les marges, même si le lien passe à la ligne */
  .footer-bottom {
    position: relative;
  }

  .footer-credits__tip {
    left: auto;
    right: 0;
    margin-inline: 0;
  }
}

/* ---------- Grand nom (image) ---------- */

.site-footer--big .footer-bigname {
  display: block;
  width: calc(100% - 2 * clamp(1rem, 3vw, 2rem));
  height: auto;
  margin: clamp(1.25rem, 3vw, 2rem) auto 0;
  padding: 0;
  user-select: none;
}

/* ---------- Variante : le grand nom, puis les mentions (accueil version 2) ----------
   Un bel espace sous le grand nom, avant les mentions. */

.footer-panel--name-first .footer-bigname {
  margin-top: clamp(3.5rem, 8vw, 6rem);
}

.footer-panel--name-first .footer-bottom {
  margin-top: 0;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 1.5rem;
  border-top: 0;
}

/* ---------- Variante : le grand nom tout en haut du pied de page (accueil version 3) ---------- */

.footer-panel--name-top .footer-bigname {
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}

.footer-panel--name-top .footer-bottom {
  padding-bottom: 1.5rem;
}

/* ---------- Variante « split » (accueil version 1, session A ; celle de l'ancienne v3) ----------
   Large (112rem) : à gauche le logo et la présentation, puis les colonnes (adresse, liens rapides,
   note Google) ; à droite la newsletter, séparée par un fin trait vertical ; en bas le grand nom
   sur toute la largeur, puis les mentions légales. */

/* Titres en Cormorant, même si la page met ses titres en Josefin */
.footer-panel--split {
  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

.site-footer .footer-panel--split .wrap {
  width: min(100% - 2 * clamp(1rem, 3.5vw, 3.5rem), 112rem);
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

.footer-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

/* Le studio (logo, présentation, coordonnées), puis les liens : l'un sous l'autre par défaut,
   côte à côte seulement quand le studio peut rester au moins aussi large que les liens
   (mises en page selon la largeur : voir les @media après .footer-split__links) */
.footer-split__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-content: start;
}

.footer-studio {
  max-width: 36rem;
}

/* Logo plus grand, centré dans sa colonne */
.footer-studio__logo {
  display: block;
  width: clamp(10rem, 12vw, 12.5rem);
  height: auto;
  margin: 0 auto 1.75rem;
}

.site-footer--big .footer-studio__tagline {
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--footer-strong);
}

/* Coordonnées, sous un fin trait */
.footer-studio__contact {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--footer-line);
  font-style: normal;
}

.site-footer--big .footer-studio__contact p {
  margin-bottom: 0.6rem;
}

.footer-studio__strong {
  color: var(--footer-strong);
}

/* Adresse en capitales, téléphone un peu plus petit (entre le texte et la ligne métro) */
.footer-studio__address {
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-studio__phone {
  font-size: 0.95rem;
}

.footer-studio .metro-line {
  font-size: 0.85rem;
}

/* Les deux groupes, puis réseaux et note Google, sur la même grille à deux colonnes :
   réseaux alignés sur « Pratiquer », note Google sur « L'école » */
.footer-split__links {
  justify-self: start;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(2, auto);
  column-gap: 3rem;
  align-content: start;
}

.footer-split__cols,
.footer-split__follow {
  display: contents;
}

/* Les quatre icônes sur une seule ligne (sauf très petit téléphone) */
@media (min-width: 30em) {
  .footer-split__links .footer-socials {
    flex-wrap: nowrap;
  }
}

/* Mises en page selon la largeur :
   - moins de 60em : newsletter en haut, puis studio, puis liens (alignés à gauche) ;
   - 60em à 64em : newsletter en haut, puis studio | liens ;
   - 64em à 90em : studio puis liens à gauche, newsletter à droite (colonnes 1,2 / 1) ;
   - 90em et plus : studio | liens | newsletter. */
@media (min-width: 60em) and (max-width: 63.99em), (min-width: 90em) {
  /* Studio jusqu'à 36rem ; liens centrés dans le reste */
  .footer-split__main {
    grid-template-columns: minmax(0, 36rem) minmax(max-content, 1fr);
  }

  .footer-split__links {
    justify-self: center;
  }
}

@media (min-width: 64em) {
  .footer-split {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 0;
  }

  .footer-split__main {
    grid-column: 1;
    grid-row: 1;
    padding-right: clamp(2.5rem, 5vw, 5rem);
  }

  /* Newsletter à droite (en premier dans le code) ; un peu plus bas que le logo */
  .footer-split__aside {
    grid-column: 2;
    grid-row: 1;
    margin-top: clamp(1.5rem, 2.5vw, 2.5rem);
    padding-left: clamp(2.5rem, 5vw, 5rem);
    border-left: 1px solid var(--footer-line);
  }
}

@media (min-width: 90em) {
  .footer-split {
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  }

  /* Liens un peu plus bas que le logo */
  .footer-split__links {
    margin-top: clamp(1.5rem, 2.5vw, 2.5rem);
  }
}

/* Groupe de liens : une colonne */
.footer-group {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-group li {
  margin: 0 0 0.3rem;
}

.site-footer--big .footer-group a {
  font-size: 0.95rem;
  color: var(--footer-text);
}

.site-footer--big .footer-group a:hover,
.site-footer--big .footer-group a:focus-visible {
  color: var(--footer-strong);
}

/* Sous les liens : réseaux et note Google (sans trait) */
.footer-split__follow > div {
  margin-top: 2.25rem;
}

/* Newsletter, à droite */
.site-footer--big .footer-split__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  line-height: 1.15;
  color: var(--footer-strong);
}

.footer-split__aside > p:not(.footer-split__title) {
  max-width: 26rem;
  margin-bottom: 1.5rem;
}

/* Bouton de la newsletter : couleurs inversées par rapport au pied de page */
.site-footer--big .footer-split__aside .button--light,
.site-footer--big .footer-split__aside .button--light:hover,
.site-footer--big .footer-split__aside .button--light:focus-visible {
  border-color: var(--footer-strong);
  background: var(--footer-strong);
  color: var(--footer-bg);
  text-decoration: none;
}

.site-footer--big .footer-split__aside .button--light:hover,
.site-footer--big .footer-split__aside .button--light:focus-visible {
  background: color-mix(in srgb, var(--footer-strong) 88%, transparent);
}

/* Petit écran (colonnes empilées) : la newsletter en premier, séparée du reste par un fin trait */
@media (max-width: 63.99em) {
  .footer-split__aside {
    order: -1;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--footer-line);
  }

  /* Mentions centrées */
  .footer-panel--split .footer-bottom,
  .footer-panel--split .footer-legal {
    justify-content: center;
    text-align: center;
  }
}

/* ---------- Aperçu ?pied=a5 : comme « split », newsletter à gauche ----------
   - jusqu'à 90em : newsletter en haut (bandeau, bouton à droite dès 48em), puis studio | liens ;
   - 90em et plus : newsletter | studio (au centre de la page) | liens. */
@media (min-width: 48em) and (max-width: 89.99em) {
  /* Bandeau : texte à gauche, bouton juste après (pas au bord droit), à hauteur du texte */
  .footer-split--aside-left .footer-split__aside {
    display: grid;
    grid-template-columns: minmax(0, 44rem) auto;
    justify-content: start;
    column-gap: 3rem;
  }

  .footer-split--aside-left .footer-split__aside > * {
    grid-column: 1;
  }

  .footer-split--aside-left .footer-split__aside > .button {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
  }

  .footer-split--aside-left .footer-split__aside > p:not(.footer-split__title) {
    max-width: 44rem;
    margin-bottom: 0;
  }
}

@media (min-width: 60em) and (max-width: 89.99em) {
  /* Studio | liens */
  .footer-split--aside-left .footer-split__main {
    grid-template-columns: minmax(0, 36rem) minmax(max-content, 1fr);
  }

  .footer-split--aside-left .footer-split__links {
    justify-self: center;
  }
}

@media (max-width: 89.99em) {
  /* Empilé : autant d'espace sous la newsletter (jusqu'au trait) et sous le trait qu'en haut du pied de page */
  .footer-split--aside-left {
    gap: clamp(3.5rem, 7vw, 5.5rem);
  }

  .footer-split--aside-left .footer-split__aside {
    padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  }
}

@media (min-width: 64em) and (max-width: 89.99em) {
  /* Annule la mise en page à deux colonnes de « split » : tout l'un sous l'autre */
  .footer-split--aside-left {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-split--aside-left .footer-split__main {
    grid-row: 2;
    padding-right: 0;
  }

  .footer-split--aside-left .footer-split__aside {
    grid-column: 1;
    grid-row: 1;
    margin-top: 0;
    padding-left: 0;
    border-left: 0;
    border-bottom: 1px solid var(--footer-line);
  }
}

@media (min-width: 90em) {
  /* Trois colonnes, les deux côtés de même largeur : le studio tombe au milieu de la page ;
     colonne du milieu à la largeur du studio, les côtés prennent le reste */
  .footer-split--aside-left {
    grid-template-columns: minmax(0, 1fr) minmax(0, 34rem) minmax(0, 1fr);
    column-gap: clamp(2rem, 3.5vw, 4rem);
  }

  .footer-split--aside-left .footer-split__main {
    display: contents;
  }

  .footer-split--aside-left .footer-split__aside {
    grid-column: 1;
    grid-row: 1;
    padding-left: 0;
    padding-right: clamp(2rem, 3.5vw, 4rem);
    border-left: 0;
    border-right: 1px solid var(--footer-line);
  }

  .footer-split--aside-left .footer-studio {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: 100%;
  }

  .footer-split--aside-left .footer-split__links {
    grid-column: 3;
    grid-row: 1;
    justify-self: center;
  }
}

/* Plus d'espace entre « Pratiquer » et « L'école » */
.footer-split--aside-left .footer-split__links {
  column-gap: 4.5rem;
}

/* Note Google un peu plus petite */
.footer-split--aside-left .footer-rating__value {
  font-size: 1.9rem;
}

/* Bouton de la newsletter : texte toujours sur une ligne */
.footer-split--aside-left .footer-split__aside .button {
  white-space: nowrap;
}

/* Réseaux : icônes seules, sans cercle (zone cliquable gardée autour) */
.footer-split--aside-left .footer-socials {
  gap: 1.1rem;
}

.footer-split--aside-left .footer-socials a {
  width: auto;
  height: auto;
  padding: 0.3rem 0;
  border: 0;
  border-radius: 0;
  transition: opacity 0.25s ease;
}

.footer-split--aside-left .footer-socials a:hover,
.footer-split--aside-left .footer-socials a:focus-visible {
  background: none;
  opacity: 0.7;
}

/* Grand nom, sur toute la largeur, puis les mentions */
.site-footer--big .footer-panel--split .footer-bigname {
  width: min(100% - 2 * clamp(1rem, 3.5vw, 3.5rem), 112rem);
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}

.footer-panel--split .footer-bottom {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: 1.5rem;
}

/* ---------- Téléphone : textes un peu plus petits ---------- */

@media (max-width: 40em) {
  .site-footer--big p,
  .site-footer--big .footer-links a {
    font-size: 0.9rem;
  }

  .site-footer--big .footer-brand__tagline {
    font-size: 1.2rem;
  }

  .footer-col__title {
    font-size: 0.66rem;
  }

  .footer-socials a {
    width: 2.5rem;
    height: 2.5rem;
  }

  .footer-socials svg {
    width: 1.15rem;
    height: 1.15rem;
  }

  .site-footer--big .footer-bottom p,
  .footer-legal {
    font-size: 0.74rem;
  }

  .footer-bottom {
    gap: 0.3rem 1rem;
    padding-top: 1.1rem;
  }

  .footer-panel--name-first .footer-bottom {
    padding-top: 2rem;
    padding-bottom: 1.1rem;
  }

  .footer-panel--name-top .footer-bottom {
    padding-bottom: 1.1rem;
  }

  .footer-panel--split .footer-bottom {
    padding-bottom: 1.1rem;
  }
}

/* ==========================================================
   Bandeau des cookies (assets/js/consent.js)
   « Tout refuser » et « Tout accepter » ont exactement la même apparence (recommandation CNIL).
   ========================================================== */

.consent[hidden] {
  display: none;
}

.consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1000;
  max-width: 34rem;
  margin-left: auto;
  border-radius: 16px;
  background: var(--color-surface, #ffffff);
  color: var(--color-ink, #23282e);
  box-shadow: 0 1.25rem 3.5rem rgba(20, 24, 28, 0.28);
}

.consent__inner {
  padding: 1.35rem 1.5rem 1.25rem;
}

.consent__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
}

.consent__text {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.consent__details {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-line, #ddd);
  border-radius: 10px;
}

.consent__option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  line-height: 1.45;
  cursor: pointer;
}

.consent__option input {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.15rem 0 0;
  accent-color: var(--color-primary);
}

.consent__save {
  margin-top: 0.35rem;
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
}

/* Refuser et accepter : même taille, même couleur */
.consent__actions [data-consent="reject"],
.consent__actions [data-consent="accept"] {
  flex: 1 1 9rem;
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-on-primary, #ffffff);
  text-align: center;
}

.consent__customize {
  order: 3;
  flex: 1 1 100%;
  padding: 0.2rem 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  color: var(--color-ink, #23282e);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
