/* --------------------------------------------------------------- POLICES
   Sora pour les titres, Atkinson Hyperlegible pour le texte courant —
   celle-ci est dessinée pour la lisibilité, ce qui n'est pas un détail sur
   une page que des enfants et des parents fatigués vont lire.

   Déclarations reprises telles quelles des pages de /missions/, y compris
   leurs `unicode-range` : le navigateur ne télécharge le fichier latin-ext
   que s'il rencontre un caractère qui l'exige. Fichiers servis depuis
   /fonts/ — la politique du domaine déclare `font-src 'self'`, rien ne peut
   venir d'ailleurs.
   ----------------------------------------------------------------------- */
@font-face{font-family:'Sora';font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/sora-800-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Sora';font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/sora-800-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Atkinson Hyperlegible';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/atkinson-hyperlegible-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Atkinson Hyperlegible';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/atkinson-hyperlegible-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Atkinson Hyperlegible';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/atkinson-hyperlegible-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Atkinson Hyperlegible';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/atkinson-hyperlegible-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}

/* ==========================================================================
   Mission SUPERPOUVOIR — page publique d'annonce.

   Feuille séparée et non <style> en ligne : la politique du domaine
   autorise `style-src 'unsafe-inline'`, donc l'inline passerait — mais un
   fichier se met en cache, se relit et se corrige. Les pages de /missions/
   embarquent leur style parce qu'elles sont générées; celle-ci est écrite
   à la main.

   La charte est celle de Mission SUPERPOUVOIR, reprise des pages de
   /missions/ pour que la page publique et l'application se ressemblent :
   charbon, turquoise, corail, crème. Elle n'a rien à voir avec celle de
   SuperHumAIn (marine et bleu) — c'est une autre marque, sur le même
   domaine.
   ========================================================================== */
:root {
  --charbon:    #151b26;
  --surface:    #1e2635;
  --surface-2:  #1f2837;
  --turquoise:  #21d4b4;
  --corail:     #ff7869;
  --corail-bas: #b9473b;   /* le dessous des boutons en volume */
  --creme:      #fff7e8;
  /* L'encre posée SUR le corail n'est pas la couleur de fond de la page :
     #151b26 sur #ff7869 donne 6,69:1, juste sous le seuil AAA. On assombrit
     l'encre de trois crans plutôt que de toucher au corail de la charte —
     personne ne voit la différence, et on passe à 7,33:1. */
  --encre-corail: #0d1118;
  --texte:      #d2d7e0;
  --gris-faible:#a2aab7;   /* 7,37:1 sur le charbon — était #8f98a8, 5,94 */
  --texte-bas:  #c3c9d4;
  --bord:       #3a475e;
  --titres:     "Sora", system-ui, sans-serif;
  --courant:    "Atkinson Hyperlegible", system-ui, Arial, sans-serif;
  color-scheme: dark;
}

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

body {
  margin: 0;
  /* Le même ciel que l'accueil des Missions : une lueur en haut, une
     chaleur corail en bas à droite, le charbon dessous. */
  background:
    radial-gradient(120% 60% at 50% -10%, #2a3446, transparent 60%),
    radial-gradient(90% 50% at 100% 110%, #ff786924, transparent 60%),
    var(--charbon);
  background-attachment: fixed;
  color: var(--creme);
  font: 17px/1.6 var(--courant);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;            /* ceinture : aucun défilement latéral */
}

img { max-width: 100%; }

.page { max-width: 860px; margin: 0 auto; padding: 24px 16px 56px; }

h1, h2, h3 {
  font-family: var(--titres); font-weight: 800;
  letter-spacing: -0.015em; line-height: 1.08;
}
h2 { font-size: clamp(23px, 4.2vw, 31px); margin: 48px 0 10px; color: var(--creme); }
h3 { font-size: clamp(19px, 2.6vw, 22px); margin: 0 0 6px; color: var(--turquoise); }
p  { margin: 0 0 14px; }
.doux { color: var(--texte); }
.menu { color: var(--texte-bas); font-size: 14.5px; }

/* ------------------------------------------------------------- EN-TÊTE */
.scene { position: relative; }
/* Le logo est posé dans le ciel du bandeau, en haut à gauche, exactement
   comme sur l'accueil des Missions. Sous 640 px le ciel est trop étroit
   pour l'accueillir : il repasse au-dessus, en flux normal. */
.scene-logo {
  position: absolute; z-index: 2; left: 2.5%; top: 10%;
  width: 31%; margin: 0; line-height: 0;
}
.scene-logo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 14px #000a); }
.scene > picture img {
  display: block; width: 100%; height: auto; border-radius: 18px;
  filter: drop-shadow(0 0 22px #21d4b438) drop-shadow(0 18px 28px #000a);
}
@media (max-width: 640px) {
  .scene-logo { position: static; width: min(78%, 320px); margin: 0 0 10px; }
}

.badge-bientot {
  display: inline-block; margin: 18px 0 6px;
  padding: 9px 20px; border-radius: 999px;
  background: linear-gradient(#ff8a7d, var(--corail)); color: var(--encre-corail);
  font: 800 clamp(15px, 2.1vw, 18px) var(--titres); letter-spacing: 0.01em;
  box-shadow: 0 5px 0 var(--corail-bas), 0 10px 22px #ff786944;
}
.accroche {
  margin: 10px 0 4px;
  font: 800 clamp(20px, 3.4vw, 28px)/1.25 var(--titres); color: var(--turquoise);
}
h1 { margin: 2px 0 10px; font-size: clamp(26px, 4.6vw, 38px); color: var(--creme); text-shadow: 0 2px 18px #0008; }
.intro { font-size: clamp(17px, 2.1vw, 19px); color: var(--texte); max-width: 60ch; }

/* ------------------------------------------------------------- CARTES */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.carte {
  position: relative; padding: 20px 22px; border-radius: 24px;
  background: linear-gradient(135deg, var(--surface-2), var(--charbon));
  border: 3px solid var(--turquoise);
  box-shadow: 0 0 0 1px #21d4b455, 0 0 22px #21d4b444, 0 16px 36px #0008;
}
/* Les équerres turquoise aux coins : la signature visuelle des Missions. */
.carte::before, .carte::after {
  content: ''; position: absolute; pointer-events: none;
  width: 40%; height: 54%; border: 5px solid var(--turquoise);
  filter: drop-shadow(0 0 7px #21d4b4aa);
}
.carte::before { top: -10px; left: -10px; border-right: 0; border-bottom: 0; border-top-left-radius: 30px; }
.carte::after { bottom: -10px; right: -10px; border-left: 0; border-top: 0; border-bottom-right-radius: 30px; }
.carte p { margin: 0; color: var(--texte-bas); font-size: 15px; line-height: 1.5; }
.carte .pictogramme { display: block; font-size: 30px; line-height: 1; margin-bottom: 10px; }

/* ------------------------------------------------- GALERIE DE CAPTURES */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.capture { margin: 0; }
/* Les captures sont hautes — jusqu'à 1600 × 2302. Affichées en entier,
   elles feraient de la page un rouleau. On les présente donc dans un
   cadre de proportion fixe qui montre LE HAUT de l'écran, là où se trouve
   l'information. */
.capture .cadre {
  display: block; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 16px; border: 2px solid #21d4b455; background: var(--surface);
  box-shadow: 0 10px 28px #0007;
}
.capture .cadre img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.capture figcaption { margin-top: 10px; color: var(--texte); font-size: 14.5px; line-height: 1.55; }
.capture figcaption b { color: var(--creme); font-weight: 700; }

/* La vedette : le tableau du parent, pleine largeur et plus haut. */
.capture--vedette { grid-column: 1 / -1; }
.capture--vedette .cadre { aspect-ratio: 16 / 11; border-color: var(--turquoise); }
@media (max-width: 560px) { .capture--vedette .cadre { aspect-ratio: 4 / 5; } }

.mention { margin-top: 14px; font-size: 13.5px; line-height: 1.55; color: var(--gris-faible); }

/* La mise au point : ludique dessus, sérieux dessous. Barre turquoise à
   gauche plutôt qu'un cadre complet — c'est une affirmation, pas une carte
   de plus, et elle doit se lire comme une voix qui tranche. */
.serieux {
  margin-top: 20px; padding: 18px 22px 18px 20px;
  border-radius: 18px; border-left: 5px solid var(--turquoise);
  background: #1a2230; color: var(--texte); line-height: 1.6;
}
.serieux strong {
  display: block; margin-bottom: 5px; color: var(--creme);
  font: 800 clamp(17px, 2.3vw, 19px)/1.25 var(--titres); letter-spacing: -0.01em;
}

/* ------------------------------------------------------------- LA GOAT */
.goat {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 18px; padding: 18px 20px; border-radius: 22px;
  background: var(--surface); border: 2px solid #21d4b466;
}
.goat img { flex: none; width: 112px; height: 112px; }
.goat p { margin: 0; color: var(--texte); max-width: 46ch; }

/* ------------------------------------------------------------- APPELS */
.appels { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
@media (max-width: 620px) { .appels { grid-template-columns: 1fr; } }
.appel {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px; border-radius: 24px; text-decoration: none;
  background: linear-gradient(135deg, var(--surface-2), var(--charbon));
  border: 3px solid var(--turquoise); color: var(--creme);
  box-shadow: 0 0 0 1px #21d4b444, 0 14px 32px #0008;
  transition: transform .12s, box-shadow .12s;
}
.appel:hover, .appel:focus-visible {
  transform: translateY(-3px); outline: none;
  box-shadow: 0 0 0 1px var(--turquoise), 0 0 30px #21d4b477, 0 18px 38px #0008;
}
.appel strong { font: 800 clamp(18px, 2.4vw, 21px)/1.15 var(--titres); color: var(--creme); }
.appel span { color: var(--texte-bas); font-size: 14.5px; line-height: 1.45; }
.appel .bouton {
  margin-top: 4px; align-self: flex-start;
  padding: 13px 24px; border-radius: 999px;
  background: linear-gradient(#ff8a7d, var(--corail)); color: var(--encre-corail);
  font: 800 18px var(--titres); white-space: nowrap;
  box-shadow: 0 5px 0 var(--corail-bas), 0 10px 20px #ff786944;
}
.appel:active .bouton { transform: translateY(3px); box-shadow: 0 2px 0 var(--corail-bas); }

.vie-privee {
  margin-top: 18px; padding: 16px 20px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--bord);
  color: var(--texte); font-size: 14.5px;
}
.vie-privee strong { color: var(--creme); }

/* ------------------------------------------------------------- PIED */
.pied {
  max-width: 860px; margin: 10px auto 30px; padding: 22px 16px 0;
  border-top: 1px solid var(--bord); text-align: center;
}
.pied img { height: 56px; width: auto; display: inline-block; }
.pied .propulse { margin: 8px 0 0; font-size: 12.5px; color: var(--gris-faible); }
/* `min-height: 44px` : critère AAA 2.5.5 sur la taille des cibles. Le lien
   ne faisait que 17 px de haut — assez pour être lu, pas pour être touché. */
.pied .propulse a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px;
  color: var(--texte); text-decoration: none; font: 800 13px var(--titres); letter-spacing: .01em;
}
.pied .propulse a span { color: var(--turquoise); }
.pied .propulse a:hover, .pied .propulse a:focus-visible { color: var(--creme); }

@media (prefers-reduced-motion: reduce) {
  .appel { transition: none; }
  .appel:hover, .appel:focus-visible { transform: none; }
  .appel:active .bouton { transform: none; }
}

/* ------------------------------------------------------------- FOCUS
   Un contour franc, visible sur le charbon comme sur le corail, pour toute
   cible atteignable au clavier. Le changement de bordure seul ne suffisait
   pas : sur la carte d'appel, bordure turquoise au repos ET au focus, la
   différence se jouait sur une lueur — trop discret pour quelqu'un qui
   navigue à la tabulation. */
.appel:focus-visible,
.pied .propulse a:focus-visible,
.capture a:focus-visible {
  outline: 3px solid var(--creme);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ------------------------------------------- LONGUEUR DE LIGNE (AAA 1.4.8)
   Le critère demande au plus 80 caractères par ligne. Sans borne, les
   paragraphes s'étalaient sur les 828 px du conteneur : 103 caractères par
   ligne, et 133 pour la légende pleine largeur. L'œil perd le début de la
   ligne suivante.

   Borne en `em` et non en `ch` : l'unité `ch` vaut la largeur du zéro, qui
   est bien plus large que la moyenne des lettres. 68ch laissait passer 103
   caractères. Mesurée au navigateur sur du texte français en Atkinson
   Hyperlegible, l'avance moyenne vaut 0,43 em — donc 80 caractères tiennent
   dans 34 em, quelle que soit la taille de police. */
.doux, .intro, .serieux, .mention, .vie-privee,
.capture--vedette figcaption { max-width: 34em; }
