/* ==========================================================================
   BrandForge — CSS final (clean, consolidated, no duplicates)
   ========================================================================== */

/* ---------------------------
   Variables principales
   --------------------------- */
:root {
  --black: #050507;
  --black-soft: #0b0b10;
  --gold: #e0c46a;
  --gold-strong: #f5e29b;
  --gold-soft: rgba(224,196,106,0.28);
  --white: #f5f5f5;
  --muted: #a7a7b3;
  --muted-2: rgba(167,167,179,0.88);

  --font-serif: "Cormorant Garamond", system-ui, serif;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --transition: cubic-bezier(.19,1,.22,1);
  --container-max: 1500px;

  --h1-size: clamp(28px, 6.6vw, 56px);
  --h2-size: clamp(20px, 3.6vw, 36px);
  --h3-size: clamp(18px, 2.6vw, 22px);
  --lead-size: clamp(14px, 2.2vw, 18px);
}

/* ---------------------------
   Reset & base
   --------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  background: radial-gradient(circle at 10% 0%, #181824 0, var(--black) 55%);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.78;
  position: relative;
}

/* Texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='noStitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  z-index: -1;
}

img, picture, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

* { word-wrap: break-word; hyphens: auto; }

/* ---------------------------
   Intro cinématique
   --------------------------- */
.intro-gate {
  position: fixed;
  inset: 0;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 9999;
}

.intro-gate__black {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, #1b1b26 0, var(--black) 55%);
}

.intro-gate__ray {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0, rgba(240,220,150,0.4) 40%, transparent 80%);
  opacity: 0;
  transform: translateX(-40%);
  will-change: transform, opacity;
  overflow: hidden;
}

.intro-gate__door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52%;
  background: radial-gradient(circle at 0 0, rgba(240,220,150,0.12), var(--black));
  box-shadow: 0 0 40px rgba(0,0,0,0.9);
  will-change: transform, box-shadow;
}

.intro-gate__door--left { left: 0; }
.intro-gate__door--right { right: 0; }

.intro-gate__crest {
  position: relative;
  z-index: 2;
  text-align: center;
  opacity: 0;
  transform: translateY(20px) scale(.98);
  will-change: transform, opacity;
}

.intro-gate__crest-inner {
  padding: 32px 40px;
  border-radius: 18px;
  border: 1px solid rgba(240,220,150,0.4);
  background: radial-gradient(circle at 0 0, rgba(240,220,150,0.18), rgba(5,5,7,0.96));
  box-shadow: 0 24px 80px rgba(0,0,0,0.9);
}

.intro-gate__crest img {
  height: 80px;
  filter: drop-shadow(0 0 18px rgba(240,220,150,0.45));
}

.intro-gate__subtitle {
  margin-top: 18px;
  font-family: var(--font-serif);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
}

.intro-skip {
  position: fixed;
  right: 28px;
  top: 22px;
  z-index: 10010;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s var(--transition), color .3s var(--transition), transform .18s var(--transition);
  backdrop-filter: blur(6px);
}

@media (prefers-reduced-motion: reduce) {
  .intro-gate, .intro-skip { display: none !important; }
}

/* ---------------------------
   Header
   --------------------------- */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(5,5,8,0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  z-index: 1000;
  padding: 18px 0;
  transition: background .5s var(--transition), border-color .5s var(--transition);
}

.header::after {
  content: "";
  position: absolute;
  left: clamp(6%,5vw,10%);
  right: clamp(6%,5vw,10%);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
  opacity: 0;
  transition: opacity .6s var(--transition);
}

.header.scrolled {
  background: rgba(5,5,8,0.96);
  border-color: rgba(255,255,255,0.08);
}

.header.scrolled::after { opacity: 1; }

.header-inner {
  width: 92%;
  max-width: var(--container-max);
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
  filter: drop-shadow(0 0 10px rgba(240,220,150,0.4));
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  transition: color .4s var(--transition);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-strong));
  transition: width .4s var(--transition);
}

.nav a:hover { color: var(--gold-strong); }
.nav a:hover::after { width: 100%; }
.nav .cta { color: var(--gold-strong); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: .3s;
}

.mobile-menu { display: none; }

/* ---------------------------
   HERO
   --------------------------- */
.hero {
  position: relative;
  padding-top: clamp(96px, 12vw, 160px);
  padding-bottom: clamp(48px, 8vw, 80px);
  overflow: hidden;
  min-height: clamp(320px, 44dvh, 720px);
}

.hero-inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: clamp(12px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.9fr);
  gap: clamp(20px, 6vw, 70px);
  align-items: center;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 11px;
  color: var(--gold-strong);
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: var(--h1-size);
  line-height: 1.02;
  margin: 0 0 18px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--white);
}

.hero-lead {
  max-width: 720px;
  color: var(--muted);
  font-size: var(--lead-size);
  margin-bottom: 14px;
}

.hero-note {
  color: var(--gold-strong);
  font-style: italic;
  font-size: 14px;
}

/* VISUEL */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-visual__frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.hero-visual__image {
  width: 50%;
  margin: 0 auto;
  transform: scale(0.5);
  transform-origin: center;
}

.hero-visual__glass {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(240,220,150,0.12), rgba(5,5,7,0.6));
  mix-blend-mode: soft-light;
}

.hero-visual__caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  max-width: 300px;
}

/* ---------------------------
   Sections
   --------------------------- */
.section {
  padding: clamp(48px, 8vw, 120px) 0;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: var(--h2-size);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.section-line {
  width: 90px;
  height: 2px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--gold), var(--gold-strong));
}

.section-grid {
  display: grid;
  gap: 28px;
}

.section-grid--two {
  grid-template-columns: 1fr minmax(260px, 0.9fr);
}

/* ---------------------------
   Cards exécutives
   --------------------------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 24px;
  margin-top: 28px;
}

.card--executif {
  background: radial-gradient(circle at 0 0, rgba(240,220,150,0.18), var(--black));
  border-radius: 16px;
  padding: clamp(18px, 3.2vw, 26px);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
  transition: .6s var(--transition);
}

.card--executif h3 {
  font-family: var(--font-serif);
  font-size: clamp(16px, 2.2vw, 20px);
  margin: 0 0 8px;
}

.card--executif p {
  color: var(--muted);
  font-size: 15px;
}

.card--executif::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -30%;
  width: 60%;
  height: 200%;
  background: linear-gradient(120deg, rgba(255,255,255,0.06), rgba(240,220,150,0.18), rgba(255,255,255,0.02));
  transform: rotate(18deg) translateX(-120%);
  opacity: 0;
  transition: 1.1s var(--transition);
}

.card--executif:hover {
  transform: translateY(-8px);
  border-color: rgba(240,220,150,0.6);
  box-shadow: 0 22px 50px rgba(0,0,0,0.9);
}

.card--executif:hover::after {
  transform: rotate(18deg) translateX(120%);
  opacity: 1;
}

/* ---------------------------
   CTA exécutif
   --------------------------- */
.executive-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(240,220,150,0.7);
  background: radial-gradient(circle at 0 0, rgba(240,220,150,0.3), var(--black));
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: .35s var(--transition);
  position: relative;
}

.executive-cta__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.9);
  background: radial-gradient(circle at 0 0, rgba(240,220,150,0.45), var(--black));
}

.executive-cta__button::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(224,196,106,0.18), transparent);
  filter: blur(8px);
  opacity: 0;
  transition: .45s var(--transition);
}

.executive-cta__button:hover::before {
  opacity: 1;
}

.executive-cta__mail {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.executive-cta__mail span {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  display: block;
  margin-bottom: 4px;
}

.executive-cta__mail a {
  color: var(--gold-strong);
  text-decoration: none;
}

/* ---------------------------
   Reveal helpers
   --------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s var(--transition);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------
   Footer
   --------------------------- */
.footer {
  padding: 48px 0;
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 20px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-links a:hover { color: var(--gold-strong); }

/* ---------------------------
   Mobile fixes
   --------------------------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    background: var(--black);
    padding: 20px;
    gap: 20px;
    position: absolute;
    top: 100%;
    right: 0;
    width: 80%;
    transform: translateX(100%);
    transition: transform .4s var(--transition);
    border-left: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .mobile-menu.active { transform: translateX(0); }
}

@media (max-width: 600px) {

  .hero {
    padding-top: 70px;
    padding-bottom: 40px;
    min-height: auto;
  }

  .hero-inner {
    gap: 24px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .intro {
    font-size: 15px;
  }

  .section-header h2 {
    font-size: 24px;
  }

  /* Intro cinématique — mobile */
  .intro-gate {
    width: 100%;
    height: 100dvh;
    overflow: hidden;
  }

  .intro-gate__door {
    width: 48%;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
  }

  .intro-gate__ray {
    transform: translateX(0);
    opacity: 0.25;
    overflow: hidden;
    max-width: 100%;
    left: 0;
    right: 0;
  }

  .intro-gate__crest-inner {
    padding: 20px 26px;
    transform: scale(0.85);
  }

  .intro-gate__crest img {
    height: 60px;
  }

  .intro-gate__door,
  .intro-gate__ray,
  .intro-gate__crest {
    max-width: 100%;
    overflow: hidden;
  }

  /* Hero visuel mobile */
  .hero-visual__frame {
    max-width: 320px;
  }

  .hero-visual__image {
    transform: scale(0.5);
  }

  .hero-visual__caption {
    font-size: 12px;
  }
}

/* ---------------------------
   Accessibility & reduced motion
   --------------------------- */
@media (prefers-reduced-motion: reduce) {
  .char,
  .anim-line .line > span,
  .anim-reveal,
  .hero__background-layer--gold,
  .card--executif::after {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .cursor-glow,
  .intro-gate {
    display: none !important;
  }
}

/* ---------------------------
   Utility classes
   --------------------------- */
.hidden-visually {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}












/* ============================================================
   SYNCHRO CSS ↔ SCRIPT
   Ajout des classes manquantes + restauration des comportements
   ============================================================ */

/* ------------------------------------------------------------
   1) Bouton Skip Intro (manquant dans ton HTML)
   ------------------------------------------------------------ */
.intro-skip {
  position: fixed;
  right: 28px;
  top: 22px;
  z-index: 10010;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s var(--transition), color .3s var(--transition), transform .18s var(--transition);
  backdrop-filter: blur(6px);
}

/* ------------------------------------------------------------
   2) États d’animation de l’intro (utilisés par le script)
   ------------------------------------------------------------ */
.intro-gate--animate .intro-gate__ray {
  opacity: 1;
  transform: translateX(0);
}

.intro-gate--open .intro-gate__door--left {
  transform: translateX(-100%);
}

.intro-gate--open .intro-gate__door--right {
  transform: translateX(100%);
}

.intro-gate--done {
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s var(--transition);
}

/* ------------------------------------------------------------
   3) Classe .preload utilisée par le script
   ------------------------------------------------------------ */
body.preload * {
  transition: none !important;
  animation: none !important;
}

/* ------------------------------------------------------------
   4) Cursor Glow (utilisé par le script mais absent du CSS final)
   ------------------------------------------------------------ */
.cursor-glow {
  position: fixed;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(240,220,150,0.25), transparent 70%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transform: translate(-50%, -50%);
  z-index: 999;
  transition: opacity .3s ease-out;
}

/* ------------------------------------------------------------
   5) Restauration des animations textuelles pour GSAP
   (ton CSS les neutralisait complètement)
   ------------------------------------------------------------ */
.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px) rotateX(6deg);
  will-change: transform, opacity;
}

.anim-reveal {
  opacity: 0;
  transform: translateY(18px) scale(.995);
  will-change: transform, opacity;
}

.anim-stagger .anim-line > * {
  opacity: 0;
  transform: translateY(18px);
}

/* ------------------------------------------------------------
   6) Restauration du 3D tilt pour les cartes
   (ton CSS avait supprimé transform-style)
   ------------------------------------------------------------ */
.card--executif {
  transform-style: preserve-3d;
  perspective: 800px;
}

/* ------------------------------------------------------------
   7) Parallax : permettre au JS de bouger l’élément
   ------------------------------------------------------------ */
[data-parallax] {
  will-change: transform;
}

/* ------------------------------------------------------------
   8) Reveal générique (cohérent avec le script)
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s var(--transition), transform 1s var(--transition);
}
