/* Site vitrine — esprit Apple (neutres froids, surfaces sans filets, translucidité),
   idée du site inchangée : une session de montage (timecode, timeline, tête de lecture, pause écoute) */
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --fond: #f5f5f7;
  --fond-2: #e8e8ed;
  --carte: #ffffff;
  --texte: #1d1d1f;
  --texte-2: #515154;
  --texte-3: #6e6e73;
  --trait: rgba(0, 0, 0, .09);
  --trait-fort: #c7c7cc;
  --accent: #e0202b;        /* rouge « tête de lecture » */
  --accent-texte: #c4121f;
  --accent-doux: #fdeaeb;
  --succes: #248a3d;
  --erreur: #b3261e;
  --accent-fond: #e0202b;   /* aplat rouge sous texte blanc */
  --remplir: rgba(0, 0, 0, .05);
  --remplir-2: rgba(0, 0, 0, .09);
  --bouton-survol: #000;
  --sur-texte: #fff;
  --barre-fond: rgba(245, 245, 247, .72);
  --clip-survol: #dcdce1;
  --grille: rgba(0, 0, 0, .045);
  --onde-pale: #d2d2d7;
  --segment: #ffffff;
  /* couleurs de piste : pâle = fond du clip, vif = forme d'onde, plein = clip choisi (texte blanc) */
  --bleu-p: #dbe6fa; --bleu-v: #4475d0; --bleu-f: #2c5cb8;
  --ambre-p: #fbe8c8; --ambre-v: #d08a15; --ambre-f: #935c05;
  --vert-p: #d3efe4; --vert-v: #2b977a; --vert-f: #1b7158;
  --violet-p: #eae1f8; --violet-v: #8d66cc; --violet-f: #7044b5;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --largeur: 1120px;
  --gouttiere: clamp(16px, 4vw, 40px);
  --piste-h: 2.9rem;
  --rayon: 8px;    /* cartes */
  --rayon-c: 6px;  /* commandes */
  --ressort: cubic-bezier(.32, .72, 0, 1);
  --ombre: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .04);
}

*, *::before, *::after { box-sizing: border-box; }
.t-bleu { --pale: var(--bleu-p); --vif: var(--bleu-v); --plein: var(--bleu-f); }
.t-ambre { --pale: var(--ambre-p); --vif: var(--ambre-v); --plein: var(--ambre-f); }
.t-vert { --pale: var(--vert-p); --vif: var(--vert-v); --plein: var(--vert-f); }
.t-violet { --pale: var(--violet-p); --vif: var(--violet-v); --plein: var(--violet-f); }
html { color-scheme: light dark; scroll-behavior: smooth; scroll-padding-top: 20px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 400 1.0625rem/1.53 var(--sans); letter-spacing: 0; font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--trait-fort); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.07; letter-spacing: -0.028em; margin-bottom: 1.2rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.petit { font-size: 0.82rem; letter-spacing: 0.005em; color: var(--texte-3); font-weight: 500; }
.mono.petit { font-family: var(--sans); font-variant-numeric: tabular-nums; }
h3.petit { font-family: var(--sans); font-weight: 600; margin-bottom: 0.8rem; }
mark.ar { background: var(--accent-doux); color: var(--accent-texte); font: 600 0.75rem/1 var(--sans); letter-spacing: 0.01em; padding: 0.3em 0.6em; border-radius: 3px; vertical-align: 0.2em; white-space: nowrap; }

.saut { position: absolute; left: -999px; top: 8px; background: var(--texte); color: var(--fond); padding: 8px 12px; z-index: 100; }
.saut:focus { left: 8px; }

/* ---------- barre du haut ---------- */
.barre { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px; min-height: 52px; padding: 6px var(--gouttiere); background: var(--barre-fond); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); box-shadow: 0 1px 0 transparent; transition: box-shadow .3s; }
.barre.defile { box-shadow: 0 1px 0 var(--trait); }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.marque-mono { display: none; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a { display: block; padding: 8px 12px; text-decoration: none; font-size: 0.84rem; letter-spacing: 0.005em; color: var(--texte-2); transition: color .2s; }
.nav a:hover, .nav a.actif { color: var(--texte); }
.nav a.actif { font-weight: 600; }
.nav-bouton { display: none; }
.tc-lecture { font: 500 0.8rem var(--mono); color: var(--accent-texte); background: var(--remplir); padding: 7px 12px; border-radius: var(--rayon-c); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.son-bouton { display: flex; align-items: center; gap: 6px; min-height: 2.125rem; padding: 0 13px; border: 0; border-radius: var(--rayon-c); background: var(--remplir); color: var(--texte-2); font: 500 0.8rem var(--sans); letter-spacing: 0.005em; cursor: pointer; transition: background .2s, transform .3s var(--ressort); }
.son-bouton:hover { background: var(--remplir-2); }
.son-bouton[aria-pressed="true"]:hover { background: var(--bouton-survol); }
.son-bouton:active, .theme-bouton:active, .bouton:active, .filtre:active, .nav-bouton:active, .accroche-pause:active { transform: scale(.96); transition: transform .1s ease-out; }
.son-bouton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* clair / sombre : soleil en mode sombre, lune en mode clair (ce que le bouton va donner) */
.theme-bouton { display: grid; place-items: center; flex: none; width: 2.125rem; height: 2.125rem; padding: 0; border: 0; border-radius: var(--rayon-c); background: var(--remplir); color: var(--texte-2); cursor: pointer; transition: background .2s, transform .3s var(--ressort); }
.theme-bouton:hover { background: var(--remplir-2); }
.theme-bouton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-bouton .soleil, .sombre .theme-bouton .lune { display: none; }
.sombre .theme-bouton .soleil { display: block; }
.no-js .theme-bouton { display: none; }
.son-bouton .hp { fill: currentColor; stroke: none; }
.son-bouton .ondes { display: none; }
.son-bouton[aria-pressed="true"] { color: var(--sur-texte); background: var(--texte); }
.son-bouton[aria-pressed="true"] .ondes { display: block; }
.son-bouton[aria-pressed="true"] .barre-off { display: none; }

/* ---------- mise en page ---------- */
main { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }
.section { padding: clamp(72px, 10vw, 128px) 0 0; }
/* le titre de section dit déjà le nom : l'étiquette ne garde que le timecode */
.section > .etiquette .etiquette-nom { display: none; }
.etiquette { display: flex; align-items: baseline; gap: 10px; margin: 0 0 .7rem; font: 600 0.95rem var(--sans); color: var(--texte-3); }
.etiquette .tc { font: 500 0.86rem var(--mono); color: var(--accent-texte); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.grille-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.intro-section { color: var(--texte-2); max-width: 46ch; font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.42; margin-bottom: 1.8rem; }

/* ---------- accueil ---------- */
.hero { padding-top: clamp(48px, 9vw, 110px); }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 5.6rem); font-weight: 700; letter-spacing: -0.042em; line-height: 1.02; max-width: 15ch; margin-bottom: 1.6rem; }
.lecteur-ecran { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.accroche-pile { position: relative; display: grid; }
.hero h1.accroche { max-width: none; }
.accroche-item { grid-area: 1 / 1; align-self: end; max-width: 15.5ch; visibility: hidden; }
.accroche-item.actif { visibility: visible; }
.no-js .accroche-item:not(:first-child) { display: none; }
.accroche-item.entre { animation: devoile 1s cubic-bezier(.6, 0, .2, 1) .3s both; }
.accroche-item.sort { visibility: visible; animation: efface .3s ease-in both; }
.accroche-tete { position: absolute; top: 0; height: 100%; left: 0; width: 3px; background: var(--accent); opacity: 0; pointer-events: none; --course: 100vw; }
.accroche-tete.passe { animation: balaye 1s cubic-bezier(.6, 0, .2, 1) .3s both; }
@keyframes devoile { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes efface { to { opacity: 0; } }
@keyframes balaye { 0% { transform: none; opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(var(--course)); opacity: 0; } }
.hero > .etiquette { align-items: center; }
.accroche-pause { display: grid; place-items: center; width: 44px; height: 44px; margin: -12px 0 -12px -6px; padding: 0; border: 0; border-radius: var(--rayon-c); background: none; color: var(--texte-3); cursor: pointer; transition: color .2s, transform .35s var(--ressort); }
.accroche-pause:hover { color: var(--texte); }
.accroche-pause svg { width: 18px; height: 18px; fill: currentColor; }
.accroche-pause .i-lire, .accroche-pause[aria-pressed="true"] .i-pause, .no-js .accroche-pause { display: none; }
.accroche-pause[aria-pressed="true"] .i-lire { display: block; }
.hero-metier { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.3; letter-spacing: -0.01em; color: var(--texte-3); margin-bottom: 0.8rem; }
.hero-metier strong { color: var(--texte); font-weight: 600; }
.hero-metier .sep { color: var(--trait-fort); }
.hero-intro { max-width: 54ch; color: var(--texte-2); font-size: 1.12rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 2rem 0 0; }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: var(--rayon-c); border: 0; background: var(--texte); color: var(--sur-texte); font: 500 1rem var(--sans); text-decoration: none; cursor: pointer; transition: transform .35s var(--ressort), background .25s; }
.bouton:hover { background: var(--bouton-survol); }
.bouton.secondaire { background: var(--remplir-2); color: var(--texte); }
.bouton.secondaire:hover { background: var(--fond-2); }
.bouton[disabled] { opacity: .55; cursor: progress; }

.onde-hero { position: relative; margin: clamp(48px, 8vw, 88px) 0 0; height: clamp(80px, 12vw, 140px); }
.onde { position: absolute; inset: 0; width: 100%; height: 100%; }
.onde path { fill: var(--vif); transform-origin: center; }
/* trois régions, coupées là où l'onde est au plus bas, comme un montage */
.onde-1 { clip-path: inset(0 68.75% 0 0); }
.onde-2 { clip-path: inset(0 37.5% 0 31.25%); }
.onde-3 { clip-path: inset(0 0 0 62.5%); }
.region { position: absolute; top: 0; bottom: 0; background: var(--pale); border-radius: 3px; }
.region b { position: absolute; left: 10px; top: 6px; font: 600 .75rem/1.3 var(--sans); color: var(--texte); }
.region-1 { left: 0; width: calc(31.25% - 1.5px); }
.region-2 { left: calc(31.25% + 1.5px); width: calc(31.25% - 3px); }
.region-3 { left: calc(62.5% + 1.5px); right: 0; }
.onde-hero.pulse .onde path { animation: pulse .35s ease-out; }
.tete-lecture { position: absolute; top: -6px; bottom: -6px; left: 0; width: 2px; background: var(--accent); }
.tete-lecture::before { content: ""; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top: 8px solid var(--accent); }
@keyframes pulse { 40% { transform: scaleY(1.12); } }

.bouton .icone { width: 16px; height: 16px; fill: currentColor; }

/* ---------- pause écoute : bandeau sombre + lecteur compact ---------- */
.pause-ecoute { --pause-fond: color-mix(in srgb, #45454a 80%, var(--plein)); --pause-carte: rgba(255, 255, 255, .09); --pause-trait: rgba(255, 255, 255, .16); --pause-texte: #f5f5f7; --pause-texte-2: #dedee3; --accent: #ff6b63;
  width: 100vw; margin: clamp(64px, 10vw, 120px) 0 0 calc(50% - 50vw); padding: 30px var(--gouttiere) 34px; background: var(--pause-fond); color: var(--pause-texte); }
/* teinte du bandeau : plus clair = valeurs plus hautes */
.pause-interieur { max-width: calc(var(--largeur) - 2 * var(--gouttiere)); margin: 0 auto; }
.etiquette-pause { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 600 .9rem var(--sans); color: var(--pause-texte); }
.etiquette-pause svg { width: 14px; height: 14px; fill: var(--accent); }
.extraits { display: grid; gap: 10px; }
.extrait-relais { margin: 12px 0 0; display: flex; justify-content: flex-end; }
.extrait-suivant { min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--rayon-c); background: var(--pause-carte); color: var(--pause-texte); font: 500 .88rem var(--sans); cursor: pointer; transition: background .2s, transform .3s var(--ressort); }
.extrait-suivant:hover { background: var(--pause-trait); }
.extrait-suivant:active { transform: scale(.96); transition: transform .1s ease-out; }
.extrait.arrive { animation: extrait-arrive .45s ease-out; }
@keyframes extrait-arrive { from { opacity: 0; } to { opacity: 1; } }
.sr-annonce { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.extrait { display: grid; grid-template-columns: 44px minmax(150px, 270px) 1fr auto; gap: 16px; align-items: center; padding: 12px 20px 12px 12px; background: var(--pause-carte); border-radius: var(--rayon); transition: background .3s; }
.extrait.en-lecture { background: rgba(255, 255, 255, .15); }
.extrait-lecture { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--pause-texte); color: #1d1d1f; cursor: pointer; transition: background .15s, transform .35s var(--ressort); }
.extrait-lecture:hover, .en-lecture .extrait-lecture { background: #fff; color: #1d1d1f; }
.extrait-lecture:active { transform: scale(.95); transition: transform .1s ease-out; }
.extrait-lecture svg { width: 18px; height: 18px; fill: currentColor; }
.extrait-lecture .i-pause, .en-lecture .extrait-lecture .i-lire { display: none; }
.en-lecture .extrait-lecture .i-pause { display: block; }
.chargement .extrait-lecture { animation: clignote 1s ease-in-out infinite; }
@keyframes clignote { 50% { opacity: .5; } }
.extrait-titres { min-width: 0; }
.extrait-meta { margin: 0; color: var(--pause-texte-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .78rem; letter-spacing: 0.005em; }
.extrait-piste { color: var(--pause-texte); font-weight: 600; }
.extrait-meta::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 2px; background: var(--son); }
.extrait.t-bleu { --son: #7fa9f5; } .extrait.t-ambre { --son: #f0b54a; } .extrait.t-vert { --son: #5fd0ab; }
.extrait h3 { margin: 1px 0 0; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.extrait mark.ar { background: rgba(255, 255, 255, .14); color: #f5f5f7; }
.extrait-onde { position: relative; height: 44px; overflow: clip; overflow-clip-margin: 4px; cursor: pointer; touch-action: pan-y; -webkit-user-select: none; user-select: none; --progres: 0%; --survol: -10%; }
.extrait-onde svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.onde-fond { fill: rgba(255, 255, 255, .32); }
.onde-lue { fill: var(--son); clip-path: inset(0 calc(100% - var(--progres)) 0 0); }
.extrait-tete { position: absolute; top: -3px; bottom: -3px; left: 0; width: 100%; pointer-events: none; border-left: 2px solid var(--pause-texte); margin-left: -1px; transform: translateX(var(--progres)); opacity: 0; transition: opacity .2s; }
.en-lecture .extrait-tete, .extrait-onde:hover .extrait-tete { opacity: 1; }
.extrait-onde::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 100%; border-left: 1px solid var(--pause-texte-2); transform: translateX(var(--survol)); opacity: 0; pointer-events: none; }
.extrait-onde:hover::after { opacity: .6; }
.extrait-bas { display: grid; grid-template-columns: auto auto; gap: 5px 14px; justify-items: end; align-items: center; }
.extrait-bas .tc-extrait { grid-column: 1 / -1; }
.extrait-texte { grid-column: 2 / -1; margin: -4px 0 2px; font-size: .9rem; line-height: 1.45; color: var(--pause-texte-2); max-width: 70ch; }
.extrait-lien { color: var(--pause-texte); font-weight: 500; text-decoration-color: var(--pause-trait); white-space: nowrap; }
.extrait-lien:hover { text-decoration-color: currentColor; }
.volume { display: flex; align-items: center; gap: 6px; color: var(--pause-texte-2); }
.volume svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.volume-curseur { --niveau: 100%; width: 72px; height: 24px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.volume-curseur::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, var(--pause-texte) var(--niveau), var(--pause-trait) var(--niveau)); }
.volume-curseur::-moz-range-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, var(--pause-texte) var(--niveau), var(--pause-trait) var(--niveau)); }
.volume-curseur::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; margin-top: -5px; border-radius: 50%; background: var(--pause-texte); border: 0; }
.volume-curseur::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: var(--pause-texte); border: 0; }
.tc-extrait { font-size: .78rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tc-courant { color: var(--pause-texte); font-weight: 600; }
.tc-total { color: var(--pause-texte-2); }
.vumetre { display: grid; gap: 3px; width: 96px; }
.vu-canal { display: flex; align-items: center; gap: 5px; }
.vu-canal b { font: 600 .75rem/1 var(--sans); color: var(--pause-texte-2); width: .7rem; }
.vu-piste { flex: 1; height: 3px; border-radius: 2px; background: var(--pause-trait); overflow: hidden; }
.vu-piste i { display: block; height: 100%; background: linear-gradient(90deg, #40c057 0 70%, #fab005 70% 88%, #fa5252 88%); clip-path: inset(0 100% 0 0); }
.extrait-audio { grid-column: 1 / -1; width: 100%; }
.indisponible .extrait-lecture { opacity: .4; pointer-events: none; }
.indisponible .tc-extrait::after { content: " · indisponible"; color: #fa5252; }
.pause-ecoute :focus-visible { outline-color: #fff; }

/* ---------- à propos ---------- */
.fiche-info { background: var(--carte); border-radius: var(--rayon); padding: 28px; }
.faits { display: grid; gap: 18px; margin: 0 0 22px; }
.faits div { display: flex; flex-direction: column-reverse; }
.faits dt { color: var(--texte-2); font-size: 0.9rem; }
.faits dd { margin: 0; font: 600 2rem/1.15 var(--sans); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.statut { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--trait); display: grid; gap: 8px; font-size: 0.95rem; }
.voyant { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--succes); margin-right: 8px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--succes) 18%, transparent); }

/* ---------- compétences ---------- */
.savoir-faire { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.savoir-faire li { padding: 24px; background: var(--carte); border-radius: var(--rayon); }
.savoir-faire .num { display: none; }
.mini-onde { width: 100%; height: 36px; margin-bottom: 18px; border-radius: 3px; background: var(--pale); }
.mini-onde path { fill: var(--vif); }
.savoir-faire h3 { margin-bottom: 8px; }
.savoir-faire p { color: var(--texte-2); font-size: 0.95rem; margin: 0; }
.pastilles-bloc + .pastilles-bloc { margin-top: 24px; }
.pastilles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pastilles li { padding: 8px 15px; border-radius: var(--rayon-c); background: var(--carte); font: 500 0.92rem var(--sans); }

/* ---------- crédits : timeline ---------- */
.filtres { display: flex; gap: 2px; width: fit-content; max-width: 100%; margin: 0 0 18px; padding: 3px; border-radius: var(--rayon-c); background: var(--fond-2); overflow-x: auto; scrollbar-width: none; }
.filtre { flex: none; min-height: 2.125rem; padding: 0 16px; border-radius: 4px; border: 0; background: transparent; color: var(--texte-2); font: 500 0.86rem var(--sans); letter-spacing: 0.005em; cursor: pointer; transition: background .25s, transform .35s var(--ressort); }
.filtres::-webkit-scrollbar { display: none; }
.filtre:hover { color: var(--texte); }
.filtre[aria-pressed="true"] { background: var(--segment); color: var(--texte); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

.timeline { position: relative; background: var(--carte); border-radius: var(--rayon); overflow: auto hidden; overscroll-behavior-x: contain; scrollbar-width: thin; }
.timeline-aide { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin: 0 0 8px; }
.tl-boutons { display: flex; gap: 8px; }
.no-js .tl-boutons { display: none; }
.tl-nav { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--rayon-c); background: var(--remplir); color: var(--texte); cursor: pointer; transition: background .2s, opacity .2s, transform .35s var(--ressort); }
.tl-nav:hover { background: var(--remplir-2); }
.tl-nav:active { transform: scale(.94); transition: transform .1s ease-out; }
.tl-nav[disabled] { opacity: .35; cursor: default; }
.tl-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.timeline.saisie, .timeline.saisie * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.timeline.saisie .tete-timeline { opacity: 0 !important; }
.regle, .piste { display: grid; grid-template-columns: 9.4rem 1fr; min-width: 190rem; }
/* noms de pistes fixes à gauche pendant le défilement */
.regle::before { content: ""; position: sticky; left: 0; z-index: 2; grid-column: 1; grid-row: 1; background: var(--carte); box-shadow: 1px 0 0 var(--trait); }
.regle-zone { grid-row: 1; }
.regle { height: 2.125rem; border-bottom: 1px solid var(--trait); background: var(--carte); }
.regle-zone { position: relative; grid-column: 2; margin-right: 16px; }
.regle-zone span { position: absolute; top: 0; bottom: 0; padding-left: 6px; border-left: 1px solid transparent; font: 500 0.75rem/2.125rem var(--sans); letter-spacing: 0.005em; font-variant-numeric: tabular-nums; color: var(--texte-3); }
.piste + .piste { border-top: 1px solid var(--trait); }
.piste-nom { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 18px; background: var(--carte); position: sticky; left: 0; z-index: 2; box-shadow: 1px 0 0 var(--trait); }
.piste-nom .mono { font: 600 0.84rem var(--sans); }
.piste-libelle { font-size: 0.75rem; color: var(--texte-3); line-height: 1.2; }
.piste-zone { position: relative; height: calc(var(--rangs-l) * var(--piste-h) + 12px); margin-right: 16px; }
.ligne-annee { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--grille); }
.clip { position: absolute; left: var(--xl); width: var(--ll); top: calc(7px + var(--rl) * var(--piste-h)); height: calc(var(--piste-h) - 5px); padding: 0; overflow: hidden; border: 0; border-radius: 3px; background: var(--fond-2); color: var(--texte); cursor: pointer; text-align: left; transition: background .2s, opacity .25s, transform .35s var(--ressort); }
.clip-titre { position: absolute; left: 0; right: 0; top: 0; padding: 3px 8px 0; font: 600 0.75rem/1.3 var(--sans); letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip-onde { position: absolute; left: 0; right: 0; bottom: 0; height: 44%; width: 100%; }
.clip-onde path { fill: var(--texte-3); opacity: .55; }
.clip:hover { background: var(--clip-survol); }
.clip.actif { background: var(--accent-fond); }
.clip.actif .clip-titre { color: #fff; }
.clip.actif .clip-onde path { fill: #fff; opacity: .75; }
.tous-projets { margin-top: 14px; background: var(--carte); border-radius: var(--rayon); padding: 0 24px; }
.tous-projets summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; cursor: pointer; font-weight: 600; list-style: none; }
.tous-projets summary::-webkit-details-marker { display: none; }
.tous-projets summary::after { content: ""; width: 9px; height: 9px; margin-right: 4px; border: solid var(--texte-3); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .35s var(--ressort); }
.tous-projets[open] summary::after { transform: translateY(2px) rotate(225deg); }
.tous-colonnes { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding: 6px 0 24px; }
.tous-colonnes ul { list-style: none; margin: 0; padding: 0; }
.ligne-projet { display: flex; justify-content: space-between; gap: 12px; width: 100%; min-height: 38px; padding: 7px 0; border: 0; border-bottom: 1px solid var(--trait); background: none; color: inherit; font: 400 .92rem/1.35 var(--sans); text-align: left; cursor: pointer; }
.ligne-projet:hover { color: var(--accent-texte); }
.ligne-projet .mono { font: 400 .86rem var(--sans); font-variant-numeric: tabular-nums; color: var(--texte-3); }
.credits-note { margin: 14px 0 0; color: var(--texte-2); font-size: .95rem; }
.clip:active { transform: scale(.96); transition: transform .1s ease-out; }
.clip.estompe { opacity: .22; }
.tete-timeline { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--accent); pointer-events: none; opacity: 0; transition: opacity .2s; }
.timeline:hover .tete-timeline { opacity: .7; }

.fiche-projet { margin-top: 14px; padding: 28px; background: var(--carte); border-radius: var(--rayon); min-height: 160px; }
.fiche-projet h3 { font-size: 1.7rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.fiche-projet:has(.carte-image) { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: center; padding: 16px 28px 16px 16px; }
.carte-image { margin: 0; min-width: 0; }
.carte-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; background: var(--fond-2); }
.carte-image figcaption { margin-top: 6px; font-size: .75rem; line-height: 1.35; color: var(--texte-3); }
.carte-projet .carte-image { margin: -18px -18px 14px; }
.carte-projet .carte-image img { border-radius: var(--rayon) var(--rayon) 0 0; aspect-ratio: 2 / 1; }
.carte-projet .carte-image figcaption { padding: 0 18px; }
.carte-meta { color: var(--texte-2); font-size: 0.95rem; margin-bottom: .4em; }
.carte-liens { display: flex; flex-wrap: wrap; gap: 0 18px; }
.carte-liens a { display: inline-flex; align-items: center; min-height: 44px; }
.carte-role { font-weight: 600; margin-bottom: .4em; }

.credits-liste { display: none; gap: 12px; margin-top: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.no-js .credits-liste { display: grid; }
.carte-projet { padding: 18px; border-radius: var(--rayon); background: var(--carte); overflow: hidden; }
.carte-projet h3 { margin-bottom: 4px; }
.carte-projet p:last-child { margin: 0; color: var(--texte-2); font-size: .92rem; }
.carte-projet[hidden] { display: none; }

/* ---------- parcours ---------- */
.frise { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 1px solid var(--trait-fort); }
.frise li { position: relative; padding: 0 0 26px; }
.frise li::before { content: ""; position: absolute; left: -27px; top: 6px; width: 9px; height: 9px; border-radius: 2px; background: var(--fond); border: 1.5px solid var(--texte-3); }
.frise li:first-child::before { background: var(--accent); border-color: var(--accent); }
.frise h4 { font-size: 1.05rem; margin: 2px 0 2px; }
.frise p { margin-bottom: .3em; }
.frise .mono.petit { margin: 0; }

/* ---------- boutique ---------- */
.produits { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.produits li { padding: 24px; border-radius: var(--rayon); background: var(--carte); }

/* ---------- contact ---------- */
.liens-contact { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; font-size: 1.05rem; }
.formulaire { background: var(--carte); border-radius: var(--rayon); padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
.champ { display: grid; gap: 6px; }
.champ label { font-size: 0.88rem; font-weight: 600; }
.facultatif { font-weight: 400; color: var(--texte-3); }
.champ input, .champ select, .champ textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid transparent; border-radius: 5px; background: var(--fond); color: var(--texte); font: 400 1rem var(--sans); }
.champ textarea { resize: vertical; min-height: 140px; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--texte); outline-offset: -1px; background: var(--carte); }
.champ.invalide input, .champ.invalide textarea { border-color: var(--erreur); }
.champ-erreur { margin: 0; font-size: .85rem; color: var(--erreur); }
.champ-erreur:empty { display: none; }
.piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note-rgpd { font-size: 0.8rem; color: var(--texte-3); margin: 0; }
.etat-envoi { margin: 0; min-height: 1.5em; font-size: 0.95rem; font-weight: 500; }
.etat-envoi.succes { color: var(--succes); }
.etat-envoi.erreur { color: var(--erreur); }

/* ---------- pied ---------- */
.pied { max-width: var(--largeur); margin: clamp(72px, 10vw, 120px) auto 0; padding: 0 var(--gouttiere) 32px; }
.onde-pied { width: 100%; height: 40px; }
.onde-pied path { fill: var(--onde-pale); }
.pied-ligne { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 18px; font-size: 0.85rem; color: var(--texte-3); }
.pied-ligne .mono { font-family: var(--sans); }

/* ---------- pages texte ---------- */
.page-texte { max-width: 760px; padding-top: 64px; }
.page-texte h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 1.5rem; }
.page-texte h2 { font-size: 1.25rem; margin: 2rem 0 .6rem; }

@media (max-width: 1100px) {
  .tete-timeline { display: none; }
}

@media (max-width: 1023px) {
  .son-texte { display: none; }
}

/* ---------- tablettes ---------- */
@media (max-width: 960px) {
  .savoir-faire { grid-template-columns: repeat(2, 1fr); }
  .nav a { padding: 8px 8px; }
  .marque-nom { white-space: nowrap; }
  .son-texte { display: none; }
  /* tablettes : logo AF + timecode à la place du nom, pour garder le compteur */
  .marque-mono { display: grid; place-items: center; font-weight: 600; font-size: .9rem; border-radius: var(--rayon-c); width: 40px; height: 40px; background: var(--texte); color: var(--sur-texte); }
  .marque-nom { display: none; }
  .tc-lecture { order: -1; }
  .marque { order: -2; }
}

/* ---------- téléphones ---------- */
@media (max-width: 760px) {
  body { font-size: 1rem; --piste-h: max(49px, 3.1rem); }
  .barre { gap: 8px; }
  .marque { min-height: 44px; }
  .marque-mono { display: grid; place-items: center; font-weight: 600; font-size: .9rem; border: 0; border-radius: var(--rayon-c); width: 40px; height: 40px; background: var(--texte); color: var(--sur-texte); font-family: var(--sans); }
  .marque-nom { display: none; }
  /* timecode collé au logo, comme dans un logiciel de montage ; les boutons à droite */
  .tc-lecture { display: block; order: 1; margin-right: auto; }
  .theme-bouton, .son-bouton { order: 2; }
  .nav { order: 3; margin-left: 0; }
  .son-bouton, .theme-bouton { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .filtre { min-height: 44px; }
  .liens-contact { gap: 0; }
  .liens-contact a, .pied-ligne a { display: inline-flex; align-items: center; min-height: 44px; }
  .nav-bouton { display: block; height: 44px; padding: 0 16px; border: 0; border-radius: var(--rayon-c); background: var(--remplir); font: 500 0.92rem var(--sans); color: var(--texte); cursor: pointer; }
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; padding: 8px var(--gouttiere) 20px; background: var(--fond); box-shadow: 0 1px 0 var(--trait); }
  .nav.ouvert ul { display: flex; }
  .nav a { padding: 12px 4px; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.012em; color: var(--texte); }
  .no-js .nav-bouton { display: none; }
  .no-js .nav ul { display: flex; position: static; flex-direction: row; flex-wrap: wrap; padding: 0; border: 0; background: none; }
  .no-js .nav a { padding: 4px 6px; font-size: .85rem; }
  .grille-2 { grid-template-columns: 1fr; }
  .savoir-faire { grid-template-columns: 1fr; gap: 10px; }
  /* timeline gardée sur téléphone : défilement horizontal, noms de pistes fixes à gauche */
  .tl-boutons { display: none; }
  .timeline-aide { min-height: 0; }
  .clip { left: var(--x); width: var(--l); top: calc(6px + var(--rang) * var(--piste-h)); }
  .piste-zone { height: calc(var(--rangs) * var(--piste-h) + 12px); }
  .regle, .piste { grid-template-columns: 3.9rem 1fr; min-width: 91.5rem; }
  .piste-nom { padding: 6px 8px 6px 12px; }
  .piste-nom .mono { font-size: .75rem; }
  .piste-libelle { display: none; }
  .tete-timeline { display: none; }
  .tous-colonnes { grid-template-columns: 1fr; }
  .fiche-projet { padding: 20px; min-height: 0; }
  .tous-projets { padding: 0 20px; }
  .ligne-projet { min-height: 44px; }
  .fiche-projet h3 { font-size: 1.25rem; }
  .fiche-projet:has(.carte-image) { grid-template-columns: 1fr; gap: 14px; padding: 0 0 16px; overflow: hidden; }
  .fiche-projet .carte-image img { aspect-ratio: 21 / 9; border-radius: var(--rayon) var(--rayon) 0 0; }
  .fiche-projet .carte-image figcaption { padding: 0 20px; }
  .fiche-projet .carte-texte { padding: 0 20px 6px; }
  .extrait { grid-template-columns: 44px 1fr; gap: 8px 12px; }
  .extrait-onde { grid-column: 1 / -1; }
  .extrait-bas { grid-column: 1 / -1; grid-template-columns: 1fr auto; justify-content: space-between; align-items: center; }
  .extrait-bas .tc-extrait { grid-column: 1; grid-row: 1; justify-self: start; }
  .extrait-bas .volume { grid-column: 1; grid-row: 2; justify-self: start; }
  .extrait-bas .vumetre { grid-column: 2; grid-row: 1 / 3; }
  .extrait-texte { grid-column: 1 / -1; margin: 0; }
  .volume-curseur { width: 120px; }
  .vumetre { width: 90px; }
  .no-js .credits-liste { grid-template-columns: 1fr; }
  .hero-metier { flex-direction: column; }
  .hero h1 { max-width: none; }
  .hero-metier .sep { display: none; }
}

/* petits téléphones : tout reste dans la barre, en plus compact (le timecode ne disparaît jamais) */
@media (max-width: 400px) {
  .barre { gap: 6px; }
  .tc-lecture { font-size: .74rem; padding: 6px 8px; }
  .nav-bouton { padding: 0 12px; }
}
@media (max-width: 359px) {
  .barre { gap: 4px; padding-left: 12px; padding-right: 12px; }
  .tc-lecture { font-size: .68rem; padding: 6px 6px; }
  .marque-mono { width: 38px; height: 38px; }
  .son-bouton, .theme-bouton { width: 40px; height: 44px; }
  .nav-bouton { padding: 0 10px; font-size: .86rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* pas de déplacement ni de rebond ; les fondus de couleur et d'opacité restent */
  *, *::before, *::after { animation: none !important; transition-property: opacity, color, background-color, fill, box-shadow !important; transition-duration: .2s !important; }
  .bouton:active, .son-bouton:active, .theme-bouton:active, .filtre:active, .nav-bouton:active, .clip:active, .extrait-lecture:active { transform: none; }
  .accroche-pause { display: none; }
}

/* réglages d'accessibilité du système */
@media (prefers-reduced-transparency: reduce) {
  .barre { background: var(--fond); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root:root { --texte-2: var(--texte); --texte-3: var(--texte); --trait: var(--texte); } /* :root:root : passe aussi devant sombre.css */
  .clip, .fiche-info, .fiche-projet, .formulaire, .savoir-faire li, .champ input, .champ textarea, .champ select { outline: 1px solid var(--texte-3); }
}
