/* Tout sur la commotion : feuille de style commune (version 2, novembre 2026) */
@font-face { font-family: "Inter"; src: url("polices/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("polices/inter-tight-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --nuit: #1C2A3A; --nuit-2: #2A3F54; --encre: #1F2937; --gris: #4B5563; --gris-note: #5B6472;
  --corail: #FF8066; --corail-fonce: #B4432A; --corail-clair: #FFF1ED;
  --bleu: #76AEDD; --bleu-fonce: #1D5F99; --bleu-clair: #EEF5FB;
  --vert: #047857; --vert-clair: #ECF8F3;
  --rouge: #B91C1C; --rouge-clair: #FEF2F2; --rouge-texte: #7F1D1D;
  --fond: #F6F7F9; --blanc: #FFFFFF; --trait: #E3E8EE;
  --ombre: 0 8px 24px rgba(28, 42, 58, .08), 0 1px 2px rgba(28, 42, 58, .06);
  --rayon: 16px; --page: 1120px; --lecture: 760px;
  /* les 6 tailles de texte du site */
  --t-note: .84rem; --t-texte: 1rem; --t-fort: 1.18rem; --t-h3: 1.4rem; --t-h2: clamp(1.65rem, 3.6vw, 2.15rem); --t-h1: clamp(2.05rem, 5.4vw, 3.1rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: var(--t-texte); line-height: 1.6; color: var(--encre); background: var(--blanc); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: "Inter Tight", "Inter", system-ui, sans-serif; color: var(--nuit); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: var(--t-h1); font-weight: 800; }
h2 { font-size: var(--t-h2); font-weight: 800; }
h3 { font-size: var(--t-h3); font-weight: 700; }
h4 { font-size: var(--t-fort); font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--corail-fonce); text-underline-offset: .18em; }
a:hover { color: var(--nuit); }
img, video { max-width: 100%; height: auto; display: block; }
strong { font-weight: 700; color: var(--nuit); }
:focus-visible { outline: 3px solid var(--bleu-fonce); outline-offset: 3px; border-radius: 6px; }
.picto { width: 1.4em; height: 1.4em; flex: none; }
.conteneur { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 24px; }
.lecture { max-width: var(--lecture); }
.evitement { position: absolute; left: -9999px; top: 0; background: var(--nuit); color: #fff; padding: 12px 18px; z-index: 300; }
.evitement:focus { left: 12px; top: 12px; }

/* ---------- en-tête ---------- */
.tete { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--trait); }
.tete .conteneur { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--nuit); font-family: "Inter Tight", sans-serif; font-weight: 800; font-size: var(--t-fort); white-space: nowrap; }
.marque img { width: 34px; height: 35px; }
.menu { display: flex; gap: 6px; margin-left: auto; list-style: none; padding: 0; }
.menu a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--nuit); text-decoration: none; font-weight: 600; white-space: nowrap; }
.menu a:hover { background: var(--fond); }
.menu a[aria-current="page"] { background: var(--nuit); color: #fff; }
.initiative { font-size: var(--t-note); color: var(--gris-note); text-decoration: none; white-space: nowrap; padding-left: 16px; border-left: 1px solid var(--trait); }
/* lien vers l'autre langue : le mot entier sur ordinateur, deux lettres sur téléphone, dans le menu sur les très petits écrans */
.langue { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--trait); border-radius: 999px; font-size: .9rem; font-weight: 700; color: var(--nuit); text-decoration: none; white-space: nowrap; }
.langue:hover { background: var(--fond); color: var(--nuit); }
.langue .abrege { display: none; }
@media (max-width: 1139px) { .langue { margin-left: auto; } .langue ~ .bouton-menu { margin-left: 0; } }
@media (min-width: 1140px) { .tete .conteneur { gap: 16px; } .menu a { padding: 10px 12px; } .langue { padding: 6px 12px; } }
@media (max-width: 560px) { .langue { min-width: 44px; padding: 6px 10px; } .langue .entier { display: none; } .langue .abrege { display: inline; } }
@media (max-width: 359px) { .langue { display: none; } }
.bouton-menu { display: none; margin-left: auto; align-items: center; gap: 8px; background: var(--blanc); border: 1px solid var(--trait); border-radius: 999px; padding: 9px 16px; font: inherit; font-weight: 600; color: var(--nuit); cursor: pointer; }
.panneau { display: none; }
@media (max-width: 1139px) {
  .menu, .initiative { display: none; }
  .bouton-menu { display: inline-flex; }
  .panneau.ouvert { display: flex; flex-direction: column; gap: 6px; position: fixed; inset: 64px 0 0 0; z-index: 99; background: var(--blanc); padding: 20px 24px 32px; overflow-y: auto; }
  .panneau a { display: flex; align-items: center; justify-content: space-between; padding: 18px 4px; border-bottom: 1px solid var(--trait); color: var(--nuit); text-decoration: none; font-family: "Inter Tight", sans-serif; font-weight: 700; font-size: var(--t-h3); }
  .panneau a[aria-current="page"] { color: var(--corail-fonce); }
  .panneau .petit { font-family: "Inter", sans-serif; font-size: var(--t-note); font-weight: 500; color: var(--gris-note); border: 0; padding-top: 22px; }
}

@media (max-width: 560px) {
  .tete .conteneur { gap: 10px; padding: 0 16px; }
  .marque { font-size: var(--t-texte); gap: 8px; }
  .bouton-menu { padding: 10px 12px; }
  .bouton-menu span { display: none; }
}

/* ---------- rappel d'urgence, en haut de chaque page ---------- */
.rappel { display: block; background: var(--rouge-clair); border-bottom: 1px solid #FECACA; color: var(--rouge-texte); text-align: center; padding: 11px 20px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.rappel .voir { font-weight: 700; text-decoration: underline; white-space: nowrap; }
.rappel:hover { background: #FEE2E2; color: var(--rouge-texte); }

/* ---------- ouverture de page ---------- */
.ouverture { background: radial-gradient(circle at 88% 18%, rgba(255, 128, 102, .30) 0, rgba(255, 128, 102, 0) 26rem), radial-gradient(circle at 6% 110%, rgba(118, 174, 221, .28) 0, rgba(118, 174, 221, 0) 24rem), linear-gradient(135deg, var(--nuit) 0%, var(--nuit-2) 100%); color: #fff; padding: 52px 0 56px; }
.ouverture h1 { color: #fff; max-width: 17em; }
.ouverture h1::after { content: ""; display: block; width: 3.4rem; height: 5px; border-radius: 3px; background: var(--corail); margin-top: 18px; }
.ouverture .chapeau { font-size: var(--t-fort); color: #DCE5EF; max-width: 34em; margin: 18px 0 0; }
.ouverture .actions { margin-top: 28px; }
@media (max-width: 620px) { .ouverture { padding: 34px 0 38px; } .bande { padding: 44px 0; } }
.surtitre { display: inline-block; font-size: var(--t-note); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--corail-fonce); margin-bottom: 10px; }
.ouverture .surtitre { color: var(--corail); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- boutons ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent; background: var(--corail); color: var(--nuit); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; }
.bouton:hover { background: #FF9580; color: var(--nuit); }
.bouton.sobre { background: var(--blanc); border-color: var(--nuit); color: var(--nuit); }
.bouton.sobre:hover { background: var(--fond); }
.bouton.clair { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.bouton.clair:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.bouton.rouge { background: var(--rouge); color: #fff; }
.bouton.rouge:hover { background: #991B1B; color: #fff; }

/* ---------- bandes et titres ---------- */
.bande { padding: 60px 0; }
.bande.teinte { background: var(--fond); }
.bande.bleue { background: var(--bleu-clair); }
.bande.corail { background: var(--corail-clair); }
.bande h2 { margin-bottom: 14px; }
.bande h2 + .intro, .intro { font-size: var(--t-fort); color: var(--gris); max-width: 40em; margin-bottom: 28px; }
.bande h3 { margin: 32px 0 12px; }
.note { font-size: var(--t-note); color: var(--gris-note); }
.source { font-size: var(--t-note); color: var(--gris-note); margin-top: 10px; }
.source a { color: var(--gris); }

/* ---------- une seule sorte de carte ---------- */
.carte { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 26px; }
.carte > :last-child { margin-bottom: 0; }
.carte h3 { margin: 0 0 10px; }
.carte h4 { margin: 0 0 8px; }
.grille { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grille.deux { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
a.carte { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--encre); transition: transform .15s ease, box-shadow .15s ease; }
a.carte:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(28, 42, 58, .14); color: var(--encre); }
a.carte .suite { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--corail-fonce); }
.rond { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--corail-clair); color: var(--corail-fonce); }
.rond.bleu { background: var(--bleu-clair); color: var(--bleu-fonce); }
.rond.vert { background: var(--vert-clair); color: var(--vert); }
.rond.nuit { background: var(--nuit); color: #fff; }
.rond .picto { width: 26px; height: 26px; }
.image { border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.image img { width: 100%; height: 100%; object-fit: cover; }
.cote-a-cote { display: grid; gap: 32px; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
@media (max-width: 860px) { .cote-a-cote { grid-template-columns: 1fr; } }

/* ---------- listes ---------- */
.liste, .non, .etapes, .cases { list-style: none; padding: 0; margin: 0 0 1em; }
.liste li, .non li { position: relative; padding-left: 1.5em; margin-bottom: .5em; }
.liste li::before { content: ""; position: absolute; left: .25em; top: .62em; width: .46em; height: .46em; border-radius: 50%; background: var(--corail); }
.non li::before { content: ""; position: absolute; left: .1em; top: .78em; width: .8em; height: 3px; border-radius: 2px; background: var(--rouge); }
.colonnes { columns: 2; column-gap: 32px; }
.colonnes li { break-inside: avoid; }
@media (max-width: 620px) { .colonnes { columns: 1; } }
.etapes { counter-reset: etape; }
.etapes > li { counter-increment: etape; position: relative; padding: 0 0 22px 60px; min-height: 44px; }
.etapes > li::before { content: counter(etape); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--nuit); color: #fff; font-family: "Inter Tight", sans-serif; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.etapes > li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 46px; bottom: 4px; width: 2px; background: var(--trait); }
.etapes h4 { padding-top: 8px; margin-bottom: 4px; }
.etapes p { margin: 0; color: var(--gris); }
.cases li { margin-bottom: .55em; }
.cases label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.cases input { flex: none; width: 22px; height: 22px; margin: .16em 0 0; accent-color: var(--nuit); }
.cases input:checked + span { color: var(--gris-note); text-decoration: line-through; }

/* ---------- signes d'urgence ---------- */
.urgence { background: var(--rouge); color: #fff; border-radius: var(--rayon); padding: 28px; }
.urgence h2, .urgence h3 { color: #fff; margin: 0 0 6px; }
.urgence .phrase { font-size: var(--t-fort); font-weight: 700; margin: 0 0 18px; }
.urgence ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.urgence li { background: rgba(255, 255, 255, .13); border-radius: 10px; padding: 11px 14px 11px 38px; position: relative; font-weight: 600; line-height: 1.35; }
.urgence li::before { content: ""; position: absolute; left: 15px; top: 1.12em; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.urgence .source { color: #FDE2E2; margin: 0; }
.urgence .source a { color: #fff; }
@media (max-width: 620px) { .urgence { padding: 22px 18px; } .urgence ul { grid-template-columns: 1fr; } }

/* ---------- encadrés (sans filet sur le côté) ---------- */
.encadre { background: var(--bleu-clair); border-radius: var(--rayon); padding: 22px 24px; margin: 0 0 1.2em; }
.encadre.chaud { background: var(--corail-clair); }
.encadre.rouge { background: var(--rouge-clair); color: var(--rouge-texte); }
.encadre.rouge strong, .encadre.rouge h4 { color: var(--rouge-texte); }
.encadre > :last-child { margin-bottom: 0; }
.encadre h4 { margin-bottom: 8px; }

/* ---------- blocs dépliants (de vrais boutons, utilisables au clavier) ---------- */
details.depliant { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); margin-bottom: 12px; }
details.depliant summary { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 22px; cursor: pointer; list-style: none; font-family: "Inter Tight", sans-serif; font-weight: 700; font-size: var(--t-fort); color: var(--nuit); }
details.depliant summary::-webkit-details-marker { display: none; }
details.depliant summary .picto { transition: transform .15s ease; color: var(--corail-fonce); }
details.depliant[open] summary .picto { transform: rotate(180deg); }
details.depliant .contenu { padding: 0 22px 20px; }
details.depliant .contenu > :last-child { margin-bottom: 0; }

/* ---------- sommaire en étapes, vidéo, formulaire ---------- */
.fil { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; list-style: none; padding: 0; margin: 28px 0 0; counter-reset: fil; }
.fil a { counter-increment: fil; display: flex; align-items: center; gap: 10px; height: 100%; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: #fff; text-decoration: none; font-weight: 600; line-height: 1.25; }
.fil a::before { content: counter(fil); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--corail); color: var(--nuit); font-family: "Inter Tight", sans-serif; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.fil a:hover { background: rgba(255, 255, 255, .2); color: #fff; }
@media (max-width: 760px) { .fil { grid-template-columns: 1fr 1fr; } }
.video { border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); background: var(--nuit); }
.video video { width: 100%; aspect-ratio: 16 / 9; }
.champ { margin-bottom: 16px; }
.champ label { display: block; font-weight: 600; color: var(--nuit); margin-bottom: 6px; }
.champ input, .champ select, .champ textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #9AA5B4; border-radius: 10px; font: inherit; color: var(--encre); background: var(--blanc); }
.champ .aide { font-size: var(--t-note); color: var(--gris-note); margin-top: 4px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .duo { grid-template-columns: 1fr; } }
.message { border-radius: 12px; padding: 14px 16px; margin-top: 14px; background: var(--vert-clair); color: #065F46; font-weight: 600; }
.message.erreur { background: var(--rouge-clair); color: var(--rouge-texte); }
[hidden] { display: none !important; }

/* ---------- R, S, R : un seul code couleur ---------- */
.rsr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
.rsr li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.lettre { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: "Inter Tight", sans-serif; font-weight: 800; font-size: var(--t-fort); color: #fff; background: var(--corail-fonce); }
.lettre.s { background: var(--bleu-fonce); }
.lettre.r2 { background: var(--vert); }
.rsr p { margin: 0; }
@media (max-width: 860px) { .rsr { grid-template-columns: 1fr; } }

/* ---------- pied de page ---------- */
.pied { background: var(--nuit); color: #C9D6E4; border-top: 5px solid var(--corail); padding: 48px 0 32px; font-size: var(--t-note); }
.pied a { color: #fff; }
.pied h2 { font-size: var(--t-texte); color: #fff; margin-bottom: 10px; letter-spacing: 0; }
.pied .grille { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 6px; }
.pied .bas { border-top: 1px solid rgba(255, 255, 255, .16); margin-top: 32px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.pied p { margin: 0 0 8px; }

/* ---------- impression : seulement le fil à garder sous la main ---------- */
.seulement-papier { display: none; }
@media print {
  @page { margin: 14mm; }
  html { font-size: 11pt; }
  .tete, .rappel, .panneau, .pied, .pas-papier, .actions, .fil, .video { display: none !important; }
  .seulement-papier { display: block; }
  .ouverture { background: none; color: #000; padding: 0 0 6mm; }
  .ouverture h1, .ouverture .chapeau, .ouverture .surtitre { color: #000; }
  .bande { padding: 0 0 5mm; background: none !important; }
  .carte, .encadre { box-shadow: none; border: 1px solid #999; break-inside: avoid; padding: 4mm; }
  .urgence { background: none; color: #000; border: 2px solid #000; break-inside: avoid; padding: 4mm; }
  .urgence h2, .urgence h3, .urgence .source, .urgence .source a { color: #000; }
  .urgence li { background: none; padding: 1mm 0 1mm 6mm; }
  .urgence li::before { background: #000; left: 1mm; top: .9em; width: 2mm; height: 2mm; }
  details.depliant { border: 0; }
  details.depliant:not([open]) { display: none; }
  a { color: #000; text-decoration: none; }
  h2, h3 { break-after: avoid; }
  .bande h2 { margin-bottom: 3mm; font-size: 15pt; }
  .ouverture h1 { font-size: 20pt; }
  .ouverture h1::after { display: none; }
  .ouverture .chapeau { margin-top: 2mm; font-size: 11pt; }
  .grille, .grille.deux { gap: 4mm; grid-template-columns: 1fr 1fr; }
  .carte.haut, .encadre.haut, .haut { margin-top: 4mm; }
  .cases li, .liste li, .non li { margin-bottom: 1.2mm; }
  .cases input { width: 4.2mm; height: 4.2mm; }
  .etapes > li { padding-bottom: 3mm; }
  .image { display: none; }
  /* les petits repères colorés s'impriment même sans les « arrière-plans » du navigateur */
  .liste li::before, .non li::before, .etapes > li::before, .lettre { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- petits réglages ---------- */
.haut { margin-top: 26px; }
.conteneur.lecture { max-width: var(--page); }
.conteneur.lecture > * { max-width: var(--lecture); }
.grille.quatre { grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); }
h2.haut { margin-top: 40px; }
figure { margin: 0; }
figure img { border-radius: 10px; }
figcaption { margin-top: 12px; }
.carte .rond + h3 { margin-top: 14px; }
.carte .bouton { margin-top: 6px; }
.bande .actions { margin-top: 22px; }
.ouverture .rsr { margin-top: 34px; max-width: 62rem; }
.ouverture .rsr p { color: #DCE5EF; }
.ouverture .rsr strong { color: #fff; }
.ouverture .lettre { text-decoration: none; background: var(--corail); color: var(--nuit); }
.ouverture .lettre.s { background: var(--bleu); }
.ouverture .lettre.r2 { background: #7FD8B5; }
.ouverture .lettre:hover { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- ouverture avec photo : sur téléphone la photo est derrière le texte, sur ordinateur elle est à droite ---------- */
.ouverture.photo { position: relative; isolation: isolate; overflow: hidden; background: var(--nuit); }
.ouverture.photo::before { content: ""; position: absolute; z-index: -2; inset: 0; background: var(--photo-tel) var(--pos-tel, center top) / cover no-repeat; }
.ouverture.photo::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(28, 42, 58, .74) 0, rgba(28, 42, 58, .82) 100%); }
.ouverture.photo h1, .ouverture.photo .chapeau, .ouverture.photo .surtitre { text-shadow: 0 1px 14px rgba(18, 28, 40, .6); }
.ouverture.photo .fil a { background: rgba(23, 35, 48, .74); }
.ouverture.photo .fil a:hover { background: rgba(23, 35, 48, .92); }
.ouverture.avec-socle { padding-bottom: 0; }
.ouverture .socle { margin-top: 38px; padding: 18px 0 20px; background: #172330; border-top: 1px solid rgba(255, 255, 255, .1); }
.ouverture .socle .rsr { margin-top: 0; max-width: none; }
.rsr.mots { display: flex; flex-wrap: wrap; gap: 12px 44px; }
.rsr.mots li { display: block; }
.rsr.mots a { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-family: "Inter Tight", sans-serif; font-weight: 700; font-size: var(--t-fort); }
.rsr.mots a:hover .lettre, .rsr.mots a:focus-visible .lettre { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 620px) {
  .rsr.mots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .rsr.mots li { text-align: center; }
  .rsr.mots a { flex-direction: column; gap: 8px; font-size: .9rem; }
}
@media (min-width: 621px) { .ouverture.photo::before { background-image: var(--photo); background-position: var(--pos, 50% 50%); } }
@media screen and (max-width: 1199px) { .ouverture.photo .surtitre { color: #FFCDBF; } }
/* même hauteur pour le haut de toutes les pages, à chaque largeur d'écran ; sur téléphone, c'est celle de l'accueil */
.ouverture.photo { display: flex; flex-direction: column; min-height: var(--h-entete); --h-entete: 336px; --h-socle: 115px; }
.ouverture.photo.avec-socle { min-height: calc(var(--h-entete) + var(--h-socle)); }
.ouverture.photo > .conteneur { margin-block: auto; }
.ouverture .socle { display: flex; align-items: center; height: var(--h-socle, 115px); padding: 0; }
@media (max-width: 399px) { .ouverture.photo { --h-entete: 370px; } }
@media (max-width: 339px) { .ouverture.photo { --h-entete: 398px; } }
@media (min-width: 621px) { .ouverture.photo { --h-entete: 420px; --h-socle: 84px; } }
@media (min-width: 1200px) {
  .ouverture.photo { --h-entete: clamp(434px, 27vw, 500px); padding: 60px 0 64px; }
  .ouverture.photo.avec-socle { padding-bottom: 0; }
  .ouverture.photo > .socle { margin-top: 44px; }
  .ouverture.photo::before { left: var(--debut, 34%); }
  .ouverture.photo::after { background: linear-gradient(90deg, var(--nuit) 0, var(--nuit) var(--debut, 34%), rgba(28, 42, 58, .86) calc(var(--debut, 34%) + 11%), rgba(28, 42, 58, .46) calc(var(--debut, 34%) + 30%), rgba(28, 42, 58, .12) 100%), linear-gradient(0deg, rgba(28, 42, 58, .5) 0, rgba(28, 42, 58, 0) 36%); }
  .ouverture.photo h1 { max-width: 13em; }
  .ouverture.photo .chapeau { max-width: 28em; }
  .ouverture.photo .actions, .ouverture.photo .fil { max-width: 41rem; }
}
.o-accueil { --photo: url(entete-accueil.webp); --photo-tel: url(entete-accueil-tel.webp); --pos: 50% 62%; }
.o-que-faire { --photo: url(entete-que-faire.webp); --photo-tel: url(entete-que-faire-tel.webp); --pos: 50% 50%; --pos-tel: 50% 50%; }
.o-comprendre { --photo: url(entete-comprendre.webp); --photo-tel: url(entete-comprendre-tel.webp); --pos: 50% 42%; --debut: 46%; --pos-tel: 50% 45%; }
.o-reprendre { --photo: url(entete-reprendre.webp); --photo-tel: url(entete-reprendre-tel.webp); --pos: 50% 72%; --debut: 50%; --pos-tel: 32% 60%; }
.o-clubs { --photo: url(entete-clubs.webp); --photo-tel: url(entete-clubs-tel.webp); --pos: 50% 38%; --pos-tel: 50% 30%; }

/* ---------- téléphone : un titre, une phrase au plus, une action ---------- */
/* Jauge « juste milieu » (page Reprendre) */
.jauge { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.jauge li { border-radius: 12px; padding: 12px 14px; color: var(--encre); line-height: 1.45; }
.jauge li strong { display: block; margin-bottom: 2px; }
.jauge .trop { background: var(--corail-clair); }
.jauge .trop strong { color: var(--corail-fonce); }
.jauge .juste { background: var(--vert-clair); border: 2px solid var(--vert); padding: 14px; }
.jauge .juste strong { color: var(--vert); }
.jauge .peu { background: var(--bleu-clair); }
.jauge .peu strong { color: var(--bleu-fonce); }
@media print { .jauge li { border: 1px solid #999; } #rythme, #pace { break-inside: avoid; } #rythme .grille, #pace .grille { grid-template-columns: 1fr 1fr 1fr; gap: 3mm; } .jauge li, .jauge .juste { padding: 2mm 2.5mm; } }
.fil .court { display: none; }
@media screen and (max-width: 620px) {
  .rappel { font-size: .95rem; padding: 10px 12px; }
  .rappel .long, .fil .long, .ouverture .pas-tel { display: none; }
  .fil .court { display: inline; }
  .ouverture h1 { font-size: 1.8rem; }
  .o-accueil .surtitre, .o-que-faire .chapeau, .o-comprendre .chapeau, .o-clubs .chapeau { display: none; }
  .o-clubs .actions .bouton.clair, .o-reprendre .actions [data-imprimer], .o-reprendre .actions .picto { display: none; }
  .o-reprendre .actions { flex-wrap: nowrap; gap: 8px; }
  .o-reprendre .actions .bouton { flex: 1 1 0; min-height: 46px; padding: 10px 8px; }
  .ouverture .fil { grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 22px; }
  .ouverture .fil a { flex-direction: column; justify-content: flex-start; gap: 6px; padding: 10px 2px; text-align: center; font-size: .9rem; }
}

/* ---------- cartes avec photo, vignettes, aperçus des fiches ---------- */
.carte.illustree { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.carte.illustree > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.carte.illustree > .texte { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 26px 26px; }
.carte.illustree > .texte > :last-child { margin-bottom: 0; }
.apercu { aspect-ratio: 4 / 3; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; padding: 20px 20px 0; background: var(--fond); border-bottom: 1px solid var(--trait); }
.apercu img { width: 74%; border-radius: 3px 3px 0 0; box-shadow: 0 4px 16px rgba(28, 42, 58, .2); }
.apercu.sobre { align-items: center; padding: 0; color: var(--nuit); }
.apercu.sobre .picto { width: 56px; height: 56px; }
@media (max-width: 520px) { .apercu.sobre { aspect-ratio: auto; height: 104px; } }
.vignette { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 14px; }
.cote-a-cote h3:first-child { margin-top: 0; }
.cote-a-cote.haut { margin-top: 36px; }
.cote-a-cote.egal { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 860px) { .cote-a-cote.egal { grid-template-columns: 1fr; } }
.pile { display: grid; gap: 16px; align-content: start; }
@media print {
  .ouverture.photo { display: block; min-height: 0; padding: 0 0 6mm; background: none; }
  .ouverture.photo::before, .ouverture.photo::after, .vignette, .apercu, .carte.illustree > img { display: none; }
  .ouverture.photo h1, .ouverture.photo .chapeau, .ouverture.photo .surtitre { text-shadow: none; }
  .ouverture .socle { display: block; height: auto; background: none; border: 0; margin-top: 4mm; padding: 0; }
  .ouverture .rsr p, .ouverture .rsr strong { color: #000; }
}
