/* Variante H — base visuelle de F affinée : finesse, transparence, lumière.
   Direction d'Arnaud (17/09/2026) : typographie légère (Sora 500-600, hiérarchie par la taille et l'espace),
   bleu nuit en profondeur (dégradé doux, jamais un aplat), jaune #FFCB05 par touches (UN bouton, un point,
   un filet), verre dépoli sur le bleu, halos lents, ombres diffuses, plus d'air, traits fins.
   Valeurs de CHARTE-RELEVEE.md (bleu nuit #0D1B3E, bleus #1B3A7A/#2E5FBF, clair #f8fafc/#0f172a). */
@font-face {
  font-family: Sora; font-style: normal; font-weight: 400 800; font-display: block;
  src: url("assets/polices/sora-latin.woff2") format("woff2");
}
@font-face {
  font-family: Inter; font-style: normal; font-weight: 400 700; font-display: block;
  src: url("assets/polices/inter-latin.woff2") format("woff2");
}
@font-face { font-family: "Sora Fallback"; src: local("Arial"); size-adjust: 106%; ascent-override: 96%; descent-override: 26%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 100%; ascent-override: 93%; descent-override: 23%; line-gap-override: 0%; }
:root {
  color-scheme: light;
  /* Bleus de l'ancien site : le fond est un dégradé entre --nuit-haut et --nuit-bas, jamais un aplat. */
  --nuit: #0D1B3E; --nuit-haut: #122556; --nuit-bas: #0A1531; --bleu: #1B3A7A; --bleu-clair: #2E5FBF;
  /* Jaune du logo FFSS, par touches seulement */
  --jaune: #FFCB05;
  /* Textes sur bleu et sur verre */
  --sur-nuit: #ffffff; --sur-nuit-2: #d5ddee; --sur-nuit-3: #c4cee0;
  /* Verre dépoli */
  --verre: rgba(255, 255, 255, .08); --verre-fort: rgba(255, 255, 255, .12); --verre-bord: rgba(255, 255, 255, .16); --verre-reflet: rgba(255, 255, 255, .28);
  /* Corps clair */
  --papier: #f8fafc; --carte: #ffffff; --carte-2: #fbfcfe;
  --encre: #0f172a; --encre-2: #475569; --encre-3: #5d6b80;
  --bordure: rgba(13, 27, 62, .09); --bordure-forte: rgba(13, 27, 62, .18); --bordure-lumiere: rgba(46, 95, 191, .45);
  --erreur: #b3261e;
  --ombre-douce: 0 1px 2px rgba(13, 27, 62, .04), 0 10px 30px -14px rgba(13, 27, 62, .18);
  --ombre-survol: 0 2px 4px rgba(13, 27, 62, .04), 0 18px 40px -16px rgba(13, 27, 62, .28);
  --ombre-corps: 0 30px 70px -30px rgba(0, 6, 24, .7);
  --rayon: 24px; --rayon-petit: 16px; --pilule: 999px;
  /* Police de titre : UNE variable. Le jour où une licence web de Chalet existe : --police-titre: Chalet, Sora, … */
  --police-titre: Sora, "Sora Fallback", system-ui, sans-serif;
  --police-corps: Inter, "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sortie: cubic-bezier(.2, .7, .2, 1);
  font-family: var(--police-corps);
  font-synthesis: none;
}
@media (prefers-color-scheme: dark) {
  :root { --papier: #eef1f6; --carte: #f7f9fc; --carte-2: #f3f6fa; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--nuit); }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; position: relative;
  background: var(--nuit); color: var(--encre); font-size: 16px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
h1, h2, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
img { display: block; object-fit: contain; max-width: 100%; }
.icone { display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
:focus-visible { outline: 2px solid var(--nuit); outline-offset: 4px; }
.profil :focus-visible, .actions :focus-visible, .immersion :focus-visible, .pied :focus-visible { outline-color: #ffffff; }
.corps:focus { outline: none; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 5; padding: 12px 18px; background: var(--carte); color: var(--nuit); border-radius: 12px; font-weight: 500; transform: translateY(-180%); }
.skip-link:focus { transform: none; }

/* ── Fond : dégradé doux, deux halos flous, écusson en filigrane très discret ─ */
.fond { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: linear-gradient(168deg, var(--nuit-haut) 0%, var(--nuit) 46%, var(--nuit-bas) 100%); }
.halo { position: absolute; border-radius: 50%; filter: blur(48px); }
.halo-bleu { left: -10%; top: -14%; width: 62vw; min-width: 420px; height: 52vh; min-height: 360px; background: radial-gradient(closest-side, rgba(46, 95, 191, .30), transparent); }
.halo-jaune { right: -14%; top: 34%; width: 44vw; min-width: 320px; height: 40vh; min-height: 300px; background: radial-gradient(closest-side, rgba(226, 196, 120, .12), transparent); }
.filigrane { position: absolute; right: -170px; top: -150px; width: 560px; height: 700px; opacity: .035;
  background: url("assets/img/filigrane-560.png") center / contain no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 52% 46% at 50% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 52% 46% at 50% 50%, #000 30%, transparent 100%); }
.page { position: relative; z-index: 1; width: min(560px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 40px; }

/* ── Profil : typographie légère, hiérarchie par la taille et l'espace ───────── */
.profil { text-align: center; color: var(--sur-nuit); }
.emblemes { display: flex; align-items: center; justify-content: center; gap: 20px; }
.ecusson img { width: auto; height: 108px; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .35)); }
.federation img { width: auto; height: 64px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .3)); }
.emblemes-separateur { width: 1px; height: 56px; flex: none; background: rgba(255, 255, 255, .18); }
h1 { margin-top: 26px; font-family: var(--police-titre); font-weight: 600; font-size: clamp(26px, 6.2vw, 34px); line-height: 1.15; letter-spacing: .012em; text-wrap: balance; }
.filet { display: block; width: 36px; height: 2px; margin: 14px auto 0; border-radius: 2px; background: var(--jaune); }
.sous-titre { margin-top: 14px; font-size: 15px; line-height: 1.5; font-weight: 400; color: var(--sur-nuit-2); }
.sous-titre span { display: block; text-wrap: balance; }
.sous-titre-nom { color: var(--sur-nuit); }
.sous-titre-lieu { margin-top: 2px; }
.etiquette { display: inline-flex; align-items: flex-start; gap: 9px; max-width: 100%; margin-top: 18px; padding: 8px 14px 8px 12px; border-radius: 14px; text-align: left;
  background: var(--verre-fort); border: 1px solid var(--verre-bord); color: var(--sur-nuit);
  font-family: var(--police-corps); font-weight: 500; font-size: 11.5px; line-height: 1.45; letter-spacing: .07em; text-transform: uppercase;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.etiquette .point { width: 7px; height: 7px; flex: none; margin-top: 4px; border-radius: 50%; background: var(--jaune); box-shadow: 0 0 0 3px rgba(255, 203, 5, .18); }
.etiquette > span:last-child { text-wrap: balance; }

/* ── Boutons : un seul jaune ; les autres en verre ou en contour fin ────────── */
.bouton { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 22px;
  border: 1px solid transparent; border-radius: var(--pilule); cursor: pointer; text-align: center;
  font-family: var(--police-titre); font-weight: 600; font-size: 15px; line-height: 1.2; letter-spacing: .005em;
  transition: transform 260ms var(--sortie), box-shadow 260ms var(--sortie), background-color 260ms ease, border-color 260ms ease, color 260ms ease; }
.bouton-jaune { background: var(--jaune); color: var(--nuit); border-color: var(--jaune); box-shadow: 0 8px 24px -10px rgba(255, 203, 5, .5); }
.bouton-jaune:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(255, 203, 5, .65); }
.bouton-jaune::after { content: ''; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); }
.bouton-verre { background: var(--verre); color: var(--sur-nuit); border-color: var(--verre-bord); font-weight: 500; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.bouton-verre:hover { background: var(--verre-fort); border-color: rgba(255, 255, 255, .34); transform: translateY(-2px); }
.bouton-contour { background: transparent; color: var(--nuit); border-color: var(--bordure-forte); font-weight: 500; }
.bouton-contour:hover { border-color: var(--bordure-lumiere); background: var(--carte); transform: translateY(-2px); box-shadow: var(--ombre-douce); }
.bouton-nuit { background: linear-gradient(160deg, #16295c, var(--nuit)); color: var(--sur-nuit); border-color: rgba(13, 27, 62, .4); }
.bouton-nuit:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(13, 27, 62, .5); }
.bouton:active { transform: translateY(0); }
.bouton:disabled { cursor: wait; opacity: .55; transform: none; box-shadow: none; }
.bouton::before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, .22) 50%, transparent 75%); transform: translateX(-120%); }
.bouton-jaune::before { display: none; }
.actions { display: grid; gap: 12px; margin-top: 30px; }
.actions .bouton { width: 100%; min-height: 54px; }

/* ── Verre dépoli (immersion) ─────────────────────────────────────────────── */
.verre { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--rayon);
  background: var(--verre); border: 1px solid var(--verre-bord); color: var(--sur-nuit);
  box-shadow: inset 0 1px 0 var(--verre-reflet), 0 24px 50px -30px rgba(0, 6, 24, .6);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.verre::before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 40%); }
.colonne { display: grid; gap: 22px; margin-top: 26px; }
.immersion { padding: 28px 24px 24px; }
.bloc-etiquette { font-family: var(--police-titre); font-weight: 500; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.immersion .bloc-etiquette { color: var(--sur-nuit-2); }
.immersion h2 { margin-top: 12px; font-family: var(--police-titre); font-weight: 500; font-size: clamp(22px, 5.4vw, 26px); line-height: 1.2; letter-spacing: 0; text-wrap: balance; }
.bloc-texte { margin-top: 12px; max-width: 46ch; font-size: 15px; line-height: 1.6; }
.immersion .bloc-texte { color: var(--sur-nuit-2); }
.reperes { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; }
.repere { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 400; color: var(--sur-nuit); }
.repere-icone { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--verre-fort); border: 1px solid var(--verre-bord); color: var(--sur-nuit); }
.repere-icone .icone { width: 15px; height: 15px; }
.bouton-bloc { margin-top: 22px; width: 100%; }
.bloc-note { margin-top: 12px; font-size: 12.5px; line-height: 1.5; text-align: center; }
.immersion .bloc-note { color: var(--sur-nuit-2); }

/* ── Corps blanc : ombre diffuse, plus d'air ──────────────────────────────── */
.corps { position: relative; padding: 26px 22px 30px; background: var(--papier); border-radius: var(--rayon); box-shadow: var(--ombre-corps); }
.dps { padding: 24px 22px 22px; border-radius: 20px; background: var(--carte); border: 1px solid var(--bordure); box-shadow: var(--ombre-douce); }
.dps .bloc-etiquette { color: var(--encre-3); opacity: 1; }
.dps h2 { margin-top: 12px; font-family: var(--police-titre); font-weight: 500; font-size: clamp(21px, 5.2vw, 24px); line-height: 1.2; color: var(--nuit); text-wrap: balance; }
.dps .bloc-texte { color: var(--encre-2); }
.dps .bloc-note { color: var(--encre-3); }
.reseaux { margin-top: 32px; }
.reseaux-titre { margin: 0 0 14px 4px; font-family: var(--police-titre); font-weight: 500; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--encre-3); }
.liste-reseaux { display: grid; gap: 10px; }
.reseau { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 16px; border-radius: var(--rayon-petit);
  background: var(--carte); border: 1px solid var(--bordure); box-shadow: var(--ombre-douce); color: var(--encre);
  transition: transform 260ms var(--sortie), box-shadow 260ms var(--sortie), border-color 260ms ease; }
.reseau::before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, .8) 50%, transparent 75%); transform: translateX(-120%); }
.reseau-logo { display: grid; place-items: center; width: 40px; height: 40px; flex: none; }
.reseau-logo img { width: 30px; height: 30px; }
.reseau-texte { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.reseau-nom { font-family: var(--police-titre); font-weight: 500; font-size: 16px; line-height: 1.3; }
.reseau-action { font-size: 13px; line-height: 1.45; color: var(--encre-2); }
.fleche { margin-left: auto; width: 20px; height: 20px; color: var(--encre-3); transition: transform 260ms var(--sortie), color 260ms ease; }
.reseau:active { transform: translateY(-1px); }
.rappel { margin-top: 28px; text-align: center; font-size: 14px; color: var(--encre-2); }
.rappel-lien { display: inline-flex; align-items: center; min-height: 44px; margin-left: 6px; padding: 9px 16px; border-radius: var(--pilule);
  background: var(--carte); border: 1px solid var(--bordure-forte); color: var(--nuit); font-weight: 500;
  transition: border-color 260ms ease, transform 260ms var(--sortie), box-shadow 260ms var(--sortie); }

/* ── Pied ─────────────────────────────────────────────────────────────────── */
.pied { margin-top: 30px; padding: 0 8px; text-align: center; color: var(--sur-nuit-2); }
.signature { font-size: 12.5px; line-height: 1.6; text-wrap: balance; }
.mentions { margin-top: 8px; font-size: 12.5px; }
.mentions summary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 14px; cursor: pointer; list-style: none; color: var(--sur-nuit); font-weight: 500; border-radius: var(--pilule); }
.mentions summary::-webkit-details-marker { display: none; }
.mentions-libelle { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size 260ms ease; }
.mentions summary .icone { transition: transform 260ms ease; }
.mentions[open] summary .icone { transform: rotate(180deg); }
.mentions-contenu { margin-top: 6px; padding: 16px 4px 0; border-top: 1px solid rgba(255, 255, 255, .12); text-align: left; font-size: 12.5px; line-height: 1.7; overflow-wrap: anywhere; }
.mentions-contenu p + p { margin-top: 9px; }
.mentions-contenu strong { color: var(--sur-nuit); font-weight: 500; }
.copyright { margin-top: 14px; font-size: 12px; color: var(--sur-nuit-3); }

/* ── Fenêtre de contact (blanche, trois modes) ────────────────────────────── */
.fenetre { width: min(600px, calc(100% - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; overflow: auto;
  color: var(--encre); border: 0; border-radius: var(--rayon); background: var(--carte); box-shadow: 0 40px 90px -30px rgba(0, 6, 24, .8); }
.fenetre::backdrop { background: rgba(6, 12, 30, .68); backdrop-filter: blur(4px); }
.fenetre-panneau { position: relative; padding: 30px clamp(20px, 6vw, 38px) 24px; }
.fenetre-fermer { position: absolute; top: 16px; right: 14px; display: grid; width: 44px; height: 44px; padding: 0; place-items: center;
  color: var(--encre-2); cursor: pointer; background: var(--papier); border: 1px solid var(--bordure-forte); border-radius: 50%; transition: border-color 200ms ease, color 200ms ease; }
.fenetre-fermer:hover { color: var(--nuit); border-color: var(--bordure-lumiere); }
.fenetre-kicker { padding-right: 52px; font-family: var(--police-titre); font-weight: 500; font-size: 11px; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-3); }
.fenetre h2 { margin: 8px 52px 0 0; font-family: var(--police-titre); font-weight: 500; font-size: clamp(23px, 5.8vw, 28px); line-height: 1.2; letter-spacing: 0; color: var(--nuit); }
.fenetre-intro { max-width: 460px; margin-top: 10px; font-size: 14px; color: var(--encre-2); }
.formulaire { display: grid; gap: 16px; margin-top: 24px; }
.champ { display: grid; gap: 6px; }
.champ-duo { display: grid; gap: 16px; }
.champ label { font-size: 13px; font-weight: 500; color: var(--encre); }
.facultatif { color: var(--encre-3); font-size: 11px; font-weight: 400; }
.champ input, .champ select, .champ textarea { width: 100%; min-height: 48px; padding: 11px 13px; color: var(--encre); caret-color: var(--nuit);
  background: var(--carte); border: 1px solid var(--bordure-forte); border-radius: 12px; outline: none; transition: border-color 200ms ease, box-shadow 200ms ease; }
.champ textarea { min-height: 120px; resize: vertical; }
.champ textarea[rows="3"] { min-height: 84px; }
.selecteur { position: relative; display: block; }
.selecteur select { appearance: none; padding-right: 42px; cursor: pointer; }
.selecteur-chevron { position: absolute; right: 14px; top: 50%; margin-top: -9px; pointer-events: none; color: var(--encre-2); }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--bleu-clair); box-shadow: 0 0 0 3px rgba(46, 95, 191, .22); }
.champ [aria-invalid="true"] { border-color: var(--erreur); box-shadow: 0 0 0 1px var(--erreur); }
.champ-erreur, .formulaire-statut { min-height: 0; color: var(--erreur); font-size: 12px; line-height: 1.45; }
.champ-erreur:empty, .formulaire-statut:empty { display: none; }
.consentement { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; font-size: 12.5px; line-height: 1.5; color: var(--encre-2); cursor: pointer; }
.consentement input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--nuit); cursor: pointer; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bouton-envoi { width: 100%; }
.fenetre-repli { margin-top: 18px; font-size: 12px; text-align: center; color: var(--encre-2); }
.fenetre-repli a { color: var(--nuit); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fenetre-succes { padding: 22px 0 8px; text-align: center; }
.succes-icone { display: grid; width: 64px; height: 64px; margin: 0 auto 18px; place-items: center; color: var(--nuit); background: var(--papier); border: 1px solid var(--bordure-forte); border-radius: 50%; }
.fenetre-succes h2 { margin: 0; }
.fenetre-succes p { max-width: 420px; margin: 12px auto 24px; color: var(--encre-2); }
.fenetre-succes .bouton { min-width: 160px; }

@media (min-width: 600px) {
  .page { padding-top: 56px; }
  .ecusson img { height: 120px; }
  .federation img { height: 72px; }
  .emblemes { gap: 24px; }
  .emblemes-separateur { height: 62px; }
  h1 { margin-top: 28px; }
  .sous-titre { font-size: 16px; }
  .etiquette { font-size: 12px; }
  .actions { grid-template-columns: 1fr 1fr; margin-top: 34px; }
  .actions .bouton:nth-child(3) { grid-column: 1 / -1; }
  .immersion { padding: 32px 30px 28px; }
  .corps { padding: 32px 30px 34px; }
  .dps { padding: 28px 28px 26px; }
  .bouton-bloc { width: auto; min-width: 240px; }
  .bloc-note { text-align: left; }
  .reseau { min-height: 72px; padding: 14px 18px; gap: 16px; }
  .reseau-nom { font-size: 17px; }
  .reseau-action { font-size: 14px; }
  .champ-duo { grid-template-columns: 1fr 1fr; }
}
/* ── Ordinateur : deux colonnes, largeur utile 1 200 px ───────────────────── */
@media (min-width: 1024px) {
  .page { display: grid; grid-template-columns: minmax(360px, 420px) minmax(0, 1fr); grid-template-rows: auto auto 1fr;
    column-gap: 56px; align-items: start; width: min(1200px, calc(100% - 72px)); padding: 60px 0 64px; }
  .profil { grid-column: 1; grid-row: 1; text-align: left; }
  .emblemes { justify-content: flex-start; }
  .filet { margin-left: 0; }
  .actions { grid-column: 1; grid-row: 2; grid-template-columns: 1fr; margin-top: 34px; }
  .actions .bouton:nth-child(3) { grid-column: auto; }
  .colonne { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; gap: 26px; }
  .pied { grid-column: 1; grid-row: 3; margin-top: 30px; padding: 0; text-align: left; }
  .mentions summary { padding-left: 0; }
  .filigrane { right: auto; left: 50%; top: -120px; width: 700px; height: 900px; transform: translateX(-118%); }
  .halo-bleu { left: -6%; top: -18%; width: 46vw; height: 60vh; }
  .halo-jaune { right: -10%; top: 30%; width: 34vw; height: 48vh; }
}
@media (hover: hover) {
  .reseau:hover { transform: translateY(-2px); border-color: var(--bordure-lumiere); box-shadow: var(--ombre-survol); }
  .reseau:hover::before { transform: translateX(120%); transition: transform 700ms ease; }
  .reseau:hover .fleche { transform: translateX(3px); color: var(--nuit); }
  .bouton:hover::before { transform: translateX(120%); transition: transform 650ms ease; }
  .rappel-lien:hover { border-color: var(--bordure-lumiere); transform: translateY(-2px); box-shadow: var(--ombre-douce); }
  .mentions summary:hover .mentions-libelle { background-size: 100% 1px; }
}
.mentions summary:focus-visible .mentions-libelle { background-size: 100% 1px; }

/* ── Mouvement : cascade (fondu, montée, flou qui se dissipe), halos lents ─── */
@media (prefers-reduced-motion: no-preference) {
  .profil { animation: entree 520ms var(--sortie) both; }
  .actions .bouton { animation: entree 480ms var(--sortie) 80ms both; }
  .actions .bouton:nth-child(2) { animation-delay: 150ms; }
  .actions .bouton:nth-child(3) { animation-delay: 220ms; }
  .immersion { animation: entree 520ms var(--sortie) 290ms both; }
  .corps { animation: entree 520ms var(--sortie) 360ms both; }
  .reseau-item { animation: entree 460ms var(--sortie) 440ms both; }
  .reseau-item:nth-child(2) { animation-delay: 510ms; }
  .reseau-item:nth-child(3) { animation-delay: 580ms; }
  .reseau-item:nth-child(4) { animation-delay: 650ms; }
  .reseau-item:nth-child(5) { animation-delay: 720ms; }
  .reseau-item:nth-child(n+6) { animation-delay: 790ms; }
  .pied { animation: entree 460ms var(--sortie) 800ms both; }
  /* Balayage de lumière du bouton principal : la classe est posée par page.js seulement quand il est visible. */
  .bouton-jaune.visible::after { animation: balayage 7s ease-in-out infinite; }
}
/* Animations continues : à partir de 600 px seulement (rien de coûteux sur téléphone). */
@media (prefers-reduced-motion: no-preference) and (min-width: 600px) {
  .halo-bleu { animation: derive-bleu 38s ease-in-out infinite alternate; }
  .halo-jaune { animation: derive-jaune 44s ease-in-out infinite alternate; }
  .ecusson img { animation: flottement 6s ease-in-out infinite alternate; }
}
.actions .bouton:focus-within, .reseau-item:focus-within, .pied:focus-within, .immersion:focus-within, .corps:focus-within { animation: none; opacity: 1; transform: none; filter: none; }
@keyframes entree { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes derive-bleu { from { transform: translate(0, 0) scale(1); } to { transform: translate(6vw, 5vh) scale(1.08); } }
@keyframes derive-jaune { from { transform: translate(0, 0) scale(1); } to { transform: translate(-5vw, -6vh) scale(1.06); } }
@keyframes flottement { from { transform: translateY(0); } to { transform: translateY(-4px); } }
@keyframes balayage { 0%, 78% { transform: translateX(-120%); } 92%, 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .profil, .actions .bouton, .immersion, .corps, .reseau-item, .pied { opacity: 1; transform: none; filter: none; }
  .reseau:hover, .reseau:active, .reseau:hover .fleche, .bouton:hover, .rappel-lien:hover { transform: none; }
  .reseau::before, .bouton::before, .bouton-jaune::after { display: none; }
}
@media print {
  html, body { background: #fff; }
  .fond, .fenetre { display: none; }
  .profil, .immersion, .pied, .actions { color: var(--nuit); background: #fff; }
  .verre { border-color: var(--bordure); }
  .corps { box-shadow: none; }
  .profil, .actions .bouton, .immersion, .corps, .reseau-item, .pied { animation: none; opacity: 1; transform: none; filter: none; }
}

/* Page 404 : une colonne, quel que soit l’écran. */
.page-seule { display: block; width: min(560px, calc(100% - 32px)); }
.page-seule .profil { text-align: center; }
.page-seule .emblemes { justify-content: center; }
.page-seule .filet { margin-inline: auto; }
.page-seule .actions { grid-template-columns: 1fr; }
