/* ---------- Palette qam ---------- */
:root {
  --bordeaux: #511e25;
  --bordeaux-hi: #6e2a33;
  --gris-clair: #d1d7d5;
  --gris-bleute: #9eafb2;
  --ardoise: #4a6374;
  --petrole: #203d4d;
  --nuit: #082737;
  --nuit-profonde: #02101a;

  --bg: var(--nuit-profonde);
  --bg-alt: var(--nuit);
  --surface: #0b2232;
  --line: rgba(158, 175, 178, 0.18);
  --text: var(--gris-clair);
  --muted: var(--gris-bleute);

  --radius: 18px;
  --pill: 999px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Outfit", "Arboria", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; font-weight: 600; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gris-clair); color: var(--nuit-profonde); padding: 8px 14px; border-radius: var(--pill); z-index: 100; }
.skip:focus { left: 8px; }

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

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em; padding: .85em 1.5em; border-radius: var(--pill);
  background: var(--gris-clair); color: var(--nuit-profonde);
  font: inherit; font-weight: 600; text-decoration: none; border: 1px solid var(--gris-clair);
  cursor: pointer; transition: transform .15s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { background: #fff; }
.btn:active { transform: scale(.96); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: rgba(209, 215, 213, .08); }
.btn-small { padding: .55em 1.1em; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(2, 16, 26, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gris-clair); }
.brand-pill { width: 74px; height: 32px; }
.brand-sign { font-weight: 700; font-size: .95rem; letter-spacing: .01em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; transition: color .2s ease; }
.nav a:not(.btn):hover { color: var(--text); }
.menu-toggle { display: none; }

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex; background: transparent; color: var(--text); font: inherit; font-weight: 500;
    border: 1px solid var(--line); border-radius: var(--pill); padding: .45em 1em; cursor: pointer;
  }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--nuit-profonde); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav .btn { margin-top: 16px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(48px, 7vw, 90px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(32, 61, 77, .55), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow { color: var(--muted); font-weight: 500; font-size: .95rem; letter-spacing: .02em; margin-bottom: 1.2em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-meta { font-size: .9rem; color: var(--ardoise); color: var(--muted); opacity: .8; margin: 0; }

.showreel {
  position: relative; aspect-ratio: 16 / 10; width: 100%;
  border-radius: 28px; overflow: hidden; border: 1px solid var(--line);
  background: var(--petrole); cursor: pointer; padding: 0; color: var(--text);
  display: grid; place-items: center;
  transition: transform .3s ease;
}
.showreel:hover { transform: translateY(-3px); }
.showreel-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(81, 30, 37, .9), transparent 60%),
    radial-gradient(90% 80% at 90% 100%, rgba(74, 99, 116, .8), transparent 60%),
    linear-gradient(140deg, var(--nuit), var(--petrole));
}
.showreel-label { position: absolute; left: 22px; bottom: 18px; font-weight: 600; font-size: .95rem; letter-spacing: .02em; }

.play {
  position: relative; display: grid; place-items: center;
  width: 108px; height: 64px; border-radius: var(--pill);
  background: var(--gris-clair); color: var(--nuit-profonde);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  transition: transform .2s ease;
}
.play svg { width: 28px; height: 28px; margin-left: 3px; }
.showreel:hover .play, .card-media:hover .play { transform: scale(1.06); }
.play-sm { position: absolute; width: 66px; height: 40px; }
.play-sm svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Preuves ---------- */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 32px 24px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) {
  .proof-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0; }
  .stat:first-child { border-top: 0; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: end; justify-content: space-between; margin-bottom: 36px; }
.section-head h2 { margin: 0; }

/* ---------- Filtres ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  font: inherit; font-size: .95rem; font-weight: 500; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: var(--pill);
  padding: .45em 1.1em; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.filter:hover { color: var(--text); }
.filter.is-active { background: var(--gris-clair); color: var(--nuit-profonde); border-color: var(--gris-clair); }

/* ---------- Grille projets ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card.is-hidden { display: none; }
.card-feature { grid-column: span 2; }
.card-media {
  position: relative; aspect-ratio: 16 / 10; width: 100%; padding: 0; border: 0;
  display: grid; place-items: center; background: var(--petrole); color: var(--text);
  cursor: default; overflow: hidden;
}
button.card-media { cursor: pointer; }
.card-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.thumb-ph {
  position: absolute; inset: 0; display: grid; place-items: end start; padding: 14px 16px;
  font-size: .8rem; color: rgba(209, 215, 213, .55); letter-spacing: .03em;
}
.t1 { background: linear-gradient(135deg, var(--bordeaux), var(--petrole)); }
.t2 { background: linear-gradient(160deg, var(--petrole), var(--nuit)); }
.t3 { background: linear-gradient(200deg, var(--ardoise), var(--nuit)); }
.t4 { background: linear-gradient(120deg, var(--nuit), var(--bordeaux)); }
.t5 { background: linear-gradient(180deg, var(--petrole), var(--bordeaux)); }
.t6 { background: linear-gradient(150deg, var(--ardoise), var(--petrole)); }
.card-body { padding: 20px 22px 24px; }
.card-tags { font-size: .82rem; color: var(--muted); letter-spacing: .03em; margin-bottom: .5em; }
.card-body h3 { margin-bottom: .35em; }
.card-body p:last-child { color: var(--muted); margin: 0; font-size: .97rem; }
.card-feature h3 { font-size: 1.6rem; }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  .card-feature { grid-column: auto; }
}

/* ---------- Offre ---------- */
.offers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.offer { padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(2, 16, 26, .5); }
.offer-num { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--muted); padding: .2em .8em; border: 1px solid var(--line); border-radius: var(--pill); margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.offer p { color: var(--muted); margin: 0; font-size: .97rem; }
.badge { display: inline-block; vertical-align: middle; font-size: .7rem; font-weight: 600; letter-spacing: .03em; background: var(--bordeaux); color: var(--gris-clair); padding: .3em .75em; border-radius: var(--pill); margin-left: 4px; }
@media (max-width: 1000px) { .offers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .offers { grid-template-columns: 1fr; } }

.method { margin-top: 64px; }
.method h3 { font-size: 1.5rem; margin-bottom: 24px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--bordeaux-hi); padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.steps li::before { content: "0" counter(s); font-size: .85rem; color: var(--muted); font-weight: 600; }
.steps strong { font-size: 1.1rem; font-weight: 600; }
.steps span { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- A propos ---------- */
.about { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-photo {
  aspect-ratio: 4 / 5; border-radius: 28px; border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(160deg, var(--petrole), var(--bordeaux));
  display: grid; place-items: end start; padding: 18px 20px; color: rgba(209, 215, 213, .55); font-size: .85rem;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { color: var(--muted); font-size: 1.08rem; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-photo { max-width: 420px; } }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--bg) 0%, var(--nuit) 100%); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-links { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 10px; }
.contact-links a { text-decoration: none; font-weight: 500; font-size: 1.1rem; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .2s ease; }
.contact-links a:hover { border-color: var(--gris-clair); }
.form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 32px); }
.form label { display: grid; gap: 6px; font-size: .92rem; font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--nuit-profonde);
  border: 1px solid var(--line); border-radius: 12px; padding: .75em .9em; width: 100%;
  transition: border-color .2s ease;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gris-bleute); }
.form textarea { resize: vertical; min-height: 120px; }
.form .btn { justify-self: start; }
.form-note { margin: 0; font-size: .9rem; color: var(--muted); min-height: 1.4em; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer-inner p { margin: 0; color: var(--muted); font-size: .9rem; }
.brand-foot .brand-pill { width: 58px; height: 25px; }

/* ---------- Lecteur ---------- */
.player { width: min(1100px, 94vw); padding: 0; border: 0; border-radius: 18px; background: #000; overflow: visible; }
.player::backdrop { background: rgba(2, 16, 26, .88); backdrop-filter: blur(6px); }
.player-frame { aspect-ratio: 16 / 9; width: 100%; border-radius: 18px; overflow: hidden; }
.player-frame iframe, .player-frame video { width: 100%; height: 100%; border: 0; display: block; }
.player-close {
  position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--nuit-profonde); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer;
}

/* ---------- Apparition au scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Page légale ---------- */
.legal { padding: 64px 0 96px; max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }

/* ---------- Page liens (type Linktree) ---------- */
.links-page {
  min-height: 100vh;
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(32, 61, 77, .7), transparent 70%),
    radial-gradient(60% 40% at 100% 100%, rgba(81, 30, 37, .45), transparent 70%),
    var(--nuit-profonde);
}
.links { max-width: 520px; margin: 0 auto; padding: 56px 16px 40px; display: flex; flex-direction: column; gap: 28px; }
.links-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.links-avatar {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--line); background: linear-gradient(160deg, var(--petrole), var(--bordeaux));
  display: grid; place-items: center; font-size: 2rem; font-weight: 600; color: var(--gris-clair);
}
.links-logo { width: 150px; height: auto; overflow: visible; color: var(--gris-clair); }
.links-bio { margin: 0; color: var(--muted); line-height: 1.5; }
.links-stats { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.links-stats span { font-size: .85rem; font-weight: 500; padding: .35em .9em; border-radius: var(--pill); border: 1px solid var(--line); color: var(--text); font-variant-numeric: tabular-nums; }
.links-list { display: flex; flex-direction: column; gap: 12px; }
.link-btn {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 22px;
  border-radius: var(--pill); border: 1px solid var(--line);
  background: rgba(11, 34, 50, .75); color: var(--text); text-decoration: none; font-weight: 500; font-size: 1.05rem;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease;
}
.link-btn:hover { background: rgba(32, 61, 77, .9); border-color: rgba(158, 175, 178, .35); }
.link-btn:active { transform: scale(.97); }
.link-btn.is-main { background: var(--gris-clair); color: var(--nuit-profonde); border-color: var(--gris-clair); font-weight: 600; }
.link-btn.is-main:hover { background: #fff; }
.link-icon { width: 22px; height: 22px; flex: none; }
.link-label { flex: 1; text-align: center; }
.link-arrow { width: 22px; text-align: right; opacity: .6; transition: transform .2s ease; }
.link-btn:hover .link-arrow { transform: translateX(3px); }
.links-foot { text-align: center; font-size: .85rem; color: var(--muted); }
.links-foot a { color: var(--text); text-decoration: none; font-weight: 600; }

/* ---------- Formats courts (vidéos verticales) ---------- */
.shorts-head { margin: 56px 0 20px; max-width: 40em; }
.shorts-head h3 { font-size: 1.6rem; margin-bottom: .3em; }
.shorts-head p { color: var(--muted); margin: 0; }
.shorts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.shorts-head.is-hidden, .shorts.is-hidden { display: none; }
.short {
  position: relative; aspect-ratio: 9 / 16; width: 100%; padding: 0; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; background: var(--petrole); cursor: pointer;
  display: grid; place-items: center; color: var(--text); font: inherit;
}
.short img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.short::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(2, 16, 26, .9)); pointer-events: none; }
.short:hover img { transform: scale(1.03); }
.short:hover .play { transform: scale(1.06); }
.short .play { z-index: 1; }
.short-title { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; text-align: left; font-weight: 600; font-size: 1rem; line-height: 1.25; }
.short-badge { position: absolute; top: 12px; left: 12px; z-index: 1; font-size: .72rem; font-weight: 600; letter-spacing: .03em; background: var(--bordeaux); color: var(--gris-clair); padding: .35em .8em; border-radius: var(--pill); }
@media (max-width: 860px) {
  .shorts { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .shorts::-webkit-scrollbar { display: none; }
  .short { scroll-snap-align: start; }
}

/* Lecteur en vertical */
.player.is-portrait { width: min(420px, 92vw, calc(86vh * 9 / 16)); }
.player.is-portrait .player-frame { aspect-ratio: 9 / 16; }
.shorts-head .shorts-client { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gris-clair); border: 1px solid var(--line); border-radius: var(--pill); padding: .3em .9em; margin-bottom: 12px; }

/* ---------- Photos ---------- */
.photos { columns: 3; column-gap: 18px; }
.photos.is-hidden, .shorts-head.is-hidden { display: none; }
.photo {
  display: block; width: 100%; margin: 0 0 18px; padding: 0; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; background: var(--petrole); cursor: zoom-in;
  break-inside: avoid;
}
.photo img { width: 100%; height: auto; display: block; transition: transform .5s ease; }
.photo:hover img { transform: scale(1.03); }
@media (max-width: 860px) { .photos { columns: 2; column-gap: 12px; } .photo { margin-bottom: 12px; } }
.player.is-photo .player-frame { aspect-ratio: auto; background: #000; }
.player.is-photo .player-frame img { width: 100%; height: auto; max-height: 88vh; object-fit: contain; display: block; }
.player.is-photo { width: min(560px, 92vw, calc(88vh * 2 / 3)); }

/* ---------- Travaux : cartes projets + rangée qui défile ---------- */
.section-sub { color: var(--muted); margin: 0; max-width: 32em; }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 28px; }
.project {
  display: flex; align-items: center; gap: 14px; padding: 10px; text-align: left;
  background: var(--surface); color: var(--text); font: inherit; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s ease, background-color .2s ease, transform .15s ease;
}
.project:hover { border-color: rgba(158, 175, 178, .4); }
.project:active { transform: scale(.98); }
.project.is-active { background: var(--petrole); border-color: var(--gris-clair); }
.project-cover { width: 56px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.project-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.project-client { font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.project-title { font-weight: 600; font-size: 1.02rem; line-height: 1.25; }
.project-meta { font-size: .82rem; color: var(--muted); }

.panel-head { display: flex; gap: 20px; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.panel-head p { color: var(--muted); margin: 0; max-width: 40em; }
.rail-nav { display: flex; gap: 8px; flex: none; }
.rail-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  color: var(--text); font: inherit; font-size: 1.1rem; cursor: pointer; transition: background-color .2s ease, opacity .2s ease;
}
.rail-btn:hover:not(:disabled) { background: rgba(209, 215, 213, .1); }
.rail-btn:disabled { opacity: .3; cursor: default; }

.rail {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 6px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: none; scroll-snap-align: start; }
.rail .short { width: auto; height: clamp(340px, 52vh, 460px); aspect-ratio: 9 / 16; }
.rail .photo { width: auto; height: clamp(340px, 52vh, 460px); margin: 0; }
.rail .photo img { height: 100%; width: auto; }

.short-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease; z-index: 1; }
.short-preview.is-on { opacity: 1; }
.short:hover .play { opacity: 0; }
.short .play { transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 860px) {
  .projects { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .projects::-webkit-scrollbar { display: none; }
  .project { flex: 0 0 78%; scroll-snap-align: start; }
  .rail-nav { display: none; }
  .rail { margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .rail .short, .rail .photo { height: 380px; }
}

/* ---------- Lecture dans la carte ---------- */
.short { cursor: default; }
.short-hit { position: absolute; inset: 0; z-index: 2; background: transparent; border: 0; padding: 0; cursor: pointer; border-radius: inherit; }
.short-player { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; z-index: 3; }
.short.is-playing { border-color: var(--gris-clair); }
.short.is-playing .short-hit, .short.is-playing .play, .short.is-playing .short-title, .short.is-playing .short-badge { display: none; }
.short:hover .play { opacity: 0; }
.about-photo:has(img) { padding: 0; display: block; }

/* ---------- Cartes vidéo horizontales (teaser 4:3, YouTube 16:9) ---------- */
.rail .short.is-wide { aspect-ratio: 4 / 3; }
.rail .short.is-yt { aspect-ratio: 16 / 9; }
iframe.short-player { border: 0; }
.panel-link { margin: 14px 0 0; }
.panel-link a { color: var(--muted); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.panel-link a:hover { color: var(--text); }
@media (max-width: 860px) {
  .rail .short.is-wide, .rail .short.is-yt { height: auto; width: 86vw; }
}

/* ---------- Vidéo du haut de page (vlog) ---------- */
.showreel { aspect-ratio: 16 / 9; cursor: default; }
.showreel-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showreel-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 16, 26, 0) 50%, rgba(2, 16, 26, .85)); pointer-events: none; }
.showreel .play { z-index: 1; }
.showreel-label { z-index: 1; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.showreel-label small { font-weight: 400; font-size: .82rem; color: var(--muted); }
.showreel:hover .play { transform: scale(1.06); }
.showreel .short-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; background: #000; }
.showreel.is-playing .short-hit, .showreel.is-playing .play, .showreel.is-playing .showreel-label { display: none; }

/* ---------- Catégories Montages / Shooting ---------- */
.groups { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface); }
.group-btn {
  font: inherit; font-weight: 600; font-size: .95rem; color: var(--muted); background: transparent; border: 0;
  padding: .55em 1.3em; border-radius: var(--pill); cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
.group-btn:hover { color: var(--text); }
.group-btn.is-active { background: var(--gris-clair); color: var(--nuit-profonde); }
.project[hidden] { display: none; }

/* ---------- Produit digital ---------- */
.product { margin-top: 4px; padding: 14px 16px; border-radius: 14px; border: 1px dashed rgba(158, 175, 178, .35); background: rgba(8, 39, 55, .6); }
.product-status { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: var(--pill); padding: .25em .75em; margin-bottom: 10px; }
.product-name { font-weight: 700; font-size: 1.1rem; color: var(--text) !important; margin: 0 0 2px !important; }
.product p { margin: 0; }

/* ---------- Corrections revue UI ---------- */
/* Formulaire */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form button[disabled] { opacity: .6; cursor: progress; }
.form-note a { color: var(--text); }

/* Focus visible à l'intérieur des cartes (sinon coupé par overflow:hidden) */
.short-hit:focus-visible, .photo:focus-visible { outline: 2px solid var(--gris-clair); outline-offset: -4px; }
.showreel .short-hit:focus-visible { outline-offset: -4px; }

/* Le halo du haut de page ne doit pas faire défiler la page de côté */
.hero { overflow-x: clip; }

/* Consignes selon l'appareil */
.hint-touch { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-touch { display: inline; } }

/* Lisibilité des petites étiquettes */
.project-client, .short-badge { font-size: .78rem; }
.product-status { font-size: .76rem; }

/* Cibles tactiles */
.contact-links a { display: inline-block; padding: 10px 0; }
.footer-inner a { display: inline-block; padding: 12px 0; }

/* Laisser de la place au badge Netlify en bas de page */
.site-footer { padding-bottom: 72px; }

/* Produit digital */
.product-link { display: inline-block; margin-top: 10px; padding: 6px 0; font-size: .92rem; font-weight: 600; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.product-link:hover { border-color: var(--gris-clair); }

/* Mobile : la vidéo du haut remonte au-dessus des boutons */
@media (max-width: 900px) {
  .hero-grid { gap: 0; }
  .hero-text { display: contents; }
  .hero .eyebrow { order: 1; }
  .hero h1 { order: 2; }
  .hero .lead { order: 3; }
  .hero .showreel { order: 4; margin: 8px 0 24px; }
  .hero-cta { order: 5; margin-top: 0; }
  .hero-meta { order: 6; }
}

/* ---------- Galerie plein écran ---------- */
.player-nav, .player-count { display: none; }
.player.has-gallery .player-nav {
  display: grid; place-items: center; position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(2, 16, 26, .75); color: var(--text); font: inherit; font-size: 1.2rem; cursor: pointer;
  transition: background-color .2s ease;
}
.player.has-gallery .player-nav:hover { background: var(--petrole); }
.player-prev { left: -64px; }
.player-next { right: -64px; }
.player.has-gallery .player-count { display: block; position: absolute; left: 0; right: 0; bottom: -40px; margin: 0; text-align: center; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .player-prev { left: 8px; }
  .player-next { right: 8px; }
}

/* ---------- Haut de page : teaser + lien vers le vlog complet ---------- */
.hero-media { display: flex; flex-direction: column; gap: 14px; }
.hero-media-link { align-self: flex-start; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 6px 0; border-bottom: 1px solid var(--line); transition: color .2s ease, border-color .2s ease; }
.hero-media-link:hover { color: var(--text); border-color: var(--gris-clair); }
.showreel .short-player { object-fit: cover; }
@media (max-width: 900px) {
  .hero .hero-media { order: 4; margin: 8px 0 24px; }
  .hero .showreel { margin: 0; order: 0; }
}

/* ---------- Teaser du haut : bouton son discret au lieu du gros play ---------- */
.sound-pill {
  position: absolute; right: 14px; top: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px;
  border-radius: var(--pill); background: rgba(2, 16, 26, .7); border: 1px solid var(--line);
  color: var(--text); font-size: .85rem; font-weight: 600;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background-color .2s ease, transform .15s ease;
}
.sound-pill svg { width: 18px; height: 18px; }
.sound-pill .icon-sound { display: none; }
.showreel.is-sound-on .sound-pill .icon-sound { display: block; }
.showreel.is-sound-on .sound-pill .icon-muted { display: none; }
.showreel:hover .sound-pill { background: rgba(32, 61, 77, .9); }
.showreel:active .sound-pill { transform: scale(.96); }
.showreel[data-hero] { cursor: pointer; }
.showreel[data-hero] .short-hit { cursor: pointer; }
@media (max-width: 480px) { .sound-pill { right: 10px; top: 10px; padding: 7px 12px 7px 9px; } }

/* ---------- Inscription au lancement (produit digital) ---------- */
.notify { margin-top: 12px; display: grid; gap: 6px; }
.notify-label { font-size: .85rem; font-weight: 600; color: var(--text); }
.notify-row { display: flex; gap: 6px; }
.notify-row input {
  flex: 1; min-width: 0; height: 44px; padding: 0 12px; font: inherit; font-size: 16px; /* 16px : pas de zoom auto sur iPhone */
  color: var(--text); background: var(--nuit-profonde); border: 1px solid var(--line); border-radius: 12px;
}
.notify-row input:focus { outline: none; border-color: var(--gris-bleute); }
.notify-row button {
  height: 44px; padding: 0 16px; border: 0; border-radius: 12px; font: inherit; font-weight: 600;
  background: var(--gris-clair); color: var(--nuit-profonde); cursor: pointer; transition: transform .15s ease;
}
.notify-row button:active { transform: scale(.96); }
.notify-row button[disabled] { opacity: .6; }
.notify-note { margin: 0; min-height: 1.2em; font-size: .82rem; color: var(--muted) !important; }
.notify.is-sent .notify-row, .notify.is-sent .notify-label { display: none; }
.notify.is-sent .notify-note { color: var(--text) !important; font-weight: 500; }

/* ---------- Cartes vidéo : petit play en coin au lieu du bouton central ---------- */
.short .play-sm {
  position: absolute; top: 12px; right: 12px; left: auto; bottom: auto;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(2, 16, 26, .65); color: var(--gris-clair); border: 1px solid var(--line);
  box-shadow: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.short .play-sm svg { width: 14px; height: 14px; margin-left: 2px; }
.short:hover .play-sm { transform: none; }
