/* ═══ RESET & BASE ═══════════════════════════════════════════════════════ */
    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

    :root {
      --gold:       #c9a84c;
      --gold-glow:  #c9a84c40;
      --gold-pale:  #e8d49a;
      --dark:       #080810;
      --dark-2:     #0e0e1c;
      --dark-3:     #141428;
      --cream:      #f0ebe0;
      --muted:      rgba(240,235,224,0.5);
      --border:     rgba(240,235,224,0.08);
    }

    html { scroll-behavior: smooth; font-size: 16px; }

    body {
      background: var(--dark);
      color: var(--cream);
      font-family: 'DM Sans', sans-serif;
      font-weight: 300;
      line-height: 1.6;
      overflow-x: hidden;
    }

    ::-webkit-scrollbar { width: 4px; }
    ::-webkit-scrollbar-track { background: var(--dark); }
    ::-webkit-scrollbar-thumb { background: var(--gold-glow); border-radius: 2px; }

    /* ═══ NAV ══════════════════════════════════════════════════════════════════ */
    header {
      position: fixed; top: 0; left: 0; right: 0;
      z-index: 200;
      padding: 0 5vw;
      height: 72px;
      display: flex; align-items: center; justify-content: space-between;
      background: linear-gradient(to bottom, rgba(8,8,16,0.95), transparent);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(201,168,76,0.08);
    }

    .logo {
      font-family: 'Playfair Display', serif;
      font-size: 1.25rem;
      letter-spacing: 0.04em;
      color: var(--gold);
      text-decoration: none;
      display: flex; align-items: center; gap: 10px;
    }
    .logo-icon {
      width: 28px;
      height: 28px;
      display: block;
      object-fit: contain;
    }
    .logo-sub {
      font-family: 'DM Sans', sans-serif;
      font-size: 0.6rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--muted);
      display: block;
      margin-top: -2px;
    }

    nav { display: flex; align-items: center; gap: 2rem; }
    nav a {
      font-size: 0.82rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
      text-decoration: none;
      transition: color 0.25s;
      min-height: 44px;
      display: inline-flex;
      align-items: center;
    }
    nav a:hover { color: var(--cream); }

    .menu-toggle {
      display: none !important;
      border: 1px solid var(--gold-glow);
      background: transparent;
      color: var(--gold);
      border-radius: 6px;
      padding: 8px 10px;
      font-size: 0.72rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      min-height: 44px;
      align-items: center;
      justify-content: center;
    }

    .nav-btn {
      background: transparent;
      border: 1px solid var(--gold-glow);
      color: var(--gold) !important;
      padding: 9px 22px;
      border-radius: 2px;
      transition: background 0.25s, border-color 0.25s !important;
    }
    .nav-btn:hover { background: var(--gold-glow) !important; border-color: var(--gold) !important; }

    /* ═══ HERO ══════════════════════════════════════════════════════════════════ */
    #hero {
      position: relative;
      min-height: 100vh;
      display: flex; align-items: center;
      overflow: hidden;
    }

    /* Canvas Three.js — derrière tout */
    #hero-canvas {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      opacity: 0;
      transition: opacity 1.8s ease;
      z-index: 0;
    }
    #hero-canvas.loaded { opacity: 1; }

    /* Dégradé par-dessus la 3D pour lisibilité texte */
    .hero-vignette {
      position: absolute; inset: 0; z-index: 1;
      background:
        linear-gradient(105deg, rgba(8,8,16,0.92) 0%, rgba(8,8,16,0.6) 55%, rgba(8,8,16,0.2) 100%),
        linear-gradient(to bottom, rgba(8,8,16,0.4) 0%, transparent 30%, transparent 70%, rgba(8,8,16,0.9) 100%);
    }

    /* Contenu hero — visible IMMÉDIATEMENT, avant JS */
    .hero-text {
      position: relative; z-index: 2;
      max-width: 640px;
      padding: 0 5vw;
      padding-top: 72px;
    }

    .hero-eyebrow {
      display: inline-flex; align-items: center; gap: 10px;
      font-size: 0.7rem;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 1.5rem;
      opacity: 0;
      animation: fadeUp 0.7s 0.2s ease forwards;
    }
    .eyebrow-line {
      display: inline-block;
      width: 32px; height: 1px;
      background: var(--gold);
    }

    /* H1 — balise SEO principale, visible sans JS */
    h1 {
      font-family: 'Playfair Display', serif;
      font-size: clamp(2.4rem, 5.5vw, 4.2rem);
      font-weight: 700;
      line-height: 1.1;
      color: var(--cream);
      margin-bottom: 1.5rem;
      opacity: 0;
      animation: fadeUp 0.8s 0.4s ease forwards;
    }
    h1 em {
      font-style: italic;
      color: var(--gold);
    }

    .hero-desc {
      font-size: clamp(1rem, 1.4vw, 1.15rem);
      color: var(--muted);
      max-width: 480px;
      margin-bottom: 2.5rem;
      opacity: 0;
      animation: fadeUp 0.8s 0.6s ease forwards;
    }

    .hero-cta {
      display: flex; gap: 14px; flex-wrap: wrap;
      opacity: 0;
      animation: fadeUp 0.8s 0.8s ease forwards;
    }

    .btn {
      display: inline-block;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.8rem;
      font-weight: 500;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      text-decoration: none;
      padding: 14px 34px;
      border-radius: 2px;
      transition: all 0.25s;
      cursor: pointer;
      border: none;
      min-height: 44px;
    }
    .btn-gold {
      background: var(--gold);
      color: var(--dark);
      box-shadow: 0 0 30px var(--gold-glow);
    }
    .btn-gold:hover {
      background: var(--gold-pale);
      box-shadow: 0 4px 40px rgba(201,168,76,0.45);
      transform: translateY(-2px);
    }
    .btn-outline {
      background: transparent;
      color: var(--cream);
      border: 1px solid var(--border);
    }
    .btn-outline:hover {
      border-color: rgba(240,235,224,0.3);
      background: rgba(240,235,224,0.05);
      transform: translateY(-2px);
    }

    .hero-scroll-hint {
      position: absolute; bottom: 36px; left: 50%;
      transform: translateX(-50%);
      z-index: 2;
      display: flex; flex-direction: column; align-items: center; gap: 8px;
      opacity: 0;
      animation: fadeUp 1s 1.4s ease forwards;
    }
    .hero-scroll-hint span {
      font-size: 0.62rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .scroll-bar {
      width: 1px; height: 44px;
      background: linear-gradient(to bottom, var(--gold), transparent);
      animation: scrollAnim 2s 2s infinite;
    }
    @keyframes scrollAnim {
      0%   { transform: scaleY(0); transform-origin: top; }
      50%  { transform: scaleY(1); transform-origin: top; }
      51%  { transform: scaleY(1); transform-origin: bottom; }
      100% { transform: scaleY(0); transform-origin: bottom; }
    }

    /* ═══ STATS BAR ══════════════════════════════════════════════════════════ */
    #stats {
      background: var(--dark-2);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      display: grid;
      grid-template-columns: repeat(4, 1fr);
    }

    .stat-item {
      padding: 44px 32px;
      text-align: center;
      border-right: 1px solid var(--border);
      transition: background 0.3s;
      position: relative;
      overflow: hidden;
    }
    .stat-item:last-child { border-right: none; }
    .stat-item::before {
      content: '';
      position: absolute; bottom: 0; left: 50%;
      transform: translateX(-50%);
      width: 0; height: 2px;
      background: var(--gold);
      transition: width 0.4s;
    }
    .stat-item:hover::before { width: 60%; }
    .stat-item:hover { background: rgba(201,168,76,0.04); }

    .stat-n {
      display: block;
      font-family: 'Playfair Display', serif;
      font-size: clamp(2rem, 3vw, 2.8rem);
      font-weight: 700;
      color: var(--gold);
      line-height: 1;
      margin-bottom: 8px;
    }
    .stat-l {
      font-size: 0.72rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--muted);
    }

    /* ═══ SECTIONS COMMUNES ══════════════════════════════════════════════════ */
    section { padding: 100px 5vw; }

    .section-label {
      display: inline-flex; align-items: center; gap: 10px;
      font-size: 0.68rem;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 1rem;
    }
    .section-label::before {
      content: '';
      display: inline-block;
      width: 24px; height: 1px;
      background: var(--gold);
    }

    /* H2 SEO */
    h2 {
      font-family: 'Playfair Display', serif;
      font-size: clamp(1.8rem, 3.5vw, 3rem);
      font-weight: 700;
      line-height: 1.2;
      margin-bottom: 1rem;
    }

    .section-intro {
      font-size: 1.05rem;
      color: var(--muted);
      max-width: 580px;
      margin-bottom: 3.5rem;
    }

    /* ═══ FEATURES ═══════════════════════════════════════════════════════════ */
    #features { background: var(--dark); }
    .features-inner { max-width: 1200px; margin: 0 auto; }

    .features-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: var(--border);
      border: 1px solid var(--border);
    }

    .feat {
      background: var(--dark-2);
      padding: 44px 36px;
      transition: background 0.3s, transform 0.25s;
      position: relative;
      overflow: hidden;
    }
    .feat::after {
      content: '';
      position: absolute; top: 0; left: 0; right: 0;
      height: 2px;
      background: linear-gradient(to right, transparent, var(--gold), transparent);
      transform: scaleX(0);
      transition: transform 0.4s;
    }
    .feat:hover::after { transform: scaleX(1); }
    .feat:hover { background: var(--dark-3); transform: translateY(-3px); }

    .feat-icon {
      font-size: 1.35rem;
      color: var(--gold);
      margin-bottom: 1.2rem;
      width: 38px;
      height: 38px;
      border: 1px solid var(--gold-glow);
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    /* H3 SEO */
    h3 {
      font-family: 'Playfair Display', serif;
      font-size: 1.15rem;
      font-weight: 400;
      margin-bottom: 0.8rem;
      color: var(--cream);
    }
    .feat p { font-size: 0.95rem; color: var(--muted); line-height: 1.7; }

    /* ═══ MODES DE JEU ═══════════════════════════════════════════════════════ */
    #modes { background: var(--dark-2); }
    .modes-inner { max-width: 1200px; margin: 0 auto; }

    .modes-grid {
      display: grid;
      grid-template-columns: 1.5fr 1fr 1fr;
      gap: 16px;
    }

    .mode {
      background: var(--dark);
      border: 1px solid var(--border);
      padding: 48px 40px;
      text-decoration: none;
      color: var(--cream);
      position: relative; overflow: hidden;
      transition: border-color 0.3s, transform 0.25s;
      display: block;
    }
    .mode:hover { border-color: var(--gold-glow); transform: translateY(-5px); }
    .mode.featured { border-color: var(--gold-glow); background: linear-gradient(135deg,#120f04,#0e0e1c); }

    .mode-bg-glyph {
      position: absolute; bottom: -10px; right: 10px;
      font-size: 92px; opacity: 0.05;
      line-height: 1; pointer-events: none;
    }

    .mode-tag {
      font-size: 0.62rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 1rem;
      display: block;
    }
    .mode-tag i { margin-right: 6px; font-size: 0.7em; }
    .mode h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }
    .mode p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; margin-bottom: 2rem; }
    .mode-arrow { color: var(--gold); font-size: 1.1rem; transition: transform 0.25s; display: inline-block; }
    .mode:hover .mode-arrow { transform: translateX(6px); }

    /* ═══ DERNIERS ARTICLES ═════════════════════════════════════════════════ */
    #latest-posts { background: var(--dark); border-top: 1px solid var(--border); }
    .latest-posts-inner { max-width: 1200px; margin: 0 auto; }
    .latest-posts-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
    }
    .post-card {
      background: var(--dark-2);
      border: 1px solid var(--border);
      padding: 24px 22px;
      text-decoration: none;
      color: var(--cream);
      display: flex;
      flex-direction: column;
      gap: 10px;
      min-height: 220px;
      transition: transform 0.2s, border-color 0.2s;
    }
    .post-card:hover { transform: translateY(-4px); border-color: var(--gold-glow); }
    .post-card-loading {
      min-height: 120px;
      display: flex;
      align-items: center;
      justify-content: center;
      grid-column: 1 / -1;
      color: var(--muted);
    }
    .post-date {
      font-size: 0.68rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--gold);
      margin: 0;
    }
    .post-title {
      margin: 0;
      font-size: 1.2rem;
      line-height: 1.35;
      font-family: 'Playfair Display', serif;
      color: var(--cream);
    }
    .post-excerpt {
      margin: 0;
      font-size: 0.92rem;
      color: var(--muted);
      line-height: 1.7;
    }
    .post-read {
      margin-top: auto;
      font-size: 0.78rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--gold);
    }
    .latest-posts-cta {
      margin-top: 28px;
      display: flex;
      justify-content: center;
    }

    /* ═══ CTA FINAL ══════════════════════════════════════════════════════════ */
    #cta {
      text-align: center;
      background: var(--dark);
      border-top: 1px solid var(--border);
      position: relative;
      overflow: hidden;
    }
    #cta::before {
      content: '';
      position: absolute; top: 50%; left: 50%;
      transform: translate(-50%,-50%);
      width: 500px; height: 500px;
      background: radial-gradient(circle, rgba(201,168,76,0.07), transparent 70%);
      pointer-events: none;
    }
    #cta h2 { position: relative; }
    #cta p { color: var(--muted); font-size: 1.05rem; margin: 1rem auto 2.5rem; max-width: 480px; position: relative; }
    .cta-btns { display: flex; gap: 14px; justify-content: center; position: relative; }

    /* ═══ FOOTER ══════════════════════════════════════════════════════════════ */
    footer {
      background: var(--dark-2);
      border-top: 1px solid var(--border);
      padding: 40px 5vw;
      display: flex; justify-content: space-between; align-items: center;
      flex-wrap: wrap; gap: 16px;
    }
    .footer-logo {
      font-family: 'Playfair Display', serif;
      color: var(--gold); font-size: 1rem;
      opacity: 0.7; text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }
    .footer-logo-mark { width: 22px; height: 22px; object-fit: contain; }
    .footer-links { display: flex; gap: 24px; }
    .footer-links a {
      font-size: 0.75rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
      text-decoration: none;
      transition: color 0.2s;
      min-height: 44px;
      display: inline-flex;
      align-items: center;
    }
    .footer-links a:hover { color: var(--cream); }
    .footer-copy { font-size: 0.75rem; color: var(--muted); opacity: 0.5; }

    /* ═══ ANIMATIONS ══════════════════════════════════════════════════════════ */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(20px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.visible { opacity: 1; transform: translateY(0); }

    /* ═══ RESPONSIVE ══════════════════════════════════════════════════════════ */
    @media (max-width: 900px) {
      header { padding: 0 6vw; }
      #stats { grid-template-columns: repeat(2,1fr); }
      .features-grid { grid-template-columns: 1fr; }
      .modes-grid { grid-template-columns: 1fr; }
      .latest-posts-grid { grid-template-columns: 1fr; }
      footer { flex-direction: column; text-align: center; }
      .footer-links { flex-wrap: wrap; justify-content: center; }
    }

    @media (max-width: 760px) {
      .menu-toggle { display: inline-flex !important; }
      header nav[data-mobile-nav] {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: rgba(8,8,16,0.98);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        gap: 0;
        padding: 6px 0 10px;
      }
      header.nav-open nav[data-mobile-nav] { display: flex; }
      header nav[data-mobile-nav] a {
        width: 100%;
        padding: 12px 6vw;
        border-top: 1px solid rgba(240,235,224,0.08);
      }
    }

    @media (max-width: 640px) {
      header {
        height: auto;
        min-height: 72px;
        padding-top: 10px;
        padding-bottom: 10px;
        flex-wrap: wrap;
        gap: 10px;
      }
      .logo { font-size: 1.05rem; }
      .logo-sub { font-size: 0.55rem; }
      .hero-text {
        max-width: 100%;
        padding-left: 6vw;
        padding-right: 6vw;
        padding-top: 110px;
      }
      .hero-cta { width: 100%; }
      .hero-cta .btn {
        width: 100%;
        text-align: center;
      }
      #stats { grid-template-columns: 1fr; }
      section { padding: 80px 6vw; }
      .feat { padding: 34px 22px; }
      .mode { padding: 34px 24px; }
      .cta-btns {
        flex-direction: column;
        align-items: stretch;
      }
      .cta-btns .btn { width: 100%; }
      footer { padding-left: 6vw; padding-right: 6vw; }
      .footer-links { gap: 14px 18px; }
    }
