/* ═══════════════════════════════════════════════════════════════════════════
   CINEMATIC TOKENS — design tokens partagés (v90.25.54)
   Extraits du <style> de index-new.html (homepage pilote).
   Préfixe `--nv-` pour cohabiter sans collision avec design-system.css.
   À charger APRÈS design-system.css et AVANT navbar-cinematic.css.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Fonts cinematic : on importe en haut, idempotent vs. les imports en <head> */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=IBM+Plex+Mono:wght@400;500&family=Hanken+Grotesk:wght@300;400;500;600;700&family=Archivo+Black&display=swap');

:root {
  /* ── Palette navy + or + crème ───────────────────────────────────────── */
  --nv-navy-deep:   #040611;
  --nv-navy-mid:    #0B1020;
  --nv-gold:        #E4C07E;
  --nv-gold-strong: #F4D58A;
  --nv-gold-soft:   #C9A24C;
  --nv-gold-deep:   #8E6420;
  --nv-cream:       #F8F2DE;
  --nv-cream-mute:  rgba(248, 242, 222, 0.65);
  --nv-cream-faint: rgba(248, 242, 222, 0.4);

  /* ── Typo cinematic ─────────────────────────────────────────────────── */
  --nv-font-serif-display: 'Fraunces', 'Fraunces', serif;
  --nv-font-serif:         'Fraunces', 'Times New Roman', serif;
  --nv-font-mono:          'IBM Plex Mono', monospace;
  --nv-font-body:          'Hanken Grotesk', 'Inter', system-ui, sans-serif;

  /* ── Breakpoints unifiés mobile-first (v90.26.0) ─────────────────────────
     À utiliser dans @media (min-width: var(--bp-md)) côté JS via getComputedStyle,
     ou comme convention partagée dans cinematic-components.css. */
  --bp-sm:  480px;   /* phone portrait grand (iPhone Pro Max) */
  --bp-md:  768px;   /* tablette portrait (iPad mini) */
  --bp-lg:  1024px;  /* tablette paysage / laptop entry */
  --bp-xl:  1280px;  /* desktop standard */

  /* ── Échelle typographique unifiée (v90.31.0) ─────────────────────────
     Source de vérité pour H1, H2, lead, kicker. Toute page doit consommer
     ces tokens via .cn-sec-heading, .cn-sec-heading--sub, .cn-lead, .cn-kicker. */
  --t-hero-h1-size:    clamp(2.6rem, 8vw, 5.5rem);
  --t-hero-h1-lh:      0.95;
  --t-hero-h1-ls:      -0.03em;

  --t-sec-h2-size:     clamp(2.2rem, 6vw, 4.4rem);
  --t-sec-h2-lh:       1.0;
  --t-sec-h2-ls:       -0.025em;

  --t-sub-h2-size:     clamp(1.5rem, 2.4vw, 1.9rem);
  --t-sub-h2-lh:       1.15;

  --t-lead-size:       clamp(1.05rem, 1.5vw, 1.25rem);
  --t-lead-lh:         1.55;

  --t-kicker-size:     0.72rem;
  --t-kicker-tracking: 0.16em;

  --max-prose-width:   680px;
  --max-lead-width:    640px;
  --max-h1-width:      900px;
  --max-h2-width:      24ch;

}


/* v90.33.2 — Régime typo modéré : neutralise les <em> excédentaires
   (au-delà de 1 par section). Préserve la sémantique HTML, retire l'italique
   visuel pour calmer la page. */
.cn-typo-trim { font-style: normal; }


/* ═══════════════════════════════════════════════════════════════
   v90.34.1 — Sprint 3 Bloc A : discipline typo
   ─ .cn-em-flat       : neutralise les <em> excédentaires (2e+ par heading)
   ─ .cn-hero-mega     : palier mega pour les H1 hero (4.5→11rem)
   ─ .meta-label       : scaffolding AI banni — caché
   ─ .cn-sec-heading--hero : override sans max-width 24ch
   ═══════════════════════════════════════════════════════════════ */

:root {
  --t-hero-mega-size: clamp(4.5rem, 14vw, 11rem);
  --t-hero-mega-lh: 0.95;
  --t-hero-mega-tracking: -0.025em;
}

.cn-em-flat {
  font-style: normal;
  color: inherit;
  font-weight: inherit;
}

.cn-hero-mega,
.cn-hero h1.cn-hero-mega,
h1.cn-hero-mega {
  font-size: var(--t-hero-mega-size);
  line-height: var(--t-hero-mega-lh);
  letter-spacing: var(--t-hero-mega-tracking);
  max-width: none;
}

/* Scaffolding AI typique — banni du visuel.
   La balise <span class="meta-label"> est gardée pour réversibilité. */
.meta-label,
.cn-meta-label {
  display: none !important;
}

/* H1 hero : pas de max-width 24ch (qui force les 6-line wraps).
   À appliquer en sus de .cn-sec-heading via : class="cn-sec-heading cn-sec-heading--hero" */
.cn-sec-heading--hero,
.cn-hero .cn-sec-heading {
  max-width: none !important;
  text-align: left;
}


/* ═══════════════════════════════════════════════════════════════
   v90.34.3 — Sprint 3 Bloc C : variété cards (anti-uniformité)
   Casser le défaut "toutes les cards sont la même forme glassmorphism"
   identifié par 3/4 agents Sprint 3. Ces classes opt-in s'utilisent
   à la place de .cn-liquid-glass-card sur certaines cards.
   ═══════════════════════════════════════════════════════════════ */

/* Card aplat or — sobre, statement, prend l'espace. Pour CTA secondaire,
   bloc de réassurance, témoignage isolé. */
.cn-card-flat-gold {
  background: var(--lx-surfa-72, rgba(11, 16, 32, 0.72));
  border: none;
  border-top: 2px solid var(--nv-gold, var(--r-gold));
  border-radius: 0;
  padding: 2rem 1.8rem;
  position: relative;
  box-shadow: 0 1px 3px rgba(4, 6, 17, 0.5);
}

/* Card éditoriale — typo pure, juste un trait or à gauche. Pour articles,
   citations, fragments éditoriaux. */
.cn-card-editorial {
  background: transparent;
  border: none;
  border-left: 2px solid var(--nv-gold, var(--r-gold));
  border-radius: 0;
  padding: 0.5rem 0 0.5rem 1.6rem;
  position: relative;
}
.cn-card-editorial h3,
.cn-card-editorial h4 {
  font-family: var(--nv-font-serif-display, 'Fraunces', serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  margin: 0 0 0.4rem;
  color: var(--nv-cream, var(--lx-ink, #F8F2DE));
}
.cn-card-editorial p {
  font-family: var(--nv-font-body, 'Hanken Grotesk', sans-serif);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--nv-cream-mute, var(--lx-ink-7, rgba(248,242,222,0.7)));
  margin: 0;
}

/* Card photo-fond — image en background, overlay navy, texte cream.
   Pour célébrités, héros, références visuelles. */
.cn-card-photo-fond {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: #0E1635 center/cover no-repeat;
  min-height: 280px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.cn-card-photo-fond::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,6,17,0) 0%, rgba(4,6,17,0.85) 100%);
  pointer-events: none;
}
.cn-card-photo-fond > * { position: relative; z-index: 1; padding: 1.4rem 1.6rem; color: var(--nv-cream, var(--lx-ink, #F8F2DE)); }

/* ═══ v90.34.3 — Discipline border-radius (24 → 14 partout) ═══════ */
.cn-result-card,
.cn-pack-card,
.cn-step-card,
.cn-article-card,
.cn-celeb-card,
.cap-card { border-radius: 0 !important; }


/* ═══════════════════════════════════════════════════════════════
   v90.34.4 — Sprint 3 Bloc D : asymétrie + respiration
   Casser la symétrie centrée systématique identifiée par 3/4 agents.
   ═══════════════════════════════════════════════════════════════ */

/* Respiration verticale : sections passent de 80px à 128-192px (luxe). */
.cn-result-section,
.pr-how,
.pr-pricing,
.pr-reviews,
.pr-faq,
.pr-form-section { padding: clamp(7rem, 14vh, 12rem) 1.2rem !important; }

/* Gutter de grilles : gap 1.4rem → 2.2rem (respirer les compositions). */
.pr-price-grid,
.pr-how-grid,
.cap-grid,
.cards-grid,
.packs-grid { gap: clamp(1.6rem, 2.5vw, 2.6rem); }

/* Bento dense : variante opt-in pour section outils/cards.
   Le 1er enfant prend 2 colonnes + 2 lignes (statement),
   les autres remplissent autour. */
.cn-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: clamp(1.4rem, 2vw, 2rem);
  max-width: 1280px;
  margin: 0 auto;
}
.cn-bento-grid > *:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
@media (max-width: 768px) {
  .cn-bento-grid { grid-template-columns: 1fr; }
  .cn-bento-grid > *:first-child { grid-column: auto; grid-row: auto; }
}

/* Split asymétrique 60/40 : pour sections hero ou contenu+visuel.
   Gauche prend 1.4fr, droite 1fr → composition pas miroir. */
.cn-split-asymmetric {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 8rem) 1.5rem;
}
@media (max-width: 900px) { .cn-split-asymmetric { grid-template-columns: 1fr; gap: 2.4rem; } }

/* Plein-bleed : sortir une section de la container pour qu'elle touche
   les bords. À utiliser sur portrait Palazzo, footer immersif, etc. */
.cn-full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}


/* v90.34.6 — Fallback motion-engine
   Si GSAP/Lenis/ScrollTrigger ne se chargent pas ou crashent,
   les éléments [data-animate-stagger] resteraient invisibles (opacity:0).
   Cette règle garantit qu'ils restent visibles en mode dégradé. */
html.motion-disabled [data-animate-stagger] > *,
html.motion-disabled [data-parallax],
html.motion-disabled [data-blurtext] { opacity: 1 !important; transform: none !important; }
