/* =========================================================
   PHOTOSPLUS.ORG — Vincent Tavernier
   Charte issue du CV : jaune / rouge sang / noir, diagonales, disques.
   ========================================================= */
:root {
  --jaune: #ffc20e;
  --jaune-2: #ffd54a;
  --orange: #f7a23b;
  --peche: #f8c3a1;
  --rouge: #b3120f;
  --rouge-vif: #e3261c;
  --noir: #0b0b0d;
  --noir-2: #141418;
  --souris: #6b6b72;      /* gris souris : remplace le noir dans la majorité des fonds */
  --souris-fonce: #58585f;
  --souris-clair: #84848c;
  --gris: #2a2a31;
  --blanc: #ffffff;
  --creme: #fffaf0;
  --texte: #16161a;
  --texte-doux: #4a4a55;
  --f-display: "Big Shoulders Display", "Oswald", Impact, sans-serif;
  --f-texte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --diag: -38deg;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--souris-fonce); color: var(--texte);
  font: 400 clamp(17px, 1.05vw + 10px, 19px)/1.65 var(--f-texte);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 999; background: var(--jaune); color: var(--noir); padding: 10px 16px; font-weight: 700; }
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; }
.mono { font-family: var(--f-mono); font-weight: 500; letter-spacing: .02em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); position: relative; }
.small { font-size: .8em; }
::selection { background: var(--jaune); color: var(--noir); }

/* ---------- Intro ---------- */
.intro { position: fixed; inset: 0; z-index: 200; pointer-events: none; overflow: hidden; display: grid; place-items: center; background: var(--souris-fonce); animation: introOut .7s var(--ease) 1.25s forwards; }
.intro-band { position: absolute; left: -50%; right: -50%; top: 50%; height: 34vmax; margin-top: -17vmax; background: var(--jaune); transform: rotate(var(--diag)) scaleX(0); transform-origin: left center; animation: bandIn .8s var(--ease) .1s forwards; }
.intro-vt { position: relative; display: flex; align-items: flex-start; }
.intro-vt svg { height: clamp(140px, 28vw, 380px); width: auto; filter: drop-shadow(6px 6px 0 var(--noir)); opacity: 0; transform: translateY(40%); animation: vtIn .6s var(--ease) forwards; }
.intro-vt svg + svg { animation-delay: .15s; margin-top: 12%; margin-left: -3%; }
@keyframes bandIn { to { transform: rotate(var(--diag)) scaleX(1); } }
@keyframes vtIn { to { opacity: 1; transform: none; } }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }

.no-intro .intro { display: none; }
.no-intro .hero-name .l { animation-delay: calc(.1s + var(--i) * 40ms); }
.no-intro .row--accent .l { animation-delay: calc(.3s + var(--i) * 40ms); }
.no-js .hero-name .l { transform: none; animation: none; }
.no-js .intro { display: none; }

/* ---------- Progress + cursor ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 120; background: linear-gradient(90deg, var(--jaune), var(--rouge-vif)); transform-origin: 0 50%; transform: scaleX(0); }
.cursor { position: fixed; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--jaune); z-index: 150; pointer-events: none; mix-blend-mode: difference; transform: translate(-100px, -100px); transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background .25s; margin: -17px 0 0 -17px; display: none; }
.cursor.is-big { width: 80px; height: 80px; margin: -40px 0 0 -40px; background: var(--jaune); }
@media (pointer: fine) { .cursor { display: block; } }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 16px var(--pad); transition: background .3s, padding .3s, backdrop-filter .3s; }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: rgba(88, 88, 95, .86); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 rgba(255, 194, 14, .18); transition: opacity .3s; }
.nav.is-scrolled { padding-top: 10px; padding-bottom: 10px; }
.nav.is-scrolled::before { opacity: 1; }
.logo { display: inline-flex; align-items: flex-start; text-decoration: none; font: 900 40px/.8 var(--f-display); letter-spacing: -.06em; }
.logo-v { color: var(--jaune); }
.logo-t { color: var(--rouge-vif); margin-top: .22em; margin-left: -.06em; }
.nav .logo { font-size: 44px; }
.logo--big { font-size: 96px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); }
.nav a { color: var(--blanc); text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .02em; position: relative; }
.nav ul a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%; background: var(--jaune); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav ul a:not(.btn):hover::after, .nav ul a.is-active::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; }
.burger span:not(.sr) { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--blanc); transition: transform .3s var(--ease), top .3s; }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
@media (max-width: 860px) {
  .burger { display: block; z-index: 2; }
  .nav ul { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px; background: var(--jaune); clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); transition: clip-path .6s var(--ease); }
  .nav ul.is-open { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  .nav ul a { color: var(--noir); font: 800 44px/1 var(--f-display); text-transform: uppercase; }
  .nav ul .btn { font: 700 20px/1 var(--f-texte); text-transform: none; background: var(--noir); border-color: var(--noir); color: var(--jaune) !important; padding: 18px 34px; }
  body.menu-open { overflow: hidden; }
  body.menu-open .burger span:not(.sr) { background: var(--noir); }
}

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border-radius: 999px; background: var(--jaune); color: var(--noir) !important; font: 700 16px/1 var(--f-texte); text-decoration: none; border: 2px solid var(--jaune); transition: background .25s, color .25s, box-shadow .25s; box-shadow: 0 0 0 0 rgba(255, 194, 14, .5); will-change: transform; }
.btn:hover { box-shadow: 0 10px 40px -8px rgba(255, 194, 14, .65); }
.btn-ghost { background: rgba(66, 66, 72, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--blanc) !important; border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { border-color: var(--jaune); color: var(--jaune) !important; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-full { width: 100%; justify-content: center; font-size: 18px; padding: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: radial-gradient(120% 90% at 85% 10%, #8a8a92 0%, var(--souris) 45%, var(--souris-fonce) 100%); color: var(--blanc); padding: 120px var(--pad) 110px; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-band { position: absolute; z-index: -1; left: -30%; right: -30%; top: 54%; height: clamp(160px, 26vw, 380px); background: linear-gradient(90deg, var(--jaune), var(--jaune-2) 50%, var(--orange)); transform: rotate(var(--diag)) translateY(var(--py, 0px)); box-shadow: 0 0 120px rgba(255, 194, 14, .35); opacity: .95; }
.hero-band::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(0, 0, 0, .05) 22px 23px); }
.hero-band--thin { top: 46%; height: 14px; background: var(--noir); box-shadow: none; opacity: 1; z-index: -1; margin-left: 6%; }
.hero-band--thin::after { display: none; }
.hero-vt { position: absolute; z-index: -1; right: 2vw; bottom: 7vh; display: flex; align-items: flex-start; pointer-events: none; transform: translateY(var(--py2, 0px)); }
.hero-vt svg { height: clamp(170px, 27vw, 400px); width: auto; filter: drop-shadow(5px 5px 0 #6d0806) drop-shadow(5px 5px 0 #3a0403); filter: drop-shadow(5px 5px 0 color-mix(in srgb, var(--rouge) 55%, #000)) drop-shadow(5px 5px 0 color-mix(in srgb, var(--rouge) 30%, #000)); }
.hero-vt .vt-t { margin-top: 13%; margin-left: -4%; }
.hero-inner { position: relative; max-width: 900px; }
.badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 16px; border: 1px solid rgba(255, 194, 14, .5); border-radius: 999px; font: 700 13px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--jaune); background: rgba(70, 70, 76, .6); backdrop-filter: blur(6px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--jaune); box-shadow: 0 0 0 0 rgba(255, 194, 14, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(255, 194, 14, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 194, 14, 0); } }
.hero-name { margin: 0; font: 900 clamp(64px, 12.5vw, 200px)/.84 var(--f-display); text-transform: uppercase; letter-spacing: -.01em; }
.hero-name .row { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-name .row--accent { color: transparent; -webkit-text-stroke: 2px var(--blanc); }
.hero-name .l { display: inline-block; transform: translateY(110%) rotate(8deg); animation: letterIn .9s var(--ease) forwards; animation-delay: calc(1.35s + var(--i) * 45ms); }
.row--accent .l { animation-delay: calc(1.6s + var(--i) * 45ms); }
@keyframes letterIn { to { transform: none; } }
.hero-metier { display: table; padding: 8px 16px 6px; background: rgba(66, 66, 72, .86); border-left: 4px solid var(--rouge-vif); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); margin: 26px 0 10px; font: 800 clamp(22px, 2.6vw, 34px)/1.15 var(--f-display); text-transform: uppercase; letter-spacing: .02em; color: var(--jaune); text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
.hero-roles { display: table; padding: 6px 16px; background: rgba(66, 66, 72, .86); margin: 0 0 34px; font: 500 clamp(17px, 1.4vw, 21px)/1.4 var(--f-mono); color: #eae7df; }
.hero-roles .mono { color: var(--rouge-vif); }
.caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; margin-left: 4px; background: var(--jaune); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { position: absolute; left: var(--pad); bottom: 30px; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13px; color: rgba(255, 255, 255, .9); }
.hero-meta a { color: var(--blanc); text-decoration: none; }
.hero-meta a:hover { color: var(--jaune); }
.scroll-hint { position: absolute; right: var(--pad); bottom: 28px; width: 28px; height: 46px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 20px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 10px; margin-left: -2px; border-radius: 2px; background: var(--jaune); animation: wheel 1.6s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 700px) {
  .hero-name { font-size: 20.5vw; }
  .hero-vt svg { height: 40vw; }
  /* allègements mobile : effets coûteux en GPU */
  .hero-band { box-shadow: none; }
  .badge, .hero-metier, .about-text, .btn-ghost { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .section { padding: 84px 0; }
  .reveal { transform: translateY(24px); transition-duration: .6s; }
  .hero-vt { right: 2vw; bottom: 15vh; opacity: .95; }
  .hero-band { top: 60%; }
  .scroll-hint { display: none; }
}

/* ---------- Bandeaux défilants ---------- */
.ticker { position: relative; z-index: 3; overflow: hidden; white-space: nowrap; transform: rotate(-2.2deg) scale(1.04); margin: -24px 0; padding: 16px 0; }
.ticker--yellow { background: var(--jaune); color: var(--noir); box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .6); }
.ticker--dark { background: var(--noir); color: var(--jaune); transform: rotate(1.6deg) scale(1.04); margin: 0 0 40px; border-block: 1px solid rgba(255, 194, 14, .3); }
.ticker-track { display: inline-flex; align-items: center; gap: 28px; animation: marquee 40s linear infinite; padding-left: 28px; }
.ticker span { font: 900 clamp(26px, 3.4vw, 46px)/1 var(--f-display); text-transform: uppercase; }
.ticker i { font-style: normal; color: var(--rouge-vif); font-size: 26px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(100px, 13vw, 180px) 0; overflow: hidden; }
.kicker { margin: 0 0 14px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--rouge); }
.h2 { margin: 0 0 28px; font: 900 clamp(46px, 7vw, 110px)/.9 var(--f-display); text-transform: uppercase; letter-spacing: -.005em; }
.h2--xl { font-size: clamp(56px, 9vw, 140px); }
.lead { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.6; margin: 0 0 1em; }
.lead strong { font-weight: 700; }
.lead u { text-decoration-color: var(--rouge-vif); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* Profil */
.about { background: var(--creme); }
.about::before { content: ""; position: absolute; right: -20%; top: -40%; width: 70%; height: 180%; background: var(--jaune); transform: rotate(var(--diag)); opacity: .9; z-index: 0; }
.about .wrap { z-index: 1; }
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.about-text { background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: clamp(26px, 4vw, 52px); border-radius: 28px; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .35); }
.about-text .lead:last-child { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(50px, 7vw, 100px); }
.stat { background: var(--souris); color: var(--blanc); border-radius: 24px; padding: 28px 26px 30px; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 194, 14, .35), transparent 70%); }
.stat-num { margin: 0; font: 900 clamp(56px, 6vw, 92px)/1 var(--f-display); color: var(--jaune); display: flex; align-items: baseline; }
.stat-num .pre, .stat-num .suf { font-size: .5em; color: var(--rouge-vif); }
.stat-lbl { margin: 8px 0 0; font-size: 16px; line-height: 1.4; color: #e5e2da; }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* Expertises — disques translucides façon CV */
.expertises { background: var(--jaune); }
.expertises .kicker { color: var(--rouge); }
.diag { position: absolute; inset: 0; background: linear-gradient(var(--diag), transparent 0 46%, var(--blanc) 46% 70%, transparent 70%); opacity: .55; }
.bubbles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); margin-top: 30px; }
.bubble { position: relative; aspect-ratio: 1; border-radius: 50%; padding: 16%; display: flex; flex-direction: column; justify-content: center; text-align: center; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .95), rgba(255, 245, 220, .72) 60%, rgba(248, 195, 161, .7)); border: 1px solid rgba(0, 0, 0, .12); box-shadow: inset 0 0 60px rgba(255, 255, 255, .6), 0 30px 60px -30px rgba(120, 60, 0, .55); transition: transform .5s var(--ease), box-shadow .5s; transform-style: preserve-3d; }
.bubble:nth-child(3n+2) { margin-top: 12%; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .9), rgba(248, 195, 161, .85) 70%, rgba(247, 162, 59, .8)); }
.bubble:nth-child(3n) { margin-top: 4%; }
.bubble:hover { box-shadow: inset 0 0 60px rgba(255, 255, 255, .7), 0 40px 80px -30px rgba(120, 30, 0, .7); }
.bubble-n { position: absolute; top: 9%; left: 50%; transform: translateX(-50%); color: var(--rouge); font-size: 14px; }
.bubble h3 { margin: 0 0 12px; font: 800 clamp(24px, 2.3vw, 34px)/1 var(--f-display); text-transform: uppercase; color: var(--noir); }
.bubble p { margin: 0; font-size: clamp(15px, 1.05vw, 17px); line-height: 1.5; color: #2b2620; }
@media (max-width: 1000px) { .bubbles { grid-template-columns: repeat(2, 1fr); } .bubble:nth-child(n) { margin-top: 0; } .bubble:nth-child(2n) { margin-top: 10%; } }
@media (max-width: 600px) {
  .bubbles { grid-template-columns: 1fr; }
  .bubble { aspect-ratio: auto; border-radius: 32px; padding: 34px 26px; }
  .bubble:nth-child(n) { margin-top: 0; }
  .bubble-n { position: static; transform: none; display: block; margin-bottom: 8px; }
}

/* Parcours */
.parcours { background: var(--blanc); }
.parcours::before { content: "2004"; position: absolute; right: -2vw; top: 6%; font: 900 clamp(160px, 26vw, 420px)/1 var(--f-display); color: transparent; -webkit-text-stroke: 2px rgba(255, 194, 14, .55); pointer-events: none; }
.timeline { list-style: none; margin: 40px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 190px; top: 10px; bottom: 10px; width: 3px; background: linear-gradient(var(--jaune), var(--rouge-vif)); border-radius: 3px; }
.tl-item { display: grid; grid-template-columns: 190px 1fr; gap: 0 50px; margin-bottom: 40px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 182px; top: 30px; width: 19px; height: 19px; border-radius: 50%; background: var(--jaune); border: 4px solid var(--noir); }
.tl-period { margin: 26px 0 0; font-size: 14px; color: var(--rouge); text-transform: uppercase; letter-spacing: .06em; padding-right: 30px; }
.tl-card { background: var(--creme); border: 1px solid #eee3c7; border-radius: 26px; padding: clamp(24px, 3.4vw, 42px); transition: transform .4s var(--ease), box-shadow .4s; position: relative; }
.tl-card:hover { transform: translateX(8px); box-shadow: -8px 0 0 var(--jaune), 0 30px 60px -30px rgba(0, 0, 0, .25); }
.tl-card h3 { margin: 0 0 6px; font: 800 clamp(28px, 3vw, 42px)/1.02 var(--f-display); text-transform: uppercase; }
.tl-statut { margin: 0 0 16px; font-weight: 600; color: var(--rouge); }
.tl-card p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .timeline::before { left: 8px; }
  .tl-item { grid-template-columns: 1fr; padding-left: 36px; }
  .tl-item::before { left: 0; top: 4px; }
  .tl-period { margin: 0 0 10px; }
}

/* International */
.monde { background: var(--souris-fonce); color: var(--blanc); }
.monde .kicker { color: var(--jaune); }
.monde-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.monde .lead { color: #dcd9d0; }
.cities { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.city { width: 100%; text-align: left; display: flex; align-items: baseline; gap: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: 14px 16px; min-height: 52px; font: 800 24px/1 var(--f-display); text-transform: uppercase; transition: border-color .25s, background .25s, color .25s; }
.city .mono { font-size: 12px; color: var(--jaune); }
.city small { margin-left: auto; font: 500 13px var(--f-texte); text-transform: none; color: #e2e2e6; }
.city:hover, .city.is-on { border-color: var(--jaune); background: var(--jaune); color: var(--noir); }
.city:hover .mono, .city.is-on .mono, .city:hover small, .city.is-on small { color: var(--noir); }
.globe-box { position: relative; aspect-ratio: 1; }
.globe { width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.globe:active { cursor: grabbing; }
.globe-hint { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: 12px; color: #d6d6da; margin: 0; }
@media (max-width: 900px) { .monde-grid { grid-template-columns: 1fr; } .globe-box { max-width: 560px; margin: 0 auto; width: 100%; } }
@media (max-width: 420px) { .cities { grid-template-columns: 1fr; } }

/* Réalisations */
.works { background: var(--souris); color: var(--blanc); }
.works .kicker { color: var(--jaune); }
.works-head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; }
.works .lead { color: #d6d3cb; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 40px; }
.chip { border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); min-height: 44px; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 15px; color: #e8e5de; transition: all .25s; }
.chip sup { color: var(--jaune); font-size: 11px; }
.chip:hover { border-color: var(--jaune); }
.chip.is-on { background: var(--jaune); border-color: var(--jaune); color: var(--noir); }
.chip.is-on sup { color: var(--rouge); }
/* Galerie en mosaïque (masonry) : 6 colonnes, 4 sur tablette, 2 sur mobile.
   Ordre chronologique conservé ligne par ligne : site.js calcule la hauteur (span) de chaque visuel. */
.grid { --gap: 10px; display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); align-items: start; }
.js .grid { grid-auto-rows: 4px; row-gap: 0; }
.work { margin: 0; }
.js .work { padding-bottom: var(--gap); }
.work.is-hidden { display: none; }
.work-link { display: block; position: relative; overflow: hidden; border-radius: 6px; background: var(--souris-fonce); text-decoration: none; transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .2s ease-out, box-shadow .4s; }
.work-link:hover { box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .55), 0 0 0 2px var(--jaune); z-index: 2; }
.work-link img { width: 100%; height: auto; transition: transform .8s var(--ease), filter .5s; }
.work-link:hover img { transform: scale(1.04); }
.work figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 12px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .9)); display: flex; flex-direction: column; gap: 3px; transform: translateY(30%); opacity: 0; transition: transform .45s var(--ease), opacity .45s; }
.work figcaption .mono { font-size: 10px; color: var(--jaune); text-transform: uppercase; letter-spacing: .1em; }
.work figcaption strong { font: 800 17px/1.05 var(--f-display); text-transform: uppercase; color: var(--blanc); }
.work figcaption em { font-style: normal; font-size: 12px; color: #d6d3cb; }
.work-link:hover figcaption, .work-link:focus-visible figcaption { transform: none; opacity: 1; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 800px) { .works-head { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid { --gap: 8px; grid-template-columns: repeat(2, 1fr); } }
@media (hover: none) {
  .work figcaption { transform: none; opacity: 1; padding: 30px 9px 8px; }
  .work figcaption strong { font-size: 14px; }
  .work figcaption em, .work figcaption .mono { display: none; }
}

/* Formation */
.formation { background: var(--jaune); padding-top: 0; }
.formation-band { background: var(--souris-fonce); color: var(--blanc); white-space: nowrap; overflow: hidden; padding: 14px 0; transform: rotate(-2deg) scale(1.05); margin: 30px 0 clamp(70px, 9vw, 120px); }
.formation-band span { font: 800 22px/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; }
.formation-band i { font-style: normal; color: var(--jaune); }
.formation-band .ticker-track { animation-duration: 55s; animation-direction: reverse; }
.diplomas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.diplomas li { background: rgba(255, 255, 255, .7); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 6px; border: 1px solid rgba(0, 0, 0, .08); transition: transform .35s var(--ease), background .35s; }
.diplomas li:hover { transform: translateY(-6px) rotate(-1deg); background: var(--blanc); }
.diplomas .mono { color: var(--rouge); font-size: 13px; }
.diplomas strong { font: 800 26px/1.05 var(--f-display); text-transform: uppercase; }
.diplomas small { font-size: 15px; color: var(--texte-doux); }

/* Contact */
.contact { background: var(--souris-fonce); color: var(--blanc); }
.contact::before { content: ""; position: absolute; left: -30%; bottom: -60%; width: 90%; height: 120%; background: var(--jaune); transform: rotate(var(--diag)); opacity: .08; }
.contact .kicker { color: var(--jaune); }
.contact .h2 { color: var(--jaune); }
.contact .lead { color: #dcd9d0; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.contact-list { list-style: none; margin: 36px 0 0; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .22); align-items: baseline; }
.contact-list .mono { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: #dcdce0; }
.contact-list a { color: var(--blanc); text-decoration: none; font-weight: 600; font-size: 19px; word-break: break-word; background: linear-gradient(var(--jaune), var(--jaune)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.contact-list a:hover { background-size: 100% 2px; }
.form { background: var(--souris); border: 1px solid rgba(255, 255, 255, .2); border-radius: 28px; padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 16px; box-shadow: 0 40px 100px -40px rgba(255, 194, 14, .25); }
.field { position: relative; }
.field input, .field textarea { width: 100%; background: #4d4d54; border: 1px solid #8e8e96; border-radius: 14px; padding: 26px 16px 10px; color: var(--blanc); font: 400 17px/1.5 var(--f-texte); transition: border-color .25s, box-shadow .25s; resize: vertical; }
.field label { position: absolute; left: 17px; top: 18px; color: #e0e0e4; font-size: 16px; pointer-events: none; transition: all .2s var(--ease); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--jaune); box-shadow: 0 0 0 4px rgba(255, 194, 14, .15); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 8px; font-size: 12px; color: var(--jaune); letter-spacing: .04em; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; min-height: 1.5em; font-weight: 600; }
.form-msg.ok { color: #7be08a; } .form-msg.err { color: #ff7a6e; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-list li { grid-template-columns: 1fr; gap: 2px; } }

/* Footer */
.footer { background: var(--noir); color: #bdbab3; padding: 40px 0 50px; overflow: hidden; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.footer a { color: var(--jaune); }
.footer p { margin: 0; }
.gear { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-top: 6px; border-radius: 50%; color: var(--jaune); opacity: .75; transition: transform .7s var(--ease), opacity .3s, background .3s; }
.gear:hover, .gear:focus-visible { opacity: 1; transform: rotate(180deg); background: rgba(255, 194, 14, .12); }

/* Date toujours visible sur chaque réalisation */
.work-date { position: absolute; top: 6px; left: 6px; z-index: 2; background: var(--jaune); color: var(--noir); font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 5px; letter-spacing: .03em; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.work.is-more { display: none; }
.works.show-all .work.is-more { display: block; }
.more-wrap { text-align: center; margin: 34px 0 0; }
.more sup { color: var(--jaune); }
.works.show-all .more-wrap { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8, 8, 10, .94); backdrop-filter: blur(10px); display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 100%; animation: lbIn .4s var(--ease); }
.lightbox img { max-height: calc(100svh - 140px); width: auto; max-width: 100%; border-radius: 10px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.lightbox figcaption { text-align: center; color: var(--blanc); display: flex; flex-direction: column; gap: 4px; }
.lightbox figcaption strong { font: 800 24px/1.1 var(--f-display); text-transform: uppercase; }
.lightbox figcaption span { color: var(--jaune); font-size: 13px; }
.lightbox button { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); color: var(--blanc); width: 54px; height: 54px; border-radius: 50%; font-size: 30px; line-height: 1; transition: background .2s; }
.lightbox button:hover { background: var(--jaune); color: var(--noir); }
.lb-close { position: absolute; top: 18px; right: 18px; }
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } }
@media (max-width: 600px) { .lightbox { grid-template-columns: 1fr; } .lb-prev, .lb-next { position: absolute; bottom: 20px; } .lb-prev { left: 20px; } .lb-next { right: 20px; } .lightbox img { max-height: calc(100svh - 220px); } }

/* Apparitions au défilement */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Page légale */
.legal { background: var(--creme); min-height: 100vh; padding: 140px 0 80px; }
.legal .wrap { max-width: 860px; }
.legal h2 { font: 800 30px/1.1 var(--f-display); text-transform: uppercase; margin: 40px 0 10px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
  .intro { display: none; }
  .hero-name .l { transform: none; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Sélecteur de langue (drapeaux) ---------- */
.nav nav { display: flex; align-items: center; gap: 18px; }
.langs { display: inline-flex; align-items: center; gap: 6px; }
.lang { display: inline-grid; place-items: center; width: 36px; height: 30px; border-radius: 7px; opacity: .55; filter: grayscale(.6); transition: opacity .25s, filter .25s, transform .25s, box-shadow .25s; }
.lang svg { display: block; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.lang:hover, .lang:focus-visible { opacity: 1; filter: none; transform: translateY(-1px); }
.lang.is-on { opacity: 1; filter: none; box-shadow: 0 0 0 2px var(--jaune); }
.nav .lang::after { display: none; }
.footer .langs { margin: 6px 0 2px; }
.nav-droite { display: flex; align-items: center; gap: 14px; }
@media (max-width: 860px) {
  .nav nav { gap: 6px; }
  .nav .langs { position: relative; z-index: 3; }
  body.menu-open .nav .langs { opacity: 0; pointer-events: none; }
}

/* ---------- Références « Ils m'ont fait confiance » ---------- */
.clients { background: var(--creme); }
.clients::before { content: ""; position: absolute; left: -25%; top: -30%; width: 60%; height: 160%; background: var(--jaune); transform: rotate(var(--diag)); opacity: .35; }
.clients .wrap { z-index: 1; }
.clients .lead { max-width: 760px; color: var(--texte-doux); }
.clients-defile { position: relative; z-index: 1; margin: 34px 0 44px; overflow: hidden; white-space: nowrap; transform: rotate(-2deg) scale(1.04); background: var(--souris-fonce); padding: 18px 0; display: grid; gap: 10px; }
.clients-defile .ticker-track { animation-duration: 60s; }
.clients-defile .ticker-track.inverse { animation-direction: reverse; animation-duration: 70s; }
.clients-defile span { font: 900 clamp(30px, 4.4vw, 60px)/1 var(--f-display); text-transform: uppercase; color: var(--blanc); }
.clients-defile .inverse span { color: var(--jaune); }
.clients-defile i { font-style: normal; color: var(--rouge-vif); font-size: 22px; }
.clients-grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.clients-grille li { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; min-height: 64px; padding: 12px 18px; background: rgba(255, 255, 255, .8); border: 1px solid rgba(0, 0, 0, .08); border-left: 4px solid var(--jaune); border-radius: 14px; font: 800 19px/1.15 var(--f-display); text-transform: uppercase; letter-spacing: .02em; color: var(--texte); transition: transform .3s var(--ease), border-color .3s, background .3s; }
.clients-grille li:hover { transform: translateY(-3px); border-left-color: var(--rouge-vif); background: var(--blanc); }
@media (max-width: 600px) { .clients-grille { grid-template-columns: 1fr 1fr; gap: 8px; } .clients-grille li { min-height: 56px; padding: 10px 12px; font-size: 16px; } }

/* Petits logos monochromes sous chaque nom (couleur au survol) */
.cl-logo { display: block; height: 34px; width: auto; max-width: 150px; object-fit: contain; object-position: left center; filter: grayscale(1) contrast(1.3); mix-blend-mode: multiply; opacity: .85; transition: filter .35s, opacity .35s; }
.clients-grille li:hover .cl-logo { filter: none; opacity: 1; }
.clients-grille li.a-logo { min-height: 104px; }
@media (max-width: 600px) { .cl-logo { height: 28px; max-width: 120px; } .clients-grille li.a-logo { min-height: 92px; } }

/* Trois petits points sous les grilles (références, réalisations) */
.trois-points { display: flex; justify-content: center; gap: 10px; margin: 26px 0 0; }
.trois-points span { width: 10px; height: 10px; border-radius: 50%; background: var(--jaune); animation: points 1.4s var(--ease) infinite; }
.trois-points span:nth-child(2) { background: var(--rouge-vif); animation-delay: .18s; }
.trois-points span:nth-child(3) { animation-delay: .36s; }
.clients .trois-points span:nth-child(odd) { background: var(--souris-fonce); }
@keyframes points { 0%, 80%, 100% { transform: translateY(0); opacity: .55; } 40% { transform: translateY(-6px); opacity: 1; } }
.works .more-wrap { margin-top: 22px; }

/* ---------- Vidéos ---------- */
.videos { background: var(--souris-fonce); color: var(--blanc); }
.videos::before { content: ""; position: absolute; right: -20%; top: -40%; width: 55%; height: 180%; background: var(--noir); transform: rotate(var(--diag)); opacity: .22; }
.videos .wrap { z-index: 1; }
.videos .kicker { color: var(--jaune); }
.videos .lead { color: #d6d3cb; }
.films { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.film { display: flex; flex-direction: column; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; overflow: hidden; }
.film--une { grid-column: span 2; grid-row: span 2; }
.film-ecran { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; overflow: hidden; cursor: pointer; }
.film-ecran img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .8s var(--ease), opacity .4s; }
.film-ecran:hover img, .film-ecran:focus-visible img { transform: scale(1.05); opacity: 1; }
.film-ecran iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center; background: var(--jaune); color: var(--noir); box-shadow: 0 0 0 0 rgba(255, 194, 14, .6); transition: transform .3s var(--ease); animation: pulse 2.2s infinite; }
.film--une .film-play { width: 88px; height: 88px; margin: -44px 0 0 -44px; }
.film-ecran:hover .film-play { transform: scale(1.12); }
.film-duree { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .78); color: var(--blanc); font-size: 12px; padding: 3px 7px; border-radius: 5px; }
.film-info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.film-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.film-annee { background: var(--jaune); color: var(--noir); padding: 3px 7px; border-radius: 5px; font-weight: 700; }
.film-role { border: 1px solid var(--rouge-vif); color: #ffb3ad; padding: 2px 7px; border-radius: 5px; }
.film h3 { margin: 0; font: 800 clamp(20px, 1.6vw, 24px)/1.05 var(--f-display); text-transform: uppercase; }
.film--une h3 { font-size: clamp(28px, 3vw, 44px); }
.film-desc { margin: 0; font-size: 15px; line-height: 1.5; color: #d6d3cb; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.film--une .film-desc { -webkit-line-clamp: 5; font-size: 16px; }
.film-yt { margin-top: auto; font-size: 12px; color: var(--jaune); text-decoration: none; }
.film-yt:hover { text-decoration: underline; }
@media (max-width: 1100px) { .films { grid-template-columns: repeat(2, 1fr); } .film--une { grid-row: auto; } }
@media (max-width: 640px) { .films { grid-template-columns: 1fr; gap: 14px; } .film--une { grid-column: auto; } .film-desc { -webkit-line-clamp: 3; } }
