/* Généré par scripts/fonts.mjs — ne pas modifier à la main. */

@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-100-900-italic-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-100-900-italic-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: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-100-900-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-100-900-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: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-400-italic-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-400-italic-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: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-500-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-500-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-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;
}

/* ==========================================================================
   Génération Léon XIV — système graphique
   Trois couleurs franches (noir, jaune du drapeau du Vatican, bleu outremer
   du blason), un papier chaud, une seule famille de titrage (Archivo, serré
   à 62 % de chasse), un italique serif pour la voix humaine, une mono pour
   les repères. Angles vifs, filets épais : pas de dégradés, pas d'ombres floues.
   ========================================================================== */

:root {
  --noir: #0d0d0e;
  --noir-2: #19191b;
  --papier: #f2eee4;
  --papier-2: #e8e2d4;
  --blanc: #ffffff;
  --jaune: #ffd500;
  --jaune-2: #ffe55c;
  --bleu: #2a35e0;
  --bleu-2: #1a2299;
  --rouge: #f0401f;
  --gris: #6c675e;

  --fond: var(--papier);
  --encre: var(--noir);
  --accent: var(--bleu);
  --discret: var(--gris);
  --filet: var(--noir);

  --titrage: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --texte: 'Archivo', system-ui, -apple-system, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --marge: clamp(1rem, 4vw, 3.5rem);
  --large: 1440px;
  --tete: 4.25rem;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* — Surfaces : chaque bloc redéfinit encre, fond et accent sur place — */
.s-noir { --fond: var(--noir); --encre: var(--papier); --accent: var(--jaune); --discret: #a8a296; --filet: var(--papier); }
.s-jaune { --fond: var(--jaune); --encre: var(--noir); --accent: var(--bleu); --discret: #4d4500; --filet: var(--noir); }
.s-bleu { --fond: var(--bleu); --encre: var(--blanc); --accent: var(--jaune); --discret: #c9cdff; --filet: var(--blanc); }
.s-papier { --fond: var(--papier); --encre: var(--noir); --accent: var(--bleu); --discret: var(--gris); --filet: var(--noir); }
.s-blanc { --fond: var(--blanc); --encre: var(--noir); --accent: var(--bleu); --discret: var(--gris); --filet: var(--noir); }
.s-rouge { --fond: var(--rouge); --encre: var(--noir); --accent: var(--noir); --discret: #3d0d03; --filet: var(--noir); }
[class^='s-'], [class*=' s-'] { background: var(--fond); color: var(--encre); }

/* — Base — */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--tete) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--papier);
  color: var(--noir);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: 'wdth' 100;
  font-feature-settings: 'kern', 'liga';
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--jaune); color: var(--noir); }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; }
.s-bleu :focus-visible, .s-noir :focus-visible { outline-color: var(--jaune); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 2px solid var(--filet); margin: 0; }

.evitement { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--jaune); padding: .75rem 1rem; font-weight: 700; }
.evitement:focus { left: 1rem; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cadre { width: 100%; max-width: var(--large); margin-inline: auto; padding-inline: var(--marge); }
.etroit { max-width: 52rem; }
.bloc { padding-block: clamp(4rem, 9vw, 8.5rem); }
.bloc-s { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.filet-haut { border-top: 2px solid var(--filet); }
.filet-bas { border-bottom: 2px solid var(--filet); }

/* ==========================================================================
   Typographie
   ========================================================================== */
.titrage, .mega, .t1, .t2, .t3 {
  font-family: var(--titrage);
  font-variation-settings: 'wdth' 62;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.005em;
  line-height: .86;
  overflow-wrap: break-word;
  hyphens: manual;
}
.mega { font-size: clamp(4rem, 16.5vw, 16rem); line-height: .8; }
.t1 { font-size: clamp(3.1rem, 9.5vw, 8.75rem); }
.t2 { font-size: clamp(2.4rem, 6vw, 5.25rem); line-height: .9; }
.t3 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: .95; }
.t1 em, .t2 em, .t3 em, .mega em, .titrage em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -.02em;
  font-size: 1.04em;
  line-height: 0;
}
.t4 { font-family: var(--titrage); font-weight: 800; font-variation-settings: 'wdth' 85; font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.15; letter-spacing: -.01em; }
.chapo { font-size: clamp(1.2rem, 1.9vw, 1.6rem); line-height: 1.4; font-variation-settings: 'wdth' 92; max-width: 40ch; }
.chapo-l { max-width: 52ch; }
.serif { font-family: var(--serif); font-weight: 400; }
.it { font-family: var(--serif); font-style: italic; }
.etiq {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.4;
}
.etiq-b { font-family: var(--mono); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.discret { color: var(--discret); }
.accent { color: var(--accent); }
.surligne { background: linear-gradient(transparent 58%, var(--jaune) 58%, var(--jaune) 92%, transparent 92%); padding-inline: .08em; }
.s-jaune .surligne { background: linear-gradient(transparent 58%, var(--blanc) 58%, var(--blanc) 92%, transparent 92%); }
.nombre { font-family: var(--titrage); font-variation-settings: 'wdth' 62; font-weight: 900; font-size: clamp(3.5rem, 8vw, 7rem); line-height: .85; font-feature-settings: 'tnum'; }

/* Texte long : colonne de lecture, intertitres francs, encadrés. */
.texte { max-width: 42rem; font-size: 1.125rem; line-height: 1.68; }
.texte > :where(*) { margin: 0; }
.texte > * + * { margin-top: 1.1em; }
.texte h2 { font-family: var(--titrage); font-variation-settings: 'wdth' 62; font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 4vw, 3rem); line-height: .92; margin-top: 2.2em; }
.texte h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; }
.texte h3 { font-family: var(--titrage); font-weight: 800; font-variation-settings: 'wdth' 85; font-size: 1.4rem; line-height: 1.2; margin-top: 1.8em; }
.texte h2 + *, .texte h3 + * { margin-top: .6em; }
.texte ul, .texte ol { padding-left: 1.3em; }
.texte li + li { margin-top: .4em; }
.texte li::marker { color: var(--accent); font-weight: 700; }
.texte blockquote { margin: 1.8em 0; padding: 0 0 0 1.25rem; border-left: 6px solid var(--jaune); font-family: var(--serif); font-size: 1.55rem; line-height: 1.3; }
.texte blockquote cite { display: block; margin-top: .6rem; font-family: var(--mono); font-style: normal; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--discret); }
.texte strong { font-weight: 700; }
.lettrine::first-letter { float: left; font-family: var(--titrage); font-variation-settings: 'wdth' 62; font-weight: 900; font-size: 5.4em; line-height: .78; margin: .06em .1em 0 0; color: var(--accent); }

/* ==========================================================================
   En-tête
   ========================================================================== */
.tete {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--tete);
  background: var(--noir);
  color: var(--papier);
  border-bottom: 2px solid var(--noir);
}
.tete-in { display: flex; align-items: center; gap: 1rem; height: 100%; }
.marque { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex-shrink: 0; }
.marque svg { width: 2.6rem; height: 2.6rem; }
.marque-txt { display: flex; flex-direction: column; line-height: .9; font-family: var(--titrage); font-variation-settings: 'wdth' 62; font-weight: 900; text-transform: uppercase; }
.marque-txt small { font-family: var(--mono); font-size: .62rem; font-weight: 500; letter-spacing: .14em; color: var(--jaune); margin-bottom: .2rem; }
.marque-txt span { font-size: 1.45rem; letter-spacing: .01em; }

.nav { margin-left: auto; display: flex; align-items: stretch; height: 100%; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; height: 100%; }
.nav > ul > li { position: static; display: flex; }
.nav-btn {
  display: flex; align-items: center; gap: .35rem;
  padding: 0 .95rem; height: 100%;
  background: none; border: 0; cursor: pointer;
  font-family: var(--titrage); font-variation-settings: 'wdth' 80; font-weight: 700; font-size: .98rem; letter-spacing: .01em;
}
.nav-btn::after { content: ''; width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease); }
.nav-btn[aria-expanded='true'] { color: var(--jaune); }
.nav-btn[aria-expanded='true']::after { transform: translateY(2px) rotate(225deg); }
.nav-btn:hover { color: var(--jaune); }

.panneau {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--papier); color: var(--noir);
  border-bottom: 2px solid var(--noir);
  display: none;
}
.panneau.ouvert { display: block; animation: descend .32s var(--ease); }
@keyframes descend { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.panneau-in { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem; padding-block: 2.5rem 3rem; }
.panneau-titre { font-family: var(--titrage); font-variation-settings: 'wdth' 62; font-weight: 900; text-transform: uppercase; font-size: 4.5rem; line-height: .85; text-decoration: none; display: inline-block; }
.panneau-titre:hover { color: var(--bleu); }
.panneau p { margin-top: 1rem; max-width: 32ch; font-size: 1.1rem; }
.panneau ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
.panneau li { break-inside: avoid; border-top: 2px solid var(--noir); }
.panneau li a { display: flex; justify-content: space-between; align-items: center; padding: .8rem 0; text-decoration: none; font-weight: 600; font-size: 1.08rem; }
.panneau li a::after { content: '→'; transition: transform .2s var(--ease); }
.panneau li a:hover { color: var(--bleu); }
.panneau li a:hover::after { transform: translateX(.35rem); }

.tete-actions { display: flex; align-items: center; gap: .5rem; margin-left: .5rem; }
.btn-cherche {
  display: flex; align-items: center; gap: .5rem;
  height: 2.6rem; padding: 0 .8rem;
  background: transparent; border: 2px solid #3a3a3e; color: var(--papier); cursor: pointer;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .05em;
}
.btn-cherche:hover { border-color: var(--papier); }
.btn-cherche svg { width: 1rem; height: 1rem; }
.btn-cherche kbd { font-family: inherit; opacity: .6; }
.burger { display: none; }

/* ==========================================================================
   Boutons
   ========================================================================== */
.btn {
  --b-fond: var(--noir); --b-encre: var(--papier);
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 3.4rem; padding: .85rem 1.5rem;
  background: var(--b-fond); color: var(--b-encre);
  border: 2px solid var(--b-fond);
  font-family: var(--titrage); font-variation-settings: 'wdth' 75; font-weight: 800; font-size: 1.12rem; text-transform: uppercase; letter-spacing: .01em; line-height: 1;
  text-decoration: none; cursor: pointer;
  position: relative;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn::after { content: '→'; font-family: var(--texte); font-weight: 600; transition: transform .2s var(--ease); }
.btn:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--b-ombre, var(--jaune)); text-decoration: none; }
.btn:hover::after { transform: translateX(.3rem); }
.btn:active { transform: none; box-shadow: none; }
.btn-jaune { --b-fond: var(--jaune); --b-encre: var(--noir); --b-ombre: var(--papier); }
.s-papier .btn-jaune, .s-blanc .btn-jaune { --b-ombre: var(--noir); }
.btn-bleu { --b-fond: var(--bleu); --b-encre: var(--blanc); --b-ombre: var(--jaune); }
.btn-clair { --b-fond: var(--papier); --b-encre: var(--noir); --b-ombre: var(--jaune); }
.s-jaune .btn { --b-ombre: var(--blanc); }
.s-bleu .btn-jaune { --b-ombre: var(--noir); }
.btn-ligne { background: transparent; color: var(--encre); border-color: currentColor; --b-ombre: var(--accent); }
.btn-s { min-height: 2.6rem; padding: .5rem 1rem; font-size: .95rem; }
.btn-sans::after { content: none; }
.tete .btn { min-height: 2.6rem; padding: .45rem 1rem; font-size: .98rem; }
.btns { display: flex; flex-wrap: wrap; gap: .9rem; }

.lien-fleche { font-weight: 700; text-decoration: none; display: inline-flex; gap: .45rem; align-items: center; border-bottom: 2px solid currentColor; padding-bottom: .1rem; }
.lien-fleche::after { content: '→'; transition: transform .2s var(--ease); }
.lien-fleche:hover::after { transform: translateX(.3rem); }

/* ==========================================================================
   Bandeau défilant
   ========================================================================== */
.defile { overflow: hidden; border-block: 2px solid var(--noir); white-space: nowrap; user-select: none; }
.defile-piste { display: inline-flex; animation: defile var(--duree, 38s) linear infinite; }
.defile-piste > span { display: inline-flex; align-items: center; gap: .85em; padding: .7rem .425em; font-family: var(--titrage); font-variation-settings: 'wdth' 62; font-weight: 900; text-transform: uppercase; font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1; }
.defile-piste svg { width: .7em; height: .7em; flex-shrink: 0; }
.defile:hover .defile-piste { animation-play-state: paused; }
.defile-inverse .defile-piste { animation-direction: reverse; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ==========================================================================
   Images
   ========================================================================== */
.photo { position: relative; overflow: hidden; background-size: cover; background-position: center; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
/* Bichromie : niveaux de gris multipliés sur la couleur du bloc. */
.bichro { background-color: var(--teinte, var(--jaune)); background-image: none !important; isolation: isolate; }
.bichro img { filter: grayscale(1) contrast(1.15) brightness(1.05); mix-blend-mode: multiply; }
.bichro-bleu { --teinte: var(--bleu); }
.bichro-bleu img { mix-blend-mode: screen; filter: grayscale(1) contrast(1.25) brightness(.85); }
.bichro-bleu::before { content: ''; position: absolute; inset: 0; background: var(--noir); z-index: -1; }
.trame::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(0, 0, 0, .28) 1px, transparent 1.2px); background-size: 4px 4px; mix-blend-mode: multiply; }
.legende { font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; color: var(--discret); margin-top: .6rem; }

/* Pastille ronde tournante */
.pastille { width: clamp(7rem, 12vw, 10rem); aspect-ratio: 1; display: grid; place-items: center; position: relative; text-decoration: none; }
.pastille svg.cercle { position: absolute; inset: 0; width: 100%; height: 100%; animation: tourne 18s linear infinite; }
.pastille svg.cercle text { font-family: var(--mono); font-weight: 700; font-size: 11.2px; letter-spacing: 2.2px; text-transform: uppercase; fill: currentColor; }
.pastille-coeur { width: 42%; aspect-ratio: 1; border-radius: 50%; background: var(--jaune); color: var(--noir); display: grid; place-items: center; font-size: 1.6rem; transition: transform .3s var(--ease); }
.pastille:hover .pastille-coeur { transform: scale(1.12) rotate(-12deg); }
@keyframes tourne { to { transform: rotate(360deg); } }

/* ==========================================================================
   Personnages détourés
   Posés sur le bas de leur bloc, sans cadre ; un disque plein derrière la tête.
   ========================================================================== */
.figure { position: relative; align-self: end; }
.figure-img { position: relative; z-index: 1; overflow: visible; background: none; }
.figure-img img { width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .35)); }
.figure-disque { position: absolute; z-index: 0; left: 50%; top: 4%; width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--jaune); transform: translateX(-46%); }
.s-jaune .figure-disque { background: var(--blanc); }
/* Photo coupée sur les côtés par son cadrage d'origine : on adoucit les bords. */
.figure-bords .figure-img img { -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }

/* ==========================================================================
   Accueil — héros
   ========================================================================== */
.heros { padding-top: clamp(2rem, 4vw, 3.5rem); }
/* Fond photographique assombri (mosaïque de visages), en parallaxe. Le calque
   dépasse de 15 % en haut et en bas pour que le glissement ne découvre aucun bord. */
.avec-fond { position: relative; overflow: hidden; isolation: isolate; }
.fond-px { position: absolute; z-index: -1; left: 0; right: 0; overflow: hidden; pointer-events: none;
  /* Course maximale : 35 % d'un demi-écran plus un demi-bloc, de chaque côté. */
  top: calc(-18vh - 18%); height: calc(100% + 36vh + 36%); }
.heros .fond-px { top: -15%; height: 130%; }
.fond-px-img { position: absolute; inset: 0; will-change: transform; background-image: none !important; }
.fond-px-img picture { height: 100%; }
.fond-px-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.fond-px::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(13, 13, 14, .9) 0%, rgba(13, 13, 14, .78) 45%, rgba(13, 13, 14, .7) 100%),
  linear-gradient(rgba(13, 13, 14, .35), rgba(13, 13, 14, .35) 60%, rgba(13, 13, 14, .95)); }
@media (prefers-reduced-motion: no-preference) {
  html.js .heros .fond-px-img { animation: fond-entre 2.4s var(--ease) both; }
}
@keyframes fond-entre { from { opacity: 0; scale: 1.12; } to { opacity: 1; scale: 1; } }
.heros-scene { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100svh - var(--tete) - 7rem); }
.heros-haut { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: clamp(1rem, 2vw, 2rem); position: relative; z-index: 4; }
.heros-flash { text-align: right; max-width: 24rem; }
.heros-titre { position: static; font-size: clamp(3rem, 15.4vw, 15.5rem); }
.heros-titre .monte { position: relative; display: block; }
.heros-titre .l1 { z-index: 1; }
.heros-titre .l2 { z-index: 3; color: var(--jaune); }
.heros-titre .monte + .monte { margin-top: -.02em; }
.heros-figure { position: absolute; z-index: 2; right: calc(var(--marge) * -0.5); bottom: 0; width: min(54%, 46rem); }
.heros-bas { position: relative; z-index: 3; max-width: 36rem; padding-block: clamp(2rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem); align-self: end; }
.heros-bas .chapo { max-width: 34ch; }
.heros-bas .chapo strong { color: var(--jaune); font-weight: 700; }
.heros-pastille { position: absolute; z-index: 4; right: calc(var(--marge) * .5); top: 30%; }
.heros-fiche { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid #2d2d31; }
.heros-fiche > div { padding: 1rem 1rem 1.2rem 0; border-right: 2px solid #2d2d31; }
.heros-fiche > div + div { padding-left: 1rem; }
.heros-fiche > div:last-child { border-right: 0; }
.heros-fiche b { display: block; font-family: var(--titrage); font-variation-settings: 'wdth' 70; font-weight: 800; font-size: 1.3rem; line-height: 1.1; margin-top: .25rem; color: var(--papier); }

/* Révélation du titre du héros, ligne à ligne */
html:not(.no-js) .monte { display: block; overflow: hidden; padding-top: .14em; margin-top: -.14em; }
html:not(.no-js) .monte > span { display: block; transform: translateY(105%); animation: monte .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes monte { to { transform: none; } }

/* ==========================================================================
   Entête de page intérieure
   ========================================================================== */
.ent { position: relative; overflow: hidden; }
.ent-in { padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
.ent.avec-photo .ent-in { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; }
.ent .photo { aspect-ratio: 4 / 5; max-height: 34rem; border: 2px solid var(--filet); }
.ent.avec-figure .ent-in { padding-bottom: 0; }
.ent.avec-figure .ent-in > div:first-child { padding-bottom: clamp(2.5rem, 5vw, 4.5rem); align-self: center; }
.ent .figure .photo { aspect-ratio: auto; max-height: none; border: 0; }
.ent .figure { max-width: 34rem; justify-self: end; width: 100%; }
/* Photo coupée en haut à l'origine : elle part du bord supérieur du bloc. */
.ent .figure-plein { align-self: stretch; max-width: none; margin-top: calc(-1 * clamp(2.5rem, 6vw, 5.5rem)); display: flex; justify-content: flex-end; min-height: 34rem; }
.ent .figure-plein .figure-img, .ent .figure-plein picture { height: 100%; }
.ent .figure-plein .figure-img img { height: 100%; width: auto; max-width: none; filter: none; }
.ent-sur { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; align-items: center; }
.ent .chapo { margin-top: 1.4rem; }
.ent-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: 1.6rem; }

.ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.ariane li { display: flex; align-items: center; gap: .3rem; }
.ariane li + li::before { content: '/'; opacity: .45; }
.ariane a { text-decoration: none; }
.ariane a:hover { text-decoration: underline; }

/* ==========================================================================
   Sections et grilles
   ========================================================================== */
.sec-tete { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sec-tete .etiq { display: block; margin-bottom: 1rem; }
.sec-tete .chapo { margin-top: 1.2rem; }
.sec-num { display: inline-flex; align-items: center; gap: .6rem; }
.sec-num::before { content: ''; width: 2.2rem; height: 2px; background: currentColor; }

.g2, .g3, .g4 { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cote { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.cote-colle { position: sticky; top: calc(var(--tete) + 2rem); }

/* Tableau de bord en cases jointives, bordées */
.cases { display: grid; border-top: 2px solid var(--filet); border-left: 2px solid var(--filet); }
.cases > * { border-right: 2px solid var(--filet); border-bottom: 2px solid var(--filet); padding: clamp(1.2rem, 2.4vw, 2rem); }
.cases-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cases-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cases-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Carte : bloc bordé, survol par décalage à ombre franche */
.carte {
  display: flex; flex-direction: column; gap: .7rem;
  padding: 1.5rem; border: 2px solid var(--filet); background: var(--fond);
  text-decoration: none; position: relative;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
a.carte:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--filet); text-decoration: none; }
.carte .etiq { color: var(--discret); }
.carte h3 { font-family: var(--titrage); font-variation-settings: 'wdth' 75; font-weight: 800; font-size: 1.5rem; line-height: 1.05; }
.carte p { margin: 0; }
.carte .plus { margin-top: auto; padding-top: .6rem; font-weight: 700; display: flex; justify-content: space-between; }
.carte .plus::after { content: '→'; }
.carte-jaune { background: var(--jaune); }
.carte-noir { background: var(--noir); color: var(--papier); --filet: var(--noir); }
.carte-noir .etiq { color: var(--jaune); }

/* Index des rubriques : grandes lignes typographiques */
.index { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--filet); counter-reset: idx; }
.index li { border-bottom: 2px solid var(--filet); }
.index a {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 22rem) 3rem; gap: 1.5rem; align-items: center;
  padding: clamp(1rem, 2vw, 1.6rem) .5rem; text-decoration: none; position: relative; isolation: isolate;
}
.index a::before { content: ''; position: absolute; inset: 0; background: var(--jaune); transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--ease); z-index: -1; }
.index a:hover::before, .index a:focus-visible::before { transform: scaleY(1); }
.index a:hover { color: var(--noir); }
.index .n { font-family: var(--mono); font-size: .85rem; }
.index .nom { font-family: var(--titrage); font-variation-settings: 'wdth' 62; font-weight: 900; text-transform: uppercase; font-size: clamp(2.5rem, 7vw, 6.25rem); line-height: .88; }
.index .nom em { font-family: var(--serif); text-transform: none; font-weight: 400; }
.index .desc { font-size: 1rem; line-height: 1.45; }
.index .fl { font-size: 2rem; justify-self: end; transition: transform .3s var(--ease); }
.index a:hover .fl { transform: translateX(.4rem) rotate(-45deg); }

/* Citations */
.cit-grande { font-family: var(--serif); font-size: clamp(2.3rem, 6vw, 5.6rem); line-height: 1.02; letter-spacing: -.02em; max-width: 18ch; }
.cit-grande .guil { font-family: var(--titrage); font-weight: 900; color: var(--accent); }
.cit-source { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(18rem, 24rem); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1.5rem; scrollbar-width: thin; scrollbar-color: var(--encre) transparent; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: .5rem; }
.rail-nav button { width: 3rem; height: 3rem; border: 2px solid var(--filet); background: transparent; cursor: pointer; font-size: 1.2rem; }
.rail-nav button:hover { background: var(--encre); color: var(--fond); }

.carte-cit { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; min-height: 22rem; padding: 1.6rem; border: 2px solid var(--filet); }
.carte-cit blockquote { margin: 0; font-family: var(--serif); font-size: 1.75rem; line-height: 1.15; }
.carte-cit .bas { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.btn-copie { background: none; border: 2px solid currentColor; padding: .35rem .6rem; cursor: pointer; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.btn-copie:hover { background: var(--encre); color: var(--fond); }

/* Chiffres */
.chiffre { display: flex; flex-direction: column; gap: .6rem; }
.chiffre .nombre { color: var(--accent); }
.chiffre p { margin: 0; max-width: 24ch; }

/* Compte à rebours */
.rebours { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--filet); }
.rebours > div { padding: 1rem 1.2rem; border-right: 2px solid var(--filet); }
.rebours > div:last-child { border-right: 0; }
.rebours b { display: block; font-family: var(--titrage); font-variation-settings: 'wdth' 62; font-weight: 900; font-size: clamp(2.8rem, 7vw, 6rem); line-height: .9; font-feature-settings: 'tnum'; }

/* ==========================================================================
   Chronologie
   ========================================================================== */
.filtres { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filtre { border: 2px solid var(--filet); background: transparent; padding: .45rem .9rem; cursor: pointer; font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.filtre[aria-pressed='true'] { background: var(--encre); color: var(--fond); }
.chrono { list-style: none; margin: 0; padding: 0; position: relative; }
.chrono-an { display: grid; grid-template-columns: minmax(7rem, 14rem) minmax(0, 1fr); gap: 2rem; border-top: 2px solid var(--filet); padding-block: 1.75rem; }
.chrono-an > h3 { font-family: var(--titrage); font-variation-settings: 'wdth' 62; font-weight: 900; font-size: clamp(3rem, 6vw, 5rem); line-height: .85; position: sticky; top: calc(var(--tete) + 1rem); align-self: start; }
.chrono-an ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.chrono-an li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; }
.chrono-an li[hidden] { display: none; }
.chrono-an .quand { font-family: var(--mono); font-size: .8rem; padding-top: .25rem; }
.chrono-an .quoi b { font-weight: 700; }
.chrono-an .tag { display: inline-block; font-family: var(--mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; padding: .1rem .4rem; margin-left: .4rem; vertical-align: .15em; background: var(--encre); color: var(--fond); }
.chrono-an.vide { display: none; }

/* ==========================================================================
   Repliables (FAQ, détails)
   ========================================================================== */
.plis { border-top: 2px solid var(--filet); }
.pli { border-bottom: 2px solid var(--filet); }
.pli summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 2rem; gap: 1rem; align-items: center; padding: 1.2rem 0; font-family: var(--titrage); font-variation-settings: 'wdth' 85; font-weight: 750; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.2; }
.pli summary::-webkit-details-marker { display: none; }
.pli summary::after { content: '+'; justify-self: end; font-family: var(--mono); font-size: 1.6rem; font-weight: 500; transition: transform .25s var(--ease); }
.pli[open] summary::after { transform: rotate(45deg); }
.pli summary:hover { color: var(--accent); }
.pli-corps { padding: 0 0 1.6rem; max-width: 46rem; }
.pli-corps > * + * { margin-top: .8em; }
.pli-corps p { margin: 0; }

/* ==========================================================================
   Formulaire « Rejoindre »
   ========================================================================== */
.form { display: grid; gap: 1.4rem; }
.form-etapes { display: flex; gap: .5rem; margin-bottom: .5rem; }
.form-etapes span { flex: 1; height: 6px; background: rgba(0, 0, 0, .15); position: relative; overflow: hidden; }
.form-etapes span::after { content: ''; position: absolute; inset: 0; background: var(--noir); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.form-etapes span.fait::after { transform: none; }
.etape { display: grid; gap: 1.2rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.etape legend { padding: 0; margin-bottom: 1rem; }
html.js .etape:not(.active) { display: none; }
.champs-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.champ { display: grid; gap: .45rem; position: relative; }
.champ label { font-family: var(--mono); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.champ label .opt { font-weight: 500; opacity: .6; text-transform: none; }
.champ input:not([type='checkbox']), .champ select {
  width: 100%; min-height: 3.6rem; padding: .8rem 1rem;
  background: var(--blanc); border: 2px solid var(--noir); border-radius: 0;
  font-size: 1.15rem; font-weight: 500; color: var(--noir);
  -webkit-appearance: none; appearance: none;
  transition: box-shadow .15s var(--ease);
}
.champ select { background-image: linear-gradient(45deg, transparent 50%, var(--noir) 50%), linear-gradient(135deg, var(--noir) 50%, transparent 50%); background-position: calc(100% - 1.4rem) 55%, calc(100% - 1rem) 55%; background-size: .4rem .4rem; background-repeat: no-repeat; padding-right: 2.6rem; }
.champ input:not([type='checkbox']):focus, .champ select:focus { outline: none; box-shadow: 5px 5px 0 var(--noir); }
.champ input::placeholder { color: #9a958b; font-weight: 400; }
.champ .aide { font-size: .88rem; color: var(--discret); }
.champ .erreur { font-size: .9rem; font-weight: 700; color: #b3200a; display: none; }
.champ.invalide input, .champ.invalide select { border-color: #b3200a; background: #fff5f2; }
.champ.invalide .erreur { display: block; }
.champ.valide::after { content: '✓'; position: absolute; right: 1rem; top: 2.45rem; font-weight: 800; color: #0d7a3a; }
.champ.valide:has(select)::after { right: 2.8rem; }
.champ label.coche { font-family: var(--texte); font-size: .98rem; font-weight: 400; text-transform: none; letter-spacing: 0; }
.coche { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .8rem; align-items: start; font-size: .98rem; line-height: 1.45; cursor: pointer; }
.coche input { width: 1.6rem; height: 1.6rem; margin: 0; accent-color: var(--noir); cursor: pointer; }
.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-retour { background: none; border: 0; font-weight: 700; cursor: pointer; text-decoration: underline; padding: .5rem 0; }
.piege { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-message { padding: 1rem 1.2rem; border: 2px solid var(--noir); font-weight: 600; display: none; }
.form-message.visible { display: block; }
.form-message.erreur { background: #fff0ec; border-color: #b3200a; color: #7a1404; }
.envoi-en-cours .btn[type='submit'] { opacity: .6; pointer-events: none; }
.form-bravo { text-align: left; }
.form-bravo[hidden] { display: none; }

.puce-liste > li.ligne-agenda { grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr); }
@media (max-width: 640px) { .puce-liste > li.ligne-agenda { grid-template-columns: minmax(0, 1fr); gap: .3rem; } }
.vignette-fond:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--noir); }

/* Page « Rejoindre » */
.rejoindre-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.form-boite { background: var(--papier); color: var(--noir); border: 2px solid var(--noir); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: 12px 12px 0 var(--noir); position: sticky; top: calc(var(--tete) + 1.5rem); }
.form-boite a { color: var(--bleu); }
.ligne-manif { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 26rem); gap: 1.5rem; align-items: center; padding: clamp(1rem, 2vw, 1.6rem) .5rem; }
@media (max-width: 960px) {
  .rejoindre-grille { grid-template-columns: minmax(0, 1fr); }
  .form-boite { position: static; }
  .ligne-manif { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .ligne-manif .desc { grid-column: 2; }
}

/* ==========================================================================
   Recherche (⌘K)
   ========================================================================== */
.recherche { width: min(48rem, calc(100vw - 2rem)); max-height: min(42rem, calc(100vh - 4rem)); margin: 6vh auto auto; padding: 0; border: 2px solid var(--noir); background: var(--papier); color: var(--noir); box-shadow: 12px 12px 0 var(--jaune); }
.recherche::backdrop { background: rgba(13, 13, 14, .78); }
.recherche-champ { display: flex; align-items: center; gap: .8rem; padding: 0 1.2rem; border-bottom: 2px solid var(--noir); }
.recherche-champ svg { width: 1.3rem; flex-shrink: 0; }
.recherche-champ input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 1.25rem 0; font-size: 1.35rem; font-weight: 600; outline: none; }
.recherche-champ button { border: 2px solid var(--noir); background: none; font-family: var(--mono); font-size: .7rem; padding: .3rem .5rem; cursor: pointer; }
.recherche-res { list-style: none; margin: 0; padding: .5rem; overflow-y: auto; max-height: calc(min(42rem, 100vh - 4rem) - 5.5rem); }
.recherche-res a { display: block; padding: .8rem 1rem; text-decoration: none; border: 2px solid transparent; }
.recherche-res a[aria-selected='true'], .recherche-res a:hover { background: var(--jaune); border-color: var(--noir); }
.recherche-res b { display: block; font-size: 1.1rem; }
.recherche-res small { display: block; color: var(--gris); font-size: .9rem; line-height: 1.4; margin-top: .15rem; }
.recherche-res mark { background: none; color: var(--bleu); font-weight: 700; }
.recherche-vide { padding: 1.5rem 1rem; color: var(--gris); }
.recherche-suggest { padding: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.recherche-suggest button { border: 2px solid var(--noir); background: var(--blanc); padding: .4rem .7rem; cursor: pointer; font-weight: 600; }
.recherche-suggest button:hover { background: var(--noir); color: var(--papier); }

/* ==========================================================================
   Appel final et pied de page
   ========================================================================== */
.appel { position: relative; overflow: hidden; }
.appel-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.appel .mega { font-size: clamp(3.5rem, 12vw, 12rem); }

.pied { background: var(--noir); color: var(--papier); padding-top: clamp(3rem, 6vw, 5rem); }
.pied-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 2rem; }
.pied h2 { font-family: var(--mono); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--jaune); margin-bottom: 1rem; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--jaune); text-decoration: underline; }
.pied-mot { font-family: var(--titrage); font-variation-settings: 'wdth' 62; font-weight: 900; text-transform: uppercase; font-size: 18.6vw; line-height: .78; letter-spacing: -.01em; margin: clamp(2.5rem, 5vw, 4rem) 0 0; white-space: nowrap; color: var(--papier); text-align: center; overflow: hidden; }
.pied-mot span { color: var(--jaune); }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; border-top: 2px solid #2d2d31; margin-top: 1rem; }
.pied-bas ul { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }

/* ==========================================================================
   Composants divers
   ========================================================================== */
.puce-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 2px solid var(--filet); }
.puce-liste > li { border-bottom: 2px solid var(--filet); padding: 1.1rem 0; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; }
.puce-liste .n { font-family: var(--mono); font-size: .85rem; padding-top: .2rem; color: var(--accent); font-weight: 700; }
.puce-liste h3 { font-family: var(--titrage); font-variation-settings: 'wdth' 80; font-weight: 800; font-size: 1.35rem; line-height: 1.15; margin-bottom: .35rem; }
.puce-liste p { margin: 0; }

.encadre { border: 2px solid var(--filet); padding: 1.5rem 1.6rem; background: var(--fond); }
.encadre-jaune { background: var(--jaune); color: var(--noir); border-color: var(--noir); }
.encadre .etiq { display: block; margin-bottom: .6rem; }
.encadre > :last-child { margin-bottom: 0; }

.sommaire { border-top: 2px solid var(--filet); }
.sommaire ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.sommaire li { counter-increment: s; border-bottom: 1px solid color-mix(in srgb, var(--filet) 25%, transparent); }
.sommaire a { display: grid; grid-template-columns: 2.2rem 1fr; padding: .55rem 0; text-decoration: none; font-weight: 600; font-size: .98rem; line-height: 1.3; }
.sommaire a::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: .72rem; padding-top: .2rem; color: var(--discret); }
.sommaire a:hover, .sommaire a.actif { color: var(--accent); }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-b { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; padding: .2rem .5rem; border: 1.5px solid currentColor; }

.fiche-saint { display: grid; grid-template-columns: minmax(0, 1fr); border: 2px solid var(--filet); background: var(--fond); }
.fiche-saint .haut { padding: 1.4rem 1.5rem 1.2rem; border-bottom: 2px solid var(--filet); display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.fiche-saint .haut h3 { font-family: var(--titrage); font-variation-settings: 'wdth' 62; font-weight: 900; text-transform: uppercase; font-size: 2.3rem; line-height: .88; }
.fiche-saint .dates { font-family: var(--mono); font-size: .75rem; white-space: nowrap; padding-top: .3rem; }
.fiche-saint .corps { padding: 1.2rem 1.5rem 1.5rem; display: grid; gap: .9rem; }
.fiche-saint .corps p { margin: 0; }
.fiche-saint .pourtoi { border-left: 5px solid var(--jaune); padding-left: .9rem; font-weight: 600; }
.fiche-saint blockquote { margin: 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }

.table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.table th, .table td { text-align: left; padding: .75rem .8rem .75rem 0; border-bottom: 2px solid var(--filet); vertical-align: top; }
.table th { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.table-defile { overflow-x: auto; }

/* Trouver son diocèse */
.trouve { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem; align-items: start; }
.trouve-res { border: 2px solid var(--filet); padding: 1.6rem; min-height: 14rem; background: var(--blanc); color: var(--noir); }
.trouve-res .t3 { margin: .4rem 0 1rem; }
.dept-liste { columns: 3 16rem; column-gap: 2rem; list-style: none; padding: 0; margin: 0; }
.dept-liste li { break-inside: avoid; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .5rem; padding: .45rem 0; border-bottom: 1px solid color-mix(in srgb, var(--filet) 22%, transparent); font-size: .96rem; line-height: 1.3; }
.dept-liste .c { font-family: var(--mono); font-weight: 700; font-size: .8rem; padding-top: .1rem; }
.dept-liste small { display: block; color: var(--discret); }
.dept-liste li[hidden] { display: none; }
.champ-filtre { width: 100%; min-height: 3.4rem; border: 2px solid var(--filet); padding: .7rem 1rem; background: var(--blanc); color: var(--noir); font-size: 1.1rem; border-radius: 0; }

/* Quiz */
.quiz { border: 2px solid var(--filet); background: var(--blanc); color: var(--noir); }
.quiz-tete { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.4rem; border-bottom: 2px solid var(--noir); }
.quiz-barre { height: 6px; background: var(--papier-2); }
.quiz-barre span { display: block; height: 100%; background: var(--bleu); transition: width .4s var(--ease); width: 0; }
.quiz-corps { padding: clamp(1.4rem, 3vw, 2.6rem); }
.quiz-q { font-family: var(--titrage); font-variation-settings: 'wdth' 75; font-weight: 850; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.08; margin-bottom: 1.6rem; }
.quiz-choix { display: grid; gap: .7rem; }
.quiz-choix button { text-align: left; padding: 1rem 1.2rem; border: 2px solid var(--noir); background: var(--papier); cursor: pointer; font-weight: 600; font-size: 1.08rem; display: grid; grid-template-columns: 2rem 1fr; gap: .6rem; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.quiz-choix button:hover:not(:disabled) { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--noir); }
.quiz-choix button span { font-family: var(--mono); font-weight: 700; }
.quiz-choix button.bon { background: #c8f5d4; border-color: #0d7a3a; }
.quiz-choix button.faux { background: #ffd9d0; border-color: #b3200a; }
.quiz-choix button:disabled { cursor: default; }
.quiz-expli { margin-top: 1.4rem; padding: 1.1rem 1.3rem; background: var(--jaune); border: 2px solid var(--noir); }
.quiz-expli[hidden] { display: none; }
.quiz-fin { text-align: left; }
.quiz-fin .mega { font-size: clamp(5rem, 16vw, 11rem); color: var(--bleu); }

/* Glossaire */
.lettres { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 2rem; position: sticky; top: var(--tete); background: var(--fond); padding-block: .8rem; z-index: 5; border-bottom: 2px solid var(--filet); }
.lettres a { width: 2.3rem; height: 2.3rem; display: grid; place-items: center; border: 2px solid var(--filet); text-decoration: none; font-family: var(--mono); font-weight: 700; font-size: .85rem; }
.lettres a:hover { background: var(--encre); color: var(--fond); }
.gloss { display: grid; grid-template-columns: minmax(0, 1fr); }
.gloss-l { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1.5rem; border-top: 2px solid var(--filet); padding-block: 1.5rem; }
.gloss-l > h2 { font-family: var(--titrage); font-variation-settings: 'wdth' 62; font-weight: 900; font-size: 5rem; line-height: .8; color: var(--accent); }
.gloss dl { margin: 0; display: grid; gap: 1.1rem; }
.gloss dt { font-weight: 800; font-size: 1.15rem; }
.gloss dd { margin: .2rem 0 0; max-width: 46rem; }

/* Révélation au défilement (seulement si JS actif et mouvement accepté) */
@media (prefers-reduced-motion: no-preference) {
  html.js .rv { opacity: 0; transform: translateY(2rem); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  html.js .rv.vu { opacity: 1; transform: none; }
  html.js .rv-d1 { transition-delay: .08s; }
  html.js .rv-d2 { transition-delay: .16s; }
  html.js .rv-d3 { transition-delay: .24s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .defile-piste { animation: none; }
  html:not(.no-js) .monte > span { transform: none; }
}

/* Bloc « blason » */
.blason { width: 100%; height: auto; max-width: 26rem; margin-inline: auto; }

/* Le pied de page s'ouvre sur l'appel à rejoindre : pas de double filet */
.appel + .pied { border-top: 0; }

/* ==========================================================================
   Adaptation
   ========================================================================== */
@media (max-width: 1180px) {
  .nav, .btn-cherche kbd, .btn-cherche .txt { display: none; }
  .tete-actions { margin-left: auto; }
  .burger {
    display: flex; align-items: center; gap: .55rem; height: 2.6rem; padding: 0 .9rem;
    background: var(--papier); color: var(--noir); border: 0; cursor: pointer;
    font-family: var(--titrage); font-variation-settings: 'wdth' 75; font-weight: 800; text-transform: uppercase; font-size: .95rem;
  }
  .burger i { width: 1.1rem; height: 2px; background: currentColor; position: relative; }
  .burger i::before, .burger i::after { content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .25s var(--ease); }
  .burger i::before { top: -6px; } .burger i::after { top: 6px; }
  .burger[aria-expanded='true'] i { background: transparent; }
  .burger[aria-expanded='true'] i::before { transform: translateY(6px) rotate(45deg); }
  .burger[aria-expanded='true'] i::after { transform: translateY(-6px) rotate(-45deg); }
  .pied-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied-cols > :first-child { grid-column: 1 / -1; }
}
.mobile { position: fixed; inset: var(--tete) 0 0 0; z-index: 49; background: var(--noir); color: var(--papier); overflow-y: auto; padding: 1.5rem var(--marge) 3rem; display: none; }
.mobile.ouvert { display: block; animation: descend .35s var(--ease); }
.mobile details { border-bottom: 2px solid #2d2d31; }
.mobile summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: .9rem 0; font-family: var(--titrage); font-variation-settings: 'wdth' 62; font-weight: 900; text-transform: uppercase; font-size: 2.6rem; line-height: 1; }
.mobile summary::-webkit-details-marker { display: none; }
.mobile summary::after { content: '+'; font-family: var(--mono); font-size: 1.6rem; color: var(--jaune); }
.mobile details[open] summary::after { content: '–'; }
.mobile ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.mobile li a { display: block; padding: .55rem 0; text-decoration: none; font-size: 1.15rem; font-weight: 600; }
.mobile li a:hover { color: var(--jaune); }
.mobile .btn { width: 100%; margin-top: 1.8rem; }
body.menu-ouvert { overflow: hidden; }

@media (max-width: 960px) {
  .heros-scene { min-height: 0; }
  .heros-figure { position: relative; right: auto; width: 100%; max-width: 34rem; margin: .6rem auto 0; }
  .heros-figure .figure-img img { -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
  .heros-titre .l2 { margin-bottom: 0; }
  .heros-pastille { right: var(--marge); bottom: auto; top: 46%; }
  .heros-pastille .pastille { width: 6.5rem; }
  .ent .figure { justify-self: center; max-width: 26rem; }
  .ent .figure-plein { margin-top: 0; min-height: 0; max-width: 24rem; }
  .ent .figure-plein .figure-img img { width: 100%; height: auto; }
  .heros-fiche { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heros-fiche > div:nth-child(2) { border-right: 0; }
  .heros-fiche > div:nth-child(3) { padding-left: 0; }
  .heros-fiche > div:nth-child(n + 3) { border-top: 2px solid #2d2d31; }
  .ent.avec-photo .ent-in { grid-template-columns: 1fr; }
  .ent .photo { max-width: 22rem; }
  .cote { grid-template-columns: 1fr; }
  .cote-colle { position: static; }
  .g3, .g4, .cases-3, .cases-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index a { grid-template-columns: 2.5rem minmax(0, 1fr) 2rem; }
  .index a { gap: .4rem .9rem; }
  .index .desc { grid-column: 2 / 4; grid-row: 2; }
  .index .fl { grid-row: 1; grid-column: 3; }
  .sec-tete { grid-template-columns: 1fr; }
  .appel-in { grid-template-columns: 1fr; }
  .trouve { grid-template-columns: 1fr; }
  .panneau-in { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  :root { --tete: 3.75rem; }
  .marque svg { width: 2.2rem; height: 2.2rem; }
  .marque-txt span { font-size: 1.2rem; }
  .btn-cherche { padding: 0 .65rem; }
  .tete .btn-rejoindre { display: none; }
  .g2, .g3, .g4, .cases-2, .cases-3, .cases-4, .champs-2 { grid-template-columns: minmax(0, 1fr); }
  .rebours { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rebours > div:nth-child(2) { border-right: 0; }
  .rebours > div:nth-child(n + 3) { border-top: 2px solid var(--filet); }
  .chrono-an { grid-template-columns: 1fr; gap: .8rem; }
  .chrono-an > h3 { position: static; }
  .chrono-an li { grid-template-columns: 1fr; gap: .2rem; }
  .gloss-l { grid-template-columns: 1fr; gap: .5rem; }
  .gloss-l > h2 { font-size: 3.5rem; }
  .texte { font-size: 1.06rem; }
  .rail { grid-auto-columns: minmax(16rem, 85vw); }
  .puce-liste > li { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .btns .btn { width: 100%; }
  .heros-haut > p.etiq, .heros-pastille { display: none; }
  .heros-flash { text-align: left; max-width: none; }
  .heros-titre { font-size: 14.6vw; }
}

@media print {
  .tete, .pied, .appel, .defile, .mobile, .recherche { display: none !important; }
  [class^='s-'], [class*=' s-'] { background: #fff !important; color: #000 !important; }
}
