/* Titouan Trinquart — étalonneur · B+ V3 */
:root {
  --bg: #0C0B0A;
  --panel: #1C1A18;
  --line: #2A2724;
  --text: #EAE6DF;
  --text-strong: #F5F2EC;
  --soft: #D9D5CD;
  --muted: #CFCAC1;
  --mute: #B8B3AB;
  --dim: #8F8A82;
  --off: #6B675F;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: 3%;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: none; transition: color .3s ease; }
a:hover { color: var(--mute); }
img { display: block; max-width: 100%; }
:focus-visible { outline: 1px solid var(--text); outline-offset: 4px; }

/* Langue : les textes existent en double, la classe du <html> choisit */
html[data-lang="fr"] .en,
html[data-lang="en"] .fr { display: none !important; }

.caps { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
.caps-sm { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; }
.grotesk { font-family: 'Space Grotesk', sans-serif; }
.underline { border-bottom: 1px solid var(--text); padding-bottom: 4px; }

.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- En-tête ---------- */
.site-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px; padding: 32px var(--gutter);
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  position: relative; z-index: 2;
}
.site-header.overlay { position: absolute; top: 0; left: 0; right: 0; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 36px; }
.site-header nav a.current { border-bottom: 1px solid var(--text); padding-bottom: 3px; }
.lang { display: flex; align-items: center; gap: 10px; }
.lang button {
  all: unset; cursor: pointer; padding: 6px 2px; color: var(--dim);
  border-bottom: 1px solid transparent; transition: color .3s ease;
}
.lang button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--text); }
.lang span { color: var(--dim); }

/* ---------- Showreel ---------- */
.hero { position: relative; height: 100vh; min-height: 640px; max-height: 1100px; overflow: hidden; background: var(--panel); }
.hero .slides .cover { opacity: 0; animation: heroSlide 24s linear infinite; }
.hero .slides .cover:first-child { opacity: 1; }
@keyframes heroSlide { 0% { opacity: 0; transform: scale(1); } 3% { opacity: 1; } 12.5% { opacity: 1; } 16% { opacity: 0; transform: scale(1.03); } 100% { opacity: 0; transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .hero .slides .cover { animation: none; } .hero .slides .cover:not(:first-child) { display: none; } }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,11,10,.6) 0%, rgba(12,11,10,0) 22%, rgba(12,11,10,0) 55%, rgba(12,11,10,.85) 100%); }
.hero-bottom {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 44px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.hero-name { display: flex; flex-direction: column; gap: 18px; }
.hero h1 {
  margin: 0; font-family: 'Geist', sans-serif; font-weight: 200;
  font-size: clamp(2.75rem, 7vw, 4.5rem); line-height: .9; letter-spacing: -.015em; text-transform: uppercase;
}
.hero .role { color: var(--soft); }
.hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.hero-side p { margin: 0; max-width: 320px; text-align: right; font-size: 13px; line-height: 1.7; color: var(--soft); }
.btn-reel {
  display: flex; align-items: center; gap: 14px; border: 1px solid rgba(234,230,223,.6);
  padding: 14px 22px; transition: background .4s ease, color .4s ease;
}
.btn-reel:hover { background: var(--text); color: var(--bg); }
.btn-reel:hover path { fill: var(--bg); }

/* ---------- Index ---------- */
.index { position: relative; height: 100vh; min-height: 880px; max-height: 1100px; overflow: hidden; background: var(--panel); }
.index .cover { transition: opacity .6s ease; }
.index .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,11,10,.92) 0%, rgba(12,11,10,.75) 45%, rgba(12,11,10,.15) 100%); }
.index-inner { position: relative; height: 100%; padding: 64px var(--gutter); display: flex; flex-wrap: wrap; gap: 48px; }
.index-side { flex: 0 0 200px; display: flex; flex-direction: column; gap: 28px; }
.index-side h2 { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; }
.filters { display: flex; flex-direction: column; gap: 12px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; }
.filters button {
  all: unset; cursor: pointer; align-self: flex-start; padding-bottom: 3px;
  color: var(--dim); border-bottom: 1px solid transparent; transition: color .3s ease;
}
.filters button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--text); }

.index-list { flex: 1 1 560px; max-width: 860px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; justify-content: center; }
.index-list li { border-top: 1px solid rgba(234,230,223,.14); }
.index-list li[hidden] { display: none; }
.index-list a {
  display: flex; align-items: baseline; gap: 20px; padding: 10px 0;
  transition: padding .55s var(--ease);
}
.index-list a:hover { color: inherit; }
.index-list .num { width: 32px; flex: none; font-size: 10px; letter-spacing: .2em; color: var(--dim); }
.index-list .row { flex: 1; display: flex; align-items: baseline; gap: 16px; min-width: 0; transition: transform .55s var(--ease); }
.index-list .client {
  font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; color: var(--off);
  white-space: nowrap; transition: color .4s ease;
}
.index-list .film { font-size: 13px; letter-spacing: .02em; color: var(--mute); opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .4s ease; }
.index-list .type { margin-left: auto; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); opacity: .8; transition: opacity .4s ease; white-space: nowrap; }
.index-list li.active a { padding: 22px 0; }
.index-list li.active .row { transform: translateX(10px); }
.index-list li.active .client { color: var(--text); }
.index-list li.active .film,
.index-list li.active .type { opacity: 1; }

.preview { margin-left: auto; align-self: flex-end; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.preview .p-cat { color: var(--soft); }
.preview .p-client { font-family: 'Space Grotesk', sans-serif; font-size: 22px; text-transform: uppercase; letter-spacing: .06em; }
.preview .p-film { font-size: 13px; color: var(--soft); }
.preview a { margin-top: 12px; }

/* ---------- Films à la une ---------- */
.feature { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); }
.feature .cover { transition: transform 1.6s var(--ease); }
.feature:hover .cover { transform: scale(1.03); }
.feature .veil { position: absolute; inset: 0; background: rgba(12,11,10,.38); }
.feature-text { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; text-shadow: 0 2px 24px rgba(0,0,0,.45); padding: 0 16px; }
.feature-text .meta { font-size: 11px; letter-spacing: .3em; color: var(--soft); }
.feature-text .big { font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: clamp(2rem, 6vw, 4.5rem); letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.feature-text .logo { height: clamp(calc(var(--h) * .5px), calc(var(--h) / 14.4 * 1vw), calc(var(--h) * 1.2px)); width: auto; max-width: min(720px, 80vw); margin: 22px 0; object-fit: contain; filter: drop-shadow(0 2px 24px rgba(0,0,0,.45)); }
.feature-text .sub { color: var(--soft); }

/* ---------- Citation ---------- */
.quote { min-height: 460px; padding: 64px var(--gutter); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; text-align: center; }
.quote .stem { width: 1px; height: 48px; background: rgba(234,230,223,.25); }
.quote p { margin: 0; max-width: 760px; font-family: 'Geist', sans-serif; font-weight: 300; font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.45; letter-spacing: -.005em; color: var(--muted); }
.quote strong { font-weight: 500; color: var(--text-strong); }
.quote .sub { color: var(--dim); letter-spacing: .32em; }

/* ---------- Mosaïque ---------- */
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); }
.tile .cover { transition: transform 1.2s var(--ease); }
.tile .veil { position: absolute; inset: 0; background: rgba(12,11,10,.42); transition: background .6s ease; }
.tile-text { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; text-shadow: 0 2px 16px rgba(0,0,0,.45); padding: 0 12px; }
.tile-text .t { font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: clamp(1.05rem, 2vw, 1.5rem); letter-spacing: .08em; text-transform: uppercase; color: var(--text); transition: transform .6s var(--ease), letter-spacing .6s var(--ease); }
.tile-text .s { color: var(--soft); opacity: .7; transition: opacity .6s ease, transform .6s var(--ease); }
.tile:hover .cover, .tile:focus-visible .cover { transform: scale(1.06); }
.tile:hover .veil, .tile:focus-visible .veil { background: rgba(12,11,10,.18); }
.tile:hover .t, .tile:focus-visible .t { letter-spacing: .14em; transform: translateY(-4px); }
.tile:hover .s, .tile:focus-visible .s { opacity: 1; transform: translateY(-4px); }

/* ---------- Pied de page ---------- */
.site-footer { padding: 120px var(--gutter) 48px; display: flex; flex-direction: column; gap: 56px; }
.site-footer .cta { color: var(--dim); }
.contact-line {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 24px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: clamp(1.25rem, 2.6vw, 2rem); line-height: 1; letter-spacing: -.01em;
}
.footer-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px;
  padding-top: 32px; border-top: 1px solid var(--line); color: var(--dim);
}
.footer-bar .social { display: flex; gap: 32px; }

/* ---------- Page projet ---------- */
.p-head { padding: 96px var(--gutter) 64px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; }
.p-title { display: flex; flex-direction: column; gap: 20px; }
.p-title .meta { color: var(--dim); }
.p-title h1 { margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: clamp(2.25rem, 5.5vw, 4.5rem); line-height: .95; letter-spacing: .02em; text-transform: uppercase; text-wrap: balance; }
.p-title h1.name { line-height: .9; }
.p-title .client { font-family: 'Geist', sans-serif; font-weight: 300; font-size: 24px; color: var(--muted); }
.credits { margin: 0; display: grid; grid-template-columns: auto auto; column-gap: 40px; row-gap: 12px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; }
.credits dt { color: var(--dim); }
.credits dd { margin: 0; }
.credits.pairs > div { display: contents; }
.stills figure.empty { background: var(--panel); }

.p-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); }
.p-video .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,11,10,.25) 0%, rgba(12,11,10,0) 30%, rgba(12,11,10,0) 70%, rgba(12,11,10,.55) 100%); }
.play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 96px; height: 96px; border-radius: 50%; border: 1px solid rgba(234,230,223,.7);
  background: rgba(12,11,10,.25); display: flex; align-items: center; justify-content: center;
  padding: 0; color: inherit; font: inherit; cursor: pointer;
  transition: background .4s ease, transform .6s var(--ease);
}
.p-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.p-video.playing .play, .p-video.playing .duration, .p-video.playing .shade { display: none; }
.play:hover { background: rgba(12,11,10,.5); transform: translate(-50%, -50%) scale(1.06); }
.p-video .duration { position: absolute; left: var(--gutter); bottom: 28px; }

.note { padding: 140px var(--gutter); display: flex; flex-wrap: wrap; gap: 48px; }
.note h2 { margin: 0; flex: 0 0 200px; font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; }
.note p { margin: 0; flex: 999 1 560px; max-width: 640px; font-family: 'Geist', sans-serif; font-weight: 300; font-style: italic; font-size: 19px; line-height: 1.7; color: var(--muted); }

.stills { padding: 0 var(--gutter) 160px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stills figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); }
.stills img { width: 100%; height: 100%; object-fit: cover; }

.neighbours {
  margin: 0 var(--gutter); padding: 48px 0 56px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px;
}
.nb { display: flex; align-items: center; gap: 24px; }
.nb:hover { color: var(--text); }
.nb.prev { justify-self: start; }
.nb.next { justify-self: end; text-align: right; }
.nb .thumb { width: 220px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); flex: none; }
.nb .thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: transform 1.2s var(--ease), opacity .6s ease; }
.nb:hover .thumb img, .nb:focus-visible .thumb img { transform: scale(1.06); opacity: 1; }
.nb .txt { display: flex; flex-direction: column; gap: 8px; }
.nb.next .txt { align-items: flex-end; }
.nb .dir, .nb .type { color: var(--dim); }
.nb .name { font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: 1.25rem; letter-spacing: .08em; text-transform: uppercase; }
.neighbours .all { justify-self: center; }

/* ---------- Bandeau Projets ---------- */
.work-band { position: relative; display: flex; align-items: center; justify-content: center; height: 200px; margin: 0 var(--gutter) 0; overflow: hidden; background: var(--panel); }
.work-band .cover { transition: transform 1.6s var(--ease); }
.work-band .veil { position: absolute; inset: 0; background: rgba(12,11,10,.72); transition: background .6s ease; }
.work-text { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.work-text .t { font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: 1.5rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text); transition: letter-spacing .8s var(--ease); }
.work-text .s { color: var(--mute); letter-spacing: .32em; }
.work-band:hover .cover, .work-band:focus-visible .cover { transform: scale(1.05); }
.work-band:hover .veil, .work-band:focus-visible .veil { background: rgba(12,11,10,.55); }
.work-band:hover .t, .work-band:focus-visible .t { letter-spacing: .14em; }

/* ---------- À propos ---------- */
.about { padding: 0 var(--gutter) 160px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; align-items: end; }
.portrait { margin: 0; grid-column: 1 / span 5; aspect-ratio: 4 / 5; position: relative; background: var(--panel); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--dim); }
.portrait figcaption { position: absolute; left: 0; bottom: -32px; }
.portrait.has-img { border: 0; }
.portrait.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-head.lost { min-height: 60vh; align-items: center; }
.p-head.lost .p-title a { align-self: flex-start; margin-top: 16px; }
.about-text { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 32px; padding-bottom: 8px; }
.sec-label { display: flex; align-items: center; gap: 20px; }
.sec-label .n { font-size: 10px; letter-spacing: .2em; color: var(--dim); }
.sec-label h2 { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; }
.about-text p { margin: 0; max-width: 560px; font-family: 'Geist', sans-serif; font-weight: 300; font-size: 19px; line-height: 1.75; color: var(--muted); }
.milestones { margin: 0; max-width: 560px; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.milestones > div { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }
.milestones dt { color: var(--dim); }
.milestones dd { margin: 0; text-align: right; }
.vision { background: #12110F; padding: 160px var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.vision .stem { width: 1px; height: 48px; background: rgba(234,230,223,.25); }
.vision p { margin: 0; max-width: 860px; font-family: 'Geist', sans-serif; font-weight: 300; font-style: italic; font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.45; color: var(--muted); }
.vision strong { font-weight: 500; color: var(--text-strong); }
.pillars { margin-top: 40px; width: 100%; max-width: 1080px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pillars > div { padding: 32px 24px 0; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.pillars .pt { font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: 1.25rem; letter-spacing: .08em; text-transform: uppercase; }
.pillars .pd { font-size: 13px; line-height: 1.7; color: var(--mute); }
.clients { padding: 140px var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 40px; }
.clients h2 { margin: 0; font-weight: 400; color: var(--dim); }
.clients ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; column-gap: 56px; row-gap: 20px; max-width: 1100px; }
.clients li { font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: 1.75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-page { padding: 96px var(--gutter) 120px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 64px; align-items: end; }
.contact-main { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 56px; }
.contact-main .msg { margin: 0; max-width: 560px; font-family: 'Geist', sans-serif; font-weight: 300; font-style: italic; font-size: 1.5rem; line-height: 1.55; color: var(--muted); }
.contact-main .msg strong { font-weight: 500; color: var(--text-strong); }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.contact-links .mail { font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1; letter-spacing: -.01em; border-bottom: 1px solid rgba(234,230,223,.4); padding-bottom: 10px; }
.contact-links .tel { font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: 1.5rem; letter-spacing: .02em; color: var(--muted); }
.contact-side { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 40px; }
.contact-side figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--panel); }
.contact-side figure img { width: 100%; height: 100%; object-fit: cover; }
.contact-side .milestones { max-width: none; }
.site-footer.slim { padding-top: 64px; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .site-header { padding: 24px var(--gutter); }
  .site-header nav { gap: 18px; }
  .hero-side { align-items: flex-start; }
  .hero-side p { text-align: left; }
  .index { height: auto; max-height: none; min-height: 0; }
  .index-inner { padding: 56px 8%; gap: 32px; }
  .index-side { flex: 1 1 100%; flex-direction: row; justify-content: space-between; align-items: center; }
  .filters { flex-direction: row; gap: 18px; }
  .index-list a { gap: 12px; }
  .index-list .num { width: 22px; }
  .index-list .film { display: none; }
  .index-list a { padding: 8px 0; }
  .index-list li.active a { padding: 16px 0; }
  .index-list .client { font-size: 18px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .index-list .type { font-size: 8px; letter-spacing: .2em; }
  .index-list .num { font-size: 9px; }
  .index-list li.active .row { transform: none; }
  .index-list li.active .client { transform: translateX(6px); transition: transform .55s var(--ease), color .4s ease; }
  .preview { margin-left: 0; align-self: flex-start; align-items: flex-start; text-align: left; }
  .mosaic { grid-template-columns: 1fr; }
  .stills { grid-template-columns: 1fr; padding-bottom: 96px; }
  .stills figure.empty { display: none; }
  .note { padding: 88px var(--gutter); gap: 24px; }
  .note h2 { flex-basis: 100%; }
  .p-head { padding: 56px var(--gutter) 48px; }
  .neighbours { grid-template-columns: 1fr 1fr; }
  .neighbours .all { grid-column: 1 / -1; grid-row: 2; padding-top: 16px; }
  .nb .thumb { display: none; }
  .site-footer { padding-top: 88px; gap: 40px; }
  .about, .contact-page { grid-template-columns: 1fr; padding-bottom: 96px; }
  .portrait, .about-text, .contact-main, .contact-side { grid-column: 1 / -1; }
  .portrait { margin-bottom: 32px; }
  .contact-page { padding-top: 56px; }
  .pillars { grid-template-columns: 1fr; }
  .pillars > div { padding: 24px 0 0; }
  .vision, .clients { padding-block: 96px; }
  .clients li { font-size: 1.25rem; }
  .work-band { height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
