/* ==========================================================================
   BOOK — STYLES
   Mise en page calquée sur les sites de studio comme monopo : conteneur
   centré à 75 % de la largeur, petits libellés à 10,5 px, titres fins et
   très grands, fond sombre jusqu’au contact qui passe en clair.
   Palette « Braise & titane » (redéfinie depuis content.js → colors).
   Typographie : General Sans (Fontshare, gratuite, usage commercial autorisé).
   Courbe signature : cubic-bezier(0.19, 1, 0.22, 1).
   ========================================================================== */

@property --bg { syntax: '<color>'; inherits: true; initial-value: #0e0b0a; }
@property --fg { syntax: '<color>'; inherits: true; initial-value: #f6eee3; }
@property --muted { syntax: '<color>'; inherits: true; initial-value: rgba(246, 238, 227, .5); }
@property --line { syntax: '<color>'; inherits: true; initial-value: rgba(246, 238, 227, .16); }

:root {
  /* Palette « Braise & titane » */
  --charbon: #0E0B0A;
  --cendre: #2A2421;
  --titane-nuit: #1B2733;
  --titane-profond: #2F4670;
  --titane-chauffe: #4C78A8;
  --titane-pale: #9DB3C6;
  --flamme: #F05A1C;
  --or: #C9A96E;
  --ivoire: #F6EEE3;
  --glass: rgba(42, 36, 33, .55);

  /* Typographie (proportions relevées à 1440 px de large) */
  --font: 'General Sans', 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-xs: clamp(10px, .73vw, 13px);      /* 10,5 px : libellés, menu */
  --fs-s: clamp(11px, .83vw, 14px);       /* 12 px : boutons, textes courts */
  --fs-m: clamp(16px, 1.25vw, 22px);      /* 18 px : titres de projets */
  --fs-l: clamp(19px, 1.98vw, 34px);      /* 28,5 px : paragraphes */
  --fs-hero: clamp(28px, 3.75vw, 66px);   /* 54 px : phrase de l’intro */
  --fs-name: clamp(30px, 2.9vw, 50px);    /* nom sur le portrait */
  --fs-xl: clamp(38px, 5.42vw, 94px);     /* 78 px : grands titres fins */
  --fs-xxl: clamp(44px, 6.56vw, 114px);   /* 94,5 px : manifeste */
  --fs-giant: clamp(96px, 15.6vw, 270px); /* 225 px : texte défilant */

  /* Mouvement */
  --ease: cubic-bezier(.19, 1, .22, 1);
  --d: .8s;
  --d-long: 1.25s;

  /* Mise en page */
  --cw: min(75vw, 1440px);
  --pill: 75px;
}

body, .sheet {
  --bg: var(--charbon);
  --fg: var(--ivoire);
  --muted: rgba(246, 238, 227, .5);
  --line: rgba(246, 238, 227, .16);
}
body[data-theme='light'], .sheet[data-theme='light'] {
  --bg: var(--ivoire);
  --fg: var(--charbon);
  --muted: rgba(14, 11, 10, .55);
  --line: rgba(14, 11, 10, .14);
}

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: --bg 1s var(--ease), --fg 1s var(--ease), --muted 1s var(--ease), --line 1s var(--ease);
}
img, video, svg, canvas { display: block; max-width: 100%; }
img { -webkit-user-drag: none; user-select: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
i, em { font-style: italic; }
.nw { white-space: nowrap; }
::selection { background: var(--flamme); color: var(--ivoire); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.container { width: var(--cw); margin: 0 auto; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 20px; top: 12px; z-index: 1100;
  padding: 11px 22px; border-radius: var(--pill);
  background: var(--charbon); color: var(--ivoire);
  transform: translateY(-220%); transition: transform .6s var(--ease);
}
.skip:focus { transform: none; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* -------------------------------------------------------------- Éléments */
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: var(--fs-xs); font-weight: 600; line-height: 1.22;
}
.kicker::before { content: '+'; font-weight: 400; font-size: 1.25em; line-height: 1; transform: translateY(-.04em); }
.kicker--plain::before { display: none; }
.kicker-sm { font-size: var(--fs-xs); line-height: 1.36; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 53px; padding: 0 30px;
  border-radius: var(--pill);
  font-size: var(--fs-s); line-height: 1.2; white-space: nowrap;
  transition: background-color .5s var(--ease), border-color .5s var(--ease), letter-spacing var(--d) var(--ease);
}
.btn:hover { letter-spacing: .03em; }
.btn--glass {
  color: var(--ivoire);
  background: linear-gradient(100deg, rgba(76, 120, 168, .22), rgba(240, 90, 28, .16)), var(--glass);
  border: 1px solid rgba(246, 238, 227, .12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.btn--glass:hover { border-color: rgba(246, 238, 227, .32); }
.btn--line { border: 1px solid currentColor; min-height: 40px; padding: 0 22px; }
.btn__arrow { display: inline-block; transition: transform var(--d) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Masques pour les apparitions */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em 0 .14em; margin: -.08em 0 -.14em; }
.wi { display: inline-block; }

/* -------------------------------------------------------- Curseur custom */
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor-dot, .cursor-pill { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.cursor-on .cursor-dot, .cursor-on .cursor-pill { opacity: 1; }
.cursor-dot { mix-blend-mode: difference; }
.cursor-dot i { display: block; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; transition: transform .6s var(--ease); }
.cursor-link .cursor-dot i { transform: scale(5); }
.cursor-label .cursor-dot i { transform: scale(0); }
.cursor-down .cursor-dot i { transform: scale(.6); }
.cursor-pill span {
  display: block; padding: 11px 20px 10px; border-radius: var(--pill);
  background: var(--glass); border: 1px solid rgba(246, 238, 227, .35); color: var(--ivoire);
  font-size: var(--fs-xs); letter-spacing: .02em; white-space: nowrap;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transform: translate(-50%, -50%) scale(0); transition: transform .7s var(--ease);
}
.cursor-label .cursor-pill span { transform: translate(-50%, -50%) scale(1); }

/* --------------------------------------------------------------- Loader */
.loader { display: none; }
.js .loader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 900;
  color: var(--ivoire);
  pointer-events: none;
}
.loader__word { font-size: var(--fs-hero); line-height: 1.39; white-space: nowrap; }
.loader__a, .loader__b { display: inline-block; }
.loader__a { font-weight: 300; }
.loader__b { margin-left: .28em; position: relative; top: .22em; }
.js:not(.is-ready) .hero__inner, .js:not(.is-ready) .header { visibility: hidden; }

/* --------------------------------------------------------------- Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 500;
  padding-top: clamp(20px, 3.5vw, 50px);
  color: #fff; mix-blend-mode: difference;
  pointer-events: none;
}
.header__grid { position: relative; display: flex; justify-content: space-between; align-items: flex-start; }
.header__grid > * { pointer-events: auto; }
.header__logo { font-size: clamp(15px, 1.12vw, 18px); line-height: 1; letter-spacing: -.01em; padding-top: 2px; }
.header__logo strong { font-weight: 600; }
.header__logo span { font-weight: 400; font-size: .86em; margin-left: .15em; }
.header__social {
  position: absolute; left: 63%; top: 0;
  display: flex; align-items: center; gap: clamp(16px, 2vw, 30px);
  font-size: var(--fs-xs); line-height: 1.2;
}
.header__social::before { content: ''; width: 2px; height: 9px; background: currentColor; margin-right: clamp(4px, .6vw, 10px); }
.header__social a { opacity: .55; transition: opacity .4s ease; }
.header__social a:hover { opacity: 1; }
.header__menu { display: flex; flex-direction: column; align-items: flex-end; font-size: var(--fs-xs); line-height: 1.38; text-transform: uppercase; }
.header__menu a { position: relative; display: inline-flex; align-items: center; gap: 8px; opacity: .55; transition: opacity .4s ease; }
.header__menu a::before { content: '→'; opacity: 0; transform: translateX(-6px); transition: opacity .4s ease, transform var(--d) var(--ease); }
.header__menu a:hover, .header__menu a.is-active { opacity: 1; }
.header__menu a.is-active::before { opacity: 1; transform: none; }
.header__burger { display: none; width: 40px; height: 22px; position: relative; }
.header__burger span { position: absolute; left: 4px; right: 4px; height: 1.5px; background: currentColor; transition: transform .6s var(--ease); }
.header__burger span:first-child { top: 7px; }
.header__burger span:last-child { top: 14px; }
.menu-open .header__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .header__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Menu plein écran (mobile) */
.menu {
  position: fixed; inset: 0; z-index: 450;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 48px;
  padding: 120px 20px 28px;
  background: var(--charbon); color: var(--ivoire);
  visibility: hidden; transition: visibility 0s .8s;
}
.menu.is-open { visibility: visible; transition: none; }
.menu__nav { display: flex; flex-direction: column; }
.menu__link { font-size: clamp(42px, 12vw, 80px); font-weight: 300; line-height: 1.08; letter-spacing: -.02em; }
.menu__foot { display: flex; justify-content: space-between; gap: 16px; color: rgba(246, 238, 227, .6); }

/* ----------------------------------------------------------------- Intro */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 520px;
  overflow: hidden;
  background: transparent; color: var(--ivoire); /* le liquide est en fond fixe, derrière tout le site */
}
/* le liquide de l’intro reste fixe à l’écran : il habille tout le site pendant le défilement */
.hero__canvas { position: fixed; inset: 0; width: 100%; height: 100%; height: 100lvh; }
.hero__fallback {
  position: fixed; inset: -15%; display: none;
  background:
    radial-gradient(40% 48% at 26% 34%, rgba(76, 120, 168, .55), transparent 70%),
    radial-gradient(36% 44% at 70% 70%, rgba(240, 90, 28, .5), transparent 70%),
    radial-gradient(46% 52% at 50% 90%, rgba(47, 70, 112, .6), transparent 72%),
    var(--charbon);
  filter: blur(36px);
  animation: heroDrift 16s ease-in-out infinite alternate;
}
.no-webgl .hero__fallback { display: block; }
.no-webgl .hero__canvas { display: none; }
@keyframes heroDrift { to { transform: translate3d(4%, -5%, 0) rotate(10deg) scale(1.12); } }
/* voile charbon fixe : il assombrit le liquide en douceur quand les photos arrivent */
.hero__shade { position: fixed; inset: 0; height: 100lvh; background: var(--charbon); opacity: 0; pointer-events: none; }
.hero__inner { position: relative; height: 100%; }
.hero__phrases {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1.39em; margin-top: -.7em;
  font-size: var(--fs-hero); font-weight: 400; line-height: 1.39;
  text-align: center;
}
.hero__phrases li { position: absolute; inset: 0; white-space: nowrap; }
.hero__phrases li + li { visibility: hidden; }
.hp { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em; }
.hp > span { display: inline-block; }
/* Langues de l’intro : General Sans n’a ni le chinois ni le hindi, ces lettres viennent des polices du système */
.hero__phrases :lang(zh) { font-family: 'Bodoni Moda', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif; }
.hero__phrases :lang(hi) { font-family: 'Bodoni Moda', 'Kohinoor Devanagari', 'Noto Sans Devanagari', 'Nirmala UI', 'Mangal', sans-serif; }
/* les voyelles du hindi dépassent au-dessus et au-dessous de la ligne : la fenêtre de l’animation s’agrandit, le texte ne bouge pas */
.hero__phrases :lang(hi) .hp { padding-top: .22em; padding-bottom: .28em; margin-top: -.22em; margin-bottom: -.28em; }

/* Badge rotatif « Défiler » */
.badge {
  position: absolute; left: 0; bottom: clamp(48px, 12vh, 120px);
  display: grid; place-items: center;
  width: clamp(62px, 5.2vw, 80px); height: clamp(62px, 5.2vw, 80px);
  color: var(--ivoire);
}
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.badge text { font-family: var(--font); font-size: 9.2px; letter-spacing: .12em; text-transform: uppercase; fill: currentColor; }
/* au centre du badge : une petite lentille d’objectif (bague crantée, verres, reflet), en traits très fins */
.badge__mark { position: relative; width: 19px; height: 19px; }
.badge__shutter { display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-width: .7; opacity: .8; transition: transform 1.2s var(--ease), opacity .4s ease; }
.badge:hover .badge__shutter { transform: rotate(-90deg); opacity: 1; }
.badge__glint { stroke-width: .9; stroke-linecap: round; opacity: .9; }

/* ---------------------------------------------------------------- Travaux */
.works { padding: clamp(80px, 8vw, 120px) 0 clamp(60px, 6vw, 100px); }

/* Page d’accueil façon livre de photographe : grand nom fixe + photos en quinconce */
.works { position: relative; padding: 0; }

.stream { position: relative; z-index: 1; margin-top: 22vh; }
.stream__item { position: absolute; display: block; }
.stream__media { display: block; position: relative; aspect-ratio: var(--r, 1.5); overflow: hidden; background: var(--cendre); }
.stream__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--d-long) var(--ease); }

.stream__cap { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.stream__cap em { font-family: 'Instrument Serif', 'Times New Roman', serif; font-style: italic; font-size: clamp(15px, 1.25vw, 20px); letter-spacing: -.005em; color: var(--ivoire); }
.stream__cap strong { font-family: 'Anton', var(--font); font-weight: 400; font-size: clamp(9px, .66vw, 11px); letter-spacing: .06em; text-transform: uppercase; color: var(--titane-pale); }
@media (max-width: 768px) {
  
  
  
  .stream { margin: 26vh 20px 0; }
}
.works__grid { display: flex; justify-content: space-between; gap: 8%; margin-top: clamp(48px, 5vw, 80px); }
.works__col { width: 46%; display: flex; flex-direction: column; gap: clamp(80px, 9.7vw, 160px); }
.works__col--right { padding-top: clamp(60px, 9vw, 150px); }

/* catégorie sans photos pour l’instant : emplacement réservé */

/* ---------------------------------------------------- Pour qui je travaille */

/* -------------------------------------------------------------- Manifeste */

/* ------------------------------------------------------- Texte défilant */

/* -------------------------------------------------------------- Showreel */

/* ------------------------------------------------------- Archive inclinée */

.tiles__plane {
  position: absolute; left: 50%; top: 50%;
  width: 210vw; margin-left: -105vw;
  display: flex; flex-direction: column; gap: 1.6vw;
  transform: translateY(-50%) rotate(-32deg);
}
.tiles__row { display: flex; gap: 1.6vw; will-change: transform; }
.tiles__cell { flex: none; width: clamp(160px, 19vw, 340px); aspect-ratio: 1; overflow: hidden; background: var(--cendre); }
.tiles__cell img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform var(--d-long) var(--ease); }
.tiles__cell:hover img { transform: scale(1.2); }

/* --------------------------------------------------------------- À propos */

/* ---------------------------------------------------------------- Contact */
.contact { padding: clamp(110px, 11vw, 190px) 0 32px; }
.contact__title { margin-top: clamp(36px, 4vw, 60px); font-size: var(--fs-xl); font-weight: 400; line-height: 1.1; }
.contact__mark { display: inline-block; position: relative; width: .42em; height: .42em; margin-left: .3em; vertical-align: .08em; border: 1.5px solid currentColor; border-radius: 50%; }
.contact__mark::after { content: ''; position: absolute; left: 50%; top: 50%; width: 32%; height: 32%; transform: translate(-50%, -50%); border-radius: 50%; background: var(--flamme); }
.contact__lead { margin-top: clamp(48px, 5vw, 80px); }
.contact__mail {
  display: inline-block; margin-top: 14px;
  font-size: clamp(26px, 2.8vw, 46px); line-height: 1.2;
  background: linear-gradient(90deg, var(--titane-chauffe), var(--flamme) 70%, var(--or));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 6px; position: relative;
}
.contact__mail::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--titane-chauffe), var(--flamme) 70%, var(--or));
  transform-origin: left; transition: transform var(--d-long) var(--ease);
}
.contact__mail:hover::after { transform: scaleX(.3); }
.contact__cols {
  position: relative;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 2%;
  margin-top: clamp(70px, 7vw, 120px);
  align-items: start;
}
.contact__col { grid-column: 1 / span 6; }
.contact__follow { grid-column: 9 / span 3; }
.contact__h { color: var(--muted); margin-bottom: 18px; }
.contact__avail li { font-size: var(--fs-m); line-height: 1.6; }
.contact__socials a { display: inline-block; font-size: clamp(17px, 1.3vw, 22px); line-height: 1.55; transition: transform var(--d) var(--ease); }
.contact__socials a:hover { transform: translateX(6px); }
.totop {
  grid-column: 12; justify-self: end; align-self: end;
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid currentColor; display: grid; place-items: center;
}
.footer {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: clamp(70px, 7vw, 120px); padding-top: 22px;
  border-top: 1px solid var(--line); color: var(--muted);
}

/* ------------------------------------------------------------ Page projet */
.project {
  position: fixed; inset: 0; z-index: 600;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  background: var(--charbon); color: var(--ivoire);
  --muted: rgba(246, 238, 227, .5); --line: rgba(246, 238, 227, .16); --fg: var(--ivoire); --bg: var(--charbon);
  visibility: hidden;
}
.project.is-open { visibility: visible; }
.project__bar {
  position: sticky; top: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  padding: clamp(18px, 2.4vw, 36px) calc((100vw - var(--cw)) / 2);
  color: #fff; mix-blend-mode: difference;
}
.project__close { gap: 10px; font-size: var(--fs-xs); text-transform: uppercase; }
.project__inner { width: var(--cw); margin: 0 auto; }
.project__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 2%; row-gap: 28px; align-items: end; padding: clamp(24px, 4vw, 60px) 0 clamp(40px, 5vw, 72px); }
.project__kicker { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); }
.project__title { grid-column: 1 / span 8; font-size: var(--fs-xxl); font-weight: 400; line-height: .9; letter-spacing: -.015em; }
.project__info { grid-column: 9 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.project__info dt { color: var(--muted); font-size: var(--fs-xs); }
.project__info dd { margin-top: 4px; font-size: var(--fs-s); }
.project__cover { position: relative; margin: 0 calc((var(--cw) - 100vw) / 2); aspect-ratio: 16 / 9; max-height: 92vh; overflow: hidden; background: var(--cendre); }
.project__cover.is-portrait { margin: 0 auto; width: min(100%, 46vw, calc(88vh * .8)); aspect-ratio: 4 / 5; max-height: none; }
.project__cover-media { width: 100%; height: 100%; object-fit: cover; }
.project__sound, .pm__sound {
  position: absolute; left: 20px; bottom: 20px;
  padding: 8px 16px 7px; border-radius: var(--pill);
  font-size: var(--fs-xs); color: var(--ivoire);
  background: var(--glass); border: 1px solid rgba(246, 238, 227, .35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  pointer-events: none;
}
.project__desc { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 2%; padding: clamp(64px, 8vw, 140px) 0; }
.project__desc p { grid-column: 4 / span 7; font-size: var(--fs-l); font-weight: 300; line-height: 1.39; }
/* Rideau de chargement : le même écran « Zac Besser » qu’à l’arrivée sur le site */
.curtain {
  position: fixed; inset: 0; z-index: 850; display: none; place-items: center;
  background: var(--charbon); color: var(--ivoire); visibility: hidden;
}
.curtain.is-on { display: grid; }
.curtain__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.curtain .loader__word { position: relative; }

/* Photo en plein écran : elle naît en orbe au point du clic (bord doux), comme le liquide de l’intro */
.pm--zoom, .project__cover:not([data-cursor]) { cursor: zoom-in; }
.pm--zoom:focus-visible { outline: 2px solid var(--or); outline-offset: 4px; }
.viewer {
  --vbg: 0;
  position: fixed; inset: 0; z-index: 800; visibility: hidden;
  background: rgba(14, 11, 10, var(--vbg)); color: var(--ivoire);
}
.viewer.is-open { visibility: visible; }
.viewer__stage {
  --vx: 50%; --vy: 50%; --vr: 200vmax;
  position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  -webkit-mask-image: radial-gradient(circle at var(--vx) var(--vy), #000 calc(var(--vr) * .82), transparent var(--vr));
  mask-image: radial-gradient(circle at var(--vx) var(--vy), #000 calc(var(--vr) * .82), transparent var(--vr));
}
.viewer__img { max-width: 100vw; max-height: 100vh; width: auto; height: auto; object-fit: contain; }
.viewer__cap {
  position: absolute; left: 0; right: 0; bottom: clamp(20px, 4vh, 40px);
  padding: 0 clamp(20px, 12vw, 200px); text-align: center;
  font-size: var(--fs-m); font-weight: 300; line-height: 1.39; text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
}
.viewer__cap .hp { display: inline-block; overflow: hidden; vertical-align: top; }
.viewer__cap .hp > span { display: inline-block; }
.viewer__count { position: absolute; left: 20px; top: 22px; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.viewer__close { position: absolute; top: 14px; right: 16px; min-height: 42px; gap: 10px; }
.viewer__nav {
  position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%;
  border: 1px solid rgba(246, 238, 227, .35); background: rgba(14, 11, 10, .35); color: var(--ivoire);
  font-size: 18px; transition: background-color .3s ease, border-color .3s ease;
}
.viewer__nav:hover { background: var(--flamme); border-color: var(--flamme); }
.viewer__nav:focus-visible, .viewer__close:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }
.viewer__nav--prev { left: 16px; }
.viewer__nav--next { right: 16px; }
@media (max-width: 768px) { .viewer__nav { display: none; } .viewer__cap { padding: 0 20px; } }

/* Filtres de la galerie (sous-catégorie, photo / vidéo) */
.project [hidden] { display: none !important; }
.pfilters { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: clamp(28px, 3vw, 48px) 0; }
.pfilters__group { display: flex; flex-wrap: wrap; gap: 8px; }
.pfilter {
  padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(246, 238, 227, .22);
  font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--fg);
  opacity: .7; transition: opacity .3s ease, border-color .3s ease, background-color .3s ease, color .3s ease;
}
.pfilter:hover { opacity: 1; border-color: rgba(246, 238, 227, .6); }
.pfilter[aria-pressed='true'] { opacity: 1; background: var(--flamme); border-color: var(--flamme); color: #fff; }
.pfilter:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }
.project__count { margin-bottom: 18px; color: var(--titane-pale); }
.project__count:empty { display: none; }
.project__empty { padding: 60px 0; color: var(--titane-pale); }
.project__gallery { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 32px); }
.pg { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 2%; align-items: start; }
.pg--wide .pm { grid-column: 1 / -1; }
.pg--pair .pm:first-child { grid-column: 1 / span 6; }
.pg--pair .pm:last-child { grid-column: 7 / span 6; }
.pg--left .pm { grid-column: 2 / span 5; }
.pg--right .pm { grid-column: 7 / span 5; }
.pm { position: relative; aspect-ratio: var(--r, 1.5); overflow: hidden; background: var(--cendre); }
.pm > img, .pm > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project__next {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  margin-top: clamp(96px, 12vw, 200px); padding: clamp(56px, 7vw, 110px) 0 clamp(72px, 9vw, 140px);
  border-top: 1px solid var(--line);
}
.project__next-title { position: relative; z-index: 2; font-size: var(--fs-xxl); line-height: .9; letter-spacing: -.015em; color: #fff; mix-blend-mode: difference; }
.project__next-media { position: absolute; z-index: 1; left: 55%; top: 50%; width: clamp(160px, 16vw, 280px); aspect-ratio: 4 / 5; overflow: hidden; transform: translate(-50%, -50%) scale(0) rotate(-8deg); transition: transform var(--d-long) var(--ease); pointer-events: none; }
.project__next-media img { width: 100%; height: 100%; object-fit: cover; }
.project__next:hover .project__next-media { transform: translate(-50%, -50%) scale(1) rotate(-3deg); }

.motion .pm { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease); }
.motion .pm > img, .motion .pm > video { transform: scale(1.18); transition: transform 1.8s var(--ease); }
.motion .pm.is-in { clip-path: inset(0 0 0 0); }
.motion .pm.is-in > img, .motion .pm.is-in > video { transform: none; }
.motion .project__desc p { opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.motion .project__desc.is-in p { opacity: 1; transform: none; }
.flip-clone { position: fixed; z-index: 650; margin: 0; object-fit: cover; pointer-events: none; }

/* -------------------------------------------------------------- Lightbox */

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1100px) {
  .header__social { left: 58%; }
}

@media (max-width: 768px) {
  :root { --cw: calc(100vw - 40px); }
  .header__social, .header__nav { display: none; }
  .header__burger { display: block; }
  .hero__phrases { height: 2.78em; margin-top: -1.39em; }
  .hero__phrases li { display: flex; flex-direction: column; }
  .hp { display: block; }
  .badge { left: 50%; margin-left: calc(clamp(62px, 5.2vw, 80px) / -2); bottom: 36px; }
  .works__grid { flex-direction: column; gap: 90px; }
  .works__col { width: 100%; gap: 90px; }
  .works__col--right { padding-top: 0; }
  
  
  
  
  
  
  
  
  
  
  
  .contact__col, .contact__follow { grid-column: 1 / -1; }
  .contact__follow { margin-top: 48px; }
  .totop { grid-column: 1 / -1; grid-row: auto; justify-self: end; margin-top: 48px; }
  .project__title, .project__info { grid-column: 1 / -1; }
  .project__cover.is-portrait { width: 100%; }
  .project__desc p { grid-column: 1 / -1; }
  .pg--pair .pm:first-child, .pg--pair .pm:last-child, .pg--left .pm, .pg--right .pm { grid-column: 1 / -1; }
  .pg--pair { row-gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   TYPOGRAPHIE « livre de photographe » (inspirée de gregfinck.com), sur tout le site
   • grands textes : Bodoni Moda resserrée (Didone condensée à empattements fins)
   • textes courants : Instrument Serif
   • petites étiquettes : Anton en capitales
   Le resserrage : le texte est composé dans une boîte plus large puis
   comprimé à la largeur normale, pour garder des lignes justes.
   ========================================================================== */
:root {
  --font: 'Instrument Serif', 'Times New Roman', serif;
  --display: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;
  --label: 'Anton', 'Arial Narrow', sans-serif;
  --sq: 1; /* 1 = Bodoni Moda à ses vraies proportions, comme le « b. » du logo (mettre .56 pour la resserrer) */
}
.loader__word, .hero__phrases, .contact__title,
.project__title, .project__next-title, .menu__nav, .header__logo {
  font-family: var(--display); font-weight: 400; font-variation-settings: 'opsz' 96; letter-spacing: -.005em;
}
.loader__a, .loader__b, .header__logo strong, .header__logo span { font-weight: 400; }
/* une seule ligne : comprimée sur place */
.loader__word { font-size: calc(var(--fs-hero) * 1.15); transform: scaleX(var(--sq)); }
.header__logo { display: inline-block; font-size: clamp(16px, 1.25vw, 20px); transform: scaleX(var(--sq)); transform-origin: left top; }
.header__logo span { font-size: 1em; }
.project__next-title { display: inline-block; transform: scaleX(var(--sq)); transform-origin: left center; font-size: var(--fs-xxl); }
/* phrases de l’intro : boîte élargie de part et d’autre, comprimée au centre */
.hero__phrases { left: calc(50% - 50% / var(--sq)); right: calc(50% - 50% / var(--sq)); transform: scaleX(var(--sq)); font-size: calc(var(--fs-hero) * 1.1); }
/* plusieurs lignes, alignées à gauche */
 .contact__title, .project__title, .menu__nav {
  width: calc(100% / var(--sq)); max-width: none; transform: scaleX(var(--sq)); transform-origin: left top;
}

.contact__title { font-size: var(--fs-xl); line-height: 1.08; }

.project__title { font-size: var(--fs-xxl); line-height: 1; }

/* petites étiquettes */
.kicker, .kicker-sm, .header__menu, .header__social, .btn, .pfilter, .project__info dt, .viewer__count, .bk-label {
  font-family: var(--label); font-weight: 400; letter-spacing: .06em; text-transform: uppercase;
}
.badge text { font-family: var(--label); letter-spacing: .14em; }
/* textes courants un peu plus grands : Instrument Serif est plus petit à taille égale */
body { font-size: 1.08em; }
/* les boîtes élargies du resserrage ne doivent jamais créer de défilement horizontal */
html, body { overflow-x: clip; }
main, .project__inner, .menu { overflow-x: clip; }

/* Bas de page façon livre : Contact · À propos · Instagram */
.end {
  position: relative; z-index: 1; min-height: 70vh; padding: 0 2vw 3.5vh;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
}
.end__links { display: flex; flex-wrap: wrap; gap: .4em 1.6em; }
.end__links a {
  font-family: var(--display); font-variation-settings: 'opsz' 96; font-weight: 400;
  font-size: clamp(22px, 2.3vw, 36px); line-height: 1; text-transform: uppercase; letter-spacing: .01em;
  color: var(--ivoire); transition: color .4s ease;
}
.end__links a:hover { color: var(--flamme); }
.end__links a:focus-visible { outline: 2px solid var(--or); outline-offset: 4px; }
.end__legal { font-size: 12px; color: var(--titane-pale); }
@media (max-width: 768px) {
  .end { min-height: 60vh; padding: 0 20px calc(18vw + 7vh); }
}

/* Panneau À propos / Contact, ouvert par-dessus le site */
.sheet {
  position: fixed; inset: 0; z-index: 620; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); color: var(--fg); visibility: hidden;
}
.sheet.is-open { visibility: visible; }
.sheet__close { position: fixed; top: 16px; right: 20px; z-index: 3; min-height: 42px; gap: 10px; }
.sheet > section { min-height: 100%; }

/* Photo / Vidéo : le choix juste après l’intro */
.switch {
  position: relative; z-index: 3; display: flex; justify-content: center; align-items: baseline; gap: .5em;
  padding-top: clamp(90px, 16vh, 170px);
  font-family: var(--display); font-variation-settings: 'opsz' 96; font-size: clamp(34px, 4.4vw, 76px); line-height: 1;
  text-transform: uppercase;
}
.switch__tab { position: relative; color: var(--ivoire); opacity: .3; transition: opacity .5s ease; text-transform: uppercase; }
.switch__tab:hover { opacity: .7; }
.switch__tab[aria-selected='true'] { opacity: 1; }
.switch__tab[aria-selected='true']::after {
  content: ''; position: absolute; right: -.28em; bottom: .08em; width: .14em; height: .14em; border-radius: 50%; background: var(--flamme);
}
.switch__tab:focus-visible { outline: 2px solid var(--or); outline-offset: 6px; }
.switch__sep { opacity: .25; font-weight: 400; }
.works .stream { margin-top: clamp(70px, 12vh, 140px); }
.stream__item[hidden] { display: none; }
.stream__empty {
  position: relative; z-index: 1; padding: 18vh 2vw 10vh; text-align: center;
  font-family: var(--font); font-style: italic; font-size: clamp(18px, 1.6vw, 26px); color: var(--titane-pale);
}
@media (max-width: 768px) { .works .stream { margin: 70px 20px 0; } }
@media (max-width: 768px) { .switch { padding-top: calc(10vh + 24vw); font-size: 11vw; } }

/* Catégories à choisir (plusieurs à la fois), sous Photo / Vidéo
   Esprit maison de luxe : la typographie seule, sans cases ni boutons.
   Choisie = ivoire, soulignée d’un filet fin et marquée du point flamme. */
.cats {
  position: relative; z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
  gap: .35em 0; max-width: 1400px; margin: clamp(30px, 3.4vw, 52px) auto 0; padding: 0 20px;
  font-family: var(--display); font-variation-settings: 'opsz' 96; font-size: clamp(19px, 1.7vw, 28px); line-height: 1.2;
}
.cat {
  position: relative; display: inline-flex; align-items: baseline; padding: .2em .1em;
  color: var(--ivoire); opacity: .38; transition: opacity .5s ease;
}
.cat + .cat::before {
  content: ''; display: inline-block; width: .9em; height: 1px; margin: 0 .7em; vertical-align: .32em;
  background: currentColor; opacity: .35; pointer-events: none;
}
.cat[hidden] { display: none; }
.cat:hover { opacity: .75; }
.cat[aria-pressed='true'] { opacity: 1; }
.cat__t { position: relative; letter-spacing: .005em; }
.cat i { font-style: italic; }
/* filet fin qui se dessine sous la catégorie choisie */
.cat__t::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -.12em; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease);
}
.cat[aria-pressed='true'] .cat__t::after { transform: scaleX(1); transform-origin: left; }
/* le point flamme du logo, comme « b. » */
.cat__t::before {
  content: ''; position: absolute; right: -.3em; bottom: .14em; width: .16em; height: .16em; border-radius: 50%;
  background: var(--flamme); transform: scale(0); transition: transform .5s var(--ease);
}
.cat[aria-pressed='true'] .cat__t::before { transform: scale(1); }
.cat__n {
  margin-left: .45em; font-family: var(--label); font-size: .38em; letter-spacing: .08em; opacity: .7; vertical-align: super;
}
.cat--all .cat__t { font-style: italic; }
.cat:focus-visible { outline: 1px solid var(--or); outline-offset: 6px; }
@media (max-width: 768px) {
  /* sur téléphone, les filets de séparation laissent place à un simple espace */
  .cats { font-size: 21px; gap: .3em 1.1em; }
  .cat + .cat::before { display: none; }
}

/* Curseur : un tout petit point lumineux, discret, même au survol des liens et des photos */
.cursor-dot i { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; }
.cursor-link .cursor-dot i { transform: scale(1.6); }
.cursor-label .cursor-dot i { transform: scale(1.6); }
.cursor-label .cursor-pill span { padding: 5px 10px 4px; font-size: 10px; transform: translate(-50%, calc(-50% - 22px)) scale(1); }

/* Sous les photos : catégorie suivante en grand + toutes les catégories */
.nextcat {
  position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(110px, 16vh, 200px) 20px clamp(40px, 8vh, 90px);
}
.nextcat[hidden] { display: none; }
.nextcat__label { font-family: var(--label); font-size: clamp(10px, .75vw, 12px); letter-spacing: .14em; text-transform: uppercase; color: var(--titane-pale); }
.nextcat__go {
  display: inline-flex; align-items: baseline; gap: .35em; margin-top: 14px; color: var(--ivoire);
  font-family: var(--display); font-variation-settings: 'opsz' 96; font-size: clamp(46px, 7vw, 124px); line-height: 1;
}
.nextcat__title { position: relative; }
.nextcat__title::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .02em; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .8s var(--ease);
}
.nextcat__go:hover .nextcat__title::after, .nextcat__go:focus-visible .nextcat__title::after { transform: scaleX(1); transform-origin: left; }
.nextcat__arrow { font-family: var(--font); font-size: .42em; color: var(--flamme); transition: transform .6s var(--ease); }
.nextcat__go:hover .nextcat__arrow { transform: translateX(.3em); }
.nextcat__go:focus-visible { outline: 1px solid var(--or); outline-offset: 8px; }
.nextcat__all { margin-top: clamp(28px, 3.4vw, 50px); }
.nextcat__all.cats, .nextcat__all { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
  font-family: var(--display); font-variation-settings: 'opsz' 96; font-size: clamp(16px, 1.3vw, 22px); gap: .3em 0; }
@media (max-width: 768px) { .nextcat__all { gap: .3em 1em; } .nextcat__all .cat + .cat::before { display: none; } }

/* Images d’entrée : une par catégorie, le nom en grand dessous */
.stream__item--entry .stream__cap { margin-top: 16px; gap: 14px; }
.stream__item--entry .stream__cap em {
  font-family: var(--display); font-variation-settings: 'opsz' 96; font-style: normal;
  font-size: clamp(26px, 2.6vw, 44px); line-height: 1; letter-spacing: -.005em;
}
.stream__item--entry .stream__cap em::after { content: '.'; color: var(--flamme); }
.stream__item--entry .stream__cap strong { font-size: clamp(9px, .66vw, 11px); }
.nextcat__back {
  margin-top: clamp(26px, 3vw, 40px); font-family: var(--label); font-size: clamp(10px, .75vw, 12px);
  letter-spacing: .14em; text-transform: uppercase; color: var(--titane-pale); transition: color .3s ease;
}
.nextcat__back:hover { color: var(--ivoire); }
.nextcat__back:focus-visible { outline: 1px solid var(--or); outline-offset: 6px; }

/* Avant tout : le choix Photo ou Vidéo, en grand, les deux bien visibles */
.switch__hint {
  position: relative; z-index: 3; text-align: center; padding-top: clamp(90px, 16vh, 170px);
  font-family: var(--label); font-size: clamp(10px, .75vw, 12px); letter-spacing: .16em; text-transform: uppercase; color: var(--titane-pale);
}
.switch__hint + .switch { padding-top: clamp(16px, 2.2vh, 26px); }
.switch.is-idle { font-size: clamp(54px, 8vw, 140px); gap: .4em; }
.switch.is-idle .switch__tab { opacity: .92; }
.switch.is-idle .switch__tab:hover { opacity: 1; }
.switch.is-idle:hover .switch__tab:not(:hover) { opacity: .35; }
.switch.is-idle .switch__tab::after { display: none; }
.switch { transition: font-size .9s var(--ease); }
.cats[hidden] { display: none; }
@media (max-width: 768px) {
  .switch__hint { padding-top: calc(10vh + 24vw); }
  .switch__hint + .switch { padding-top: 14px; }
  .switch.is-idle { font-size: 15vw; flex-direction: column; align-items: center; gap: .1em; }
  .switch.is-idle .switch__sep { display: none; }
}

/* Pas de nombre de photos à côté des noms */
.cat__n { display: none !important; }

/* Langue : EN / FR tout en haut, à gauche du menu */
.header__lang {
  margin-left: auto; margin-right: clamp(26px, 3.4vw, 60px);
  display: flex; align-items: center; gap: .5em;
  font-family: var(--label); font-size: var(--fs-xs); letter-spacing: .06em; line-height: 1.2; text-transform: uppercase;
}
.header__lang span { opacity: .35; }
.header__lang button { opacity: .45; transition: opacity .4s ease; padding: 2px 0; }
.header__lang button:hover, .header__lang button[aria-pressed="true"] { opacity: 1; }
.header__lang button:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
@media (max-width: 768px) {
  .header__lang { margin-right: 18px; padding-top: 4px; }
}

/* Vidéos : chaque film à son vrai format (vertical ou horizontal), avec son titre */
.stream__note { font-family: 'Instrument Serif', 'Times New Roman', serif; font-size: clamp(13px, 1vw, 16px); color: var(--titane-pale); }
.note { font-style: italic; opacity: .62; margin-left: .25em; }
.project__cover.is-film { aspect-ratio: var(--r); max-height: 92vh; }
.project__cover.is-film:not(.is-portrait) { margin: 0 auto; width: min(100%, calc(88vh * var(--r))); }
.project__cover.is-film.is-portrait { width: min(100%, 46vw, calc(88vh * var(--r))); }
.project__cover.is-film .project__cover-media { object-fit: contain; background: #000; }
.pm--film > video { object-fit: contain; background: #000; }
.pm__cap, .project__filmcap {
  position: absolute; left: 18px; top: 16px; right: 18px; z-index: 2; pointer-events: none;
  font-family: 'Instrument Serif', 'Times New Roman', serif; font-size: clamp(16px, 1.35vw, 22px); line-height: 1.15; color: var(--ivoire);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
}
@media (max-width: 768px) {
  .project__cover.is-film.is-portrait, .project__cover.is-film:not(.is-portrait) { width: 100%; }
}

/* Titre d’un sous-dossier (ex. Corporate) : « 02  La Môme Plage (Cannes) », puis ses photos */
.sect { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; margin: 0; font-weight: 400; }
.sect__num { color: var(--titane-pale); letter-spacing: .14em; }
.sect__title {
  font-family: var(--display); font-variation-settings: 'opsz' 96; font-weight: 400;
  font-size: clamp(40px, 5.4vw, 96px); line-height: 1; letter-spacing: -.005em; color: var(--ivoire);
}
.sect__note { font-family: 'Instrument Serif', 'Times New Roman', serif; font-style: italic; font-size: .4em; letter-spacing: 0; color: var(--titane-pale); white-space: nowrap; }
.stream__head { padding: 0 20px; }
.stream__head .stream__media { display: flex; aspect-ratio: auto; background: none; overflow: visible; padding: 4px 0 8px; }
.project__sect { padding: clamp(90px, 14vh, 180px) 0 clamp(36px, 5vh, 64px); }
.project__sect--first { padding: clamp(20px, 3vh, 36px) 0 clamp(30px, 4vh, 48px); }
.project__sect[hidden] { display: none; }
@media (max-width: 768px) {
  .sect__title { font-size: 12vw; }
  .sect__note { display: block; font-size: .5em; margin-top: 8px; }
}

/* À propos : juste le métier et une courte présentation, sans photo */

/* Contact : le téléphone sous l’adresse e-mail */
.contact__phone { display: table; margin-top: 8px; }
.contact__phone[hidden] { display: none; }

/* Incitation : tant que rien n’est choisi, une lumière balaie PHOTO puis VIDÉO,
   et un trait flamme se dessine dessous, chacun son tour */
.switch.is-idle .switch__tab {
  background: linear-gradient(105deg, var(--ivoire) 0 40%, #fff 47%, var(--flamme) 50%, #fff 53%, var(--ivoire) 60% 100%);
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.switch.is-idle .switch__tab::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: -.1em; height: 2px; background: var(--flamme);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.switch.is-idle.is-cue .switch__tab { animation: switch-sweep 4.8s ease-in-out infinite; }
.switch.is-idle.is-cue .switch__tab::before { animation: switch-line 4.8s var(--ease) infinite; }
.switch.is-idle.is-cue .switch__sep + .switch__tab,
.switch.is-idle.is-cue .switch__sep + .switch__tab::before { animation-delay: 2.4s; }
/* au survol : le mot visé garde son trait, l’animation se met en pause */
.switch.is-idle.is-cue:hover .switch__tab, .switch.is-idle.is-cue:hover .switch__tab::before { animation: none; }
.switch.is-idle .switch__tab:hover::before, .switch.is-idle .switch__tab:focus-visible::before { transform: scaleX(1); }
@keyframes switch-sweep { 0% { background-position: 100% 0; } 40%, 100% { background-position: 0 0; } }
@keyframes switch-line {
  0% { transform: scaleX(0); transform-origin: left; }
  20% { transform: scaleX(1); transform-origin: left; }
  30% { transform: scaleX(1); transform-origin: right; }
  48%, 100% { transform: scaleX(0); transform-origin: right; }
}
@media (prefers-reduced-motion: reduce) {
  .switch.is-idle.is-cue .switch__tab, .switch.is-idle.is-cue .switch__tab::before { animation: none; }
}

/* Confort au doigt : zones cliquables plus grandes, même apparence */
.header__lang button { padding: 10px 6px; margin: -10px -6px; }
.header__social a { display: inline-block; padding: 10px 6px; margin: -10px -6px; }
.header__social a:focus-visible, .end__links a:focus-visible, .contact__mail:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* Mentions légales : panneau sombre, sobre et lisible */
.legal { padding: clamp(110px, 11vw, 190px) 0 clamp(60px, 8vw, 120px); }
.legal__title { margin-top: clamp(28px, 3vw, 48px); font-family: var(--display); font-variation-settings: 'opsz' 96; font-weight: 400; font-size: var(--fs-xl); line-height: 1.05; }
.legal__blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4vw, 64px) clamp(32px, 5vw, 90px); margin-top: clamp(48px, 5vw, 80px); max-width: 1100px; }
.legal__block h3 { font-family: var(--label); font-weight: 400; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--titane-pale); margin-bottom: 14px; }
.legal__block p { font-family: 'Instrument Serif', 'Times New Roman', serif; font-size: clamp(17px, 1.3vw, 21px); line-height: 1.45; color: var(--ivoire); }
.legal__block p + p { margin-top: .5em; }
.legal__block a { text-decoration: underline; text-underline-offset: 3px; }
.end__legal-link { text-decoration: underline; text-underline-offset: 3px; color: inherit; }
.end__legal-link:hover { color: var(--flamme); }
@media (max-width: 768px) { .legal__blocks { grid-template-columns: 1fr; } }
