/* Site des sources · La mécanique du pire et Carte & Cachet
   Polices auto-hébergées (licence SIL OFL, voir assets/fonts).

   Principes :
   - le serif (Newsreader) pour les titres et pour ce que dit la vidéo ;
   - le sans (Inter) pour les sources, les liens et tout ce qui sert à naviguer ;
   - le rouge seulement pour le faisceau des plaques et pour les corrections.
   Les pages de Carte & Cachet prennent l'identité de la chaîne (classe .t-cc) :
   cuir vert, papier, laiton pour les liens, EB Garamond à la place de Newsreader. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/newsreader-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/newsreader-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/newsreader-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/newsreader-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-500-italic.woff2") format("woff2"); }

:root {
  --nuit: #0B1219;
  --nuit-2: #101A24;
  --nuit-3: #070C11;
  --acier: #2E3E51;
  --papier: #ECE6DA;
  --papier-2: #D9D3C7;
  --gris: #8E9AA8;
  --rouge: #E8483B;
  --bleu: #8FC7DF;
  --trait: rgba(142, 154, 168, 0.2);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Pages communes (accueil, corrections, mentions légales) : un fond neutre */
.t-neutre {
  --nuit: #111315;
  --nuit-2: #171A1D;
  --nuit-3: #0C0E10;
  --gris: #9AA1AA;
  --trait: rgba(154, 161, 170, 0.2);
}

/* Pages de Carte & Cachet : le cuir du bureau, le papier, le laiton */
.t-cc {
  --nuit: #152A20;
  --nuit-2: #1B3428;
  --nuit-3: #0F1F17;
  --papier: #ECE0C6;
  --papier-2: #D8CFB8;
  --gris: #A8AB98;
  --rouge: #F0796B;
  --bleu: #D4B06A; /* les liens, en laiton */
  --trait: rgba(201, 162, 90, 0.22);
  --serif: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--nuit);
  color: var(--papier);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { flex: 1 0 auto; }
a { color: var(--bleu); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; }
::selection { background: rgba(143, 199, 223, 0.3); }
img { max-width: 100%; }
.ico { flex: none; display: inline-block; vertical-align: middle; }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* En-tête et pied */
.top { border-bottom: 1px solid var(--trait); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 32px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--papier); }
.brand:hover { text-decoration: none; }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 500; white-space: nowrap; }
.brand-name em { font-style: italic; color: var(--rouge); }
.brand-plain { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.nav { display: flex; flex-wrap: wrap; gap: 0 26px; font-size: 15px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--papier-2); }
.nav a:hover { color: var(--papier); }

.foot { background: var(--nuit-3); border-top: 1px solid var(--trait); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 40px; padding-top: 28px; padding-bottom: 32px; }
.foot .nav { font-size: 14px; gap: 0 22px; }
.foot .nav a { color: var(--gris); }

.sec-title { margin: 0 0 28px; font-family: var(--serif); font-weight: 500; font-size: clamp(27px, 3.4vw, 34px); line-height: 1.15; }

/* Ouverture d'un dossier */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; padding-top: 80px; padding-bottom: 88px; }
.hero-text { flex: 1 1 360px; min-width: 0; }
.hero.sans-image { padding-bottom: 56px; }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(64px, 9vw, 116px); line-height: 0.92; letter-spacing: -0.015em; }
.hero h1.long { font-size: clamp(48px, 6.4vw, 84px); line-height: 1; }
.hero h1.tres-long { font-size: clamp(44px, 5.4vw, 70px); line-height: 1.02; }
.hero h1 .mot { white-space: nowrap; } /* « Mont-Blanc » ne se coupe pas au trait d'union */
.hero .sub { margin: 18px 0 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.3; color: var(--papier-2); }
.meta { margin: 22px 0 0; max-width: 470px; font-size: 15px; line-height: 1.55; color: var(--gris); }
.note { margin: 14px 0 0; max-width: 440px; font-size: 15px; line-height: 1.55; color: var(--gris); }
.signal-corr { margin: 18px 0 0; padding-left: 12px; border-left: 3px solid var(--rouge); font-size: 15px; font-weight: 500; }
.signal-corr a { color: var(--papier); }
.signal-maj { margin: 18px 0 0; padding-left: 12px; border-left: 3px solid var(--papier-2); font-size: 15px; font-weight: 500; }
.signal-maj a { color: var(--papier); }

/* Mise à jour publiée après la vidéo : ce qui a changé depuis l'enregistrement */
.suivi { padding-top: 8px; padding-bottom: 88px; }
.suivi-intro { margin: -12px 0 28px; max-width: 640px; font-size: 16px; line-height: 1.6; color: var(--papier-2); }
.suivi-points { display: flex; flex-direction: column; gap: 26px; padding-top: 26px; border-top: 1px solid var(--trait); }
.suivi .dit strong { font-weight: 500; color: var(--papier); }
/* Illustration de la chaîne (plaques et faisceau), bords fondus dans la couleur du fond */
.hero-art { flex: 1 1 360px; min-width: 0; width: 100%; max-width: 500px; height: auto; display: block; }
.hero-img { flex: 1 1 360px; min-width: 0; width: 100%; max-width: 448px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 3px; background: var(--nuit-2); }

/* Choix de la vidéo : deux miniatures, comme des onglets */
.sources { padding-top: 8px; padding-bottom: 96px; }
.picker { display: flex; gap: 32px; border-bottom: 1px solid var(--trait); }
.pick { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 16px; padding: 0 0 16px; margin-bottom: -1px; border-bottom: 3px solid transparent; color: var(--gris); }
.pick:hover { text-decoration: none; color: var(--papier-2); }
.pick[aria-current="true"] { border-bottom-color: var(--papier); color: var(--papier); }
.pick img { flex: none; width: 160px; height: 90px; object-fit: cover; border-radius: 3px; display: block; background: var(--nuit-2); opacity: 0.55; }
.pick:hover img, .pick[aria-current="true"] img { opacity: 1; }
.pick-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pick-k { font-size: 14px; }
.pick-t { font-family: var(--serif); font-size: 20px; line-height: 1.25; }

/* Une partie */
.part[hidden] { display: none; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; padding: 10px 0; border-bottom: 1px solid var(--trait); }
.bar p { margin: 0; font-size: 14.5px; color: var(--gris); }
.bar-act { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; font-size: 15px; }
.bar-act a { display: inline-flex; align-items: center; min-height: 44px; }
.btn-all { min-height: 44px; padding: 0; border: 0; background: none; color: var(--papier-2); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(217, 211, 199, 0.4); }
.btn-all:hover { color: var(--papier); text-decoration-color: currentColor; }
.btn-all[hidden] { display: none; }
.btn-voir { min-height: 44px; padding: 0; border: 0; background: none; color: var(--bleu); font: inherit; cursor: pointer; }
.btn-voir:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-voir[hidden] { display: none; }
.btn-voir[aria-pressed="true"] { color: var(--papier); }

/* La miniature en tête de page : un clic charge le lecteur à sa place (sans JavaScript, le lien mène à YouTube). */
.hero-video { flex: 1 1 360px; min-width: 0; width: 100%; max-width: 448px; }
.hero-cadre { position: relative; aspect-ratio: 16 / 9; }
.hero-video .hero-img { max-width: none; height: 100%; }
.hero-lien { display: block; height: 100%; }
.hero-legende { margin: 10px 0 0; font-size: 15px; }
.hero-lire { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; }
.hero-video.actif .hero-lien, .hero-video.actif .hero-legende { visibility: hidden; }

/* Le lecteur : à la place de la miniature, ou détaché en bas à droite pendant qu'on lit les sources. */
.lecteur { position: absolute; inset: 0; z-index: 50; background: #000; }
.lecteur[hidden] { display: none; }
.lecteur-barre { display: none; }
.lecteur-cadre { width: 100%; height: 100%; background: #000; }
.lecteur-cadre iframe { display: block; width: 100%; height: 100%; border: 0; }
.lecteur.flottant { position: fixed; inset: auto 24px 24px auto; width: 400px; background: var(--nuit-3); border: 1px solid var(--trait); }
.lecteur.flottant .lecteur-barre { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 4px 0 14px; font-size: 14px; color: var(--gris); }
.lecteur.flottant .lecteur-cadre { height: auto; aspect-ratio: 16 / 9; }
.lecteur-titre { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lecteur-fermer { flex: none; min-height: 40px; padding: 0 10px; border: 0; background: none; color: var(--papier-2); font: inherit; cursor: pointer; }
.lecteur-fermer:hover { color: var(--papier); text-decoration: underline; text-underline-offset: 3px; }
body.lecteur-flottant { padding-bottom: 300px; }
/* Sur un grand écran, la page se décale à gauche pour que le lecteur détaché ne cache pas les sources. */
@media (min-width: 1400px) { body.lecteur-flottant .wrap { margin-left: calc((100vw - 960px - 424px) / 2); margin-right: 0; } }

/* Un passage (menu déroulant) */
.pas { border-bottom: 1px solid var(--trait); }
.pas[open] { background: var(--nuit-2); }
.pas > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 4px 24px; padding: 17px 12px; }
.pas > summary::-webkit-details-marker { display: none; }
.pas > summary:hover .s-title { color: #fff; }
.s-t { flex: none; width: 48px; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--gris); }
.s-title { flex: 1 1 auto; min-width: 0; font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.3; }
.s-n { flex: none; font-size: 14px; color: var(--gris); white-space: nowrap; }
.s-corr { margin-right: 14px; font-weight: 600; color: var(--rouge); }
.chev { flex: none; align-self: center; color: var(--gris); transition: transform 0.2s; }
.pas[open] .chev { transform: rotate(180deg); }

.panel { display: flex; flex-direction: column; gap: 26px; padding: 4px 48px 30px 84px; }
.item { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px 40px; }
.dit { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--papier-2); }
.srcs { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 3px 0 0; list-style: none; }
.src { display: flex; flex-direction: column; gap: 1px; }
.src-n { font-size: 15px; font-weight: 500; line-height: 1.4; }
.src-m { font-size: 13.5px; line-height: 1.45; color: var(--gris); overflow-wrap: anywhere; }
a.src:hover { text-decoration: none; }
a.src:hover .src-n { text-decoration: underline; text-underline-offset: 3px; }
span.src .src-n { color: var(--papier); }

.nuance { padding-left: 16px; border-left: 2px solid rgba(142, 154, 168, 0.5); }
.nuance p { margin: 0 0 6px; font-size: 15px; line-height: 1.6; color: var(--papier-2); }
.nuance p:last-child { margin-bottom: 0; }
.nuance strong { font-weight: 600; color: var(--papier); }

.again { align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; min-height: 36px; font-size: 15px; }

/* Une correction, à la manière d'un erratum */
.corr { padding: 2px 0 2px 18px; border-left: 3px solid var(--rouge); }
.corr dl { margin: 0; }
.corr dt { margin: 0; font-size: 14px; font-weight: 600; color: var(--papier); }
.corr dt a { color: var(--papier); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(236, 230, 218, 0.4); }
.corr dd { margin: 2px 0 14px; font-family: var(--serif); font-size: 18px; line-height: 1.5; color: var(--papier-2); }
.corr dd.corr-dit { text-decoration: line-through; text-decoration-color: var(--rouge); text-decoration-thickness: 1.5px; color: var(--papier-2); }
.corr > p { margin: 0 0 10px; font-family: var(--serif); font-size: 18px; line-height: 1.5; color: var(--papier-2); }
.corr .corr-pied { margin: 0; font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--gris); }

/* Rapports */
.rapports { padding-bottom: 88px; }
.raps { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 40px 56px; }
.rap { min-width: 0; padding-top: 18px; border-top: 1px solid var(--trait); }
.rap h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.25; }
.rap-k { margin: 4px 0 0; font-size: 14.5px; color: var(--gris); }
.rap p.r { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--papier-2); }
.rap-links { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 6px 0 0; font-size: 15px; }
.rap-links a { display: inline-flex; align-items: center; min-height: 44px; }
.more { margin: 36px 0 0; max-width: 720px; font-size: 15px; line-height: 1.6; color: var(--gris); }

/* Corrections, en bas d'un dossier */
.corrections { padding-bottom: 88px; }
.corrections .corr { max-width: 720px; margin-bottom: 28px; }
.vide { margin: 0; font-size: 16px; line-height: 1.6; color: var(--papier-2); }
.signaler { margin: 22px 0 0; max-width: 640px; font-size: 15px; line-height: 1.6; color: var(--gris); }
.credits { margin: 40px 0 0; max-width: 640px; font-size: 13.5px; line-height: 1.55; color: var(--gris); }

/* Accueil */
.home-hero { padding-top: 80px; padding-bottom: 48px; }
.home-hero h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(52px, 7vw, 88px); line-height: 0.95; letter-spacing: -0.015em; }
.home-hero p { margin: 18px 0 0; max-width: 540px; font-size: 17px; line-height: 1.6; color: var(--papier-2); }
.chaines { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; padding-bottom: 96px; }
.ch { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 4px; scroll-margin-top: 16px; }
.ch-head { display: flex; align-items: center; gap: 16px; }
.ch h2 { margin: 0; font-weight: 500; line-height: 1.1; }
.ch .acc { margin: 0; font-size: 15.5px; line-height: 1.6; }
.ch-list { margin: 8px 0 0; padding: 0; list-style: none; }
.ch-list a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid; }
.ch-list a:hover { text-decoration: none; }
.ch-list .t { flex: 1 1 auto; min-width: 0; font-size: 22px; line-height: 1.25; }
.ch-list .c { flex: none; font-size: 14px; }
.ch-empty { margin: 8px 0 0; padding: 14px 0; border-top: 1px solid; font-size: 15px; }
.ch-links { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0; font-size: 15px; }
.ch-links a { display: inline-flex; align-items: center; min-height: 44px; }

.ch-mdp { background: #0B1219; color: #ECE6DA; }
.ch-mdp h2 { font-family: var(--serif); font-size: clamp(26px, 3vw, 31px); }
.ch-mdp h2 em { color: #E8483B; }
.ch-mdp .acc { color: #D9D3C7; }
.ch-mdp .ch-list a { color: #ECE6DA; border-color: rgba(142, 154, 168, 0.22); }
.ch-mdp .ch-list a:hover .t { color: #8FC7DF; }
.ch-mdp .ch-list .t { font-family: var(--serif); }
.ch-mdp .ch-list .c { color: #8E9AA8; }
.ch-mdp .ch-links a { color: #8FC7DF; }

.ch-cc { background: #152A20; color: #ECE0C6; }
.ch-cc h2 { font-family: "EB Garamond", Garamond, Georgia, serif; font-size: clamp(30px, 3.6vw, 38px); }
.ch-cc .acc { color: #DFE0CF; }
.ch-cc .ch-empty { color: #DFE0CF; border-color: rgba(201, 162, 90, 0.3); }
.ch-cc h2 em { font-style: italic; color: #C9A25A; }
.ch-cc .ch-list a { color: #ECE0C6; border-color: rgba(201, 162, 90, 0.3); }
.ch-cc .ch-list a:hover .t { color: #D4B06A; }
.ch-cc .ch-list .t { font-family: "EB Garamond", Garamond, Georgia, serif; font-size: 24px; }
.ch-cc .ch-list .c { color: #A8AB98; }
.ch-cc .ch-links a { color: #D4B06A; }
.ch-cc img { flex: none; width: 58px; height: 56px; display: block; }

/* Carte & Cachet : EB Garamond a un œil plus petit que Newsreader, les tailles montent un peu */
.t-cc ::selection { background: rgba(201, 162, 90, 0.32); }
.t-cc .brand-name { font-size: 23px; }
.t-cc .brand-name em { color: #C9A25A; }
.t-cc .sceau { width: auto; height: 40px; }
.t-cc .hero h1 { letter-spacing: -0.01em; }
.t-cc .hero .sub { font-size: clamp(22px, 2.4vw, 26px); }
.t-cc .sec-title { font-size: clamp(29px, 3.6vw, 37px); }
.t-cc .pick-t { font-size: 22px; }
.t-cc .s-title { font-size: 22px; line-height: 1.25; }
.t-cc .pas > summary:hover .s-title { color: #FFF7E6; }
.t-cc .dit { font-size: 19.5px; line-height: 1.5; }
.t-cc .corr dd, .t-cc .corr > p { font-size: 19.5px; }
.t-cc .rap h3 { font-size: 24px; }
.t-cc .dos-t { font-size: 29px; }
.t-cc .dos-s { font-size: 19.5px; }
.t-cc .liste h1 { font-size: clamp(44px, 5.4vw, 60px); }

/* Liste des dossiers d'une chaîne */
.liste { padding-top: 72px; padding-bottom: 96px; }
.liste h1, .page-corr h1, .texte h1 { margin: 0 0 36px; font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5vw, 56px); line-height: 1.05; }
.dos { display: flex; align-items: center; gap: 24px; padding: 22px 0; border-top: 1px solid var(--trait); color: var(--papier); }
.dos:last-child { border-bottom: 1px solid var(--trait); }
.dos:hover { text-decoration: none; }
.dos:hover .dos-t { color: var(--bleu); }
.dos img { flex: none; width: 160px; height: 90px; object-fit: cover; border-radius: 3px; display: block; }
.dos-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dos-t { font-family: var(--serif); font-weight: 500; font-size: 27px; line-height: 1.2; }
.dos-s { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.35; color: var(--papier-2); }
.dos-m { margin-top: 4px; font-size: 14px; color: var(--gris); }

/* Page des corrections */
.page-corr { padding-top: 72px; padding-bottom: 96px; }
.chapo { margin: -12px 0 0; max-width: 620px; font-size: 17px; line-height: 1.6; color: var(--papier-2); }
.corr-chaine { margin-top: 56px; max-width: 720px; }
.corr-chaine h2 { margin: 0 0 20px; padding-bottom: 10px; border-bottom: 1px solid var(--trait); font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.2; }
.corr-entree { margin-bottom: 36px; }
.corr-entree h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.25; }
.corr-entree h3 a { color: var(--papier); }
.corr-ou { margin: 2px 0 14px; font-size: 14.5px; color: var(--gris); }

/* Texte courant (mentions légales) */
.texte { padding-top: 72px; padding-bottom: 96px; max-width: 720px; }
.texte h2 { margin: 36px 0 8px; font-family: var(--serif); font-weight: 500; font-size: 22px; }
.texte p, .texte li { font-size: 16px; line-height: 1.65; color: var(--papier-2); }
.texte p { margin: 0 0 12px; }

/* Téléphone */
@media (max-width: 640px) {
  .hero-video { flex-basis: 100%; max-width: none; }
  .lecteur.flottant { inset: auto 0 0 0; width: auto; border-width: 1px 0 0; }
  .lecteur.flottant .lecteur-cadre { aspect-ratio: auto; height: max(200px, 56.25vw); }
  body.lecteur-flottant { padding-bottom: calc(max(200px, 56.25vw) + 48px); }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .brand-name, .brand-plain { font-size: 18px; }
  .t-cc .brand-name { font-size: 20px; }
  .t-cc .sceau { height: 34px; }
  .t-cc .s-title { font-size: 19.5px; }
  .t-cc .dit { font-size: 18.5px; }
  .t-cc .dos-t { font-size: 24px; }
  .t-cc .dos-s { font-size: 17px; }
  .top .wrap { gap: 0 16px; }
  .top .nav { gap: 0 18px; }
  .nav-opt { display: none !important; }
  .hero { padding-top: 40px; padding-bottom: 48px; gap: 32px; }
  .sources { padding-bottom: 64px; }
  .picker { gap: 16px; }
  .pick { flex: 1 1 0; flex-direction: column; align-items: stretch; gap: 8px; padding-bottom: 12px; }
  .pick img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .pick-k { font-size: 13px; }
  .pick-t { font-size: 16.5px; }
  .pas > summary { flex-wrap: wrap; gap: 2px 12px; padding: 14px 4px; }
  .s-t { width: 44px; font-size: 14px; }
  .s-title { flex: 1 1 0; font-size: 18px; }
  .chev { align-self: flex-start; margin-top: 6px; }
  .s-n { order: 3; flex-basis: 100%; padding-left: 56px; font-size: 13.5px; }
  .panel { padding: 0 12px 24px 16px; gap: 22px; }
  .item { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .dit { font-size: 17px; }
  .srcs { gap: 0; }
  .src { justify-content: center; min-height: 48px; padding: 6px 0; }
  .again { min-height: 44px; }
  .rapports, .corrections, .suivi { padding-bottom: 64px; }
  .raps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .home-hero { padding-top: 48px; padding-bottom: 32px; }
  .ch { padding: 24px 20px; }
  .liste, .texte, .page-corr { padding-top: 48px; padding-bottom: 64px; }
  .dos { align-items: flex-start; gap: 14px; }
  .dos img { width: 112px; height: 63px; }
  .dos-t { font-size: 22px; }
  .dos-s { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .chev { transition: none; }
}

@media print {
  .lecteur, .btn-voir, .hero-legende { display: none !important; }
  .top, .picker, .bar-act, .foot, .hero-art, .chev { display: none !important; }
  body { background: #fff; color: #000; }
  .part[hidden] { display: block; }
}
