/* Nobula — landing. Images d'abord, texte minimal. */

:root {
  --bg: #f6f4f0;
  --paper: #ffffff;
  --ink: #141217;
  --ink-2: #57525c;            /* 6.9:1 sur --bg */
  --line: rgba(20, 18, 23, .1);
  --magenta: #880399;
  --rose: #be123d;            /* couleur de marque (commit 0a485eb) */
  --grad: linear-gradient(100deg, #a3165e 0%, var(--rose) 50%, #f43f5e 100%); /* = rond du logo (dégradé E) */
  --night: #0f0d12;
  --night-ink: #f3f1ee;
  --night-ink-2: #aaa4ad;      /* 8:1 sur --night */
  --radius: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --nav-h: 72px;
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.mono {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px;
}
.skip:focus { top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 54px; padding: 0 28px;
  border-radius: 999px;
  background: var(--grad);
  background-size: 160% 100%;
  background-position: 0 0;
  color: #fff;
  font-size: 16px; font-weight: 600; letter-spacing: -.01em;
  box-shadow: 0 14px 34px -16px rgba(163, 22, 94, .7);
  transition: background-position .5s var(--ease), box-shadow .3s var(--ease);
  cursor: pointer;
}
.btn:hover { background-position: 60% 0; box-shadow: 0 18px 44px -16px rgba(190, 18, 61, .75); }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; box-shadow: none; }
.btn--lg { height: 62px; padding: 0 36px; font-size: 17px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  /* Même axe que le contenu (.wrap) à toutes les largeurs */
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(246, 244, 240, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 600; letter-spacing: -.035em; }
.brand img { width: 40px; height: 40px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 15px; font-weight: 500; position: relative; padding: 6px 0; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; }
/* Au-dessus du bandeau sombre (haut de page), la nav passe en clair */
.nav:not(.is-stuck):not(.is-open) { color: #fff; }
.nav:not(.is-stuck):not(.is-open) .nav-toggle { color: #fff; }

/* ---------- Hero : bandeau sombre bord à bord (inspiré du bandeau V3) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: max(560px, 100svh);
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 64px;
  background: var(--night); color: #fff;
}
/* Vidéo carrée à droite, élargie ; son bord gauche se fond dans le noir */
.hero-video {
  position: absolute; z-index: -3; top: 0; right: 0; bottom: 0;
  width: min(74%, 135svh); height: 100%;
  object-fit: cover; object-position: 50% 12%;
  -webkit-mask-image: linear-gradient(105deg, transparent 0, transparent 10%, #000 46%);
  mask-image: linear-gradient(105deg, transparent 0, transparent 10%, #000 46%);
}
/* Couche en plus, étroite, posée sur le bord gauche de la vidéo : masque la cassure
   que laisse le masque incliné en bas à gauche (même largeur/position que .hero-video) */
.hero-edge {
  position: absolute; z-index: -2; top: 0; bottom: 0;
  left: calc(100% - min(74%, 135svh)); margin-left: -1px;
  width: clamp(80px, 9vw, 180px); pointer-events: none;
  background: linear-gradient(90deg, rgb(15, 13, 18) 0%, rgba(15, 13, 18, .9) 25%, rgba(15, 13, 18, .6) 50%, rgba(15, 13, 18, .25) 75%, rgba(15, 13, 18, 0) 100%);
}
.hero-grain {
  position: absolute; z-index: -2; inset: 0; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-scrim {
  position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(15, 13, 18, .95) 26%, rgba(15, 13, 18, .7) 46%, rgba(15, 13, 18, .2) 64%, rgba(15, 13, 18, 0) 80%);
}
.hero-head { display: grid; justify-items: start; align-content: center; gap: clamp(28px, 4.5vh, 44px); }

/* Second film (produits) : miroir du premier — vidéo à gauche, texte à droite. Caché au départ,
   hero.js le fait entrer. Les sélecteurs sont plus précis que ceux de l'entrée (.is-ready …). */
.hero-stack { display: grid; }
.hero-stack > .hero-head { grid-area: 1 / 1; }
.hero .hero-head--b { justify-items: end; text-align: right; visibility: hidden; }
.hero .hero-head--b .hero-side { justify-items: end; opacity: 0; transition: none; }
.hero .hero-head--b .hero-title .line > span { transition: none; }
.hero .hero-video.hero-video--b {
  left: 0; right: auto; opacity: 0; transition: none; object-position: 50% 22%;
  -webkit-mask-image: linear-gradient(255deg, transparent 0, transparent 10%, #000 46%);
  mask-image: linear-gradient(255deg, transparent 0, transparent 10%, #000 46%);
}
.hero .hero-edge--b {
  left: auto; right: calc(100% - min(74%, 135svh)); margin: 0 -1px 0 0; opacity: 0;
  background: linear-gradient(270deg, rgb(15, 13, 18) 0%, rgba(15, 13, 18, .9) 25%, rgba(15, 13, 18, .6) 50%, rgba(15, 13, 18, .25) 75%, rgba(15, 13, 18, 0) 100%);
}
.hero .hero-scrim--b {
  opacity: 0;
  background: linear-gradient(260deg, rgba(15, 13, 18, .95) 26%, rgba(15, 13, 18, .7) 46%, rgba(15, 13, 18, .2) 64%, rgba(15, 13, 18, 0) 80%);
}
/* Mots du titre animés un par un par hero.js (le mot entier garde son crénage) */
.hero-title .hw { display: inline-block; transform-origin: 0% 100%; }
/* Une fois l'entrée jouée, GSAP pilote seul : plus de transitions CSS qui le contredisent */
.hero.is-live .hero-title .line > span, .hero.is-live .hero-side, .hero.is-live .hero-video { transition: none; }
.hero-title {
  font-size: clamp(52px, 8.4vw, 136px);
  font-weight: 500; line-height: .9; letter-spacing: -.055em; color: #fff;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.hero-side { display: grid; justify-items: start; gap: 26px; max-width: 330px; }
.lede { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.45; color: var(--ink-2); }
.hero .lede { color: rgba(255, 255, 255, .78); }

/* Entrée du hero (appliquée seulement si le JS tourne) */
.js .hero-title .line > span { transform: translateY(108%); transition: transform 1s var(--ease); }
.js .hero-title .line:nth-child(2) > span { transition-delay: .09s; }
.js .hero-side { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease) .3s, transform .8s var(--ease) .3s; }
.js .hero-video { opacity: 0; transition: opacity 1.4s var(--ease) .15s; }
.is-ready .hero-title .line > span,
.is-ready .hero-side { opacity: 1; transform: none; }
.is-ready .hero-video { opacity: 1; }

.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Bandeaux défilants (mur de l'appel final) ---------- */
.row { overflow: hidden; }
.track {
  display: flex; width: max-content;
  animation: marquee var(--dur, 90s) linear infinite;
}
.row--rev .track { animation-direction: reverse; }
.is-paused .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tile {
  position: relative; flex: none;
  width: clamp(112px, 12.2vw, 176px); aspect-ratio: 3 / 4;
  margin-right: 12px; border-radius: var(--radius); overflow: hidden;
  background: #e8e4dd;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Appel final ---------- */
.final {
  position: relative; overflow: hidden;
  background: var(--night); color: var(--night-ink);
  padding: clamp(140px, 24vh, 240px) 0;
}
.final-wall {
  position: absolute; inset: -10% -6%;
  display: grid; align-content: center; gap: 14px;
  transform: rotate(-5deg);
  opacity: .42;
}
.final-wall .tile { width: clamp(150px, 16vw, 250px); margin-right: 14px; background: #1c1920; }
.final::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 50%, rgba(15, 13, 18, .82) 0%, rgba(15, 13, 18, .35) 100%);
}
.final-content { position: relative; z-index: 1; display: grid; justify-items: center; gap: 40px; text-align: center; }
.final h2 {
  font-size: clamp(48px, 8.2vw, 136px);
  font-weight: 500; line-height: .9; letter-spacing: -.055em; color: #fff;
}

/* ---------- Pied de page ---------- */
.foot { background: var(--night); color: var(--night-ink-2); border-top: 1px solid rgba(255, 255, 255, .08); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: 36px 0 44px; font-size: 14px; }
.foot .brand { color: var(--night-ink); font-size: 18px; }
.foot .brand img { width: 34px; height: 34px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.foot-links a:hover { color: var(--night-ink); }

/* ---------- Tablette ---------- */
@media (max-width: 1080px) {
  .hero-side { max-width: 460px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .nav-links { position: absolute; top: calc(100% - 1px); left: 0; right: 0;
    display: grid; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav.is-open { background: var(--bg); }
  .nav-link { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }
  .nav-links .btn { margin-top: 16px; justify-content: center; height: 50px; font-size: 16px; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
    border: 0; background: none; color: var(--ink); cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
  .nav-toggle span { position: relative; transform: translateY(-3.5px); }
  .nav-toggle span::before { content: ""; position: absolute; top: 7px; }
  .nav.is-open .nav-toggle span { transform: rotate(45deg); }
  .nav.is-open .nav-toggle span::before { transform: translateY(-7px) rotate(-90deg); }

  /* Mobile : texte en haut, vidéo dans la moitié basse, fondue vers le haut */
  .hero { align-items: flex-start; padding-top: calc(var(--nav-h) + 32px); }
  .hero-video { top: auto; width: 100%; height: 62%; object-position: 50% 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%); mask-image: linear-gradient(180deg, transparent 0, #000 30%); }
  .hero-scrim { background: linear-gradient(180deg, rgba(15, 13, 18, .92) 34%, rgba(15, 13, 18, .25) 62%, rgba(15, 13, 18, 0) 80%); }
  .hero-edge { display: none; }
  /* Téléphone : les deux films occupent le même bas d'écran, les deux textes le même haut */
  .hero .hero-video.hero-video--b { left: 0; right: 0; object-position: 50% 30%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%); mask-image: linear-gradient(180deg, transparent 0, #000 30%); }
  .hero .hero-scrim--b { background: linear-gradient(180deg, rgba(15, 13, 18, .92) 34%, rgba(15, 13, 18, .25) 62%, rgba(15, 13, 18, 0) 80%); }
  .hero .hero-head--b, .hero .hero-head--b .hero-side { justify-items: start; text-align: left; }


  .final-wall .tile { margin-right: 10px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}

/* ---------- Langues (pied de page) ---------- */
.foot-lang { display: flex; gap: 4px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.foot-lang a, .foot-lang span { padding: 4px 8px; border-radius: 6px; }
.foot-lang span { color: var(--night-ink); background: rgba(255, 255, 255, .1); }
.foot-lang a:hover { color: var(--night-ink); }

/* ---------- Bandeau cookies (même stockage que <x-cookie-banner>) ---------- */
.cookie {
  position: fixed; z-index: 90; right: 16px; bottom: 16px; left: 16px;
  max-width: 420px; margin-left: auto; padding: 20px;
  background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 30px 60px -24px rgba(20, 18, 23, .45); font-size: 14px; line-height: 1.5;
}
.cookie[hidden] { display: none; }
.cookie h2 { margin: 0 0 6px; color: var(--ink); font-size: 16px; font-weight: 600; }
.cookie p a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cookie-actions button {
  flex: 1 1 140px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
  font: 500 14px var(--font); cursor: pointer; touch-action: manipulation;
}
.cookie-ok { background: var(--grad); color: #fff; }
.cookie-no { background: #ece8e2; color: var(--ink); }
