/* =========================================================
   MPV — Merle Pierre Vidéo · Feuille de style
   Charte (alignée sur le logo) : fond #07070C · surfaces #11151C · texte #F2F4F8
            secondaire #9AA0B4 · bleu acier #6FA8C4 · champagne #E6D3AE
            dégradé #8CC4DE → #6FA8C4 → #E6D3AE
   Polices : Space Grotesk (titres) · Inter (texte) · JetBrains Mono (étiquettes)
   Structure : intro vidéo → application à 5 onglets (rail vertical)
   ========================================================= */

:root {
  --bg: #07070C;
  --surface: #11151C;
  --surface-2: #18202A;
  --line: #26303C;
  --text: #F2F4F8;
  --muted: #9AA0B4;
  --soft: #C4C9D6;
  --cyan: #6FA8C4;        /* accent principal : bleu acier (nom de variable conservé) */
  --violet: #8CC4DE;      /* bleu acier clair */
  --magenta: #E6D3AE;     /* accent secondaire : champagne */
  --rec: #E5484D;
  --ink: #07070C;
  --demo: #FFD166;
  --grad: linear-gradient(100deg, #8CC4DE 0%, #6FA8C4 45%, #E6D3AE 100%);

  --f-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-text: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-h1: clamp(44px, 6.4vw, 104px);
  --fs-h2: clamp(30px, 3.4vw, 48px);
  --fs-h3: clamp(18px, 1.5vw, 22px);
  --fs-body: 16px;
  --fs-label: 12px;

  --rail-w: 116px;
  --tabbar-h: 64px;
  --pad: clamp(24px, 3.2vw, 52px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-text); font-size: var(--fs-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.04; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
[hidden] { display: none !important; }

.label { font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.label--cyan { color: var(--cyan); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 11px 20px;
  font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
  text-decoration: none; color: var(--text); background: transparent; white-space: nowrap;
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  transition: box-shadow .25s, border-color .25s, background .25s, color .25s;
}
.btn:hover { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 0 24px -4px rgba(111,168,196,.5); }
.btn--primary { background: var(--cyan); color: var(--ink); border-color: var(--cyan); }
.btn--primary:hover { background: #8CC4DE; box-shadow: 0 0 32px -2px rgba(111,168,196,.7); }
.btn--ghost { border-color: rgba(242,244,248,.28); background: rgba(7,7,12,.4); }
.btn svg { width: 15px; height: 15px; flex: none; }

/* Viseur caméra (repères d'angle) */
.viewfinder { position: absolute; inset: 20px; pointer-events: none; }
.viewfinder i { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(242,244,248,.5); }
.viewfinder i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.viewfinder i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.viewfinder i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.viewfinder i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* =========================================================
   1. INTRO VIDÉO
   ========================================================= */
.intro { display: none; }
.intro-on .intro {
  display: grid; position: fixed; inset: 0; z-index: 100; isolation: isolate; overflow: hidden;
  background: var(--bg) center / cover no-repeat;
  grid-template-rows: 1fr auto;
  transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s;
}
.intro__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.intro__veil { position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 50% 50%, rgba(7,7,12,.15), rgba(7,7,12,.78)); }
.intro__center { display: grid; place-content: center; justify-items: center; text-align: center; gap: 18px; padding: 72px 16px 24px; }
.intro__logo { font-family: var(--f-display); font-weight: 700; font-size: clamp(96px, 17vw, 240px); letter-spacing: -0.06em; line-height: .86; }
.intro__logo span { color: var(--cyan); }
/* Logo de l'intro (assets/img/logo-mpv.png, fond transparent).
   Hauteur plafonnée à la taille réelle du fichier (242 px) pour rester net ;
   avec un fichier plus grand, augmente la dernière valeur du clamp. */
.intro__logo img { display: block; width: auto; height: clamp(140px, 30vh, 242px); max-width: 80vw; filter: drop-shadow(0 20px 40px rgba(0,0,0,.65)); }
.intro__name { font-family: var(--f-mono); font-size: clamp(12px, 1.2vw, 15px); letter-spacing: .42em; text-transform: uppercase; color: var(--soft); padding-left: .42em; }
.intro__enter { margin-top: 26px; min-width: 200px; min-height: 54px; font-size: 14px; letter-spacing: .2em; }
.intro__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 0 clamp(20px, 3vw, 44px) calc(34px + env(safe-area-inset-bottom, 0px));
}
.intro__ctrl {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  background: none; border: 1px solid transparent; border-radius: var(--radius); color: var(--soft); cursor: pointer;
}
.intro__ctrl:hover { color: var(--text); border-color: rgba(242,244,248,.3); }
.intro__ctrl svg { width: 16px; height: 16px; }
.intro__place { display: none; }
@media (min-width: 700px) { .intro__place { display: inline; } }

@media (prefers-reduced-motion: no-preference) {
  .intro-on .intro__logo, .intro-on .intro__name, .intro-on .intro__enter, .intro-on .intro__center > .label { animation: rise 1s var(--ease) both; }
  .intro-on .intro__center > .label { animation-delay: .15s; }
  .intro-on .intro__logo { animation-delay: .3s; }
  .intro-on .intro__name { animation-delay: .55s; }
  .intro-on .intro__enter { animation-delay: .9s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
}
.intro-leaving .intro { opacity: 0; transform: scale(1.06); filter: blur(8px); pointer-events: none; }
.intro-on .app { visibility: hidden; }
.intro-leaving .app { visibility: visible; }

/* =========================================================
   2. APPLICATION À ONGLETS
   ========================================================= */
.app { min-height: 100%; }

/* ---- Rail (ordinateur) / barre du bas (mobile) ---- */
.rail { background: var(--surface); }
.rail__logo { font-family: var(--f-display); font-weight: 700; font-size: 26px; letter-spacing: -0.05em; text-decoration: none; line-height: 1; }
.rail__logo span { color: var(--cyan); }
.tabs { position: relative; }
.tab {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 6px;
  text-decoration: none; color: var(--muted); transition: color .2s, background .2s;
}
.tab svg { width: 22px; height: 22px; }
.tab__t { font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.tab__n { font-family: var(--f-mono); font-size: 10px; color: #5E6479; font-variant-numeric: tabular-nums; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"] svg { color: var(--cyan); }
.tab[aria-selected="true"] .tab__n { color: var(--cyan); }
.rail__foot { display: none; }

/* ---- Scène ---- */
.stage { position: relative; }
.panel { position: relative; }
.p-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.p-head__t { display: grid; gap: 10px; }
.p-head h2 { font-size: var(--fs-h2); }
.p-head p.lead { color: var(--muted); max-width: 58ch; font-size: 15px; }
.p-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.p-index { font-family: var(--f-mono); font-size: 12px; color: #5E6479; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.p-index b { color: var(--text); font-weight: 500; }
.next {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  padding: 10px 0;
}
.next b { font-family: var(--f-display); font-size: 18px; letter-spacing: -0.01em; text-transform: none; color: var(--text); font-weight: 500; }
.next i { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; font-style: normal; transition: background .2s, border-color .2s, color .2s; }
.next:hover i { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.next svg { width: 14px; height: 14px; }

/* ---------- Mobile / tablette (< 900 px) ---------- */
@media (max-width: 899px) {
  .rail {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    border-top: 1px solid var(--line); background: #11121A;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .rail__logo { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); left: 16px; z-index: 61; font-size: 24px; }
  .tabs { display: grid; grid-template-columns: repeat(5, 1fr); height: var(--tabbar-h); }
  .tab__n, .rail__playhead { display: none; }
  .tab[aria-selected="true"]::before { content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 2px; background: var(--cyan); }
  .stage { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  .js .panel { display: none; }
  .js .panel.is-active { display: flex; }
  .panel { flex-direction: column; gap: 28px; padding: 72px 16px 32px; min-height: calc(100svh - var(--tabbar-h)); }
  .js .panel--home { padding-top: 0; }
}

/* ---------- Ordinateur (≥ 900 px) : aucun défilement ---------- */
@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: var(--rail-w) 1fr; height: 100vh; height: 100svh; overflow: hidden; }
  .rail { display: grid; grid-template-rows: auto 1fr auto; border-right: 1px solid var(--line); padding: 24px 0 18px; min-height: 0; }
  .rail__logo { justify-self: center; }
  .tabs { align-self: center; display: grid; gap: 4px; padding-left: 14px; }
  .tabs::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 1px; background: var(--line); }
  .tab { padding: 14px 10px; border-radius: var(--radius) 0 0 var(--radius); }
  .tab[aria-selected="true"] { background: var(--bg); }
  .rail__playhead {
    position: absolute; left: 10px; top: 0; width: 9px; height: var(--ph-h, 80px); pointer-events: none;
    transform: translateY(var(--ph-y, 0)); transition: transform .45s var(--ease), height .45s var(--ease);
  }
  .rail__playhead::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
  .rail__playhead::after { content: ""; position: absolute; left: 0; top: -4px; border: 4.5px solid transparent; border-top: 7px solid var(--cyan); }
  .rail__foot { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 0 8px; }
  .rail__foot a, .rail__foot button { font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; color: #6E7489; text-decoration: none; background: none; border: 0; padding: 2px 0; cursor: pointer; }
  .rail__foot a:hover, .rail__foot button:hover { color: var(--text); }

  .stage { min-width: 0; min-height: 0; overflow: hidden; }
  .panel {
    position: absolute; inset: 0; display: flex; flex-direction: column; gap: clamp(18px, 2.6vh, 32px);
    padding: var(--pad); overflow: hidden;
    visibility: hidden; opacity: 0; transform: translateX(24px);
    transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s linear .55s;
  }
  .panel.is-active { visibility: visible; opacity: 1; transform: none; transition: opacity .45s var(--ease) .08s, transform .55s var(--ease) .08s, visibility 0s; }
  .panel.is-leaving { transform: translateX(-24px); }
  .p-body { flex: 1; min-height: 0; }
  .p-foot { margin-top: auto; }
}
/* Écrans très bas : on autorise le défilement interne plutôt que de couper du texte */
@media (min-width: 900px) and (max-height: 660px) { .panel { overflow-y: auto; } }
@media (prefers-reduced-motion: reduce) { .panel, .panel.is-active { transition: none; transform: none; } }

/* =========================================================
   ONGLET 1 — ACCUEIL
   ========================================================= */
.panel--home { isolation: isolate; justify-content: flex-end; }
.home__media { position: absolute; inset: 0; z-index: -2; background-color: var(--bg); background-position: center; background-size: cover; background-repeat: no-repeat; overflow: hidden; }
/* Cadrage de l'animation du logo
   Ordinateur : plein cadre, décalé vers la droite pour dégager le titre (à gauche).
     → pour recentrer : right: 0; width: 100%;
     → pour décaler davantage : right: -20%; width: 120%;
   Téléphone : logo en haut de l'écran, bords fondus dans le fond noir. */
.home__video { position: absolute; top: 0; right: -12%; width: 112%; max-width: none; height: 100%; object-fit: cover; object-position: 50% 50%; }
@media (max-width: 899px) {
  .home__media { background-image: none !important; }
  .home__video {
    top: calc(52px + env(safe-area-inset-top, 0px)); right: auto; left: 50%; transform: translateX(-50%);
    width: 190%; height: auto; aspect-ratio: 16 / 9;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 70%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 70%, transparent 100%);
  }
}
.home__veil { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,7,12,.55) 0%, rgba(7,7,12,.1) 35%, rgba(7,7,12,.5) 68%, rgba(7,7,12,.95) 100%), linear-gradient(90deg, rgba(7,7,12,.7), rgba(7,7,12,0) 70%); }
.panel--home .viewfinder { z-index: -1; }
.hud { position: absolute; top: 34px; right: 48px; display: flex; gap: 18px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: rgba(242,244,248,.8); }
.hud__rec { display: inline-flex; align-items: center; gap: 8px; }
.hud__rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 10px var(--rec); animation: blink 1.2s steps(2, jump-none) infinite; }
.hud.is-paused .hud__rec::before { animation: none; background: var(--muted); box-shadow: none; }
.hud__tc { font-variant-numeric: tabular-nums; }
@keyframes blink { 50% { opacity: .2; } }
.home__content { display: grid; gap: clamp(16px, 2.4vh, 26px); max-width: 1100px; }
.home h1, .panel--home h1 { font-size: var(--fs-h1); letter-spacing: -0.035em; line-height: .98; }
.home__lead { max-width: 54ch; font-size: clamp(16px, 1.3vw, 19px); color: #D5D9E3; }
.home__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.home__meta { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 18px; border-top: 1px solid rgba(242,244,248,.14); }
.home__meta b { color: var(--text); font-weight: 500; }
.home__ctrl { position: absolute; right: 48px; bottom: 48px; }
.video-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; background: rgba(7,7,12,.55); border: 1px solid rgba(242,244,248,.25); border-radius: var(--radius); cursor: pointer; }
.video-toggle:hover { border-color: var(--cyan); }
.video-toggle svg { width: 13px; height: 13px; }
@media (prefers-reduced-motion: no-preference) {
  .glitch { position: relative; display: inline-block; }
  .glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0; }
  .glitch::before { color: var(--cyan); animation: glitch-a 6s infinite steps(1); }
  .glitch::after { color: var(--magenta); animation: glitch-b 6s infinite steps(1); }
  @keyframes glitch-a { 0%, 91%, 100% { opacity: 0; transform: none; } 92% { opacity: .85; transform: translate(-3px, 1px); clip-path: inset(10% 0 55% 0); } 94% { opacity: .85; transform: translate(2px, -1px); clip-path: inset(60% 0 8% 0); } }
  @keyframes glitch-b { 0%, 91%, 100% { opacity: 0; transform: none; } 92% { opacity: .75; transform: translate(3px, -1px); clip-path: inset(50% 0 20% 0); } 95% { opacity: .75; transform: translate(-2px, 1px); clip-path: inset(15% 0 70% 0); } }
}
@media (max-width: 899px) {
  .panel--home { min-height: calc(100svh - var(--tabbar-h)); padding-bottom: 28px; justify-content: flex-end; }
  .panel--home .viewfinder, .hud { display: none; }
  .home__ctrl { top: calc(12px + env(safe-area-inset-top, 0px)); right: 16px; bottom: auto; }
  .home__content { padding-top: 96px; }
  .panel--home .p-foot { display: none; }
}
@media (min-width: 900px) { .home__ctrl { bottom: calc(var(--pad) + 4px); right: var(--pad); } .panel--home .p-foot { margin-top: 0; } }

/* =========================================================
   ONGLET 2 — RÉALISATIONS (pagination, pas de défilement)
   ========================================================= */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 34px; padding: 5px 11px; cursor: pointer; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; transition: color .2s, border-color .2s, background .2s; }
.filter:hover { color: var(--text); border-color: var(--muted); }
.filter[aria-pressed="true"] { color: var(--ink); background: var(--cyan); border-color: var(--cyan); }
.filter sup { font-size: 9px; margin-left: 3px; }

.reel { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 18px; align-content: start; }
.tile { display: grid; grid-template-rows: auto auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 0; text-align: left; cursor: pointer; transition: border-color .25s, box-shadow .25s, transform .25s; }
.tile:hover { border-color: rgba(111,168,196,.6); box-shadow: 0 18px 40px -24px rgba(111,168,196,.45); }
@media (prefers-reduced-motion: no-preference) { .tile:hover { transform: translateY(-3px); } .reel.is-turning .tile { animation: deal .45s var(--ease) both; } .reel.is-turning .tile:nth-child(2) { animation-delay: .04s; } .reel.is-turning .tile:nth-child(3) { animation-delay: .08s; } .reel.is-turning .tile:nth-child(4) { animation-delay: .12s; } .reel.is-turning .tile:nth-child(5) { animation-delay: .16s; } .reel.is-turning .tile:nth-child(6) { animation-delay: .2s; } .reel.is-turning .tile:nth-child(n+7) { animation-delay: .24s; } }
@keyframes deal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tile__media { position: relative; aspect-ratio: 16 / 9; height: var(--thumb-h, auto); max-width: 100%; overflow: hidden; background: var(--surface-2); }
.tile__bg { position: absolute; inset: 0; background:
    radial-gradient(120% 90% at var(--px, 20%) var(--py, 10%), var(--c1, rgba(111,168,196,.35)), transparent 60%),
    radial-gradient(100% 80% at 90% 100%, var(--c2, rgba(230,211,174,.3)), transparent 60%),
    repeating-linear-gradient(0deg, rgba(242,244,248,.04) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(242,244,248,.04) 0 1px, transparent 1px 28px), var(--surface-2); }
.tile__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(18px) brightness(.5); transform: scale(1.2); }
.tile__frame { position: absolute; top: 50%; left: 50%; height: 100%; aspect-ratio: var(--ratio, 16 / 9); max-width: 100%; transform: translate(-50%, -50%); display: grid; place-items: center; overflow: hidden; }
.tile__frame.is-wide { width: 100%; aspect-ratio: auto; }
.tile__frame.is-narrow { box-shadow: 0 0 0 1px rgba(242,244,248,.18); }
.tile__frame img, .tile__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__frame video { opacity: 0; transition: opacity .3s; }
.tile.is-previewing .tile__frame video { opacity: 1; }
.tile__fmt { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 38px); font-weight: 700; color: rgba(242,244,248,.2); letter-spacing: -0.03em; }
.tile__badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 6px; }
.badge { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: 2px; background: rgba(7,7,12,.75); border: 1px solid rgba(242,244,248,.2); font-variant-numeric: tabular-nums; }
.badge--demo { color: var(--demo); border-color: rgba(255,209,102,.5); }
.tile__play { position: absolute; left: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(7,7,12,.7); border: 1px solid rgba(242,244,248,.35); transition: background .25s, border-color .25s, color .25s; }
.tile__play svg { width: 12px; height: 12px; margin-left: 2px; }
.tile:hover .tile__play { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.tile__body { padding: 12px 14px 14px; display: grid; gap: 3px; height: 86px; align-content: start; }
.tile__meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__title { font-family: var(--f-display); font-size: 16px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.tile__meta { font-size: 13px; color: var(--muted); }

.pager { display: flex; align-items: center; gap: 14px; }
.pager__btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: none; border: 1px solid var(--line); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.pager__btn:hover:not(:disabled) { background: var(--cyan); color: var(--ink); border-color: var(--cyan); }
.pager__btn:disabled { opacity: .3; cursor: default; }
.pager__btn svg { width: 14px; height: 14px; }
.pager__ticks { display: flex; gap: 4px; }
.pager__tick { width: 34px; height: 22px; padding: 0; background: none; border: 0; cursor: pointer; position: relative; }
.pager__tick::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; transform: translateY(-50%); background: var(--line); border-radius: 2px; transition: background .2s, height .2s; }
.pager__tick[aria-current="true"]::before { background: var(--grad); height: 5px; }
.pager__tick:hover::before { background: var(--muted); }
.pager__count { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 64px; }
.pager__count b { color: var(--text); font-weight: 500; }
@media (max-width: 899px) { .reel { --cols: 1 !important; } .pager { display: none; } }
@media (min-width: 560px) and (max-width: 899px) { .reel { --cols: 2 !important; } }

/* Lecteur */
.player { width: min(1100px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--text); overflow: auto; }
.player::backdrop { background: rgba(3,3,6,.88); backdrop-filter: blur(6px); }
.player__frame { position: relative; aspect-ratio: var(--ratio, 16 / 9); max-width: 100%; max-height: 72svh; margin-inline: auto; background: #000; }
.player__frame iframe, .player__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__info { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; padding: 18px 22px 22px; align-items: start; }
.player__info h3 { font-size: var(--fs-h3); line-height: 1.2; }
.player__info p { color: var(--muted); font-size: 15px; grid-column: 1 / -1; max-width: 72ch; }
.player__close { background: none; border: 1px solid var(--line); width: 44px; height: 44px; border-radius: var(--radius); cursor: pointer; font-size: 22px; line-height: 1; }
.player__close:hover { border-color: var(--cyan); }

/* =========================================================
   ONGLET 3 — OFFRES
   ========================================================= */
.offers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; height: 100%; }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.4vh, 26px) 20px; display: flex; flex-direction: column; gap: clamp(10px, 1.6vh, 16px); min-height: 0; }
.offer--featured { border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan), 0 30px 60px -40px rgba(111,168,196,.6); }
.offer h3 { font-size: clamp(21px, 1.7vw, 25px); line-height: 1.1; }
.offer__desc { color: var(--muted); font-size: 14.5px; }
.offer__price { display: grid; gap: 0; padding-block: clamp(8px, 1.4vh, 14px); border-block: 1px solid var(--line); }
.offer__price small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.offer__price strong { color: var(--magenta); font-family: var(--f-display); font-size: clamp(28px, 2.4vw, 34px); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.offer ul { display: grid; gap: 8px; font-size: 14.5px; align-content: start; flex: 1; }
.offer li { display: grid; grid-template-columns: 14px 1fr; gap: 9px; line-height: 1.4; }
.offer li::before { content: ""; width: 8px; height: 8px; margin-top: 6px; border: 1px solid var(--cyan); transform: rotate(45deg); }
.offers__note { font-size: 13px; color: var(--muted); }
@media (min-width: 900px) and (max-height: 840px) {
  .offer { padding: 16px 16px; gap: 9px; }
  .offer__desc { display: none; }
  .offer ul { gap: 5px; font-size: 13.5px; }
  .offer li::before { margin-top: 5px; }
  .offer__price { padding-block: 6px; }
  .offer .btn { min-height: 40px; padding-block: 8px; }
  .panel#offres .p-head p.lead { display: none; }
}
@media (min-width: 900px) and (max-width: 1180px) { .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); } .offer ul { display: none; } }
@media (max-width: 899px) { .offers { grid-template-columns: 1fr; } }

/* =========================================================
   ONGLET 4 — STUDIO (sous-onglets)
   ========================================================= */
.subtabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.subtab { min-height: 36px; padding: 6px 16px; border-radius: 999px; border: 0; background: none; cursor: pointer; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: background .2s, color .2s; }
.subtab:hover { color: var(--text); }
.subtab[aria-selected="true"] { background: var(--text); color: var(--bg); }
.sub { height: 100%; }
@media (prefers-reduced-motion: no-preference) { .sub:not([hidden]) { animation: deal .4s var(--ease) both; } }

/* Méthode : piste de montage */
.timeline { display: grid; grid-template-rows: auto auto 1fr; height: 100%; gap: 0; }
.ruler { display: grid; grid-template-columns: repeat(5, 1fr); font-family: var(--f-mono); font-size: 11px; color: #5E6479; font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--line); height: 30px;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 2%); background-size: 100% 8px; background-repeat: no-repeat; background-position: bottom; }
.ruler span { padding-left: 6px; border-left: 1px solid #3A3E52; }
.track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.clip { height: 56px; border-radius: 3px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--f-display); font-weight: 700; font-size: 15px; color: var(--ink); overflow: hidden; }
.clip small { font-family: var(--f-mono); font-size: 10px; font-weight: 500; opacity: .75; }
.clip:nth-child(1) { background: #8CC4DE; }
.clip:nth-child(2) { background: #6FA8C4; }
.clip:nth-child(3) { background: #4F86A6; color: var(--text); }
.clip:nth-child(4) { background: #B7AE98; }
.clip:nth-child(5) { background: #E6D3AE; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; padding-top: 22px; }
.step { display: grid; gap: 8px; align-content: start; }
.step h3 { font-size: 19px; line-height: 1.2; }
.step p { color: var(--muted); font-size: 14.5px; }

/* Atouts */
.assets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); height: 100%; }
.asset { background: var(--bg); padding: clamp(20px, 2.6vw, 36px); display: grid; gap: 12px; align-content: start; }
.asset h3 { font-size: var(--fs-h3); line-height: 1.2; }
.asset p { color: var(--muted); font-size: 15px; }
.ratios { display: flex; align-items: flex-end; gap: 12px; height: 88px; margin-bottom: 10px; }
.ratios div { border: 1px solid var(--cyan); display: grid; place-items: center; font-family: var(--f-mono); font-size: 11px; color: var(--cyan); }
.ratios .r169 { width: 116px; height: 65px; }
.ratios .r916 { width: 50px; height: 88px; border-color: var(--magenta); color: var(--magenta); }
.ratios .r11 { width: 68px; height: 68px; border-color: var(--violet); color: var(--violet); }
.iter { display: flex; gap: 6px; height: 88px; align-items: flex-end; margin-bottom: 10px; }
.iter span { flex: 1; max-width: 32px; border-radius: 2px; background: var(--surface-2); border: 1px solid var(--line); }
.iter span:last-child { background: var(--grad); border: 0; }
.nocrew { height: 88px; margin-bottom: 10px; display: flex; align-items: flex-end; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.nocrew ul { display: grid; gap: 3px; }
.nocrew s { text-decoration-color: var(--magenta); text-decoration-thickness: 2px; }
.nocrew li:last-child { color: var(--cyan); }

/* Charte */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 72px); align-items: start; height: 100%; }
.about__text { display: grid; gap: 16px; align-content: start; }
.about__text h3 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.05; }
.about__text p { color: var(--soft); max-width: 56ch; }
.charter { border: 1px solid var(--line); border-radius: var(--radius); }
.charter li { padding: clamp(12px, 1.8vh, 18px) 20px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.charter li:last-child { border-bottom: 0; }
.charter strong { font-family: var(--f-display); font-weight: 500; font-size: 17px; }
.charter span { color: var(--muted); font-size: 14.5px; }

/* FAQ : questions à gauche, réponse à droite */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); height: 100%; align-items: start; }
.faq__list { display: grid; border-top: 1px solid var(--line); }
.faq__q { display: grid; grid-template-columns: 1fr 20px; align-items: center; gap: 12px; width: 100%; text-align: left; padding: clamp(11px, 1.7vh, 16px) 0; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; font-family: var(--f-display); font-size: clamp(15px, 1.25vw, 18px); font-weight: 500; color: var(--muted); transition: color .2s; }
.faq__q::after { content: "→"; font-family: var(--f-mono); color: transparent; transition: color .2s, transform .2s; }
.faq__q:hover { color: var(--text); }
.faq__q[aria-selected="true"] { color: var(--text); }
.faq__q[aria-selected="true"]::after { color: var(--cyan); transform: translateX(4px); }
.faq__a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); display: grid; gap: 14px; }
.faq__a h3 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; }
.faq__a p { color: var(--soft); }
@media (max-width: 899px) {
  .timeline { grid-template-rows: auto; }
  .ruler, .track { display: none; }
  .steps, .assets, .about, .faq { grid-template-columns: 1fr; }
  .steps { padding-top: 0; }
  .step { border-left: 2px solid var(--cyan); padding-left: 14px; }
}

/* =========================================================
   ONGLET 5 — CONTACT
   ========================================================= */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); gap: clamp(28px, 4vw, 72px); height: 100%; align-items: center; }
.contact__side { display: grid; gap: 18px; align-content: center; }
.contact__side h2 { font-size: var(--fs-h2); }
.contact__side > p { color: var(--muted); max-width: 44ch; }
.contact__direct { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.contact__direct a { font-family: var(--f-display); font-size: 19px; text-decoration: none; }
.contact__direct a:hover { color: var(--cyan); }
.form { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.6vh, 28px) clamp(18px, 2vw, 28px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.5vh, 14px) 16px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0; }
.field input, .field select, .field textarea { width: 100%; min-height: 42px; padding: 9px 12px; font: inherit; font-size: 15px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 84px; height: clamp(84px, 13vh, 130px); resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(111,168,196,.18); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.checks label { position: relative; font-family: var(--f-mono); font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--text); }
.checks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checks span { display: inline-flex; align-items: center; min-height: 34px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--bg); }
.checks input:checked + span { border-color: var(--cyan); color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }
.checks input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.consent { grid-column: 1 / -1; display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.consent input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--cyan); }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.form__status { font-size: 13px; color: var(--cyan); }
.hp { position: absolute; left: -9999px; }
@media (max-width: 899px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* =========================================================
   PAGES LÉGALES (défilement normal)
   ========================================================= */
.legal-page { overflow-y: auto; }
.legal-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px clamp(16px, 4vw, 48px); background: rgba(7,7,12,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.legal { max-width: 1280px; margin-inline: auto; padding: 56px clamp(16px, 4vw, 48px) 96px; }
.legal article { max-width: 760px; display: grid; gap: 16px; }
.legal h1 { font-size: var(--fs-h2); margin-bottom: 12px; }
.legal h2 { font-size: 23px; margin-top: 26px; line-height: 1.2; }
.legal p, .legal li { color: var(--soft); }
.legal ul { padding-left: 20px; list-style: disc; display: grid; gap: 6px; }
.legal-foot { border-top: 1px solid var(--line); padding: 24px clamp(16px, 4vw, 48px) calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.legal-foot a { text-decoration: none; }
.legal-foot a:hover { color: var(--text); }
.todo { background: rgba(255,209,102,.12); color: var(--demo); padding: 1px 6px; border-radius: 2px; font-family: var(--f-mono); font-size: .88em; }
