/* Le site public d'Elio : l'accueil, les pages légales, le pied.

   Les valeurs viennent des maquettes de Mathis (design/Elio Accueil.dc.html,
   Elio Legal.dc.html, Elio Pied.dc.html), reprises telles quelles. Les
   maquettes portent leurs styles en ligne et choisissent « desktop » ou
   « mobile » par une propriété ; ici c'est la largeur de l'écran qui décide,
   par media query - c'est la seule différence assumée, un site n'a pas de
   sélecteur de format. Points de bascule : 1024px pour le sommaire latéral des
   pages légales, 760px pour la grille de l'accueil et les colonnes du pied. */

/* ---------- Socle ---------- */

/* Trois valeurs que le design system ne nomme pas et que les maquettes du site
   écrivent en dur. Elles sont posées ici plutôt que recopiées à six endroits :
   `jetons.css` est le miroir de `design/_ds/`, il ne s'invente rien. Le doré de
   l'attente dérive de `--attention`, l'état système déjà défini. */
:root {
  --carte-fond-survol: #201D1B;
  --carte-fond-presse: #1A1716;
  --attente-fond: rgba(199, 154, 59, .16);
  --attente-bordure: rgba(199, 154, 59, .4);
  --attente-bordure-douce: rgba(199, 154, 59, .3);
  --attente-texte: #E5C07B;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface-page);
  color: var(--text-primaire);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* Le focus se voit : on navigue ce site au clavier comme à la souris. */
:focus-visible {
  outline: 2px solid var(--text-accent-sur-sombre);
  outline-offset: 3px;
  border-radius: 6px;
}

.page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Sauter la barre : le premier arrêt au clavier, invisible tant qu'on ne l'a
   pas atteint. */
.saut {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--blanc-50);
  color: var(--noir-800);
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  transition: top var(--duree-rapide) var(--ease-sortie);
}
.saut:focus { top: 12px; }

/* ---------- La barre du haut ---------- */

.barre {
  position: sticky;
  top: 0;
  z-index: 20;
  flex: none;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  background: rgba(19, 19, 19, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(242, 242, 242, .09);
}
.barre-ressort { flex: 1; min-width: 0; }

.marque {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
  text-decoration: none;
  color: var(--blanc-50);
  transition: opacity var(--duree-rapide);
}
.marque:hover { opacity: .75; }
.marque-mot { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.marque-orbe { line-height: 0; display: flex; }
.marque-suite {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--text-accent-sur-sombre);
}

/* ---------- L'accueil ---------- */

.accueil {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  padding: 64px 40px 72px;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
}

.heros {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  max-width: 660px;
}

.heros-orbe {
  position: relative;
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  animation: ac-flotte 7s var(--ease-douce) infinite;
}
.heros-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 210%;
  height: 210%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(168, 42, 21, .38) 0%, rgba(119, 23, 10, .14) 38%, transparent 66%);
  pointer-events: none;
  animation: ac-halo 1200ms var(--ease-douce) both;
}
.heros-orbe > [data-orbe] { position: relative; line-height: 0; animation: ac-orbe 900ms var(--ease-sortie) both; }

.heros-titre {
  margin: 0;
  font-size: 62px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.02;
  animation: ac-monte 700ms var(--ease-sortie) .25s both, ac-monte-int 700ms var(--ease-sortie) .25s backwards;
}
.heros-intro {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondaire);
  text-wrap: pretty;
  animation: ac-monte 700ms var(--ease-sortie) .4s both, ac-monte-int 700ms var(--ease-sortie) .4s backwards;
}

.cartes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.carte {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 22px;
  border-radius: 24px;
  background: var(--noir-700);
  border: 1px solid rgba(242, 242, 242, .09);
  text-decoration: none;
  color: var(--blanc-50);
  overflow: hidden;
  animation: ac-monte 600ms var(--ease-sortie) both, ac-monte-int 600ms var(--ease-sortie) backwards;
  transition: background 320ms var(--ease-douce), border-color 320ms var(--ease-douce);
}
/* La carte ne se soulève plus et ne porte plus d'ombre : au survol, seuls le
   fond, la bordure et l'anneau de la tuile bougent. La maquette du 16 septembre
   a retiré le liseré du bord, la lueur du coin et le décollage, qui faisaient
   sauter la grille entière quand la souris la traversait. */
.carte:hover { background: var(--carte-fond-survol); border-color: rgba(201, 106, 82, .34); }
.carte:active { background: var(--carte-fond-presse); }

.carte-tete { display: flex; align-items: center; gap: 12px; }
.carte-tuile {
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--degrade-bordeaux);
  color: var(--blanc-50);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: background 320ms var(--ease-douce), color 320ms;
}
/* L'anneau s'ouvre autour de la tuile au survol. Il reste dans son coin : rien
   d'autre ne bouge de place. */
.carte-anneau {
  position: absolute;
  inset: -4px;
  border-radius: 17px;
  border: 1px solid rgba(232, 168, 150, .55);
  opacity: 0;
  transform: scale(.82);
  transition: opacity 380ms var(--ease-douce), transform 380ms var(--ease-sortie);
  pointer-events: none;
}
.carte:hover .carte-anneau { opacity: 1; transform: scale(1); }
.carte-ico { position: relative; line-height: 0; }

.carte-nom { flex: 1; min-width: 0; font-size: 17.5px; font-weight: 800; letter-spacing: -.01em; transition: color 280ms; }
.carte-chevron {
  flex: none;
  opacity: .7;
  transform: translateX(0);
  stroke: var(--gris-300);
  transition: transform 320ms var(--ease-sortie), stroke 280ms, opacity 280ms;
}
.carte:hover .carte-chevron { opacity: 1; transform: translateX(5px); stroke: var(--text-accent-sur-sombre); }
.carte-texte { font-family: var(--font-body); font-size: 14.5px; line-height: 1.55; color: var(--text-secondaire); transition: color 280ms; }
.carte:hover .carte-texte { color: var(--gris-100); }

/* Une carte dont la page n'existe pas encore : éteinte, et elle le dit. Elle
   répond quand même au survol, en doré et non en bordeaux : la main sent que
   la carte est vivante, l'oeil voit qu'elle ne mène nulle part. */
.carte--plus-tard {
  background: rgba(242, 242, 242, .03);
  border-color: rgba(242, 242, 242, .06);
  cursor: default;
}
.carte--plus-tard:hover {
  background: rgba(242, 242, 242, .05);
  border-color: var(--attente-bordure-douce);
}
.carte--plus-tard:active { background: rgba(242, 242, 242, .05); }
.carte--plus-tard .carte-tuile { background: rgba(242, 242, 242, .06); color: var(--gris-400); }
.carte--plus-tard:hover .carte-tuile { background: var(--attente-fond); color: var(--attente-texte); }
.carte--plus-tard:hover .carte-anneau { opacity: 0; transform: scale(.82); }
.carte--plus-tard .carte-nom { color: var(--gris-300); }
.carte--plus-tard:hover .carte-nom { color: var(--gris-100); }

.carte-etiquette {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(242, 242, 242, .07);
  border: 1px solid transparent;
  color: var(--gris-300);
  white-space: nowrap;
  transition: all 320ms var(--ease-douce);
}
/* Le point de l'étiquette : posé en ::before plutôt qu'en balise, il n'a rien
   à dire à un lecteur d'écran. */
.carte-etiquette::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--attention);
  opacity: .45;
  transition: opacity 320ms;
}
.carte--plus-tard:hover .carte-etiquette {
  background: var(--attente-fond);
  border-color: var(--attente-bordure);
  color: var(--attente-texte);
}
.carte--plus-tard:hover .carte-etiquette::before { opacity: 1; }

.bande {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 20px;
  background: rgba(242, 242, 242, .035);
  border: 1px solid rgba(242, 242, 242, .08);
  animation: ac-monte 600ms var(--ease-sortie) 1s both, ac-monte-int 600ms var(--ease-sortie) 1s backwards;
  transition: border-color 240ms, background 240ms;
}
.bande:hover { border-color: rgba(201, 106, 82, .3); background: rgba(242, 242, 242, .05); }
.bande-barres { flex: none; display: flex; gap: 4px; align-items: flex-end; height: 16px; }
.bande-barres span { width: 4px; border-radius: 2px; background: var(--bordeaux-300); animation: ac-respire 1.4s ease-in-out infinite; }
.bande-barres span:nth-child(1) { height: 100%; }
.bande-barres span:nth-child(2) { height: 70%; animation-delay: .2s; }
.bande-barres span:nth-child(3) { height: 45%; animation-delay: .4s; }
.bande-texte { font-family: var(--font-body); font-size: 15px; line-height: 1.6; color: var(--text-secondaire); text-wrap: pretty; }

@keyframes ac-venue { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ac-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ac-respire { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes ac-monte { from { opacity: 0; } to { opacity: 1; } }
@keyframes ac-monte-int { from { transform: translateY(18px); } to { transform: translateY(0); } }
@keyframes ac-orbe { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes ac-halo { from { opacity: 0; transform: translate(-50%, -50%) scale(.5); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* ---------- Les pages légales ---------- */

.legal-corps { flex: 1; display: flex; align-items: flex-start; }

.legal-onglets { display: flex; gap: 2px; flex: none; }
.legal-onglet {
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--gris-300);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duree-rapide);
  white-space: nowrap;
}
.legal-onglet:hover { color: var(--blanc-50); background: rgba(242, 242, 242, .06); }
.legal-onglet[aria-current="page"] { color: var(--blanc-50); background: rgba(242, 242, 242, .08); border-color: rgba(242, 242, 242, .14); }

.bouton-retour {
  flex: none;
  height: 38px;
  padding: 0 16px 0 12px;
  margin-left: 8px;
  border-radius: 999px;
  border: 1px solid rgba(242, 242, 242, .1);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondaire);
  text-decoration: none;
  transition: all var(--duree-rapide);
}
.bouton-retour:hover { background: rgba(242, 242, 242, .06); color: var(--blanc-50); }

/* Le menu du téléphone : un bouton, un voile, une feuille. */
.legal-menu-btn {
  display: none;
  flex: none;
  height: 38px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background: rgba(242, 242, 242, .06);
  border: 1px solid rgba(242, 242, 242, .12);
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--gris-100);
  cursor: pointer;
  transition: all var(--duree-rapide);
  white-space: nowrap;
}
.legal-menu-btn:active { background: rgba(242, 242, 242, .14); }
.legal-voile {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(13, 13, 13, .6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 0;
  padding: 0;
}
.legal-feuille {
  position: fixed;
  left: 14px;
  right: 14px;
  top: 70px;
  z-index: 31;
  border-radius: 22px;
  background: var(--noir-700);
  border: 1px solid rgba(242, 242, 242, .12);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: lg-venue 200ms var(--ease-sortie);
}
.legal-feuille-lien {
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--gris-300);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.legal-feuille-lien[aria-current="page"] { color: var(--blanc-50); background: rgba(242, 242, 242, .08); }
.legal-feuille-lien .coche { opacity: 0; flex: none; }
.legal-feuille-lien[aria-current="page"] .coche { opacity: 1; }
.legal-feuille-retour {
  margin: 8px 4px 4px;
  height: 48px;
  border-radius: 999px;
  background: rgba(242, 242, 242, .06);
  border: 1px solid rgba(242, 242, 242, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--gris-100);
  text-decoration: none;
}

/* Le sommaire, collé à gauche. */
.sommaire {
  flex: none;
  align-self: flex-start;
  position: sticky;
  top: 60px;
  width: 252px;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
  padding: 36px 22px 30px 36px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: none;
}
.sommaire::-webkit-scrollbar { display: none; }
.sommaire-titre {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--gris-400);
  padding: 0 0 14px;
}
.sommaire-lien {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 7px 0;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gris-300);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 200ms var(--ease-douce);
  line-height: 1.4;
  text-align: left;
}
.sommaire-lien:hover { color: var(--blanc-50); }
.sommaire-lien[aria-current="true"] { color: var(--blanc-50); }
.sommaire-num {
  flex: none;
  width: 12px;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #4E4844;
  padding-top: 2px;
  transition: color 200ms;
}
.sommaire-lien[aria-current="true"] .sommaire-num { color: var(--text-accent-sur-sombre); }
.sommaire-note { margin-top: 22px; font-size: 12.5px; line-height: 1.6; color: var(--gris-400); }
.sommaire-note a { color: var(--gris-300); text-decoration: none; font-weight: 700; border-bottom: 1px solid rgba(143, 137, 131, .4); }
.sommaire-note a:hover { color: var(--text-accent-sur-sombre); border-bottom-color: var(--text-accent-sur-sombre); }

.legal-colonne { flex: 1; min-width: 0; }
.legal-contenu {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding: 34px 44px 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  animation: lg-venue 300ms var(--ease-sortie);
}

.legal-tete { display: flex; flex-direction: column; gap: 10px; }
.legal-eyebrow { font-size: 13px; font-weight: 700; color: var(--text-accent-sur-sombre); }
.legal-titre { margin: 0; font-size: 44px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.legal-intro { margin: 4px 0 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--text-secondaire); text-wrap: pretty; }
.legal-date { font-size: 13px; font-weight: 600; color: var(--gris-300); }

/* Les pilules de sections, sur téléphone, à la place du sommaire. */
.legal-pilules {
  display: none;
  gap: 6px;
  overflow-x: auto;
  margin: 0 -20px;
  padding: 0 20px;
  scrollbar-width: none;
}
.legal-pilules::-webkit-scrollbar { display: none; }
.legal-pilule {
  flex: none;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(242, 242, 242, .12);
  background: transparent;
  display: flex;
  align-items: center;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gris-100);
  cursor: pointer;
  white-space: nowrap;
}

.resume { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.resume-carte {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: var(--noir-700);
  border: 1px solid rgba(242, 242, 242, .09);
}
.resume-tuile {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--degrade-bordeaux);
  color: var(--blanc-50);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.resume-titre { font-size: 15px; font-weight: 800; line-height: 1.3; }
.resume-texte { font-family: var(--font-body); font-size: 13.5px; line-height: 1.5; color: var(--text-secondaire); }

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(242, 242, 242, .08);
  animation: lg-venue 420ms var(--ease-sortie) both;
}
.legal-section h2 { margin: 6px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; scroll-margin-top: 76px; }
.legal-section p { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--gris-100); text-wrap: pretty; }
.legal-liste { margin: 0; padding: 0 0 0 2px; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.legal-liste li { display: flex; gap: 12px; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--gris-100); }
.legal-liste li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--text-accent-sur-sombre); margin-top: 11px; }

.legal-table { border-radius: 16px; border: 1px solid rgba(242, 242, 242, .09); overflow: hidden; }
.legal-ligne {
  display: grid;
  grid-template-columns: 150px minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 4px 16px;
  padding: 12px 16px;
  border-top: 1px solid rgba(242, 242, 242, .07);
}
.legal-ligne:first-child { border-top-color: transparent; }
.legal-ligne:nth-child(even) { background: rgba(242, 242, 242, .02); }
.legal-ligne-a { font-size: 14px; font-weight: 800; }
.legal-ligne-b { font-family: var(--font-body); font-size: 14.5px; line-height: 1.55; color: var(--gris-100); }
.legal-ligne-c { font-family: var(--font-body); font-size: 13.5px; line-height: 1.5; color: var(--gris-300); }

.legal-note {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(119, 23, 10, .18);
  border: 1px solid rgba(232, 168, 150, .25);
}
.legal-note::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--text-accent-sur-sombre); margin-top: 8px; }
.legal-note span { font-family: var(--font-body); font-size: 15px; line-height: 1.6; color: var(--blanc-50); }

@keyframes lg-venue { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Le pied ---------- */

.pied {
  width: 100%;
  padding: 40px 40px 32px;
  background: var(--noir-800);
  border-top: 1px solid rgba(242, 242, 242, .07);
  font-family: var(--font-display);
  color: var(--blanc-50);
}
.pied-cadre {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 32px 28px;
  border-radius: 26px;
  background: radial-gradient(130% 160% at 0% 0%, rgba(119, 23, 10, .26) 0%, #1C1B1A 62%);
  border: 1px solid var(--bordure-bordeaux);
}
.pied-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px 40px;
  align-items: start;
}
.pied-marque { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pied-marque .marque { align-self: flex-start; }
.pied-baseline { font-family: var(--font-body); font-size: 14.5px; line-height: 1.6; color: var(--text-secondaire); }
.pied-groupe { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pied-groupe-titre {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--text-accent-sur-sombre);
}
.pied-liens { display: flex; flex-direction: column; gap: 2px; }
.pied-lien {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 10px;
  margin-left: -10px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--gris-300);
  background: none;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duree-rapide);
}
.pied-lien:hover { background: rgba(242, 242, 242, .06); color: var(--blanc-50); }
.pied-lien::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-accent-sur-sombre);
  opacity: 0;
}
.pied-lien[aria-current="page"] { color: var(--blanc-50); }
.pied-lien[aria-current="page"]::before { opacity: 1; }
/* Une destination qui n'existe pas encore : présente, éteinte, pas cliquable. */
.pied-lien--plus-tard { color: var(--gris-400); cursor: default; }
.pied-lien--plus-tard:hover { background: none; color: var(--gris-400); }
.pied-lien-etiquette { font-size: 10.5px; font-weight: 800; color: var(--gris-400); opacity: .75; }

.pied-bas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(242, 242, 242, .09);
}
.pied-copy { font-size: 12.5px; font-weight: 600; color: var(--gris-400); white-space: nowrap; }
.pied-note { font-size: 12.5px; font-weight: 600; color: var(--gris-400); }
.pied-ressort { flex: 1; }
.pied-haut {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  background: rgba(242, 242, 242, .06);
  border: 1px solid rgba(242, 242, 242, .12);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--gris-100);
  cursor: pointer;
  transition: all var(--duree-rapide);
}
.pied-haut:hover { background: rgba(242, 242, 242, .13); color: var(--blanc-50); transform: translateY(-2px); }
.pied-haut:active { transform: scale(.97); }

/* ---------- La page introuvable ---------- */

/* D'après design/Elio 404.dc.html. Même construction que l'accueil : l'orbe qui
   flotte au-dessus de son halo, puis le texte. Une seule différence, et elle
   est voulue : l'orbe cherche de gauche à droite, parce que c'est une page où
   quelque chose est perdu. */

.perdu {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 62px 40px 72px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}
.perdu-bloc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  max-width: 620px;
}

.perdu-orbe {
  position: relative;
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  animation: qz-flotte 7s var(--ease-douce) infinite;
}
.perdu-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 210%;
  height: 210%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(168, 42, 21, .34) 0%, rgba(119, 23, 10, .12) 38%, transparent 66%);
  pointer-events: none;
  animation: qz-halo 1200ms var(--ease-douce) both;
}
.perdu-orbe > [data-orbe] {
  position: relative;
  line-height: 0;
  animation: qz-orbe 900ms var(--ease-sortie) both, qz-cherche 5.5s var(--ease-douce) 1s infinite;
}

.perdu-code {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--text-accent-sur-sombre);
  animation: qz-venue 600ms var(--ease-sortie) .2s both;
}
.perdu-points { display: flex; gap: 4px; }
.perdu-points span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--bordeaux-300);
  animation: qz-point 1.4s ease-in-out infinite;
}
.perdu-points span:nth-child(2) { animation-delay: .2s; }
.perdu-points span:nth-child(3) { animation-delay: .4s; }

.perdu-titre {
  margin: 0;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.04;
  animation: qz-venue 700ms var(--ease-sortie) .3s both, qz-monte 700ms var(--ease-sortie) .3s backwards;
}
.perdu-texte {
  margin: 0;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondaire);
  text-wrap: pretty;
  animation: qz-venue 700ms var(--ease-sortie) .45s both, qz-monte 700ms var(--ease-sortie) .45s backwards;
}

.perdu-boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  animation: qz-venue 700ms var(--ease-sortie) .6s both, qz-monte 700ms var(--ease-sortie) .6s backwards;
}
.perdu-bouton {
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--blanc-50);
  color: var(--noir-800);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: all 180ms var(--ease-douce);
}
.perdu-bouton:hover { background: var(--blanc-0); transform: translateY(-2px); }
.perdu-bouton:active { transform: scale(.97); }
.perdu-bouton--second {
  padding: 0 20px;
  background: none;
  border: 1px solid rgba(242, 242, 242, .16);
  color: var(--gris-100);
  font-weight: 700;
}
.perdu-bouton--second:hover { background: rgba(242, 242, 242, .08); color: var(--blanc-50); }
/* Le bouton dont la page n'existe pas encore : présent, éteint, et il le dit. */
.perdu-bouton--plus-tard {
  border-color: rgba(242, 242, 242, .1);
  color: var(--gris-400);
  cursor: default;
}
.perdu-bouton--plus-tard:hover { background: none; color: var(--gris-400); transform: none; }
.perdu-bouton-etiquette { font-size: 10.5px; font-weight: 800; color: var(--gris-400); opacity: .75; }

@keyframes qz-venue { from { opacity: 0; } to { opacity: 1; } }
@keyframes qz-monte { from { transform: translateY(16px); } to { transform: translateY(0); } }
@keyframes qz-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes qz-halo { from { opacity: 0; transform: translate(-50%, -50%) scale(.5); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes qz-orbe { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes qz-cherche { 0%, 100% { transform: translateX(-7px); } 50% { transform: translateX(7px); } }
@keyframes qz-point { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ---------- Les largeurs ---------- */

/* Sous 1024px, le sommaire latéral n'a plus la place : les sections passent en
   pilules au-dessus du texte, comme la maquette le prévoit pour le téléphone. */
@media (max-width: 1024px) {
  .sommaire { display: none; }
  .legal-onglets { display: none; }
  .bouton-retour { display: none; }
  .legal-menu-btn { display: flex; }
  .legal-pilules { display: flex; }
  .legal-contenu { max-width: 100%; padding: 26px 20px 48px; gap: 26px; }
  .legal-titre { font-size: 32px; }
  .resume { grid-template-columns: 1fr; }
  .legal-ligne { grid-template-columns: 1fr; }
}

/* Sous 760px, l'accueil passe sur une colonne et les tailles descendent. */
@media (max-width: 760px) {
  .barre { padding: 0 16px; }
  .accueil { padding: 34px 20px 48px; gap: 32px; }
  .heros-orbe { width: 150px; height: 150px; }
  .heros-titre { font-size: 40px; }
  .heros-intro { font-size: 16.5px; }
  .cartes { grid-template-columns: minmax(0, 1fr); }
  .perdu { padding: 34px 20px 48px; gap: 30px; }
  .perdu-orbe { width: 140px; height: 140px; }
  .perdu-titre { font-size: 34px; }
  .perdu-texte { font-size: 16px; }
  .pied { padding: 24px 16px 20px; }
  .pied-grille { grid-template-columns: minmax(0, 1fr); }
}

/* Personne ne doit subir une animation : le réglage système fait foi. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
