/* =====================================================================
   STYLE.CSS — l'apparence du site.
   Tu n'as besoin de toucher qu'aux deux blocs du haut :
   1) les polices (bloc @font-face)   2) les couleurs (:root)
   ===================================================================== */

/* 1) POLICES — hébergées sur le site (dossier assets/fonts), sans appel à Google :
      aucune donnée de visiteur n'est envoyée à un tiers (RGPD). Voir GUIDE.md pour en changer. */
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/anton-latin-ext0.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/anton-latin1.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("../assets/fonts/bricolage-grotesque-latin-ext2.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("../assets/fonts/bricolage-grotesque-latin3.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/geist-mono-latin-ext4.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/geist-mono-latin5.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/geist-mono-latin-ext4.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/geist-mono-latin5.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* 2) COULEURS & RÉGLAGES */
:root {
  --accent: #FF5A36;          /* ← TA COULEUR D'ACCENT : change uniquement cette valeur */
  --on-accent: #0E0E0D;       /* texte posé sur la couleur d'accent */

  --bg: #0E0E0D;              /* fond (presque noir, chaud) */
  --surface: #161614;         /* blocs, placeholders */
  --surface-2: #1E1E1B;
  --line: #2B2B28;            /* filets, bordures */
  --line-strong: #4A4944;
  --text: #ECE9E2;            /* texte principal */
  --muted: #8F8C85;           /* texte secondaire */

  --font-hero: "Anton", "Impact", sans-serif;                        /* ton nom sur l'accueil (style carton de la démo) */
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;   /* grands titres */
  --font-body: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display-weight: 800;      /* graisse des titres : 600 (plus léger) à 800 (très gras) */
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 4rem);
  --max: 1680px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------------------------------------------------------------------
   Base
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  animation: page-in .6s var(--ease) both;
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Grain très léger sur tout le site */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  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");
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--accent); color: var(--on-accent); padding: .6rem 1rem; font-weight: 500;
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
main { display: block; min-height: 70vh; }
main:focus { outline: none; }

/* Typo utilitaire */
.eyebrow {
  font: 500 .75rem/1.4 var(--font-mono);
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.eyebrow--dot::before {
  content: ""; display: inline-block; width: .5em; height: .5em; margin-right: .7em;
  background: var(--accent); vertical-align: .05em;
}
.display {
  font-family: var(--font-display); font-weight: var(--display-weight);
  line-height: .88; letter-spacing: -.035em;
}
.lead { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.5; font-weight: 300; max-width: 38ch; }
.prose p + p { margin-top: 1em; }
.prose { color: var(--text); max-width: 62ch; font-weight: 300; font-size: 1.05rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; }
.link-arrow svg { width: .8em; height: .8em; transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translate(2px, -2px); }

.u-line { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.u-line:hover, .u-line:focus-visible { background-size: 100% 1px; }

.btn {
  display: inline-flex; align-items: center; gap: .75em;
  padding: 1rem 1.5rem; border: 1px solid var(--line-strong);
  font: 500 .8rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  transition: background .3s, color .3s, border-color .3s;
}
.btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--accent:hover { background: var(--text); border-color: var(--text); }
.btn svg { width: .9em; height: .9em; }

.section { padding-block: clamp(4rem, 10vw, 9rem); }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-bottom: 1.25rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); border-bottom: 1px solid var(--line);
}
.section-head h2 { font-size: clamp(2.2rem, 5vw, 4.25rem); }

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform .5s var(--ease), border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-hidden:not(:focus-within) { transform: translateY(-100%); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; gap: 1rem; }
.brand { font: 700 1.1rem/1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav__list { display: flex; gap: 2rem; }
.nav__link { font-size: .95rem; color: var(--muted); transition: color .3s; position: relative; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::before {
  content: ""; position: absolute; left: -.85em; top: 50%; width: .35em; height: .35em;
  background: var(--accent); transform: translateY(-50%);
}

.lang { display: flex; font: 500 .72rem/1 var(--font-mono); letter-spacing: .06em; border: 1px solid var(--line); }
.lang button { padding: .45rem .55rem; color: var(--muted); transition: color .3s, background .3s; }
.lang button[aria-pressed="true"] { color: var(--bg); background: var(--text); }
.lang button:not([aria-pressed="true"]):hover { color: var(--text); }

.menu-btn { display: none; font: 500 .78rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: .6rem 0; }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 4.25rem 0 auto 0; height: calc(100dvh - 4.25rem);
    flex-direction: column; align-items: flex-start; justify-content: space-between;
    padding: 2rem var(--gutter) 2.5rem; background: var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-.5rem);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: .25rem; }
  .nav__link { font: var(--display-weight) 3rem/1.05 var(--font-display); letter-spacing: -.035em; color: var(--text); }
  .nav__link[aria-current="page"]::before { left: auto; right: -.6em; top: .55em; }
  body.menu-open { overflow: hidden; }
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(3rem, 8vw, 6rem); }
.site-footer__top { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; padding-block: clamp(3rem, 6vw, 5rem) 2.5rem; }
.footer-mail { font: 700 clamp(1.5rem, 4.8vw, 4rem)/1 var(--font-display); letter-spacing: -.03em; word-break: break-word; }
.footer-mail:hover { color: var(--accent); }
.socials { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.socials a { color: var(--muted); transition: color .3s; }
.socials a:hover { color: var(--text); }
.site-footer__bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block: 1.5rem 2rem; border-top: 1px solid var(--line);
}
.site-footer__bottom a:hover { color: var(--text); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
@media (max-width: 760px) { .site-footer__top { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   Placeholder (image ou vidéo manquante)
   --------------------------------------------------------------------- */
.ph {
  --m: var(--line-strong);
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  padding: 1.5rem; text-align: center; overflow: hidden;
  background:
    linear-gradient(var(--m), var(--m)) top 14px left 14px / 16px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) top 14px left 14px / 1px 16px no-repeat,
    linear-gradient(var(--m), var(--m)) top 14px right 14px / 16px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) top 14px right 14px / 1px 16px no-repeat,
    linear-gradient(var(--m), var(--m)) bottom 14px left 14px / 16px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) bottom 14px left 14px / 1px 16px no-repeat,
    linear-gradient(var(--m), var(--m)) bottom 14px right 14px / 16px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) bottom 14px right 14px / 1px 16px no-repeat,
    radial-gradient(ellipse at 50% 40%, var(--surface-2), var(--surface) 70%);
}
.ph__label { font: 600 clamp(1.05rem, 2vw, 1.6rem)/1.1 var(--font-display); letter-spacing: -.02em; color: var(--text); opacity: .8; }
.ph__size { font: 500 .7rem/1 var(--font-mono); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.ph__cross { position: absolute; width: 22px; height: 22px; opacity: .35; }
.ph__cross::before, .ph__cross::after { content: ""; position: absolute; background: var(--muted); }
.ph__cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.ph__cross::after { top: 50%; left: 0; right: 0; height: 1px; }
.ph__cross { top: calc(50% - 4.2rem); }
/* Dans un cadre à ratio fixe, le placeholder remplit le cadre */
.frame > .ph { aspect-ratio: auto; height: 100%; }

.frame { position: relative; overflow: hidden; background: var(--surface); }
.frame > img, .frame > video, .frame > iframe, .frame > model-viewer { width: 100%; height: 100%; object-fit: cover; border: 0; }

/* ---------------------------------------------------------------------
   Accueil — Hero
   --------------------------------------------------------------------- */
.hero { padding-top: clamp(2.5rem, 7vw, 6rem); padding-bottom: clamp(3rem, 7vw, 6rem); overflow-x: clip; }
.hero__meta { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.5rem, 4vw, 3rem); }
/* Nom + icônes à gauche, image qui flotte à droite (comme le carton de fin de la démo) */
.hero__stage {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; gap: 2rem;
  min-height: clamp(20rem, 60vh, 44rem);
}
.hero__text { position: relative; z-index: 1; container-type: inline-size; }
/* La taille du nom suit la largeur de sa colonne (cqi) : il reste sur une ligne, quel que soit le zoom */
.hero__name {
  display: flex; flex-wrap: wrap; column-gap: .22em;
  font: 400 clamp(2rem, 6.6vw, 9.5rem)/.92 var(--font-hero); letter-spacing: .005em; text-transform: uppercase;
  font-size: clamp(1.75rem, 12.2cqi, 9.5rem);
}
.hero__tools { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.9rem, 2vw, 1.75rem); margin-top: clamp(1.25rem, 3vw, 2.25rem); }
.hero__tool { animation: word-in 1.2s var(--ease) var(--in, 0s) both; }
.hero__tool img { display: block; width: clamp(1.75rem, 2.6vw, 2.5rem); height: auto; opacity: .9; animation: bob var(--dur, 5s) ease-in-out var(--delay, 0s) infinite; transition: opacity .3s; }
.hero__tool img:hover { opacity: 1; }
.hero__visual {
  margin-right: calc(var(--gutter) * -1);
  transform: translate3d(calc(var(--mx, 0) * -2rem), calc(var(--my, 0) * -1.2rem), 0);
  transition: transform 1.6s var(--ease); animation: fade 1.8s .25s var(--ease) both;
}
.hero__visual-float { animation: drift 9s ease-in-out infinite; }
/* Fondu vers le noir sur les 4 côtés : l'ellipse touche chaque bord, donc aucun bord net n'est visible */
.hero__visual img {
  width: 100%; height: auto;
  -webkit-mask-image: radial-gradient(ellipse closest-side at 55% 50%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse closest-side at 55% 50%, #000 40%, transparent 100%);
}
/* Sans image : nom, icônes, rôle et accroche centrés */
.hero--centered .hero__stage { grid-template-columns: 1fr; justify-items: center; text-align: center; min-height: clamp(18rem, 52vh, 38rem); }
.hero--centered .hero__text { width: 100%; }
.hero--centered .hero__name { justify-content: center; font-size: clamp(1.75rem, 10cqi, 9.5rem); }
.hero--centered .hero__tools { justify-content: center; }
.hero--centered .hero__bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1rem; }
.hero--centered .hero__role { max-width: none; }
@media (max-width: 760px) {
  .hero--centered .hero__stage { min-height: 0; padding-block: 2.5rem 1rem; }
  .hero--centered .hero__name { font-size: clamp(1.75rem, 12cqi, 4.5rem); }
  .hero__tools { gap: min(.65rem, 2.6vw); }
  .hero__tool img { width: min(1.6rem, 7vw); }
  .hero__stage { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero__visual { order: -1; width: 88%; margin: -1rem calc(var(--gutter) * -1) -3.5rem auto; }
}
/* Chaque mot flotte à son rythme : parallaxe souris > flottement > apparition */
.hero__word { display: inline-block; transform: translate3d(calc(var(--mx, 0) * var(--depth, 1) * 1.6rem), calc(var(--my, 0) * var(--depth, 1) * 1rem), 0); transition: transform 1.4s var(--ease); }
.hero__float { display: inline-block; animation: float var(--dur, 7s) ease-in-out var(--delay, 0s) infinite; }
.hero__in { display: inline-block; animation: word-in 1.3s var(--ease) var(--in, 0s) both; }
.hero__bottom {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: start;
  margin-top: clamp(2rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--line);
  animation: fade-up 1s .35s var(--ease) both;
}
.hero__role { font-size: clamp(1rem, 1.4vw, 1.2rem); font-weight: 400; max-width: 30ch; }
.hero__role .accent { color: var(--accent); }
@media (max-width: 760px) {
  .hero__bottom { grid-template-columns: 1fr; }
}

/* Showreel */
.reel__head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.reel .frame { aspect-ratio: 16 / 9; }
.reel model-viewer { --poster-color: transparent; background: radial-gradient(ellipse at 50% 45%, var(--surface-2), var(--bg) 75%); }
.reel__bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.reel__controls { display: flex; gap: .5rem; }
.reel__toggle {
  font: 500 .7rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  padding: .6rem .8rem; background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--line-strong);
}
.reel__toggle:hover { border-color: var(--text); }

/* Selected work — grille décalée */
.selected { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2.5rem, 6vw, 6rem) clamp(1.5rem, 5vw, 6rem); }
.selected > li:nth-child(even) { margin-top: clamp(0rem, 14vw, 14rem); }
@media (max-width: 700px) {
  .selected { grid-template-columns: 1fr; }
  .selected > li:nth-child(even) { margin-top: 0; }
}

/* Carte projet (accueil + Work) */
.card__link { display: block; }
.card__media { aspect-ratio: 4 / 5; }
.card__media img { transition: transform 1.2s var(--ease), opacity .6s; }
.card__link:hover .card__media img, .card__link:focus-visible .card__media img { transform: scale(1.035); }
.card__media .ph { transition: transform 1.2s var(--ease); }
.card__link:hover .card__media .ph { transform: scale(1.02); }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1rem; }
.card__title { font: 700 clamp(1.4rem, 2.2vw, 2.1rem)/1.05 var(--font-display); letter-spacing: -.03em; }
.card__index { color: var(--accent); margin-right: .6em; }
.card__title span.t { background: linear-gradient(currentColor, currentColor) left 92% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.card__link:hover .card__title span.t, .card__link:focus-visible .card__title span.t { background-size: 100% 1px; }
.card__title { flex: 1 1 auto; min-width: 0; }
.card__info { text-align: right; flex: 0 1 auto; max-width: 55%; }

.home-more { margin-top: clamp(3rem, 6vw, 5rem); display: flex; justify-content: center; }


/* ---------------------------------------------------------------------
   En-tête de page (Work / About / Contact)
   --------------------------------------------------------------------- */
.page-head { padding-top: clamp(2.5rem, 7vw, 6rem); padding-bottom: clamp(2rem, 5vw, 4rem); }
.page-head__title { font-size: clamp(4rem, 13vw, 12rem); }
.page-head__title sup { font: 500 .9rem/1 var(--font-mono); color: var(--accent); vertical-align: top; margin-left: .4em; letter-spacing: 0; }
.page-head__title--small { font-size: clamp(2.4rem, 6.5vw, 6rem); max-width: 16ch; }

/* Pages légales */
.legal__section { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem 2rem; padding-block: 2.25rem; border-top: 1px solid var(--line); }
.legal__title { font: 700 clamp(1.3rem, 2vw, 1.7rem)/1.15 var(--font-display); letter-spacing: -.02em; }
.legal__title .eyebrow { display: block; margin-bottom: .6rem; }
.legal .prose { color: var(--muted); }
.legal .prose a { color: var(--text); word-break: break-word; }
@media (max-width: 760px) { .legal__section { grid-template-columns: 1fr; } }

/* Filtres */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.filter {
  font: 500 .75rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  padding: .7rem 1rem; border: 1px solid var(--line); color: var(--muted);
  transition: color .3s, border-color .3s, background .3s;
}
.filter:hover { color: var(--text); border-color: var(--line-strong); }
.filter[aria-pressed="true"] { color: var(--text); border-color: var(--text); }
.filter[aria-pressed="true"]::before { content: ""; display: inline-block; width: .45em; height: .45em; background: var(--accent); margin-right: .6em; vertical-align: .1em; }
.filter sup { color: var(--muted); margin-left: .35em; font-size: .85em; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2.5rem, 4vw, 4rem) clamp(1rem, 2.5vw, 2.5rem); }
.grid > li[hidden] { display: none; }
.grid > li.is-filtered-in { animation: fade-up .6s var(--ease) both; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.empty { color: var(--muted); padding-block: 3rem; }

/* ---------------------------------------------------------------------
   Page projet
   --------------------------------------------------------------------- */
.cover { aspect-ratio: 16 / 9; max-height: 88vh; width: 100%; }
.project-head { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); }
.project-head__title { font-size: clamp(3.5rem, 11vw, 10rem); margin-top: .75rem; }
.meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem 2rem;
  padding-block: 1.75rem; border-block: 1px solid var(--line);
}
.meta dt { margin-bottom: .5rem; }
.meta dd { font-size: .98rem; }
@media (max-width: 860px) { .meta { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .meta { grid-template-columns: 1fr; } }

.project-body { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; padding-block: clamp(2.5rem, 6vw, 5rem); }
@media (max-width: 860px) { .project-body { grid-template-columns: 1fr; } }

.block { padding-bottom: clamp(3rem, 7vw, 6rem); }
.block__head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.block__head h2 { font: var(--display-weight) clamp(1.8rem, 3.6vw, 3rem)/1 var(--font-display); letter-spacing: -.035em; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.75rem, 1.5vw, 1.5rem); }
.gallery > figure { grid-column: 1 / -1; }
.gallery > figure.half { grid-column: auto; }
@media (max-width: 600px) { .gallery > figure.half { grid-column: 1 / -1; } }
figcaption { margin-top: .75rem; }

.zoom { display: block; width: 100%; cursor: zoom-in; overflow: hidden; background: var(--surface); }
.zoom img { width: 100%; transition: transform 1s var(--ease), opacity .4s; }
.zoom:hover img { transform: scale(1.015); }

.video { aspect-ratio: 16 / 9; }
.videos { display: grid; gap: clamp(1rem, 2vw, 2rem); }

/* Vidéo YouTube / Vimeo en attente du clic du visiteur (RGPD) */
.embed-consent {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem;
  padding: 1.5rem; text-align: center; background: radial-gradient(ellipse at 50% 40%, var(--surface-2), var(--surface) 70%);
}
.embed-consent__play { font: 500 .8rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: 1rem 1.5rem; border: 1px solid var(--text); transition: background .3s, color .3s; }
.embed-consent:hover .embed-consent__play, .embed-consent:focus-visible .embed-consent__play { background: var(--text); color: var(--bg); }
.embed-consent__note { max-width: 36ch; font-size: .85rem; color: var(--muted); }

/* Slider avant / après */
.compare { --pos: 50%; position: relative; overflow: hidden; background: var(--surface); user-select: none; }
.compare img, .compare .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--text); pointer-events: none; }
.compare__line::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  font: 500 1rem/1 var(--font-mono); letter-spacing: .1em; color: var(--text);
  background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--text);
}
.compare__tag { position: absolute; top: 1rem; padding: .45rem .6rem; color: var(--text); background: color-mix(in srgb, var(--bg) 70%, transparent); pointer-events: none; }
.compare__tag--after { left: 1rem; }
.compare__tag--before { right: 1rem; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare:has(.compare__range:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

.breakdown__step { display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem 2rem; padding-block: 2rem; border-top: 1px solid var(--line); }
.breakdown__step h3 { font: 700 1.6rem/1.1 var(--font-display); letter-spacing: -.03em; margin: .5rem 0 .75rem; }
.breakdown__step p { color: var(--muted); max-width: 40ch; }
@media (max-width: 860px) { .breakdown__step { grid-template-columns: 1fr; } }

.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pager a { display: block; padding-block: clamp(2rem, 5vw, 4rem); transition: color .3s; }
.pager a + a { text-align: right; border-left: 1px solid var(--line); }
.pager a:first-child { padding-right: 1rem; }
.pager a + a { padding-left: 1rem; }
.pager__title { display: block; font: var(--display-weight) clamp(1.8rem, 5vw, 4.5rem)/1 var(--font-display); letter-spacing: -.035em; margin-top: .75rem; transition: color .3s, transform .6s var(--ease); }
.pager a:hover .pager__title { color: var(--accent); }
.pager a:first-child:hover .pager__title { transform: translateX(-6px); }
.pager a + a:hover .pager__title { transform: translateX(6px); }
/* Un seul autre projet : un seul lien « suivant », aligné à droite */
.pager--single { grid-template-columns: 1fr; }
.pager--single a { text-align: right; }
.pager--single a:hover .pager__title { transform: translateX(6px); }

.notice { padding-block: 6rem; }
.notice p { margin-block: 1rem 2rem; color: var(--muted); }

/* ---------------------------------------------------------------------
   About
   --------------------------------------------------------------------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 7rem); align-items: start; padding-bottom: 2rem; }
.about__portrait { position: sticky; top: 6rem; }
.about__portrait .frame { aspect-ratio: 4 / 5; }
.about__lead { font: 500 clamp(1.4rem, 2.3vw, 2rem)/1.25 var(--font-display); letter-spacing: -.02em; margin-bottom: 1.5rem; }
.about__lead + .prose { color: var(--muted); }
.about__section { padding-top: 2.5rem; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.about__section > .eyebrow { margin-bottom: 1.25rem; }
.edu li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; }
.edu strong { font-weight: 500; display: block; }
.edu span { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { border: 1px solid var(--line); padding: .5rem .8rem; font-size: .92rem; }
.list-lines li { padding-block: .7rem; border-bottom: 1px solid var(--line); }
.list-lines li:first-child { padding-top: 0; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__portrait { position: static; max-width: 420px; }
  .edu li { grid-template-columns: 1fr; gap: .25rem; }
}

/* ---------------------------------------------------------------------
   Contact
   --------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 6vw, 7rem); align-items: start; }
/* La taille de l'email suit la largeur de sa colonne (cqi) : il tient toujours sur une ligne */
.contact__main { container-type: inline-size; }
.contact__mail { display: inline-block; font: 700 clamp(1rem, 7.2cqi, 4rem)/1.05 var(--font-display); letter-spacing: -.035em; white-space: nowrap; margin-block: 1rem 1.25rem; transition: color .3s; }
.contact__mail:hover { color: var(--accent); }
.contact__row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.contact__socials li a { display: flex; justify-content: space-between; align-items: center; padding-block: 1.1rem; border-bottom: 1px solid var(--line); font-size: 1.15rem; transition: color .3s, padding .4s var(--ease); }
.contact__socials li:first-child a { border-top: 1px solid var(--line); }
.contact__socials li a:hover { color: var(--accent); padding-left: .5rem; }
.contact__socials svg { width: .8em; height: .8em; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1.25rem; margin-top: 1.5rem; max-width: 640px; }
.field label { display: block; margin-bottom: .5rem; }
.field input, .field textarea {
  width: 100%; padding: .9rem 0; background: transparent; color: var(--text);
  border: 0; border-bottom: 1px solid var(--line-strong); font: inherit; font-size: 1.05rem; border-radius: 0;
  transition: border-color .3s;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.form__status { min-height: 1.5em; color: var(--muted); }
.form__privacy { font-size: .85rem; color: var(--muted); max-width: 60ch; }
.form__privacy a { color: var(--text); }

/* ---------------------------------------------------------------------
   Lightbox (plein écran)
   --------------------------------------------------------------------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--bg); color: var(--text);
}
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; animation: fade .3s var(--ease); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--gutter); }
.lightbox__stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 0 clamp(3rem, 7vw, 6rem) 2rem; min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; animation: fade .4s var(--ease); }
.lightbox__btn { font: 500 .75rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: .8rem; }
.lightbox__btn:hover { color: var(--accent); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; display: grid; place-items: center; }
.lightbox__nav:hover { color: var(--accent); }
.lightbox__nav svg { width: 1.4rem; height: 1.4rem; }
.lightbox__nav--prev { left: calc(var(--gutter) - .75rem); }
.lightbox__nav--next { right: calc(var(--gutter) - .75rem); }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: .5rem; text-align: center; }

/* Message d'erreur si un fichier de données est cassé */
.data-error { margin: 2rem var(--gutter); padding: 1.5rem; border: 1px solid var(--accent); font-family: var(--font-mono); font-size: .9rem; }

/* ---------------------------------------------------------------------
   Animations
   --------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-.07em) rotate(-.8deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-16px) rotate(-.6deg); } }
@keyframes word-in { from { opacity: 0; transform: translateY(.4em); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

/* Transitions douces entre les pages (navigateurs récents) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .35s var(--ease) both fade reverse; }
::view-transition-new(root) { animation: .45s var(--ease) both fade; }

/* Respecte le réglage "réduire les animations" du système */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__float, .hero__tool img, .hero__visual-float { animation: none !important; }
  .hero__word, .hero__visual { transform: none !important; }
}
