/* ============================================================
   Michel Vigné — Cinematic Noir Portfolio
   Implémentation CSS native du design system Stitch.
   Tokens, typographie, rayons, ombres et espacements repris
   à l'identique de DESIGN.md. Aucune dépendance (pas de Tailwind CDN).
   ============================================================ */

:root {
  /* --- Surfaces --- */
  --surface: #131316;
  --surface-dim: #131316;
  --surface-bright: #39393c;
  --surface-container-lowest: #0e0e11;
  --surface-container-low: #1b1b1e;
  --surface-container: #1f1f22;
  --surface-container-high: #2a2a2d;
  --surface-container-highest: #353438;
  --surface-canvas: #09090b;
  --surface-card: #121215;
  --surface-card-hover: #18181c;
  --surface-elevated: #202025;
  --surface-variant: #353438;

  /* --- Accents --- */
  --primary: #f4f4f5;
  --on-primary: #09090b;
  --primary-container: #e4e1e6;
  --on-primary-container: #09090b;
  --primary-fixed: #ffffff;
  --primary-fixed-dim: #d4d4d8;
  --secondary: #a1a1aa;
  --secondary-container: #71717a;
  --tertiary: #d4d4d8;
  --tertiary-container: #8a8a93;
  --error: #ffffff;
  --error-container: #3f3f46;
  --on-error-container: #f4f4f5;

  /* --- Texte & bordures --- */
  --on-surface: #e4e1e6;
  --on-surface-variant: #c9c9ce;
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --outline: #8a8a93;
  --outline-variant: #3f3f46;
  --border-subtle: #27272a;
  --border-active: #3f3f46;
  --accent-glow: rgba(255, 255, 255, 0.18);
  --accent-subtle: rgba(255, 255, 255, 0.06);

  /* --- Espacements --- */
  --space-2xs: 0.25rem;
  --space-xs: 0.375rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.25rem;
  --space-2xl: 3.5rem;
  --gutter: 1rem;
  --gutter-mobile: 0.75rem;
  --margin: 2rem;
  --margin-mobile: 1.25rem;

  /* --- Rayons --- */
  --r-sm: 0.25rem;
  --r: 0.5rem;
  --r-md: 0.75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --r-full: 9999px;

  /* --- Élévation --- */
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 10px 30px -6px rgba(0, 0, 0, 0.75);
  --glow-active: 0 0 25px -4px rgba(255, 255, 255, 0.22);

  --header-h: 4rem;
  --bottomnav-h: 4rem;
}

/* ============================================================
   Socle
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
section[id], :target { scroll-margin-top: calc(var(--header-h) + 0.75rem); }

body {
  min-height: 100vh;
  background: var(--surface);
  color: var(--on-surface);
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
  padding-top: var(--header-h);
  padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px));
}
body::selection, ::selection { background: var(--primary); color: var(--on-primary); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--primary-container); outline-offset: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--primary-container); color: var(--surface-canvas);
  padding: 0.75rem 1rem; font-weight: 700; border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; }

.ph { padding-inline: var(--margin-mobile); }
.shell { width: 100%; max-width: 680px; margin-inline: auto; }

/* ============================================================
   Typographie (échelle exacte du design)
   ============================================================ */
.headline-xl,
h1 {
  font-weight: 900; font-size: 32px; line-height: 36px; letter-spacing: -0.03em; text-transform: uppercase;
  color: var(--text-primary);
}
.headline-lg,
h2 {
  font-weight: 900; font-size: 24px; line-height: 29px; letter-spacing: -0.02em;
  color: var(--text-primary);
}
.headline-md {
  font-weight: 700; font-size: 22px; line-height: 28px; letter-spacing: -0.01em;
}
.title-md { font-size: 17px; line-height: 24px; font-weight: 700; }
.title-sm { font-size: 15px; line-height: 20px; font-weight: 700; }
.body-lg  { font-size: 16px; line-height: 26px; font-weight: 400; }
.body-md  { font-size: 14px; line-height: 22px; font-weight: 400; }
.body-sm  { font-size: 13px; line-height: 18px; font-weight: 400; }
.label-sm { font-size: 12px; line-height: 16px; font-weight: 500; }
.label-caps {
  font-size: 11px; line-height: 14px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}

.t-primary   { color: var(--text-primary); }
.t-secondary { color: var(--text-secondary); }
.t-muted     { color: var(--text-muted); }
.t-accent    { color: var(--primary); }

/* Icônes Material Symbols */
.ms {
  font-family: "Material Symbols Outlined";
  font-weight: 400; font-style: normal; line-height: 1;
  letter-spacing: normal; text-transform: none; white-space: nowrap;
  direction: ltr; -webkit-font-feature-settings: "liga"; font-variation-settings: "FILL" 0;
  -webkit-font-smoothing: antialiased; user-select: none; flex-shrink: 0;
}
.ms--fill { font-variation-settings: "FILL" 1; }

/* ============================================================
   En-tête fixe
   ============================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(19, 19, 22, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}
.header__bar {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
  padding-inline: var(--margin-mobile);
}
.header__brand { display: flex; align-items: center; gap: var(--space-sm); }
.header__brand img { height: 2.25rem; width: auto; object-fit: contain; }
.header__role {
  color: var(--text-secondary); padding-left: var(--space-sm);
  border-left: 1px solid var(--border-subtle);
}
.header__tools { display: flex; align-items: center; gap: var(--space-xs); }
.icon-btn {
  width: 2.75rem; height: 2.75rem;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--r-full);
  background: transparent; color: var(--on-surface);
  cursor: pointer; transition: color .2s ease;
}
.icon-btn:hover { color: var(--primary); }
.icon-btn .ms { font-size: 24px; }
.header__avatar {
  width: 2rem; height: 2rem; border-radius: var(--r-full);
  background: var(--primary); color: var(--on-primary);
  display: flex; align-items: center; justify-content: center;
}
.header__avatar .ms { font-size: 18px; }

/* Menu déroulant */
.menu { display: none; }
.menu--open {
  display: block;
  position: fixed; top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  left: 0; right: 0; bottom: 0; z-index: 45;
  background: rgba(9, 9, 11, 0.97);
  backdrop-filter: blur(20px);
  padding: var(--space-lg) var(--margin-mobile) var(--space-2xl);
  overflow-y: auto;
}
.menu ul { list-style: none; padding: 0; display: grid; gap: var(--space-2xs); }
.menu li a {
  display: flex; align-items: center; gap: var(--space-sm);
  padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--border-subtle);
  font-size: 17px; line-height: 24px; font-weight: 700; color: var(--text-primary);
}
.menu li a .ms { font-size: 20px; color: var(--primary); }
.no-js .header__tools .icon-btn { display: none; }

/* ============================================================
   Boutons, pastilles
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-xs);
  height: 3rem; padding-inline: var(--space-lg);
  border: 0; border-radius: var(--r-full);
  font-size: 15px; line-height: 20px; font-weight: 700; white-space: nowrap;
  cursor: pointer; box-shadow: var(--shadow-card);
  transition: transform .12s ease, background-color .2s ease, color .2s ease;
}
.btn:active { transform: scale(0.95); }
.btn .ms { font-size: 20px; }
.btn--primary { background: var(--primary-container); color: var(--on-primary-container); }
.btn--primary:hover { background: var(--primary-fixed-dim); }
.btn--ghost {
  height: 2.75rem; background: var(--surface-container); color: var(--text-primary);
  font-size: 13px; line-height: 18px; box-shadow: none;
}
.btn--ghost:hover { color: var(--primary); }
.btn--full { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.25rem var(--space-sm); border-radius: var(--r-full);
  background: var(--surface-container-high); color: var(--primary);
  font-size: 12px; line-height: 16px; font-weight: 500;
}
.chip .ms { font-size: 15px; }

.tag {
  display: inline-block; padding: 0.125rem var(--space-xs);
  border-radius: var(--r-sm); background: var(--surface-container-high);
  color: var(--primary); font-size: 12px; line-height: 16px; font-weight: 500;
  white-space: nowrap;
}
.tag--secondary { color: var(--secondary); }
.tag--tertiary { color: var(--tertiary); }

/* Filet de titre de section */
.eyebrow { display: flex; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-2xs); }
.eyebrow__rule { height: 1px; flex: 1; background: var(--surface-container-highest); }

/* Tout l'appareil de section est centré : sur-titre, filets, titre, chapô.
   Seules les listes (crédits, fiches) restent alignées à gauche pour la lecture. */
.section > .shell > .eyebrow { justify-content: center; }
.section > .shell > .eyebrow .eyebrow__rule { max-width: 6rem; }
.section > .shell > h2,
.section > .shell > h3,
.section > .shell > .chapo,
.section > .shell > p.body-sm { text-align: center; }
.section > .shell > .chapo,
.section > .shell > p.body-sm { margin-inline: auto; }
.section__head { text-align: center; }

.section { padding: var(--space-xl) var(--margin-mobile); }
.section--canvas { background: var(--surface-container-lowest); }
.section--surface { background: var(--surface); }

/* ============================================================
   1. Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: var(--space-lg) var(--margin-mobile) var(--space-2xl);
  background: linear-gradient(180deg, var(--surface-container-lowest) 0%, var(--surface) 55%, var(--surface) 100%);
}
.hero__glow {
  position: absolute; top: -3rem; right: -3rem;
  width: 16rem; height: 16rem; border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.06); filter: blur(64px); pointer-events: none;
}
.hero__in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__frame { position: relative; margin-bottom: var(--space-md); }
.hero__ring {
  width: 8rem; height: 8rem; padding: 4px; border-radius: var(--r-full);
  background: var(--surface-container-high); box-shadow: var(--shadow-lg); overflow: hidden;
}
.hero__ring img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; border-radius: var(--r-full); }
.hero__badge {
  position: absolute; bottom: -0.25rem; right: -0.25rem;
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0.125rem var(--space-xs); border-radius: var(--r-full);
  background: var(--surface-container-highest); color: var(--primary);
  box-shadow: var(--shadow-card); white-space: nowrap;
}
.hero__dot {
  width: 0.5rem; height: 0.5rem; border-radius: var(--r-full);
  background: var(--primary-container); animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.hero h1 { margin-bottom: var(--space-2xs); }
.hero__role { color: var(--primary); margin-bottom: var(--space-sm); }
.hero__quote {
  font-size: 15px; line-height: 24px; font-style: italic; font-weight: 300;
  color: var(--text-secondary); max-width: 24rem; margin-bottom: var(--space-lg);
}

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xs);
  width: 100%; max-width: 20rem; margin-bottom: var(--space-lg);
  padding: var(--space-xs); border-radius: var(--r-md);
  background: var(--surface-container-low); box-shadow: var(--shadow-card);
}
.stat { display: flex; flex-direction: column; align-items: center; padding-block: var(--space-xs); border-radius: var(--r); }
.stat--mid { background: var(--surface-container); }
.stat__n {
  font-size: 26px; line-height: 1; font-weight: 900; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: var(--primary);
}
.stat--mid .stat__n { color: var(--primary-fixed); }
.stat__l { color: var(--text-muted); margin-top: 0.25rem; text-align: center; }

.hero__actions { display: flex; flex-direction: column; gap: var(--space-xs); width: 100%; max-width: 20rem; }
.hero__actions-row { display: flex; gap: var(--space-xs); }
.hero__actions-row .btn { flex: 1; }

/* ============================================================
   2. Biographie
   ============================================================ */
.card {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--r-md); box-shadow: var(--shadow-card);
}
.bio {
  padding: var(--space-lg) var(--space-md);
  display: grid; gap: var(--space-sm);
  color: var(--text-primary);
  text-align: center;
}
.bio p { font-size: 16px; line-height: 28px; }
.bio p:first-of-type { font-size: 18px; line-height: 31px; color: var(--text-primary); }
.bio__titre {
  font-size: 17px; line-height: 24px; font-weight: 700; color: var(--text-primary);
  margin-top: var(--space-md); padding-bottom: var(--space-2xs);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}
.bio__titre:first-child { margin-top: 0; }
.bio strong { color: var(--text-primary); font-weight: 700; }
.bio__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xs); padding-top: var(--space-md); }

/* ============================================================
   3. Acteurs doublés
   ============================================================ */
.section__head {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-2xs); margin-bottom: var(--space-xs); text-align: center;
}
.section__head .ms { order: -1; font-size: 26px; color: var(--text-secondary); }

.actors { display: grid; grid-template-columns: 1fr; gap: var(--space-sm); list-style: none; padding: 0; }
.actor {
  display: flex; gap: var(--space-md); align-items: center;
  padding: var(--space-md);
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--r-md); box-shadow: var(--shadow-card);
}
.actor__img {
  width: 10rem; height: 12rem; flex-shrink: 0;
  border-radius: var(--r); overflow: hidden; background: var(--surface-container-high);
}
.actor__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.actor__body { flex: 1; min-width: 0; }
.actor__name { color: var(--text-primary); font-size: 17px; line-height: 24px; font-weight: 700; }
.actor__roles { color: var(--text-secondary); }
.actor__meta { display: flex; align-items: center; gap: 0.25rem; margin-top: var(--space-xs); color: var(--primary-fixed-dim); font-size: 12px; line-height: 16px; font-weight: 500; }
.actor__meta .ms { font-size: 16px; }

.actors__more { display: flex; justify-content: center; margin-top: var(--space-md); }
/* Sous 1024 px, la liste s'arrête à six fiches tant que le bouton n'a pas été utilisé */
@media (max-width: 63.99em) {
  .actors:not(.actors--all) .actor:nth-child(n+7) { display: none; }
}

/* ============================================================
   4. Démos : lecteurs audio + showreel
   ============================================================ */
.tracks { display: grid; gap: var(--space-sm); margin-bottom: var(--space-xl); }
.track {
  padding: var(--space-md); border-radius: var(--r-md);
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card); cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.track:hover { background: var(--surface-card-hover); }
.track--playing {
  background: var(--surface-card-hover);
  border-color: var(--secondary-container);
  box-shadow: var(--glow-active);
}
.track__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-xs); }
.track__cat { display: flex; align-items: center; gap: var(--space-xs); color: var(--primary); }
.track__dot { width: 0.625rem; height: 0.625rem; border-radius: var(--r-full); background: var(--primary); }
.track__main { display: flex; align-items: center; gap: var(--space-md); }
.play-btn {
  width: 3rem; height: 3rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--r-full);
  background: var(--surface-container-high); color: var(--primary);
  box-shadow: var(--shadow-card); cursor: pointer;
  transition: transform .12s ease;
}
.play-btn:active { transform: scale(0.95); }
.play-btn .ms { font-size: 24px; font-variation-settings: "FILL" 1; }
.track:first-child .play-btn,
.track--playing .play-btn { background: var(--primary-container); color: var(--on-primary-container); }
.track__info { flex: 1; min-width: 0; }
.track__title { color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wave { display: flex; align-items: flex-end; gap: 3px; height: 1.5rem; margin-top: 0.375rem; overflow: hidden; }
.wave span { width: 4px; border-radius: var(--r-full); background: var(--surface-container-highest); }
.track--playing .wave span { background: var(--primary); animation: bounce 900ms ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.45); } }

.reel { display: grid; gap: var(--space-md); }
.reel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-sm); }
.video {
  border-radius: var(--r-md); overflow: hidden;
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}
.video__frame { position: relative; aspect-ratio: 16 / 9; background: var(--surface-container-high); }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__body { padding: var(--space-sm); }
.video__body h4 { color: var(--text-primary); font-size: 15px; line-height: 20px; font-weight: 700; }
.video__body p { color: var(--text-secondary); margin-top: 0.25rem; }
.video__link { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--primary); padding: var(--space-md); }

/* ============================================================
   5. Filmographie
   ============================================================ */
.tabs {
  display: flex; align-items: center; justify-content: flex-start; gap: var(--space-xs);
  overflow-x: auto; padding-bottom: var(--space-xs); margin-bottom: var(--space-sm);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0; padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--border-subtle); border-radius: var(--r-full);
  background: var(--surface-container); color: var(--text-secondary);
  font-size: 13px; line-height: 18px; font-weight: 700; cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.tab:hover { color: var(--text-primary); }
.tab[aria-selected="true"] {
  background: var(--primary-container); border-color: var(--primary-container);
  color: var(--on-primary-container);
}

.search {
  position: relative; margin-bottom: var(--space-md);
}
.search input {
  width: 100%; height: 3rem; padding: 0 var(--space-md) 0 2.75rem;
  border: 1px solid var(--border-subtle); border-radius: var(--r);
  background: var(--surface-canvas); color: var(--text-primary);
  font: inherit; font-size: 16px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}
.search input::placeholder { color: var(--text-muted); }
.search input:focus { outline: none; border-color: var(--primary-container); box-shadow: 0 0 0 3px var(--accent-glow); }
.search .ms { position: absolute; left: 0.85rem; top: 0.75rem; font-size: 22px; color: var(--text-muted); pointer-events: none; }
.search__count { margin-top: var(--space-xs); color: var(--text-muted); min-height: 16px; }

/* Un bloc par catégorie : chaque carte porte son titre et son décompte,
   les crédits ne se confondent plus d'une catégorie à l'autre. */
.timeline { display: grid; gap: var(--space-lg); }
.timeline__group { padding: var(--space-md); scroll-margin-top: calc(var(--header-h) + 1rem); }
.timeline__group[hidden] { display: none; }
.timeline__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm);
  padding-bottom: var(--space-sm); margin-bottom: var(--space-md);
  border-bottom: 2px solid var(--border-active);
}
.timeline__nom { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; color: var(--text-primary); }
.timeline__nb { color: var(--text-muted); white-space: nowrap; }
.entry {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--space-sm); padding: var(--space-sm) var(--space-sm) var(--space-sm) var(--space-md);
  border-left: 2px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.015);
  border-radius: 0 var(--r) var(--r) 0;
}
.entry:hover { border-left-color: var(--primary); background: rgba(255, 255, 255, 0.05); }
.entry { justify-content: flex-start; }
.entry__affiche {
  display: block; width: 7rem; height: auto; aspect-ratio: 2 / 3; flex-shrink: 0;
  /* contain : les jaquettes de jeux carrées ne sont pas rognées, les affiches 2:3 remplissent le cadre */
  object-fit: contain; border-radius: var(--r); background: var(--surface-container-high);
}
.entry__txt { flex: 1; min-width: 0; }
.entry[hidden] { display: none; }
.entry__year { color: var(--primary); }
.entry h4 { color: var(--text-primary); font-size: 17px; line-height: 24px; font-weight: 700; }
.entry p { color: var(--text-secondary); }
.timeline__list { display: grid; gap: var(--space-2xs); }
.timeline__more { display: flex; justify-content: center; margin-top: var(--space-md); }

/* ============================================================
   6. CV
   ============================================================ */
.cv {
  position: relative; overflow: hidden;
  padding: var(--space-lg); border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--surface-card) 0%, var(--surface-elevated) 50%, var(--surface-card) 100%);
  border: 1px solid var(--border-subtle); box-shadow: var(--shadow-lg);
}
.cv__glow {
  position: absolute; right: -1.5rem; bottom: -1.5rem;
  width: 9rem; height: 9rem; border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.06); filter: blur(40px); pointer-events: none;
}
.cv__in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cv__icon {
  width: 3.5rem; height: 3.5rem; margin-bottom: var(--space-sm);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-full); background: rgba(255, 255, 255, 0.08); color: var(--primary);
}
.cv__icon .ms { font-size: 32px; }
.cv h3 { margin-bottom: var(--space-2xs); }
.cv p { color: var(--text-secondary); max-width: 20rem; margin-bottom: var(--space-md); }
.cv .btn { width: 100%; max-width: 20rem; }
.cv__note { display: flex; align-items: center; gap: 0.25rem; margin-top: var(--space-sm); color: var(--text-muted); }
.cv__note .ms { font-size: 15px; }

/* ============================================================
   7. Galerie
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xs); list-style: none; padding: 0; }
.gallery button {
  position: relative; display: block; width: 100%; padding: 0;
  aspect-ratio: 4 / 5; overflow: hidden; cursor: pointer;
  border: 1px solid var(--border-subtle); border-radius: var(--r-md);
  background: var(--surface-container-high); box-shadow: var(--shadow-card);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery button:hover img { transform: scale(1.04); }
.gallery button:hover { border-color: var(--secondary-container); }
.gallery__tag {
  position: absolute; left: 0.5rem; bottom: 0.5rem;
  padding: 0.125rem 0.5rem; border-radius: var(--r-sm);
  background: rgba(9, 9, 11, 0.8); color: var(--primary);
  font-size: 12px; line-height: 16px; font-weight: 500;
}

.lightbox {
  width: 100%; max-width: 100vw; height: 100%; max-height: 100vh;
  padding: 0; border: 0; background: rgba(9, 9, 11, 0.97); color: var(--text-primary);
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.9); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; padding: 4rem 0.75rem 5rem; }
.lightbox__close {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2;
  width: 2.75rem; height: 2.75rem; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-subtle); border-radius: var(--r-full);
  background: var(--surface-container); color: var(--text-primary); cursor: pointer;
}
.lightbox__nav { position: absolute; left: 0; right: 0; bottom: 1.25rem; display: flex; justify-content: center; gap: var(--space-sm); }
.lightbox__nav button {
  width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-subtle); border-radius: var(--r-full);
  background: var(--surface-container); color: var(--text-primary); cursor: pointer;
}

/* ============================================================
   8. Contact
   ============================================================ */
.contact-info { padding: var(--space-md); display: grid; gap: var(--space-xs); margin-bottom: var(--space-lg); }
.contact-info div { display: flex; align-items: center; gap: var(--space-sm); color: var(--text-secondary); }
.contact-info .ms { font-size: 20px; color: var(--primary); }

.form { padding: var(--space-md); display: grid; gap: var(--space-md); }
.field { display: grid; gap: 0.375rem; }
.field > label { color: var(--text-primary); font-size: 15px; line-height: 20px; font-weight: 700; }
.field .req { color: var(--primary); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0 var(--space-md);
  border: 1px solid var(--border-subtle); border-radius: var(--r);
  background: var(--surface-canvas); color: var(--text-primary);
  font: inherit; font-size: 16px; line-height: 24px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}
.field input, .field select { height: 3rem; }
.field textarea { padding: var(--space-md); min-height: 7.5rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary-container); box-shadow: 0 0 0 3px var(--accent-glow);
}
.select { position: relative; }
.select select { appearance: none; }
.select .ms { position: absolute; right: 0.75rem; top: 0.75rem; font-size: 24px; color: var(--text-muted); pointer-events: none; }
.honeypot { position: absolute; left: -9999px; }

.toast {
  padding: var(--space-sm); border-radius: var(--r);
  background: var(--surface-container-high); color: var(--primary);
  text-align: center; font-size: 13px; line-height: 18px;
}
.toast--error { background: var(--error-container); color: var(--on-error-container); }

/* ============================================================
   Pied + navigation basse
   ============================================================ */
.footer {
  margin-top: var(--space-2xl);
  padding: var(--space-xl) var(--margin-mobile) var(--space-lg);
  background: rgba(14, 14, 17, 0.7); backdrop-filter: blur(12px);
}
.footer__in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-md); }
.footer img { height: 2.5rem; width: auto; opacity: 0.75; }
.footer p.body-sm { color: var(--text-secondary); max-width: 22rem; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xs) var(--space-md); color: var(--text-muted); margin-top: var(--space-sm); }
.footer__links a:hover { color: var(--primary); }
.footer__copy { color: var(--text-muted); opacity: 0.6; margin-top: var(--space-xs); }

.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(19, 19, 22, 0.9); backdrop-filter: blur(20px);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.6);
}
.bottomnav__in { height: var(--bottomnav-h); display: flex; justify-content: space-around; align-items: center; padding-inline: var(--space-xs); }
.bottomnav a {
  width: 3.5rem; height: 3.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
  color: var(--text-secondary); transition: color .2s ease;
}
.bottomnav a .ms { font-size: 22px; }
.bottomnav a span:last-child { font-size: 12px; line-height: 16px; font-weight: 500; }
.bottomnav a:hover { color: var(--on-surface); }
.bottomnav a[aria-current="page"] { color: var(--primary); font-weight: 700; }

/* ============================================================
   Élargissement écran moyen et grand
   Le design est pensé pour le mobile : au-delà, on garde les mêmes
   composants et on augmente le nombre de colonnes.
   ============================================================ */
@media (min-width: 40em) {
  /* Sous 1024 px la page entière fait 680 px : deux colonnes y seraient
     trop étroites, le texte reste donc sur une seule colonne. */
  .bio { padding: var(--space-lg); }

  .actors { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .reel { grid-template-columns: repeat(2, 1fr); }
  .hero__actions { flex-direction: row; max-width: 34rem; }
}

@media (min-width: 64em) {
  :root { --margin-mobile: 3rem; --header-h: 4.5rem; }
  body { padding-bottom: 0; }

  /* Pleine page : les sections occupent toute la largeur, le contenu
     est borné par .shell qui s'élargit au lieu de rester en colonne mobile. */
  .shell { max-width: 1600px; }
  .section, .hero, .footer { padding-inline: clamp(2rem, 4vw, 4.5rem); }
  .header__bar { padding-inline: clamp(2rem, 4vw, 4.5rem); }

  h1 { font-size: 56px; line-height: 62px; letter-spacing: -0.02em; }
  h2 { font-size: 32px; line-height: 40px; letter-spacing: -0.01em; }
  .body-sm, .bio p { font-size: 15px; line-height: 26px; }
  .section { padding-block: var(--space-2xl); }

  .bottomnav { display: none; }
  .header__tools .icon-btn { display: none; }
  .header__brand img { height: 2.5rem; }
  .menu, .menu--open {
    display: flex; position: static; inset: auto; align-items: center; gap: var(--space-lg);
    padding: 0; background: none; backdrop-filter: none; overflow: visible;
  }
  .menu ul { display: flex; gap: var(--space-lg); }
  .menu li a { padding: 0; border: 0; font-size: 14px; line-height: 22px; font-weight: 500; color: var(--text-secondary); }
  .menu li a:hover { color: var(--primary); }
  .menu li a .ms { display: none; }

  /* Hero sur deux colonnes, aligné à gauche */
  .hero { padding-block: var(--space-2xl); min-height: min(80vh, 46rem); display: flex; align-items: center; }
  .hero__glow { width: 34rem; height: 34rem; top: -8rem; right: -6rem; }
  .hero__in { text-align: center; width: 100%; }
  .hero__frame { margin-bottom: var(--space-lg); }
  .hero__ring { width: 16rem; height: 16rem; }
  .hero__badge { bottom: 0.5rem; right: 0.5rem; padding: 0.25rem var(--space-sm); }
  .hero__text { display: flex; flex-direction: column; align-items: center; }
  .hero__quote { max-width: 52ch; font-size: 19px; line-height: 32px; }
  .stats { max-width: 34rem; gap: var(--space-sm); padding: var(--space-sm); }
  .stat { padding-block: var(--space-sm); }
  .stat__n { font-size: 36px; }
  .hero__actions { flex-direction: row; max-width: 36rem; justify-content: center; }
  .hero__actions-row { flex: 1; }

  /* Grilles élargies */
  .actors { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }  /* 9 photos = 3 rangées pleines */
  .reel { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
  .tracks { grid-template-columns: repeat(3, 1fr); }

  /* Biographie pleine page, une seule colonne : le texte occupe toute la
     largeur de la carte, sans bornage ni marges internes. */
  .bio { padding: var(--space-xl); display: block; }
  .bio__flux { max-width: none; margin-inline: 0; width: 100%; }
  .bio__flux > p { margin-bottom: var(--space-md); max-width: none; }
  .bio__titre { max-width: none; }
  .bio p { font-size: 17px; line-height: 30px; }
  .bio p:first-of-type { font-size: 19px; line-height: 33px; }
  .bio__badges { margin-top: var(--space-xl); }

  /* Filmographie : trois colonnes de crédits */
  .timeline__group { padding: var(--space-lg); }
  .timeline__list { grid-template-columns: repeat(3, 1fr); gap: var(--space-sm) var(--space-md); }
  .search { max-width: 34rem; margin-inline: auto; }
  .tabs { justify-content: center; }
  .reel__head, .actors__more, .timeline__more { justify-content: center; }

  .cv { padding: var(--space-2xl); }
  .cv__in { max-width: 40rem; margin-inline: auto; }

  .form { grid-template-columns: repeat(2, 1fr); padding: var(--space-lg); }
  .field--full, .form .btn, .form .toast { grid-column: 1 / -1; }
  .contact-info { padding: var(--space-lg); }
  /* Bloc contact centré : un formulaire pleine largeur est illisible */
  .form, .contact-info { max-width: 56rem; margin-inline: auto; }
  .contact-info { justify-items: center; }
  .form .btn { justify-self: center; width: auto; min-width: 20rem; }
}

@media (min-width: 100em) {
  .actors { grid-template-columns: repeat(4, 1fr); }
  .timeline__list { grid-template-columns: repeat(4, 1fr); }
  .hero__ring { width: 18rem; height: 18rem; }
}

/* ============================================================
   Préférences système
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .header, .bottomnav, .menu, .hero__actions, .tabs, .search, .form, .lightbox { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
}
