@charset "UTF-8";

/* ==========================================================
   KIT DOSSIER LONG-FORMAT · longformat.css
   IPM Tools-Design · dossiers.lalibre.be/tools-design/
   Squelette d'un webdoc : accueil (couverture, intro, chapitres,
   carte, équipe) et pages chapitres (nav collante, progression,
   parallaxe, citation, audio, galerie, chapitres suivants).
   ========================================================== */

/* ---------- Polices (auto-hébergées, licence OFL) ---------- */
@font-face { font-family: "Manuale"; src: url("../fonts/Manuale-VF.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Manuale"; src: url("../fonts/Manuale-Italic-VF.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("../fonts/LibreFranklin-VF.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/OpenSans-VF.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

/* ---------- Thème : tout se règle ici ---------- */
:root {
  --lf-accent: var(--bs-primary, #ac115d);        /* couleur de marque : liens, filets, progression */
  --lf-accent-2: #f2c8a0;      /* accent chaud du dossier (titres sur image) */
  --lf-bg: #f6f3ee;            /* fond des pages */
  --lf-paper: #ffffff;         /* blocs clairs */
  --lf-ink: var(--bs-body-color, #1d1c1a);           /* texte */
  --lf-muted: #6b665e;         /* légendes, crédits */
  --lf-dark: #141312;          /* sections sombres */
  --lf-line: rgba(29, 28, 26, .14);
  --lf-font-title: var(--ipm-font-title, "Manuale", Georgia, serif);
  --lf-font-body: var(--ipm-font-base, "Libre Franklin", "Helvetica Neue", Arial, sans-serif);
  --lf-measure: 680px;         /* largeur de lecture */
  --lf-ease: cubic-bezier(.4, 0, .2, 1);
  --lf-nav-h: 64px;
}
/* Préréglage DH Les Sports+ : <body data-brand="dh"> */
[data-brand="dh"] {
  --lf-accent: #e1001a;
  --lf-accent-2: #ffffff;
  --lf-bg: #f8f9fb;
  --lf-ink: #051f3a;
  --lf-muted: #5b6b7c;
  --lf-dark: #051f3a;
  --lf-line: rgba(5, 31, 58, .14);
  --lf-font-title: "Open Sans", Helvetica, Arial, sans-serif;
  --lf-font-body: "Open Sans", Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--lf-bg); color: var(--lf-ink); font-family: var(--lf-font-body); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.lf-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--lf-ink); color: #fff; padding: 8px 14px; }
.lf-skip:focus { left: 8px; }
.lf-wrap { max-width: var(--lf-measure); margin: 0 auto; padding: 0 22px; }
.lf-wide { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.lf-kicker { font: 600 12px/1.2 var(--lf-font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--lf-accent); margin: 0 0 14px; }

/* ==========================================================
   COUVERTURE (accueil et chapitres)
   ========================================================== */
.lf-cover { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; color: #fff; overflow: hidden; isolation: isolate; }
.lf-cover__media { position: absolute; inset: 0; z-index: -2; }
.lf-cover__media img, .lf-cover__media video { width: 100%; height: 100%; object-fit: cover; }
.lf-cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.1) 40%, rgba(0,0,0,.65) 100%); }
.lf-cover__logo { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); width: 120px; }
.lf-cover__card { max-width: 760px; margin: 0 22px; padding: 34px 38px; text-align: center; background: rgba(20, 19, 18, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lf-cover .lf-kicker { color: var(--lf-accent-2); }
.lf-cover__title { font-family: var(--lf-font-title); font-weight: 800; font-size: clamp(36px, 6vw, 72px); line-height: 1.02; margin: 0 0 18px; color: var(--lf-accent-2); }
.lf-cover__by { font-size: 16px; margin: 0; }
.lf-cover__by em { font-family: var(--lf-font-title); font-weight: 600; }
.lf-cover__note { font-size: 13px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.35); opacity: .85; }
.lf-cover__credit { position: absolute; left: 22px; bottom: 18px; font-size: 11px; letter-spacing: .04em; opacity: .7; margin: 0; }
.lf-cover__cue { position: absolute; left: 50%; bottom: 22px; width: 1px; height: 54px; background: rgba(255,255,255,.6); overflow: hidden; }
.lf-cover__cue::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: lf-cue 1.8s var(--lf-ease) infinite; }
@keyframes lf-cue { to { top: 100%; } }
.lf-cover--chapter { min-height: 88vh; place-items: end start; }
.lf-cover--chapter .lf-cover__card { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; text-align: left; padding: 0 0 70px; margin: 0 auto; width: 100%; max-width: 1180px; padding-left: 22px; padding-right: 22px; }
.lf-cover--chapter .lf-cover__title { color: #fff; max-width: 16ch; }
.lf-cover--chapter .lf-kicker { color: var(--lf-accent-2); }

/* ==========================================================
   INTRO AVEC LETTRINE
   ========================================================== */
.lf-intro { padding: 90px 0 70px; }
.lf-article .lf-intro { padding-bottom: 0; }
.lf-intro--dark { background: var(--lf-dark); color: #f1ede6; }
.lf-lead { font-size: 21px; line-height: 1.6; }
.lf-lead::first-letter { float: left; font-family: var(--lf-font-title); font-weight: 800; font-size: 5.6em; line-height: .78; margin: .06em .1em 0 0; color: var(--lf-accent); }
.lf-intro--dark .lf-lead::first-letter { color: var(--lf-accent-2); }
.lf-lead strong { color: var(--lf-accent); font-weight: 600; }
.lf-intro--dark .lf-lead strong { color: var(--lf-accent-2); }

/* ==========================================================
   CHAPITRES (tranches)
   ========================================================== */
.lf-chapters { display: flex; height: 78vh; min-height: 480px; background: var(--lf-dark); }
.lf-chapter { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; color: #fff; text-decoration: none; overflow: hidden; isolation: isolate; border-right: 1px solid rgba(255,255,255,.12); transition: flex-grow .6s var(--lf-ease); }
.lf-chapter:last-child { border-right: 0; }
.lf-chapter img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.05); transition: transform .8s var(--lf-ease), filter .6s var(--lf-ease); filter: grayscale(.6) brightness(.7); }
.lf-chapter::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.75)); }
.lf-chapter__n { font-family: var(--lf-font-title); font-weight: 800; font-size: 64px; line-height: 1; color: var(--lf-accent-2); }
.lf-chapter__k { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 10px 0 6px; }
.lf-chapter__t { font-family: var(--lf-font-title); font-weight: 700; font-size: 24px; line-height: 1.15; margin: 0 0 14px; max-width: 18ch; }
.lf-chapter__go { font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity .4s var(--lf-ease), transform .4s var(--lf-ease); }
.lf-chapter:hover, .lf-chapter:focus-visible { flex-grow: 1.8; }
.lf-chapter:hover img, .lf-chapter:focus-visible img { transform: scale(1); filter: none; }
.lf-chapter:hover .lf-chapter__go, .lf-chapter:focus-visible .lf-chapter__go { opacity: 1; transform: none; }
.lf-chapter:focus-visible { outline: 3px solid var(--lf-accent-2); outline-offset: -3px; }
.lf-chapter.is-current { pointer-events: none; }
.lf-chapter.is-current .lf-chapter__go { font-size: 0; opacity: 1; transform: none; }
.lf-chapter.is-current .lf-chapter__go::after { content: "Vous lisez ce chapitre"; font-size: 13px; color: var(--lf-accent-2); }
@media (max-width: 820px) {
  .lf-chapters { flex-direction: column; height: auto; }
  .lf-chapter { min-height: 260px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .lf-chapter__go { opacity: 1; transform: none; }
}

/* ==========================================================
   NAVIGATION DES CHAPITRES (collante, avec progression)
   ========================================================== */
.lf-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--lf-nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 22px; color: #fff; background: rgba(20, 19, 18, .0); transition: background .4s var(--lf-ease), color .4s var(--lf-ease); }
.lf-nav.is-solid { background: rgba(20, 19, 18, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lf-nav__logo img { height: 22px; width: auto; }
.lf-nav__list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-size: 13px; font-weight: 600; }
.lf-nav__list a { text-decoration: none; opacity: .75; padding: 6px 0; border-bottom: 2px solid transparent; transition: opacity .2s, border-color .2s; }
.lf-nav__list a:hover { opacity: 1; }
.lf-nav__list a[aria-current="page"] { opacity: 1; border-color: var(--lf-accent-2); color: var(--lf-accent-2); }
.lf-nav__toggle { display: none; background: none; border: 0; color: inherit; font: 600 13px/1 var(--lf-font-body); cursor: pointer; padding: 8px 0; }
.lf-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--lf-accent); transform-origin: left; transform: scaleX(var(--lf-read, 0)); }
@media (max-width: 820px) {
  .lf-nav__toggle { display: block; }
  .lf-nav__list { position: absolute; top: var(--lf-nav-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 22px 18px; background: rgba(20,19,18,.96); display: none; }
  .lf-nav.is-open .lf-nav__list { display: flex; }
  .lf-nav__list a { display: block; padding: 12px 0; }
}

/* ==========================================================
   TEXTE DE CHAPITRE
   ========================================================== */
.lf-body { padding: 80px 0 30px; }
.lf-body p { margin: 0 0 1.4em; }
.lf-body h2 { font-family: var(--lf-font-title); font-weight: 800; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; margin: 1.8em 0 .7em; }
.lf-body a { color: var(--lf-accent); text-underline-offset: 3px; }
.lf-quote { margin: 2em 0; padding: 0 0 0 26px; border-left: 4px solid var(--lf-accent); }
.lf-quote p { font-family: var(--lf-font-title); font-style: italic; font-weight: 700; font-size: clamp(22px, 3vw, 30px); line-height: 1.3; margin: 0 0 .5em; }
.lf-quote cite { font-style: normal; font-size: 14px; color: var(--lf-muted); }
.lf-figure { margin: 2.2em 0; }
.lf-figure figcaption, .lf-caption { font-size: 13px; line-height: 1.5; color: var(--lf-muted); margin-top: 8px; }
.lf-figure--wide { max-width: 1180px; margin-left: auto; margin-right: auto; padding: 0 22px; }

/* ---------- Parallaxe plein écran ---------- */
.lf-parallax { position: relative; height: 90vh; min-height: 420px; overflow: hidden; display: grid; place-items: center; color: #fff; isolation: isolate; margin: 40px 0; }
.lf-parallax img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; z-index: -2; will-change: transform; }
.lf-parallax::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0,0,0,.35); }
.lf-parallax blockquote { max-width: 820px; margin: 0 22px; text-align: center; }
.lf-parallax blockquote p { font-family: var(--lf-font-title); font-weight: 800; font-size: clamp(26px, 4.4vw, 52px); line-height: 1.12; margin: 0 0 16px; }
.lf-parallax blockquote cite { font-style: normal; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }

/* ---------- Galerie ---------- */
.lf-gallery { position: relative; max-width: 1000px; margin: 50px auto; padding: 0 22px; }
.lf-gallery__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.lf-gallery__track::-webkit-scrollbar { display: none; }
.lf-gallery__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; }
.lf-gallery__slide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.lf-gallery__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.lf-gallery__count { font-size: 13px; font-weight: 600; color: var(--lf-muted); font-variant-numeric: tabular-nums; }
.lf-gallery__btns { display: flex; gap: 8px; }
.lf-gallery__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--lf-line); background: var(--lf-paper); color: var(--lf-ink); cursor: pointer; font-size: 18px; line-height: 1; transition: background .2s, color .2s, border-color .2s; }
.lf-gallery__btn:hover:not(:disabled) { background: var(--lf-accent); border-color: var(--lf-accent); color: #fff; }
.lf-gallery__btn:disabled { opacity: .35; cursor: default; }
.lf-gallery__btn:focus-visible { outline: 2px solid var(--lf-accent); outline-offset: 2px; }

/* ---------- Carte ---------- */
.lf-map { padding: 80px 0; background: var(--lf-paper); }
.lf-map h2 { font-family: var(--lf-font-title); font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; text-align: center; margin: 0 0 30px; }

/* ---------- Équipe ---------- */
.lf-team { padding: 80px 0; background: var(--lf-dark); color: #f1ede6; }
.lf-team h2 { font-family: var(--lf-font-title); font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); margin: 0 0 34px; }
.lf-team__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 30px 24px; list-style: none; margin: 0; padding: 0; }
.lf-team__grid li { border-top: 2px solid var(--lf-accent-2); padding-top: 12px; }
.lf-team__name { display: block; font-family: var(--lf-font-title); font-weight: 700; font-size: 20px; line-height: 1.2; }
.lf-team__role { display: block; font-size: 13px; opacity: .75; margin-top: 4px; }

/* ---------- Pied ---------- */
.lf-footer { padding: 40px 0 60px; background: var(--lf-dark); color: rgba(241,237,230,.75); font-size: 13px; border-top: 1px solid rgba(255,255,255,.1); }
.lf-footer .lf-wide { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.lf-footer img { height: 22px; width: auto; }

/* ---------- Son d'ambiance ---------- */
.lf-sound { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 9999px; border: 0; background: rgba(20,19,18,.75); color: #fff; font: 600 12px/1 var(--lf-font-body); cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lf-sound i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); }
.lf-sound[aria-pressed="true"] i { background: var(--lf-accent-2); box-shadow: 0 0 0 4px rgba(255,255,255,.15); }
.lf-sound:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Apparitions ---------- */
.lf-js .lf-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--lf-ease), transform .8s var(--lf-ease); }
.lf-js .lf-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .lf-lead { font-size: 19px; }
  .lf-cover__card { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lf-js .lf-reveal { opacity: 1; transform: none; transition: none; }
  .lf-cover__cue::after { animation: none; }
  .lf-chapter, .lf-chapter img { transition: none; }
}
