/* ============================================================
   CLANDESTUDIO — socle commun (toutes les pages)
   ============================================================ */
:root {
  --cream: #f2e9dc;
  --cream-2: #ebdfcd;
  --sand: #d6b58c;
  --paper: #fffaf2;
  --ink: #1e1812;
  --ink-soft: #6f604f;
  --line: rgba(30, 24, 18, .12);
  --line-strong: rgba(30, 24, 18, .24);
  --neon: #3fd9c0;
  --neon-ink: #0f6e56;
  --neon-glow: rgba(63, 217, 192, .35);
  --copper: #b86f2b;
  --glass: rgba(255, 250, 242, .62);
  --glass-strong: rgba(255, 250, 242, .82);
  --glass-line: rgba(255, 255, 255, .6);
  --blur: blur(18px) saturate(150%);
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 12px 32px -12px rgba(60, 40, 20, .22);
  --shadow-lg: 0 2px 4px rgba(60, 40, 20, .06), 0 30px 60px -20px rgba(60, 40, 20, .32);
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  /* Largeur maximale du contenu. Au-dela, le bloc reste centre et laisse du
   vide a gauche et a droite : sur un ecran 2560 px, 620 px de chaque cote.
   Le contenu est donc elargi sur les grands ecrans (l'ecart suit la taille),
   ce qui comble le vide ; le plafond ne sert plus qu'a eviter une ligne de
   texte trop longue au-dela de 2400 px. Le reste des valeurs est inchange :
   a 1440 px, le contenu reste a 1312 px comme avant. */
  --max: 2400px;
  --pad: clamp(16px, 5vw, 64px);
  --display: "Syne", system-ui, sans-serif;
  --text: "Work Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --dock-h: 64px;
  /* le dock flottant ne doit jamais recouvrir le bas du contenu */
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--cream); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--cream); color: var(--ink);
  font-family: var(--text); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--neon-ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--neon); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: 16px; transform: translateY(-200%); padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.skip-link:focus { transform: none; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Mise en page ---------- */
.shell { width: min(var(--max), 100% - 2 * var(--pad)); margin-inline: auto; }
.section { padding-block: clamp(80px, 11vw, 160px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--display); font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--copper);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.h-xl, .h-lg, .h-md { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; line-height: 1; margin: 0; text-wrap: balance; }
.h-xl { font-size: clamp(44px, 7.5vw, 112px); }
.h-lg { font-size: clamp(36px, 5.4vw, 76px); }
.h-md { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; }
.lead { margin: 22px 0 0; max-width: 620px; color: var(--ink-soft); font-size: clamp(17px, 1.5vw, 20px); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--split { grid-template-columns: 1fr auto; align-items: end; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--text); font-weight: 600; font-size: 15px; line-height: 1;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translate(2px, -2px); }
.btn--primary { background: var(--ink); color: var(--paper); box-shadow: 0 0 0 0 var(--neon-glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px var(--neon-glow), 0 0 0 4px rgba(63, 217, 192, .18); }
.btn--neon { background: var(--neon); color: var(--ink); }
.btn--neon:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -6px var(--neon-glow); }
.btn--glass { background: var(--glass); border-color: var(--glass-line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow); }
.btn--glass:hover { transform: translateY(-2px); background: var(--glass-strong); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--neon-ink); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .25s var(--ease); }

.glass {
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow);
}

/* ---------- Dock (navigation) ---------- */
.dock {
  position: fixed; z-index: 100; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 7px;
  border-radius: 999px;
  background: rgba(255, 250, 242, .58); border: 1px solid rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 20px 50px -18px rgba(40, 25, 10, .45);
  transition: transform .45s var(--ease), opacity .3s var(--ease);
}
.dock.is-hidden { transform: translate(-50%, 140%); opacity: 0; }
.dock__logo, .dock__item {
  position: relative; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  transition: background .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
}
.dock__logo img { width: 30px; height: 30px; object-fit: contain; }
.dock__logo { margin-right: 4px; }
.dock__sep { width: 1px; height: 26px; background: var(--line-strong); margin-inline: 4px; }
.dock__item .icon { width: 22px; height: 22px; }
.dock__item:hover { background: rgba(30, 24, 18, .07); transform: translateY(-3px) scale(1.08); }
.dock__item[aria-current="page"] { background: var(--ink); color: var(--paper); }
.dock__item[aria-current="page"]::after {
  content: ""; position: absolute; bottom: -5px; width: 4px; height: 4px; border-radius: 50%; background: var(--neon);
}
.dock__tip {
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translate(-50%, 6px);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 500;
  opacity: 0; transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.dock__item:hover .dock__tip, .dock__item:focus-visible .dock__tip { opacity: 1; transform: translate(-50%, 0); }
.dock__cta {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; margin-left: 6px; padding: 0 20px;
  border-radius: 999px; background: var(--neon); color: var(--ink);
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.dock__cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -6px var(--neon-glow); }

/* ---------- Pied de page ---------- */
.footer { padding: 70px 0 calc(130px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__logo { width: 220px; height: auto; }
.footer__about { margin: 18px 0 0; max-width: 360px; color: var(--ink-soft); font-size: 15px; }
.footer h2 { margin: 0 0 14px; font-family: var(--display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer li a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); transition: color .2s; }
.footer li a:hover { color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; }

/* ---------- Lueur du curseur ---------- */
.cursor-glow {
  position: fixed; z-index: 90; left: 0; top: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(63, 217, 192, .13) 0%, rgba(63, 217, 192, .04) 38%, transparent 68%);
  mix-blend-mode: multiply; transition: opacity .4s var(--ease);
  will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }

/* ---------- Apparitions au scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Animations liées au scroll (réversibles) ----------
   site.js écrit --in (0 → 1) selon la position de l'élément dans l'écran.
   On utilise translate / scale / rotate (propriétés séparées) pour ne pas
   écraser les transform des effets de survol. */
.js [data-anim] { --in: 0; opacity: var(--in); will-change: opacity, translate, scale, rotate; }
.js [data-anim="up"]    { translate: 0 calc((1 - var(--in)) * 70px); }
.js [data-anim="left"]  { translate: calc((1 - var(--in)) * -90px) calc((1 - var(--in)) * 30px); }
.js [data-anim="right"] { translate: calc((1 - var(--in)) * 90px) 0; }
.js [data-anim="zoom"]  { scale: calc(.82 + var(--in) * .18); }
.js [data-anim="tilt"]  { translate: 0 calc((1 - var(--in)) * 60px); rotate: x calc((1 - var(--in)) * 22deg); transform-origin: 50% 100%; }
.js [data-anim="flip"]  { rotate: y calc((1 - var(--in)) * -35deg); translate: 0 calc((1 - var(--in)) * 30px); transform-origin: 0 50%; }
.js [data-anim="reveal-card"] { opacity: 1; clip-path: inset(calc((1 - var(--in)) * 14%) calc((1 - var(--in)) * 10%) round 36px); scale: calc(.94 + var(--in) * .06); }
.works, .why__grid { perspective: 1400px; }
.js [data-parallax] { --py: 0; scale: 1.12; translate: 0 calc(var(--py) * -44px); }

/* ---------- Fond d'ambiance animé (injecté par site.js) ---------- */
.ambient-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--cream); }
.ambient-bg i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; animation: drift 26s ease-in-out infinite alternate; }
.ambient-bg i:nth-child(1) { width: 46vmax; height: 46vmax; left: -12vmax; top: -14vmax; background: radial-gradient(circle, rgba(63, 217, 192, .55), transparent 65%); }
.ambient-bg i:nth-child(2) { width: 40vmax; height: 40vmax; right: -14vmax; top: 18vh; background: radial-gradient(circle, rgba(184, 111, 43, .42), transparent 65%); animation-duration: 32s; animation-delay: -8s; }
.ambient-bg i:nth-child(3) { width: 38vmax; height: 38vmax; left: 22vw; bottom: -18vmax; background: radial-gradient(circle, rgba(214, 181, 140, .7), transparent 65%); animation-duration: 38s; animation-delay: -14s; }
.ambient-bg i:nth-child(4) { width: 22vmax; height: 22vmax; right: 18vw; bottom: 8vh; background: radial-gradient(circle, rgba(63, 217, 192, .35), transparent 65%); animation-duration: 22s; animation-delay: -4s; }
@keyframes drift {
  33% { transform: translate3d(8vw, 6vh, 0) scale(1.12); }
  66% { transform: translate3d(-5vw, 10vh, 0) scale(.92); }
  100% { transform: translate3d(4vw, -6vh, 0) scale(1.06); }
}
.ambient-bg__grain {
  position: absolute; inset: -50%; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } }
body { background: transparent; }
/* Les entrées latérales animées ne doivent jamais créer de défilement horizontal.
   « clip » (et non « hidden ») garde le fonctionnement des éléments collants. */
main, .footer { overflow-x: clip; }

/* ---------- Titres révélés mot par mot ---------- */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .w > span { display: inline-block; transform: translate3d(0, 105%, 0) rotate(4deg); transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.js [data-split].is-in .w > span { transform: none; }

/* ---------- Machine à écrire (petits titres) ---------- */
.eyebrow.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -2px; background: currentColor; animation: caret .7s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- Vitrine : clients, partenaires, émissions phares ---------- */

/* ---------- Cartes en 3D (classe ajoutée par site.js) ---------- */
.js .tilt { --rx: 0deg; --ry: 0deg; position: relative; transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.js .tilt, .js .tilt:hover { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift, 0px)); }
.js .tilt:hover { --lift: -6px; transition: transform .12s linear, box-shadow .5s var(--ease), border-color .3s; }
.js .tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .35), transparent 45%);
}
.js .tilt:hover::after { opacity: 1; }

/* ---------- Sections sombres (rythme cinéma) ---------- */
.is-dark { --line: rgba(255, 250, 242, .14); --line-strong: rgba(255, 250, 242, .26); background: #17120e; color: var(--paper); }
.is-dark .lead, .is-dark .ink-soft { color: rgba(255, 250, 242, .68); }
.is-dark .eyebrow { color: var(--neon); }
.is-dark .pf-card__sub, .is-dark .pf-card__body h3 { color: var(--paper); }
.is-dark .pf-card__sub { color: rgba(255, 250, 242, .6); }
.is-dark .pf-reels__label { color: rgba(255, 250, 242, .6); }
.is-dark .ex-pole__hook { color: var(--neon); }
.is-dark .ex-item, .is-dark .pf-track__btn { color: var(--ink); }
.is-dark .kinetic__track span { -webkit-text-stroke-color: rgba(255, 250, 242, .3); }
.is-dark .kinetic__track b { color: var(--neon); }
.is-dark .glass { background: rgba(255, 250, 242, .06); border-color: rgba(255, 255, 255, .1); color: var(--paper); box-shadow: none; }
.is-dark .why__card p { color: rgba(255, 250, 242, .65); }
.is-dark .why__card > .icon { color: var(--neon); }

/* ---------- Bande de texte cinétique ---------- */
.kinetic { overflow: hidden; padding: clamp(24px, 4vw, 48px) 0; }
.kinetic__track { display: flex; width: max-content; gap: .6em; font-family: var(--display); font-weight: 800; font-size: clamp(54px, 9vw, 150px); line-height: 1; letter-spacing: -.04em; white-space: nowrap; will-change: transform; }
.kinetic__track span { color: transparent; -webkit-text-stroke: 1.5px rgba(30, 24, 18, .35); }
.kinetic__track b { color: var(--neon-ink); font-weight: 800; }
.kinetic__track + .kinetic__track { margin-top: .1em; }

/* ---------- Bande défilante ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; gap: var(--gap, 56px); animation: marquee var(--speed, 40s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap, 56px) / 2)); } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .section-head--split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  /* Le logo reste TOUJOURS visible : c'est la marque du studio. On ne le masque
     plus ; on resserre plutot le dock pour qu'il tienne sur l'ecran. */
  .dock { gap: 2px; padding: 5px 7px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .dock__logo { display: grid; width: 44px; height: 44px; margin-right: 2px; }
  .dock__logo img { width: 26px; height: 26px; }
  .dock__sep { display: block; height: 22px; margin-inline: 2px; }
  .dock__item { width: 42px; height: 42px; }
  .dock__item .icon { width: 20px; height: 20px; }
  .dock__cta { width: 42px; height: 42px; padding: 0; justify-content: center; margin-left: 3px; }
  .dock__cta span { display: none; }
  .dock__tip { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (hover: none) { .cursor-glow { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .js [data-anim] { --in: 1 !important; clip-path: none !important; }
  .js [data-parallax] { --py: 0 !important; }
  .cursor-glow { display: none; }
}

/* ---------- Réserve pour le dock flottant ---------- */
/* Le dock est en position fixe : sans cette réserve, il recouvre la fin de la
   dernière section sur les écrans courts. */
.footer { padding-bottom: calc(var(--dock-h) + 28px); }
@media (max-width: 860px) {
  body { padding-bottom: calc(var(--dock-h) + 12px); }
}
