/* ==========================================================================
   Layout commun de la vitrine : barre du haut, bloc collant (navigation + bandeau « À la une »), méga-menus,
   recherche en loupe, tiroir mobile, pied de page, retour en haut, bandeau cookies.

   Identité : « vie, chaleur, sens ». Le violet et le lavande portent l'interface, chaque rubrique a sa teinte
   (front-accents.css) et l'or n'apparaît qu'en petites touches variées. Aucun dégradé doré, aucun site sombre.

   Passage bureau / mobile : requêtes de CONTENEUR exprimées en em. Le conteneur est la barre elle-même et son em
   suit les réglages de taille du texte et d'espacement : en texte agrandi le menu passe plus tôt en mode mobile
   au lieu de déborder. Une seule bascule, sans JavaScript, donc sans oscillation de mode.
   ========================================================================== */

/* --- Barre du haut : dégradé violet moyen → violet clair, texte et icônes blancs, filet or de 1 px, 40 px ------ */

.site-utility {
  position: relative;
  z-index: var(--z-utility);
  color: var(--blanc);
  background: var(--accent-degrade-barre);
  border-bottom: 1px solid var(--or);
}

.site-utility__shell {
  container-type: inline-size;
  font-size: calc(var(--fs-base) * var(--espace-conteneur));
}

.utility {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--s3);
  min-height: 40px;
  font-size: var(--fs-sm);
}

.utility__id {
  display: none;
  align-items: center;
  gap: var(--s2);
  margin: 0;
  color: var(--blanc);
}

.utility__org {
  font-weight: 700;
  color: var(--blanc);
  text-decoration: none;
}

/* Lien externe vers le site de la fondation : surligné (blanc translucide), police de la marque, flèche de lien externe. Même taille
   de texte (14 px) et même hauteur de barre qu'avant : les marges négatives compensent le surlignement. */
.utility__org--link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
  inline-size: 13em;
  margin: -2px 0 -2px -8px;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--police-marque);
  font-style: normal;
  letter-spacing: 0.02em;
  background: color-mix(in srgb, var(--blanc) 14%, transparent);
  transition: background-color 0.15s;
}

.utility__org--link:hover {
  background: color-mix(in srgb, var(--blanc) 24%, transparent);
}

.utility__org-arrow {
  width: 12px;
  height: 12px;
  color: color-mix(in srgb, var(--blanc) 85%, transparent);
  transition: transform 0.15s;
}

.utility__org--link:hover .utility__org-arrow {
  transform: translate(2px, -2px);
}

/* Mouvement réduit : la flèche ne glisse pas (en plus de la règle globale sur les transitions). */
html[data-motion="reduced"] .utility__org--link:hover .utility__org-arrow {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .utility__org--link:hover .utility__org-arrow {
    transform: none;
  }
}

.utility__dot {
  color: var(--or-clair);
}

.utility__tools {
  display: flex;
  align-items: center;
  gap: var(--s1);
}

.utility__sep {
  flex: none;
  width: 1px;
  height: 16px;
  margin-inline: var(--s1);
  background: color-mix(in srgb, var(--blanc) 40%, transparent);
}

/* Icônes blanches ; au survol, un rond blanc translucide. */
.utility .tool {
  color: var(--blanc);
}

.utility .tool:hover,
.utility .tool[aria-expanded="true"],
.utility details[open] > .tool,
.utility .reg-badge:not(.is-labelled):hover {
  background: color-mix(in srgb, var(--blanc) 22%, transparent);
}

/* Le rond d'inscription garde sa couleur (le sens est porté par la forme) ; un liseré blanc le détache du violet. */
.utility .reg-badge__dot {
  border: 2px solid var(--blanc);
}

/* Les panneaux blancs ouverts depuis la barre (accessibilité, langue) reprennent les couleurs et le focus du fond clair. */
.on-dark .a11y-panel .btn--ghost {
  color: var(--violet);
}

.on-dark .a11y-panel .btn--ghost:hover {
  background: var(--violet-pale);
}

.on-dark :is(.a11y-panel, .lang-menu__list) :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline-color: var(--violet);
  box-shadow: 0 0 0 2px var(--blanc);
}

@container (min-width: 90em) {
  .utility {
    justify-content: space-between;
  }

  .utility__id {
    display: flex;
  }
}

/* Mobile : les quatre contrôles se répartissent sur toute la largeur, cibles de 40 px. */
@container (max-width: 89.99em) {
  .utility__tools {
    width: 100%;
    justify-content: space-between;
  }

  .utility__sep {
    display: none;
  }

  .utility .tool,
  .utility .reg-badge:not(.is-labelled) {
    width: var(--h-md);
    height: var(--h-md);
  }
}

/* --- Panneau d'accessibilité ---------------------------------------------------------------------------- */

.a11y-panel {
  position: absolute;
  top: calc(100% + 1px);
  right: var(--s5);
  z-index: 5;
  width: min(calc(340px * var(--echelle)), calc(100% - 2 * var(--s4)));
  padding: var(--s4);
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon-panneau);
  box-shadow: var(--ombre-menu);
  font-size: var(--fs-sm);
}

@container (max-width: 89.99em) {
  .a11y-panel {
    right: var(--s4);
  }
}

.a11y-panel.is-static {
  position: relative;
  top: auto;
  right: auto;
  overflow: hidden;
}

.a11y-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin: calc(-1 * var(--s4)) calc(-1 * var(--s4)) 0;
  padding: var(--s3) var(--s4);
  background: linear-gradient(180deg, var(--violet-pale), var(--blanc));
  border-radius: var(--rayon-panneau) var(--rayon-panneau) 0 0;
}

.a11y-panel__title {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: var(--s2);
  min-width: 0;
  margin: 0;
  font-size: var(--fs-base);
}

.a11y-panel__note {
  margin: var(--s2) 0 var(--s3);
  font-size: var(--fs-sm);
  color: var(--encre-2);
}

.a11y-panel__rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.a11y-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  padding-block: var(--s3);
  border-top: 1px solid var(--ligne);
}

/* Pastille teintée (voir .pastille) : une couleur par réglage, pas répétitive. */
.a11y-row__icon {
  flex: none;
}

.a11y-row__text {
  display: grid;
  flex: 1 1 7em;
  min-width: 0;
}

.a11y-row > .a11y-row__label {
  flex: 1 1 7em;
}

.a11y-row__label {
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.3;
  color: var(--violet);
}

.a11y-row__hint {
  font-size: var(--fs-sm);
  color: var(--encre-2);
}

.a11y-row .seg,
.a11y-row .switch {
  margin-left: auto;
}

.a11y-panel__foot {
  display: flex;
  padding-top: var(--s3);
  border-top: 1px solid var(--ligne);
}

/* --- Bloc collant : en-tête + bandeau « À la une » restent ensemble en haut de l'écran ------------------------
   L'en-tête porte son dégradé (blanc → lavande → touche d'or très pâle) et un filet bas violet → or de 2 px ;
   le bandeau est un bloc centré qui flotte sous lui. */

.site-sticky {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
}

.site-nav {
  position: relative;
  z-index: 2;
  background: var(--accent-degrade-header);
  transition: box-shadow 0.2s;
}

.site-nav::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  pointer-events: none;
  /* Reflet clair qui balaie le filet UNE seule fois au chargement (1,2 s). */
  background:
    linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--blanc) 85%, transparent) 50%, transparent 80%) no-repeat,
    var(--accent-degrade-filet);
  background-size: 40% 100%, 100% 100%;
  animation: header-sheen 1.2s ease-out 1 both;
}

@keyframes header-sheen {
  from {
    background-position: -100% 0, 0 0;
  }

  to {
    background-position: 200% 0, 0 0;
  }
}

/* Ombre légère SEULEMENT après défilement. */
.site-sticky.is-scrolled .site-nav {
  box-shadow: 0 8px 18px -14px color-mix(in srgb, var(--violet) 55%, transparent);
}

.site-nav__shell {
  position: relative;
  container-type: inline-size;
  font-size: calc(var(--fs-base) * var(--espace-conteneur));
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: 64px;
}

/* --- Bloc marque : blason de 44 px avec son badge d'édition, nom sur deux lignes de 14 px en 700 ---------------- */

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--s3);
  color: var(--violet);
  text-decoration: none;
}

.brand__mark {
  position: relative;
  display: block;
  flex: none;
  width: 44px;
  height: 44px;
}

/* Badge « 2027 » : petit rectangle or pâle accroché au coin haut-droit du blason, qui reste visible (le badge n'en cache pas plus du
   quart). Texte de 12 px en 800, qui ne grossit pas avec A+ et A++ : EXCEPTION à la règle des 14 px pour ce seul badge (information
   redondante, le nom accessible du lien dit « Édition 2027 »). Texte or foncé #7A5D0A, 4,5:1 mesuré. */
.brand__badge {
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 0 4px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
  color: var(--or-texte);
  background: var(--accent-candidats-fond);
  box-shadow: 0 0 0 2px var(--blanc);
}

.brand__logo {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--or);
  transition: box-shadow 0.2s;
}

/* Survol du blason : l'anneau or s'illumine légèrement (200 ms). */
.brand:hover .brand__logo {
  box-shadow: 0 0 0 2px var(--or), 0 0 12px 2px color-mix(in srgb, var(--or) 55%, transparent);
}

.brand__text {
  display: grid;
  justify-items: start;
  line-height: 1.2;
}

/* Nom sur deux lignes : « Miss & Mister » en violet profond, « Excellence » en violet moyen. */
.brand__name {
  display: grid;
  gap: 2px;
  justify-items: start;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.brand__line {
  white-space: nowrap;
  color: var(--violet);
}

/* « Excellence » : pastille d'excellence, 18 px de haut, or doux en dégradé (pas d'effet métallique), texte violet très foncé de 13 px
   en Playfair Display italique 700 (police réservée à ce mot et au lien de la fondation), étoile du kit de 11 px.
   Largeur fixe : la pastille ne bouge pas quand la police arrive. */
.brand__line--2 {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: 92px;
  height: 18px;
  padding: 0 8px;
  overflow: hidden;
  border-radius: 999px;
  font-family: var(--police-marque);
  font-size: 13px;
  font-style: italic;
  line-height: 1;
  background: linear-gradient(100deg, var(--or), var(--or-clair));
}

.brand__line--2 .icon {
  width: 11px;
  height: 11px;
}

/* Très petit écran ou texte très grand : le blason reste (nom accessible), le nom écrit disparaît. */
@container (max-width: 23em) {
  .nav-bar .brand__text {
    display: none;
  }
}

.nav {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-left: auto;
  position: relative;
}

.nav-actions__login,
.search {
  display: none;
}

/* Mobile : « Se connecter » est un bouton rond de 40 px (UI-52) ; il disparaît au bureau, où le lien discret prend sa place. */
.nav-actions__login-round.tool {
  width: var(--h-md);
  height: var(--h-md);
  background: var(--violet-pale);
}

.nav-actions__login-round.tool:hover {
  background: var(--fond-2);
}

/* Bureau : le menu se déploie, le burger disparaît, le bloc logo garde sa largeur et un filet le sépare du menu. */
@container (min-width: 90em) {
  .nav-bar {
    min-height: 72px;
  }

  /* 16 px au moins entre le texte et le séparateur vertical. */
  .brand {
    align-self: center;
    margin-right: var(--s2);
    padding-right: var(--s4);
    border-right: 1px solid var(--ligne);
  }

  .nav {
    display: block;
    flex: 1;
    min-width: 0;
  }

  .nav-actions__login {
    display: inline-flex;
  }

  .search {
    display: block;
  }

  .nav-actions__burger,
  .nav-actions__login-round {
    display: none;
  }
}

/* « S'inscrire » : le SEUL bouton plein dominant de la barre. 32 px de haut (112 px au plus), dégradé violet profond →
   violet moyen, petite icône dans un rond or à droite du libellé. Survol : il remonte de 1 px, le dégradé se déplace, le rond
   pivote. C'est le seul bouton à dégradé du site (jamais doré) ; tout reste ≤ 200 ms et se fige en mouvement réduit. */
.btn.nav-actions__register {
  height: var(--h-sm);
  gap: 6px;
  padding: 0 4px 0 10px;
  font-size: var(--fs-sm);
  background-color: var(--violet);
  background-image: var(--accent-degrade-bouton);
  background-position: 0% 50%;
  background-size: 180% 100%;
  transition: background-position 0.2s, transform 0.2s;
}

.btn.nav-actions__register:hover {
  background-color: var(--violet);
  background-image: var(--accent-degrade-bouton);
  background-position: 100% 50%;
  transform: translateY(-1px);
}

.btn.nav-actions__register:active {
  transform: translateY(0);
}

.nav-actions__register .icon {
  width: 24px;
  height: 24px;
  padding: 5px;
  border-radius: 50%;
  color: var(--violet);
  background: var(--or);
  transition: transform 0.2s;
}

.nav-actions__register:hover .icon {
  transform: rotate(14deg);
}

/* Mobile : « S'inscrire » compact, 92 px au plus. */
@container (max-width: 89.99em) {
  .nav-bar {
    gap: var(--s1);
  }

  /* Compact (jusqu'à 100 px) : pas de rond or, l'icône or est seule ; au moins 8 px de marge de chaque côté du libellé. */
  /* Marque et boutons resserrés pour que le nom sur deux lignes, S'inscrire, le bouton rond et le burger tiennent à 375 px. */
  .brand {
    gap: var(--s2);
  }

  .nav-actions__login-round.tool {
    width: 36px;
    height: 36px;
  }

  .btn.nav-actions__register {
    gap: 8px;
    padding: 0 5px 0 8px;
    letter-spacing: -0.03em;
  }

  .nav-actions__register .icon {
    width: 14px;
    height: 14px;
    padding: 0;
    color: var(--or);
    background: transparent;
  }
}

/* « Se connecter » : lien discret avec icône, 32 px, sans fond. */
/* Largeur ≤ 124 px : le texte et l'icône sont serrés au plus juste. */
.nav-actions__login.btn--link {
  gap: 4px;
  padding-inline: 3px;
  color: var(--violet);
}

/* La barre de navigation est un peu plus large que le contenu : sinon blason, entrées et boutons ne tiennent pas à 1440 px. */
.nav-bar.container {
  max-width: calc(1600px * var(--echelle) * var(--espace-conteneur));
}

/* --- Entrées du menu : soulignement OR de 3 px au survol (depuis le centre) ; page active : violet de 3 px, texte 700 --- */

.nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Lots G2 et G2c : la bulle « Contactez-nous » occupe la zone d'actions ; pas d'espace entre les entrées (le soulignement garde son retrait de 4 px) et 4 px de marge intérieure (lot G2c), pour que la barre et la bulle « Contactez-nous » tiennent côte à côte à 1440 px. */
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 0 4px;
  border: 0;
  font-family: inherit;
  font-size: var(--fs-nav);
  font-weight: 500;
  color: var(--violet);
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  cursor: pointer;
}

.nav__link::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 3px;
  left: 4px;
  height: 3px;
  border-radius: 2px;
  background: var(--or);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s;
}

.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link.is-demo-hover::after,
.nav__item[data-open] .nav__link::after {
  transform: scaleX(1);
}

/* Active : seulement quand la route courante appartient à la rubrique (aria-current). */
.nav__link.is-active {
  font-weight: 700;
}

.nav__link.is-active::after {
  background: var(--violet);
  transform: scaleX(1);
}

.nav__chevron {
  width: 1em;
  height: 1em;
  transition: transform 0.2s;
}

.nav__trigger[aria-expanded="true"] .nav__chevron {
  transform: rotate(180deg);
}

/* --- Méga-menu : blanc, coins de 6 px, filet haut en dégradé (couleur de la rubrique → or), centré sous SON entrée ---
   Un seul panneau visible à la fois (front-nav.js). Aucune hauteur fixe. Chaque rubrique a sa teinte (data-tint). */

.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 3;
  width: max-content;
  min-width: min(22em, calc(100vw - 32px));
  max-width: min(52em, calc(100vw - 32px));
  overflow: hidden;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-top: 0;
  border-radius: var(--rayon-panneau);
  box-shadow: var(--ombre-menu);
  transform: translateX(calc(-50% + var(--mega-shift, 0px)));
  translate: 0 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, translate 0.18s, visibility 0s 0.18s;
}

.mega::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tint-plein), var(--tint-fin, var(--or)));
}

/* Un panneau remplacé par un autre disparaît tout de suite (jamais deux panneaux visibles à la fois, même le temps d'un fondu). */
.mega[data-instant] {
  transition: none;
}

.js .nav__item[data-open] > .mega,
.no-js .nav__item:is(:hover, :focus-within) > .mega {
  translate: 0 0;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

/* Ligne de titre : pictogramme teinté, titre et phrase, lien « Tout voir » doré (texte #7A5D0A, 6,2:1 sur blanc). */
.mega__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s4) var(--s5) var(--s3);
  border-bottom: 1px solid var(--ligne);
}

.mega__id {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-width: 0;
}

.mega__picto {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tint-fond);
}

.mega__picto .icon {
  width: 30px;
  height: 30px;
}

.mega__intro {
  min-width: 0;
}

.mega__title {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--violet);
}

.mega__text {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--encre-2);
}

.mega__all.btn--link {
  color: var(--or-texte);
}

.mega__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--s2);
  margin: 0;
  padding: var(--s2) var(--s3) var(--s3);
  list-style: none;
}

.mega--cols-3 .mega__links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mega--cols-1 .mega__links {
  grid-template-columns: minmax(0, 1fr);
}

/* Séparateurs fins entre les rangées. */
.mega--cols-1 .mega__links > li:nth-child(n + 2),
.mega--cols-2 .mega__links > li:nth-child(n + 3),
.mega--cols-3 .mega__links > li:nth-child(n + 4) {
  border-top: 1px solid var(--ligne);
}

/* Rangée : pastille d'icône teintée, libellé, description d'une ligne, flèche qui glisse au survol, barre de 3 px à gauche. */
.mega__link {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 16px;
  grid-template-areas:
    "icon label go"
    "icon desc go";
  align-content: center;
  align-items: center;
  column-gap: var(--s3);
  row-gap: 2px;
  height: 100%;
  padding: var(--s2) var(--s2) var(--s2) var(--s3);
  border-radius: var(--rayon-bouton);
  text-decoration: none;
  transition: background-color 0.15s, transform 0.15s;
}

.mega__link::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 3px;
  border-radius: 2px;
  background: var(--tint-plein);
  transform: scaleY(0);
  transition: transform 0.15s;
}

.mega__link:hover,
.mega__link:focus-visible,
.mega__link.is-demo-hover {
  background: var(--tint-fond);
}

.mega__link:hover::before,
.mega__link:focus-visible::before,
.mega__link.is-demo-hover::before {
  transform: scaleY(1);
}

.mega__link:active {
  transform: translateY(1px);
}

.mega__icon {
  grid-area: icon;
  transition: background-color 0.15s, color 0.15s;
}

.mega__link:hover .mega__icon,
.mega__link:focus-visible .mega__icon,
.mega__link.is-demo-hover .mega__icon {
  color: var(--tint-sur);
  background: var(--tint-plein);
}

.mega__icon .icon {
  width: 20px;
  height: 20px;
}

.mega__go {
  grid-area: go;
  justify-self: end;
  color: var(--tint-icone);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.15s, transform 0.15s;
}

.mega__go .icon {
  width: 16px;
  height: 16px;
}

.mega__link:hover .mega__go,
.mega__link:focus-visible .mega__go,
.mega__link.is-demo-hover .mega__go {
  opacity: 1;
  transform: none;
}

.mega__label {
  grid-area: label;
  font-size: var(--fs-nav);
  font-weight: 600;
  color: var(--violet);
}

/* Description d'UNE seule ligne (14 px minimum), tronquée si elle est trop longue. */
.mega__desc {
  grid-area: desc;
  overflow: hidden;
  font-size: var(--fs-sm);
  color: var(--encre-2);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mega.is-static .mega__links {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14em), 1fr));
}

.mega.is-static {
  position: static;
  width: auto;
  max-width: 100%;
  margin-bottom: var(--s5);
  transform: none;
  translate: none;
  opacity: 1;
  visibility: visible;
}

/* Sans JavaScript, en mode mobile : les rubriques et leurs liens restent atteignables, à plat sous la barre. */
@container (max-width: 89.99em) {
  .no-js .nav {
    display: block;
    min-width: 0;
    flex-basis: 100%;
    order: 3;
  }

  .no-js .nav-bar {
    flex-wrap: wrap;
  }

  .no-js .nav__list {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .no-js .nav__item {
    flex-wrap: wrap;
    width: 100%;
    min-height: 0;
  }

  .no-js .mega {
    position: static;
    width: 100%;
    max-width: 100%;
    margin: var(--s2) 0;
    box-shadow: none;
    transform: none;
    translate: none;
    opacity: 1;
    visibility: visible;
  }
}

.no-js .nav__chevron,
.no-js .nav-actions__burger {
  display: none !important;
}

/* --- Recherche : une loupe, un champ qui se déroule vers la gauche (largeur, 200 ms) ------------------------ */

/* La loupe est séparée des entrées par un filet fin et une marge : jamais collée au chevron de la dernière entrée. */
.search {
  position: relative;
  margin-left: var(--s2);
  padding-left: var(--s2);
  border-left: 1px solid var(--ligne);
}

.search__form {
  position: absolute;
  top: 50%;
  right: calc(100% + var(--s2));
  z-index: 6;
  display: flex;
  align-items: center;
  width: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%);
  transition: width 0.2s, opacity 0.2s, visibility 0s 0.2s;
}

.search.is-open .search__form {
  width: min(24em, 70vw);
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.search__icon {
  position: absolute;
  left: var(--s3);
  color: var(--violet-3);
  pointer-events: none;
  transition: color 0.15s;
}

/* Ouverte : la loupe change de teinte (pastille or pâle, icône or foncé) et le champ prend un liseré or. */
.search.is-open .search__icon {
  color: var(--violet);
}

.search.is-open .search__toggle {
  color: var(--or-texte);
  background: var(--or-pale);
}

.search__form::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 0;
  left: 6px;
  height: 3px;
  border-radius: 2px;
  background: var(--or);
  opacity: 0;
  transition: opacity 0.15s;
}

.search__form:focus-within::after {
  opacity: 1;
}

.search__input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 var(--s3) 0 calc(var(--s3) + 2em);
  border: 1.5px solid var(--violet);
  border-radius: var(--rayon-bouton);
  font: inherit;
  font-size: var(--fs-base);
  color: var(--encre);
  background: var(--blanc);
}

.search__input::placeholder {
  color: var(--encre-2);
  opacity: 1;
}

.search.is-static {
  margin: 0;
  padding: 0;
  border: 0;
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: var(--s2);
}

.search.is-static .search__form {
  position: static;
  transform: none;
}

/* --- Bandeau « À la une » : un BLOC centré (900 px au plus) sous l'en-tête, dégradé bordeaux, coins de 10 px ---- */

.announce {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100% - 2 * var(--s4)));
  margin: 10px auto;
  color: var(--blanc);
  background: var(--accent-degrade-bandeau);
  border-radius: 10px;
  box-shadow: 0 12px 24px -14px color-mix(in srgb, var(--accent-bordeaux-1) 80%, transparent);
  font-size: var(--fs-nav);
  line-height: 1.4;
}

.announce__inner {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: 40px;
  padding: 4px var(--s2) 4px var(--s3);
}

/* Cloche blanche dans un rond translucide. Elle sonne 3 fois au chargement puis s'arrête (0,8 s × 3 = 2,4 s : WCAG 2.2.2),
   et rejoue au survol ou au focus du bandeau. Aucune animation en mouvement réduit (règle globale de front-base.css). */
.announce__bell {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--blanc);
  background: color-mix(in srgb, var(--blanc) 22%, transparent);
  transform-origin: 50% 20%;
}

.announce__bell .icon {
  width: 16px;
  height: 16px;
  transform-origin: 50% 12%;
  animation: bell-ring 0.8s ease-in-out 3;
}

.announce:hover .announce__bell,
.announce:focus-within .announce__bell {
  animation: bell-ring 0.8s ease-in-out 3;
}

@keyframes bell-ring {
  0%,
  100% {
    transform: rotate(0deg);
  }

  20% {
    transform: rotate(14deg);
  }

  40% {
    transform: rotate(-12deg);
  }

  60% {
    transform: rotate(8deg);
  }

  80% {
    transform: rotate(-5deg);
  }
}

.announce__body {
  display: flex;
  flex: 1;
  /* Hauteur des flèches (32 px) réservée d'avance : elles apparaissent avec le JavaScript sans faire bouger la page (CLS). */
  min-height: var(--h-sm);
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  min-width: 0;
}

/* Le texte blanc se pose directement sur le dégradé bordeaux (contraste mesuré au pire pixel), sans plaque. */
.announce__messages {
  flex: 0 1 auto;
  min-width: 0;
  text-align: center;
}

/* Une seule ligne au bureau (ellipse si trop long : la hauteur ne bouge pas quand la police se charge), deux lignes sur mobile. */
.announce__message {
  margin: 0;
  overflow: hidden;
  color: var(--blanc);
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Mobile (sous 640 px, lot L3b7) : UNE seule rangée, de gauche à droite : flèche précédente, cloche et texte, flèche suivante, croix.
   Le texte passe à la ligne SANS ellipse ni coupe : le message d'inscriptions ne tient pas sur deux lignes à 375 px entre trois commandes
   de 32 px (trois lignes à 375 et 414 px, quatre à 320 px). La hauteur de trois lignes est réservée d'avance, la même pour tous les
   messages (aucun CLS) ; elle ne grandit qu'à 320 px ou avec le texte A++, plutôt que de couper le message.
   Taille du texte : 13 px au moins (réglage A / A+ / A++ compris). Cibles tactiles de 32 px. */
@media (max-width: 640px) {
  .announce {
    width: calc(100% - 2 * var(--s2));
    font-size: calc(13px * var(--echelle));
    line-height: 1.35;
  }

  .announce__inner {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto auto;
    grid-template-areas: "prev bell msg next close";
    align-items: center;
    column-gap: var(--s1);
    min-height: 0;
    padding: var(--s1);
  }

  .announce__body {
    display: contents;
  }

  .announce__bell {
    grid-area: bell;
    width: 24px;
    height: 24px;
  }

  .announce__bell .icon {
    width: 14px;
    height: 14px;
  }

  .announce__arrow[data-announce-prev] {
    grid-area: prev;
  }

  .announce__arrow[data-announce-next] {
    grid-area: next;
  }

  .announce__close {
    grid-area: close;
  }

  /* Sans flèches (un seul message) : le texte occupe leur place, la cloche reste à gauche. */
  .announce__inner:not(:has([data-announce-prev])) {
    grid-template-areas: "bell bell msg msg close";
  }

  .announce__messages {
    display: grid;
    grid-area: msg;
    align-items: center;
    min-height: calc(1.35em * 3);
    text-align: left;
  }

  .announce__message {
    white-space: normal;
    text-overflow: clip;
  }
}

.announce__link {
  color: inherit;
  text-decoration: none;
}

.announce .btn--ghost {
  color: var(--blanc);
}

.announce .btn--ghost:hover {
  background: color-mix(in srgb, var(--blanc) 18%, transparent);
}

.announce__close,
.announce__arrow {
  flex: none;
}

.announce.is-static {
  position: static;
  margin-block: var(--s3);
}

/* --- Tiroir mobile : même langage que les méga-menus (pastilles teintées, séparateurs, barre de couleur, appui) ---- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  overflow-y: auto;
  background: var(--blanc);
}

.drawer__panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s3) var(--s4);
  background: var(--accent-degrade-header);
  border-bottom: 2px solid var(--or);
}

/* Champ de recherche en haut du tiroir (rendu seulement quand la page de recherche existe). */
.drawer__search {
  display: flex;
  gap: var(--s2);
  padding: var(--s4);
  border-bottom: 1px solid var(--ligne);
}

.drawer__search-field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.drawer__search-icon {
  position: absolute;
  top: 50%;
  left: var(--s3);
  color: var(--violet-3);
  transform: translateY(-50%);
  pointer-events: none;
}

.drawer__search-input {
  width: 100%;
  height: var(--h-md);
  padding: 0 var(--s3) 0 calc(var(--s3) + 2em);
  border: 1.5px solid var(--violet);
  border-radius: var(--rayon-bouton);
  font: inherit;
  font-size: var(--fs-base);
  color: var(--encre);
  background: var(--blanc);
}

.drawer__nav {
  flex: 1;
}

.acc {
  margin: 0;
  padding: 0;
  list-style: none;
}

.acc__item {
  position: relative;
  border-bottom: 1px solid var(--ligne);
}

/* Barre de couleur à gauche de l'entrée ouverte. */
.acc__item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 4px;
  background: var(--tint-plein, var(--violet));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.2s;
}

.acc__item:has(> .acc__button[aria-expanded="true"])::before {
  transform: scaleY(1);
}

.acc__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  width: 100%;
  min-height: 56px;
  padding: var(--s3) var(--s5);
  border: 0;
  font: inherit;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--violet);
  text-align: left;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.15s;
}

.acc__id {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-width: 0;
}

.acc__picto {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tint-fond, var(--violet-pale));
}

.acc__picto .icon {
  width: 24px;
  height: 24px;
}

.acc__button[aria-expanded="true"],
.acc__item.is-active > .acc__button {
  background: var(--tint-fond, var(--violet-pale));
}

.acc__button:active {
  background: var(--tint-fond, var(--violet-pale));
}

.acc__button .icon--chevron {
  transition: transform 0.2s;
}

.acc__button[aria-expanded="true"] .icon--chevron {
  transform: rotate(180deg);
}

.acc__panel {
  margin: 0;
  padding: var(--s2) 0;
  list-style: none;
  background: var(--fond);
}

.acc__panel > li + li {
  border-top: 1px solid var(--ligne);
}

.acc__link {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 52px;
  padding: var(--s2) var(--s5);
  font-size: var(--fs-base);
  color: var(--encre);
  text-decoration: none;
  transition: background-color 0.15s, transform 0.15s;
}

.acc__link .pastille {
  width: 32px;
  height: 32px;
  transition: background-color 0.15s, color 0.15s;
}

.acc__link:hover,
.acc__link:active {
  background: var(--tint-fond);
}

.acc__link:hover .pastille,
.acc__link:active .pastille {
  color: var(--tint-sur);
  background: var(--tint-plein);
}

.acc__link:active {
  transform: translateY(1px);
}

.acc__link--all {
  font-weight: 700;
  color: var(--or-texte);
}

.drawer__actions {
  display: grid;
  gap: var(--s3);
  padding: var(--s5);
}

.drawer__actions .btn {
  width: 100%;
}

.drawer__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  padding: 0 var(--s4) var(--s5);
}

/* --- Pied de page : forme incurvée, fond violet en dégradé net (zone sombre autorisée) -----------------------
   Le HAUT du pied de page est lui-même une courbe douce : c'est la FORME de l'élément (rayons elliptiques), pas une couche posée par-dessus.
   Bords plus bas, centre plus haut (rayon vertical ≈ 48 px à 1440 px, ≈ 24 px à 375 px). `overflow: hidden` rogne les motifs
   (grille de points qui s'estompe vers le haut, anneaux en filigrane) selon la forme. Aucun voile, aucun halo, aucun filet. */

.footer-surface {
  --arc: clamp(24px, 3.4vw, 48px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--blanc);
  background: var(--accent-degrade-pied);
  border-radius: 50% 50% 0 0 / var(--arc) var(--arc) 0 0;
}

.site-footer {
  margin-top: var(--s8);
  padding-block: var(--s8) var(--s4);
}

.footer__motifs {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.footer__motif {
  position: absolute;
  background: var(--blanc);
}

/* Grille de points fine, plus visible en bas, qui s'estompe vers le haut. */
.footer__motif--dots {
  inset: 0;
  opacity: 0.1;
  -webkit-mask: url("../img/motifs/points.svg") 0 0 / 24px 24px repeat, linear-gradient(to top, var(--violet), transparent);
  mask: url("../img/motifs/points.svg") 0 0 / 24px 24px repeat, linear-gradient(to top, var(--violet), transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* Anneaux concentriques en filigrane : écho de l'anneau du blason. */
.footer__motif--rings {
  opacity: 0.08;
  -webkit-mask: url("../img/motifs/anneaux.svg") center / contain no-repeat;
  mask: url("../img/motifs/anneaux.svg") center / contain no-repeat;
}

.footer__motif--rings-1 {
  right: -140px;
  bottom: -170px;
  width: 520px;
  height: 520px;
}

.footer__motif--rings-2 {
  top: -150px;
  left: -110px;
  width: 340px;
  height: 340px;
  opacity: 0.06;
}

.footer__content {
  position: relative;
}

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

.site-footer :where(a, button):focus-visible {
  outline-color: var(--or-clair);
  box-shadow: 0 0 0 2px var(--violet);
}

.footer__main {
  display: grid;
  gap: var(--s6);
  container-type: inline-size;
}

@media (min-width: 900px) {
  .footer__main {
    grid-template-columns: minmax(14em, 1fr) 4fr;
    gap: var(--s6);
  }
}

.footer__id {
  display: grid;
  gap: var(--s3);
  align-content: start;
}

.footer__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--blanc) 30%, transparent);
}

.footer__name {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 800;
}

.footer__about {
  max-width: 24em;
  margin: var(--s1) 0 0;
  font-size: var(--fs-sm);
  color: color-mix(in srgb, var(--blanc) 94%, transparent);
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Réseaux : léger soulèvement au survol. */
.footer__social .btn {
  transition: background-color 0.15s, transform 0.2s;
}

.footer__social .btn:hover {
  transform: translateY(-2px);
}

/* Colonnes du pied de page : une, deux ou cinq selon la place (requêtes de conteneur en « em » : elles suivent la taille du texte, donc A+
   et A++ retombent seuls à une colonne quand deux ne tiennent plus). Séparateurs décoratifs en CSS seul (pseudo-éléments, rien dans le
   HTML) : filets de 1 px estompés aux extrémités (blanc ≈ 22 % au centre), horizontaux entre les rangées, verticaux entre les colonnes.
   Avec un nombre impair de sections, la dernière reste seule dans sa colonne (pas d'étirement). */
.footer__nav {
  --footer-col-gap: var(--s5);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s6);
}

.footer__col {
  position: relative;
}

.footer__col + .footer__col::before {
  content: "";
  position: absolute;
  top: calc(var(--s6) / -2);
  right: 0;
  left: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--blanc) 22%, transparent), transparent);
}

@container (min-width: 20em) {
  .footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--footer-col-gap);
  }

  /* Rangée 1 : pas de filet horizontal sur la deuxième colonne ; filet vertical devant chaque colonne paire. */
  .footer__col:nth-child(2)::before {
    content: none;
  }

  .footer__col:nth-child(even)::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--footer-col-gap) / -2);
    width: 1px;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--blanc) 22%, transparent), transparent);
  }
}

/* Colonnes de 160 px (≈ 375 px) : l'espace entre colonnes est réduit pour que « Site de la fondation » tienne sur une ligne. */
@container (max-width: 25em) {
  .footer__nav {
    --footer-col-gap: var(--s3);
  }
}

@container (min-width: 66em) {
  .footer__nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .footer__col:nth-child(even)::after {
    content: none;
  }

  .footer__col + .footer__col::before {
    content: "";
    top: 0;
    right: auto;
    bottom: 0;
    left: calc(var(--footer-col-gap) / -2);
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--blanc) 22%, transparent), transparent);
  }
}

/* Titre de colonne sobre : icône (16 px) et titre (14 px, 700), sans fond, sans bordure, sans rond ; mêmes couleurs dans les
   cinq colonnes (texte blanc, icône or pâle à 85 %). Les teintes par rubrique restent dans les menus. */
.footer__title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 var(--s3);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blanc);
}

.footer__title .icon {
  width: 16px;
  height: 16px;
  color: color-mix(in srgb, var(--or-clair) 85%, transparent);
}

.footer__links {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Lien : la flèche glisse et la couleur change au survol. */
.footer__links a {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  padding-block: 4px;
  font-size: var(--fs-sm);
  transition: color 0.15s;
}

.footer__links a .icon {
  /* Le chevron s'aligne sur la première ligne du libellé, même quand celui-ci passe sur deux lignes. */
  margin-top: calc((1lh - 1em) / 2);
  color: color-mix(in srgb, var(--blanc) 70%, transparent);
  transition: transform 0.2s, color 0.15s;
}

.footer__tail {
  white-space: nowrap;
}

/* Lien externe : l'icône est en ligne, juste après le dernier mot, sur la ligne de base. */
.footer__links a .footer__external {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin: 0 0 0 0.2em;
  vertical-align: -0.12em;
  opacity: 0.85;
}

.footer__links a:hover,
.footer__links a:focus-visible {
  color: var(--or-clair);
}

.footer__links a:hover .icon,
.footer__links a:focus-visible .icon {
  color: var(--or-clair);
  transform: translateX(4px);
}

.footer__links a:hover .footer__external,
.footer__links a:focus-visible .footer__external {
  transform: none;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3) var(--s5);
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid color-mix(in srgb, var(--blanc) 18%, transparent);
  font-size: var(--fs-sm);
}

/* Le bouton « haut de page » (44 px, 24 px du bord) ne recouvre jamais le crédit : on réserve sa place à droite. */
@media (max-width: 1400px) {
  .footer__bottom {
    padding-right: 60px;
  }
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s5);
}

.footer__rights {
  margin: 0;
  color: color-mix(in srgb, var(--blanc) 94%, transparent);
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__legal-links a {
  display: inline-block;
  padding-block: 4px;
}

.footer__credit {
  margin: 0;
}

/* Crédit : tout est un lien ; le nom en or clair 700 (contraste mesuré) ; soulignement au survol et au focus. */
.footer__credit-link {
  display: inline;
  padding-block: 4px;
}

.footer__credit-link .icon {
  margin-left: var(--s2);
  vertical-align: -0.2em;
}

.footer__credit-link:hover,
.footer__credit-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer__credit-label {
  color: color-mix(in srgb, var(--blanc) 94%, transparent);
}

/* Prénom composé insécable : « Jean-Philippe » ne se coupe jamais au trait d'union (le texte et le nom accessible ne changent pas). */
.footer__nowrap {
  white-space: nowrap;
}

.footer__credit-name {
  font-weight: 700;
  color: var(--or-clair);
}

@media (max-width: 700px) {
  /* Mobile : le crédit garde sa largeur normale ; une rangée vide en bas du pied de page (44 px du bouton + 24 px de marge + 8 px)
     laisse le bouton « haut de page » tenir sans recouvrir le crédit ni le lien LinkedIn. */
  .footer__bottom {
    padding-right: 0;
  }

  .site-footer {
    padding-bottom: calc(44px + var(--s5) + var(--s2));
  }

  .footer__bottom,
  .footer__legal {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__legal-links {
    justify-content: center;
  }
}

/* --- Retour en haut : INCHANGÉ ------------------------------------------------------------------------------ */

.totop {
  position: fixed;
  right: var(--s5);
  bottom: calc(var(--s5) + var(--cookie-offset, 0px));
  z-index: var(--z-totop);
  color: var(--blanc);
  background: var(--violet);
  background-image: none;
  /* Liseré or : le bouton violet reste visible quand il passe sur le pied de page violet. */
  border-color: var(--or);
  box-shadow: var(--ombre-carte);
}

.totop:hover,
.gab__state--hover .totop {
  color: var(--violet);
  background: var(--or);
  border-color: var(--or);
}

.totop.is-static {
  position: static;
}

/* --- Bandeau cookies : carte compacte en bas (à gauche sur bureau, pleine largeur sur mobile) ----------------- */

.cookie {
  position: fixed;
  bottom: var(--s5);
  left: var(--s5);
  z-index: var(--z-cookie);
  width: min(27em, calc(100vw - 2 * var(--s5)));
  padding: var(--s4) var(--s5);
  overflow: hidden;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-menu);
}

.cookie::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--accent-degrade-filet);
}

.cookie__head {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s2);
}

@media (max-width: 700px) {
  .cookie {
    right: var(--s3);
    bottom: var(--s3);
    left: var(--s3);
    width: auto;
  }
}

.cookie__title {
  margin: 0;
  font-size: var(--fs-lg);
}

.cookie__text {
  margin: 0 0 var(--s3);
  font-size: var(--fs-sm);
  color: var(--encre-2);
}

.cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

/* « Accepter » et « Refuser » : même variante, même largeur, même hauteur, donc exactement le même poids. */
.cookie__actions .btn--secondary {
  flex: 1 1 0;
  min-width: 7em;
}

.cookie__details {
  margin-top: var(--s3);
  border-top: 1px solid var(--ligne);
}

.cookie__row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding-block: var(--s3);
  border-bottom: 1px solid var(--ligne);
}

.cookie__row-icon {
  flex: none;
}

.cookie__row-text {
  display: grid;
  flex: 1;
  min-width: 0;
}

.cookie__row-name {
  font-weight: 700;
  color: var(--violet);
}

.cookie__row-hint {
  font-size: var(--fs-sm);
  color: var(--encre-2);
}

.cookie__save {
  width: 100%;
  margin-top: var(--s3);
}

.cookie.is-static {
  position: static;
  width: min(27em, 100%);
  margin-bottom: var(--s4);
}

/* Lien d'action du bandeau (« Comment s'inscrire ») : à côté du texte, repéré par un filet jaune clair (jamais souligné). */
.announce__link--cta {
  margin-left: var(--s2);
  font-weight: 800;
  white-space: nowrap;
  background: linear-gradient(var(--or-clair), var(--or-clair)) 0 100% / 100% 2px no-repeat;
}

/* Coordonnées de la Fondation dans le pied de page (lot C1) : rangée pleine largeur sous les colonnes, sur fond violet, texte blanc ; zone tactile de 44 px sur chaque lien. */
.footer__contact {
  display: grid;
  gap: var(--s5) var(--s6);
  margin-top: var(--s5);
  padding-block: var(--s5);
  font-style: normal;
  border-top: 1px solid color-mix(in srgb, var(--blanc) 18%, transparent);
}

.footer__contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: var(--s3) var(--s5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__contact-list li {
  display: grid;
  gap: 0;
  align-content: start;
}

.footer__contact-label {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--blanc);
}

.footer__contact a,
.footer__contact-text {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-sm);
  color: var(--blanc);
  overflow-wrap: anywhere;
}

.footer__contact-text {
  min-height: 0;
  padding-top: var(--s1);
  line-height: 1.5;
}

.footer__contact a:focus-visible {
  outline: 3px solid var(--or);
  outline-offset: 2px;
}

.footer__hours {
  display: grid;
  gap: var(--s1);
}

.footer__hours-line {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--blanc);
}

@media (min-width: 64em) {
  .footer__contact {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
  }
}

.nowrap {
  white-space: nowrap;
}
