/* ============================================================
   PROJECT-X EVENTS — Design System
   Dark Luxury Immersif 2026 — Arbre 3D
   ============================================================ */

@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}

:root {
    --color-bg: #0A0A0A;
    --color-bg-alt: #111111;
    --color-gold: #D4AF37;
    --color-gold-light: #E8C547;
    --color-gold-dark: #B8960F;
    --color-cyan: #00F0FF;
    --color-rose-gold: #C9A96E;
    --color-white: #F5F5F0;
    --color-grey: #999999;
    --color-grey-dark: #444444;
    --glass-bg: rgba(255,255,255,0.03);
    --glass-border: rgba(255,255,255,0.06);
    --font-body: 'Poppins', system-ui, sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --header-height: 80px;

    /* Échelle typographique */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* Espacement */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}
@media (pointer: coarse) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font-family: inherit; cursor: none; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-gold-dark); border-radius: 3px; }

main { position: relative; z-index: 1; }

/* ============================================================
   WebGL Canvas (fond shader)
   ============================================================ */
#webgl-canvas {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1; pointer-events: none;
}

/* ============================================================
   CURSOR
   ============================================================ */
.custom-cursor {
    position: fixed; width: 20px; height: 20px;
    border: 1.5px solid rgba(212,175,55,0.6);
    border-radius: 50%; pointer-events: none; z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease-out-expo), height 0.4s var(--ease-out-expo),
                background 0.4s ease, border-color 0.3s ease;
    mix-blend-mode: difference;
}
.custom-cursor.hover {
    width: 60px; height: 60px;
    background: rgba(212,175,55,0.1);
    border-color: var(--color-gold-light);
}
@media (pointer: coarse) { .custom-cursor { display: none; } }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--header-height);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 3rem; z-index: 1000;
    transition: all 0.5s ease;
}
.site-header.scrolled {
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(212,175,55,0.08);
}
.header-logo img { height: 42px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 2.5rem; }
.header-nav a {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 500;
    position: relative; padding: 0.25rem 0; transition: color 0.3s ease;
}
.header-nav a::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px;
    background: var(--color-gold); transition: width 0.4s var(--ease-out-expo);
}
.header-nav a:hover::after, .header-nav a.active::after { width: 100%; }
.header-nav a:hover { color: var(--color-gold); text-shadow: 0 0 20px rgba(212,175,55,0.3); }

.hamburger {
    display: none; flex-direction: column; gap: 6px; padding: 10px; z-index: 1001; cursor: none;
}
.hamburger span {
    display: block; width: 28px; height: 1.5px; background: var(--color-white);
    transition: all 0.4s var(--ease-out-expo);
}
.hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
    position: fixed; inset: 0; background: rgba(10,10,10,0.98); z-index: 999;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
    opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a {
    font-size: 2rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    opacity: 0; transform: translateY(30px); transition: all 0.5s var(--ease-out-expo), color 0.2s;
}
.mobile-menu.is-open a { opacity: 1; transform: translateY(0); }
.mobile-menu.is-open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu a:hover { color: var(--color-gold); }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 1rem 2.5rem; font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.18em;
    position: relative; overflow: hidden; transition: all 0.5s var(--ease-out-expo); cursor: none;
}
.btn::before {
    content: ''; position: absolute; inset: 0;
    background: var(--color-gold-light); transform: scaleX(0); transform-origin: right;
    transition: transform 0.5s var(--ease-out-expo); z-index: -1;
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-primary {
    background: var(--color-gold); color: var(--color-bg);
    box-shadow: 0 4px 20px rgba(212,175,55,0.3), 0 0 60px rgba(212,175,55,0.1);
}
.btn-primary:hover {
    color: var(--color-bg); transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(212,175,55,0.4), 0 0 80px rgba(212,175,55,0.15);
}
.btn-outline { background: transparent; border: 1px solid var(--color-gold); color: var(--color-gold); }
.btn-outline:hover { color: var(--color-bg); transform: translateY(-3px); }
.btn--large { font-size: 0.9rem; padding: 1.2rem 3rem; }

/* ============================================================
   UTILITAIRES
   ============================================================ */
.text-gradient-gold {
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold), var(--color-rose-gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ============================================================
   SECTIONS (pages intérieures — DJ, Traiteur, Contact, etc.)
   ============================================================ */
.section {
    position: relative; width: 100%; padding: 8rem 2rem; overflow: hidden;
}
.section-content {
    position: relative; z-index: 1; width: 100%; max-width: 1400px; margin: 0 auto;
}
.glass-card {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 2rem; transition: all 0.5s var(--ease-out-expo);
}
.menu-item {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 1rem; font-size: 0.875rem; color: var(--color-grey);
    padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.03); transition: color 0.2s;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { color: var(--color-white); }
.menu-price { color: var(--color-white); font-weight: 600; white-space: nowrap; }
.menu-item:hover .menu-price { color: var(--color-gold); }
.reveal { opacity: 0; transform: translateY(50px); }
.reveal.is-visible { opacity: 1; transform: none; transition: all 0.8s var(--ease-out-expo); }
input, textarea, select { transition: border-color 0.3s ease, box-shadow 0.3s ease; }
input:focus, textarea:focus, select:focus {
    border-color: var(--color-gold) !important;
    box-shadow: 0 0 25px rgba(212,175,55,0.12); outline: none;
}

/* ============================================================
   PAGES INTÉRIEURES — Hero, composants, typographie
   ============================================================ */

/* Hero pages intérieures (DJ, Traiteur, Contact, Carte) */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero .video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero .video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom,
        rgba(10,10,10,0.4) 0%,
        rgba(10,10,10,0.2) 30%,
        rgba(10,10,10,0.5) 70%,
        rgba(10,10,10,0.95) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

/* Titres pages */
.text-hero {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 0.95;
    margin-bottom: 1rem;
    text-shadow: 0 0 60px rgba(212,175,55,0.2), 0 4px 20px rgba(0,0,0,0.7);
}
.text-subtitle {
    font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--color-gold);
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.text-split {
    /* Préparé pour animation GSAP SplitText */
    display: inline-block;
}

/* Indicateur de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}
.scroll-indicator span {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-gold);
    opacity: 0.6;
}
.scroll-indicator-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Ligne dorée décorative */
.gold-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-dark));
}
.gold-line-center {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin: 0.5rem auto;
}

/* Prix dans les offres */
.offer-price {
    font-weight: 900;
}

/* Glass card hover */
.glass-card:hover {
    border-color: rgba(212,175,55,0.15);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3), 0 0 30px rgba(212,175,55,0.03);
    transform: translateY(-3px);
}

/* Reveal stagger pour animations GSAP */
.reveal-stagger .reveal-item {
    opacity: 0;
    transform: translateY(40px);
}
.reveal-stagger .reveal-item.is-visible {
    opacity: 1;
    transform: none;
    transition: all 0.6s var(--ease-out-expo);
}

/* ============================================================
   ================================================================
   HERO ACCUEIL (ix-hero)
   ================================================================
   ============================================================ */

.ix-hero {
    position: relative; height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
}
.ix-hero__video-wrap {
    position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.ix-hero__video-wrap video {
    width: 100%; height: 100%; object-fit: cover; transform: scale(1.15);
}
.ix-hero__overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to bottom,
        rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.2) 40%,
        rgba(10,10,10,0.4) 70%, rgba(10,10,10,0.95) 100%);
}
#particles-canvas {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2; pointer-events: none;
}
.ix-hero__content {
    position: relative; z-index: 3;
    opacity: 0;
    animation: ixHeroIn 1.5s var(--ease-out-expo) 0.3s forwards;
}
@keyframes ixHeroIn {
    from { opacity: 0; transform: translateY(50px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.ix-hero__logo {
    width: clamp(80px, 18vw, 220px);
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 0 80px rgba(212,175,55,0.5)) drop-shadow(0 0 160px rgba(212,175,55,0.2));
    animation: ixFloat 5s ease-in-out infinite;
}
@keyframes ixFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.ix-hero__line {
    width: 60px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin: 0 auto 2rem;
}
.ix-hero__title {
    font-size: clamp(4rem, 14vw, 12rem);
    font-weight: 900; letter-spacing: 0.15em; line-height: 0.9;
    margin-bottom: 1rem;
    text-shadow: 0 0 80px rgba(212,175,55,0.3), 0 5px 30px rgba(0,0,0,0.8);
}
.ix-hero__title .ix-char {
    display: inline-block; will-change: transform, opacity;
}
.ix-hero__tagline {
    font-size: clamp(0.8rem, 1.5vw, 1.1rem);
    text-transform: uppercase; letter-spacing: 0.4em;
    color: var(--color-gold); font-weight: 400; margin-bottom: 0.5rem;
}
.ix-hero__location {
    font-size: 0.75rem; letter-spacing: 0.25em;
    color: var(--color-grey); text-transform: uppercase;
}
.ix-hero__scroll-cue {
    position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%);
    z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
}
.ix-hero__scroll-cue span {
    font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.3em;
    color: var(--color-gold); opacity: 0.6;
}
.ix-hero__scroll-arrow {
    width: 24px; height: 24px; border-right: 1.5px solid var(--color-gold);
    border-bottom: 1.5px solid var(--color-gold);
    transform: rotate(45deg); opacity: 0.5;
    animation: ixScrollArrow 2s ease-in-out infinite;
}
@keyframes ixScrollArrow {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
    50% { transform: rotate(45deg) translateY(10px); opacity: 1; }
}
.ix-hero::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 120vw; height: 120vh;
    background: radial-gradient(ellipse at center, rgba(212,175,55,0.05) 0%, transparent 50%);
    transform: translate(-50%, -50%); z-index: 1; pointer-events: none;
}

/* ============================================================
   ================================================================
   ARBRE 3D — Le coeur de l'expérience
   ================================================================
   ============================================================ */

.tree-section {
    position: relative;
    padding: 0;
    perspective: 1200px;
    perspective-origin: 50% 30%;
}

.tree-perspective {
    position: relative;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 8rem 2rem 12rem;
    transform-style: preserve-3d;
}

/* --- Tronc central lumineux --- */
.tree-trunk {
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 3px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom,
        rgba(212,175,55,0) 0%,
        rgba(212,175,55,0.6) 10%,
        rgba(212,175,55,0.3) 50%,
        rgba(212,175,55,0.6) 90%,
        rgba(212,175,55,0) 100%);
    box-shadow: 0 0 20px rgba(212,175,55,0.15), 0 0 60px rgba(212,175,55,0.05);
    z-index: 0;
}

/* Particules le long du tronc */
.tree-trunk::before,
.tree-trunk::after {
    content: ''; position: absolute; left: 50%; transform: translateX(-50%);
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--color-gold);
    box-shadow: 0 0 15px var(--color-gold), 0 0 40px rgba(212,175,55,0.3);
    animation: trunkPulse 3s ease-in-out infinite;
}
.tree-trunk::before { top: 20%; animation-delay: 0s; }
.tree-trunk::after { top: 60%; animation-delay: 1.5s; }

@keyframes trunkPulse {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) scale(0.8); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.3); }
}

/* --- Noeuds (branch + card) --- */
.tree-node {
    position: relative;
    margin-bottom: 15vh;
    display: flex;
    align-items: center;
    transform-style: preserve-3d;
}
.tree-node--left {
    justify-content: flex-start;
    padding-right: 52%;
}
.tree-node--right {
    justify-content: flex-end;
    padding-left: 52%;
}

/* --- Branches --- */
.tree-branch {
    position: absolute;
    top: 50%;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, rgba(212,175,55,0.5), rgba(212,175,55,0));
    box-shadow: 0 0 10px rgba(212,175,55,0.1);
    z-index: 0;
    transition: width 1s var(--ease-out-expo);
}
.tree-branch--left {
    right: 48%;
    background: linear-gradient(90deg, rgba(212,175,55,0), rgba(212,175,55,0.5));
}
.tree-branch--right {
    left: 48%;
    background: linear-gradient(90deg, rgba(212,175,55,0.5), rgba(212,175,55,0));
}
/* Point lumineux au bout de la branche */
.tree-branch::after {
    content: ''; position: absolute; top: 50%; transform: translateY(-50%);
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--color-gold);
    box-shadow: 0 0 15px var(--color-gold), 0 0 30px rgba(212,175,55,0.4);
    opacity: 0; transition: opacity 0.5s ease 0.8s;
}
.tree-branch--left::after { left: -5px; }
.tree-branch--right::after { right: -5px; }

/* Quand la branche est visible */
.tree-node.is-visible .tree-branch { width: calc(100% - 48%); }
.tree-node.is-visible .tree-branch::after { opacity: 1; }

/* --- Cards 3D --- */
.tree-card {
    position: relative;
    width: 100%;
    max-width: 500px;
    transform-style: preserve-3d;
    z-index: 2;
}

.tree-card__inner {
    transform-style: preserve-3d;
    transition: transform 0.8s var(--ease-out-expo);
}
.tree-card:hover .tree-card__inner {
    transform: rotateY(5deg) translateZ(20px) scale(1.02);
}

.tree-card__front {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212,175,55,0.15);
    background: rgba(10,10,10,0.8);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.5),
        0 0 40px rgba(212,175,55,0.03),
        inset 0 1px 0 rgba(255,255,255,0.05);
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.tree-card:hover .tree-card__front {
    border-color: rgba(212,175,55,0.3);
    box-shadow:
        0 30px 80px rgba(0,0,0,0.6),
        0 0 60px rgba(212,175,55,0.08),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

.tree-card__front video {
    width: 100%; height: 250px; object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}
.tree-card:hover .tree-card__front video {
    transform: scale(1.08);
}

.tree-card__overlay {
    position: absolute; top: 0; left: 0; right: 0; height: 250px;
    background: linear-gradient(to bottom, rgba(10,10,10,0) 30%, rgba(10,10,10,0.9) 100%);
    pointer-events: none;
}

.tree-card__content {
    padding: 2rem;
}
.tree-card__tag {
    display: inline-block;
    font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.35em;
    font-weight: 600; margin-bottom: 0.8rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
}
.tree-card__tag--cyan { color: var(--color-cyan); border-color: rgba(0,240,255,0.2); }
.tree-card__tag--rosegold { color: var(--color-rose-gold); border-color: rgba(201,169,110,0.2); }
.tree-card__tag--gold { color: var(--color-gold); border-color: rgba(212,175,55,0.2); }

.tree-card__content h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 800; line-height: 1.2; margin-bottom: 1rem;
}
.tree-card__content p {
    font-size: 0.9rem; color: var(--color-grey); line-height: 1.7; margin-bottom: 1rem;
}

.tree-card__pills {
    display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.2rem;
}
.tree-card__pills span {
    padding: 0.4rem 0.8rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.7rem; font-weight: 500; letter-spacing: 0.05em;
    transition: all 0.3s ease;
}
.tree-card__pills span:hover {
    border-color: rgba(212,175,55,0.3);
    background: rgba(212,175,55,0.06);
}

.tree-card__link {
    display: inline-block;
    font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.15em; color: var(--color-gold);
    padding: 0.6rem 0; border-bottom: 1px solid rgba(212,175,55,0.3);
    transition: all 0.3s ease;
}
.tree-card__link:hover {
    border-bottom-color: var(--color-gold);
    text-shadow: 0 0 20px rgba(212,175,55,0.3);
}

/* Card combo (sans vidéo) */
.tree-card__front--combo {
    background: linear-gradient(135deg, rgba(20,20,20,0.95), rgba(10,10,10,0.98));
    min-height: 350px; display: flex; align-items: center;
}
.tree-combo-title {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    display: flex; align-items: center; gap: 0.3em;
}
.tree-combo-title .text-gradient-gold { font-size: 0.7em; }

.tree-card__stats {
    display: flex; gap: 2rem; margin-top: 1.5rem; flex-wrap: wrap;
}
.tree-stat { text-align: center; }
.tree-stat__val {
    font-size: 2rem; font-weight: 900;
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    line-height: 1;
}
.tree-stat__pct {
    font-size: 1rem; font-weight: 900;
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.tree-stat__label {
    display: block; font-size: 0.65rem; text-transform: uppercase;
    letter-spacing: 0.15em; color: var(--color-grey); margin-top: 0.2rem;
}

/* ===== Animations d'entrée des cartes ===== */
.tree-node--left .tree-card {
    opacity: 0;
    transform: translateX(-200px) rotateY(40deg) scale(0.8);
    transition: all 1.2s var(--ease-out-expo);
}
.tree-node--right .tree-card {
    opacity: 0;
    transform: translateX(200px) rotateY(-40deg) scale(0.8);
    transition: all 1.2s var(--ease-out-expo);
}
.tree-node.is-visible .tree-card {
    opacity: 1;
    transform: translateX(0) rotateY(0deg) scale(1);
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.ix-cta {
    position: relative;
    min-height: 80vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
}
.ix-cta__video-wrap {
    position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.ix-cta__video-wrap video {
    width: 100%; height: 100%; object-fit: cover;
}
.ix-cta__overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to bottom,
        rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.5) 40%,
        rgba(10,10,10,0.5) 60%, rgba(10,10,10,0.9) 100%);
}
.ix-cta__content {
    position: relative; z-index: 2;
    max-width: 700px; padding: 0 2rem;
}
.ix-cta__title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem;
}
.ix-cta__text {
    font-size: 1rem; color: var(--color-grey);
    line-height: 1.8; margin-bottom: 2.5rem;
}
.ix-cta__buttons {
    display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    position: relative; z-index: 2;
    background: var(--color-bg-alt);
    border-top: 1px solid rgba(255,255,255,0.04);
    padding: 4rem 2rem 2rem;
}
.footer-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 2rem; max-width: 1400px; margin: 0 auto;
}
.footer-col h4 {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.25em;
    color: var(--color-gold); margin-bottom: 1rem; font-weight: 600;
}
.footer-col p, .footer-col a { font-size: 0.85rem; color: var(--color-grey); line-height: 2; }
.footer-col a:hover { color: var(--color-gold); }
.footer-bottom {
    max-width: 1400px; margin: 2rem auto 0; padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.04);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.7rem; color: var(--color-grey-dark);
}
.site-footer img { filter: drop-shadow(0 0 30px rgba(212,175,55,0.15)); }

/* ============================================================
   ================================================================
   CYLINDRE 3D (home-2)
   ================================================================
   ============================================================ */

.cylinder-section {
    position: relative;
}

/* Wrapper pinné par GSAP — PAS de sticky CSS, PAS de perspective */
.cylinder-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
}

.cylinder-title-wrap {
    position: absolute;
    top: 0; left: 0; right: 0;
    text-align: center;
    padding: calc(var(--header-height) + 0.5rem) 2rem 4rem;
    z-index: 20;
    pointer-events: none;
    background: linear-gradient(to bottom, var(--color-bg) 0%, var(--color-bg) 50%, transparent 100%);
}
.cylinder-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 0.3rem;
}
.cylinder-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-grey);
}

/* Aura — supprimée en CSS, générée en JS comme cylindre 3D */
.cylinder-aura { display: none; }

/* Segments du cylindre 3D — violet électrique, DERRIÈRE les cartes */
.cyl-wire {
    position: absolute;
    top: 0; left: 0;
    pointer-events: none;
    border: 1px solid rgba(139,92,246,0.2);
    background: linear-gradient(to bottom, rgba(139,92,246,0.05), transparent);
    box-shadow: 0 0 15px rgba(139,92,246,0.08);
    backface-visibility: visible;
    z-index: -1;
}

/* Anneaux horizontaux — violet, DERRIÈRE les cartes */
.cyl-ring-wire {
    position: absolute;
    pointer-events: none;
    border: 1px solid rgba(139,92,246,0.15);
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(139,92,246,0.06);
    z-index: -1;
}

/* Canvas particules — couvre tout le wrapper */
#cylinder-particles {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Scène 3D — la perspective est ICI, enfant du wrapper pinné */
.cylinder-scene {
    position: absolute;
    top: 8vh; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    perspective-origin: 50% 45%;
    z-index: 2;
}

.cylinder-ring {
    position: relative;
    width: 0; height: 0;
    transform-style: preserve-3d;
    will-change: transform;
}

.cyl-card {
    position: absolute;
    top: 0; left: -290px;
    width: 580px;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: opacity 0.3s ease, filter 0.3s ease;
    border: 1px solid rgba(212,175,55,0.1);
    background: rgba(10,10,10,0.9);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    overflow: visible;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(212,175,55,0.03);
}

/* Plateau 3D sous la carte — perspective avec pseudo-éléments */
.cyl-shelf {
    position: absolute;
    bottom: -8px; left: 5%; right: 5%;
    height: 8px;
    background: rgba(139,92,246,0.15);
    border-radius: 0 0 3px 3px;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
/* Couche de profondeur supplémentaire */
.cyl-shelf::after {
    content: '';
    position: absolute;
    top: 100%; left: 8%; right: 8%;
    height: 6px;
    background: rgba(139,92,246,0.08);
    border-radius: 0 0 3px 3px;
}
.cyl-card.is-active {
    border-color: rgba(139,92,246,0.3);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(139,92,246,0.1);
}

.cyl-card__visual {
    height: 300px;
    overflow: hidden;
    position: relative;
}
.cyl-card__visual video {
    width: 100%; height: 100%; object-fit: cover;
}
.cyl-card__gradient {
    position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(10,10,10,0.95));
}

.cyl-card__visual--combo {
    height: 150px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.cyl-combo-bg {
    position: absolute; inset: 0;
    background: radial-gradient(circle at center, rgba(212,175,55,0.1) 0%, transparent 70%);
    animation: cylComboPulse 3s ease-in-out infinite;
}
@keyframes cylComboPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

.cyl-card__body {
    padding: 1.5rem;
}
.cyl-card__tag {
    display: inline-block;
    font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.35em;
    font-weight: 600; margin-bottom: 0.6rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid rgba(255,255,255,0.1);
}
.cyl-card__tag--cyan { color: var(--color-cyan); border-color: rgba(0,240,255,0.2); }
.cyl-card__tag--rosegold { color: var(--color-rose-gold); border-color: rgba(201,169,110,0.2); }
.cyl-card__tag--gold { color: var(--color-gold); border-color: rgba(212,175,55,0.2); }

.cyl-card__body h3 {
    font-size: 1.2rem; font-weight: 800; margin-bottom: 0.6rem; line-height: 1.2;
}
.cyl-card__body p {
    font-size: 0.8rem; color: var(--color-grey); line-height: 1.6; margin-bottom: 0.8rem;
}
.cyl-card__pills {
    display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 1rem;
}
.cyl-card__pills span {
    padding: 0.3rem 0.6rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.65rem; font-weight: 500;
}
.cyl-card__link {
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--color-gold);
    border-bottom: 1px solid rgba(212,175,55,0.3);
    padding-bottom: 0.3rem; transition: all 0.3s ease;
}
.cyl-card__link:hover { border-bottom-color: var(--color-gold); }
.cyl-card__link--primary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--color-gold); color: var(--color-bg);
    border: none; font-weight: 700;
}

.cyl-combo-title {
    font-size: 2rem !important; font-weight: 900;
}
.cyl-card__stats {
    display: flex; gap: 1.5rem; margin: 1rem 0;
}
.cyl-card__stats div { text-align: center; }
.cyl-stat-val {
    font-size: 1.8rem; font-weight: 900;
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.cyl-stat-pct {
    font-size: 0.9rem; font-weight: 900;
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.cyl-card__stats small {
    font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-grey);
}

/* ============================================================
   CARTE — navigation sticky par catégorie
   ============================================================ */
.carte-nav {
    position: sticky;
    top: var(--header-height);
    z-index: 50;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212,175,55,0.1);
    padding: 1rem 1.5rem;
}
.carte-nav__inner {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: wrap;
}
.carte-nav__inner::-webkit-scrollbar { display: none; }
.carte-nav__btn {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    color: var(--color-grey);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: var(--font-body);
}
.carte-nav__btn:hover {
    color: var(--color-white);
    border-color: rgba(212,175,55,0.3);
}
.carte-nav__btn.is-active {
    color: var(--color-bg);
    background: var(--color-gold);
    border-color: var(--color-gold);
}
.carte-tab { margin-bottom: var(--space-lg); }
.carte-tab + .carte-tab { padding-top: var(--space-md); border-top: 1px solid rgba(212,175,55,0.08); }

/* Allergènes — emojis + tooltip au survol */
.allergen-icons {
    display: inline-flex; gap: 0.2rem; flex-wrap: wrap;
    font-size: 0.8rem; line-height: 1; cursor: default;
    margin-top: 0.15rem; padding-left: 0.5rem; position: relative;
}
.allergen-icons .allergen-tooltip {
    display: none; position: absolute; bottom: calc(100% + 8px); left: 0;
    background: rgba(20,20,20,0.95); border: 1px solid var(--color-gold-dark);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: 0.6rem 0.8rem; border-radius: 8px;
    font-size: 0.75rem; color: var(--color-white); white-space: nowrap;
    z-index: 100; pointer-events: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.allergen-icons .allergen-tooltip::after {
    content: ''; position: absolute; top: 100%; left: 16px;
    border: 5px solid transparent; border-top-color: var(--color-gold-dark);
}
.allergen-icons:hover .allergen-tooltip { display: block; }

/* Barre de progression */
.cylinder-progress {
    position: sticky;
    bottom: 2rem;
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin: 0 auto;
    z-index: 10;
}
.cylinder-progress__bar {
    height: 100%;
    width: 0;
    background: #8B5CF6;
    box-shadow: 0 0 10px rgba(139,92,246,0.6);
    transition: width 0.1s ease;
}

/* ============================================================
   ================================================================
   HOME-3 — Éléments flottants 3D
   ================================================================
   ============================================================ */

.float-section {
    position: relative;
    min-height: 300vh;
    overflow: visible;
}
.float-scene {
    position: sticky;
    top: 0;
    height: 100vh;
    perspective: 1200px;
    perspective-origin: 50% 50%;
    overflow: hidden;
}
.float-card {
    position: absolute;
    width: clamp(280px, 30vw, 420px);
    border: 1px solid rgba(212,175,55,0.12);
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(212,175,55,0.04);
    transform-style: preserve-3d;
    will-change: transform, opacity;
    overflow: hidden;
    opacity: 0;
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.float-card:hover {
    border-color: rgba(212,175,55,0.3);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 50px rgba(212,175,55,0.08);
}

.float-card__visual {
    height: 200px; overflow: hidden; position: relative;
}
.float-card__visual video {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}
.float-card:hover .float-card__visual video { transform: scale(1.08); }
.float-card__visual::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(10,10,10,0.95));
}

.float-card__body {
    padding: 1.5rem;
}
.float-card__tag {
    display: inline-block;
    font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.3em;
    font-weight: 600; margin-bottom: 0.6rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid rgba(255,255,255,0.1);
}
.float-card__tag--cyan { color: var(--color-cyan); border-color: rgba(0,240,255,0.2); }
.float-card__tag--rosegold { color: var(--color-rose-gold); border-color: rgba(201,169,110,0.2); }
.float-card__tag--gold { color: var(--color-gold); border-color: rgba(212,175,55,0.2); }
.float-card__body h3 {
    font-size: 1.2rem; font-weight: 800; margin-bottom: 0.5rem; line-height: 1.2;
}
.float-card__body p {
    font-size: 0.8rem; color: var(--color-grey); line-height: 1.6; margin-bottom: 0.8rem;
}
.float-card__link {
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--color-gold);
    border-bottom: 1px solid rgba(212,175,55,0.3);
    padding-bottom: 0.3rem;
}

/* Titre central flottant */
.float-center-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    pointer-events: none;
}
.float-center-text h2 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 0.95;
    text-shadow: 0 0 80px rgba(212,175,55,0.2), 0 5px 30px rgba(0,0,0,0.8);
}
.float-center-text p {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.4em;
    color: var(--color-gold); margin-top: 1rem;
}

/* ============================================================
   GRAIN FILMIQUE
   ============================================================ */
.grain::after {
    content: ''; position: fixed; inset: 0; z-index: 99998; pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .header-nav { display: none; }
    .hamburger { display: flex; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --header-height: 65px; }
    .site-header { padding: 0 1.5rem; }
    .section { padding: 4rem 1.25rem; }
    .footer-grid { grid-template-columns: 1fr; }

    /* Pages intérieures responsive */
    .hero { height: 60vh; min-height: 350px; }
    .text-hero { font-size: clamp(2rem, 10vw, 4rem); }
    .hero-content { padding: 0 1rem; }

    /* Grids en 1 colonne sur mobile */
    [style*="grid-template-columns: repeat(2"] { grid-template-columns: 1fr !important; }
    [style*="grid-template-columns: repeat(3"] { grid-template-columns: 1fr !important; }
    [style*="grid-template-columns: repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; }
    [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }

    /* Carte nav scrollable */
    .carte-nav__inner { justify-content: flex-start; }
    .carte-nav__btn { font-size: 0.6rem; padding: 0.4rem 0.75rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

    .ix-hero__title { font-size: clamp(3rem, 15vw, 6rem); letter-spacing: 0.1em; }

    .tree-section { perspective: none; }
    .tree-trunk { display: none; }
    .tree-branch { display: none; }
    .tree-node--left,
    .tree-node--right {
        padding: 0 !important; justify-content: center !important;
        margin-bottom: 3rem;
    }
    .tree-node--left .tree-card,
    .tree-node--right .tree-card {
        opacity: 1;
        transform: none !important;
        max-width: 100%;
    }
    .tree-card__front video { height: 200px; }

    .ix-cta__buttons { flex-direction: column; align-items: center; }
    .btn--large { width: 100%; max-width: 300px; }

    #webgl-canvas { display: none; }

    /* Cylindre mobile : empiler les cartes */
    .cylinder-aura { display: none; }
    #cylinder-particles { display: none; }
    .cylinder-wrapper { height: auto !important; }
    .cylinder-scene { position: relative; perspective: none; display: block; }
    .cylinder-ring {
        position: relative !important; width: 100% !important; height: auto !important;
        transform: none !important;
        transform-style: flat; display: flex; flex-direction: column; gap: 2rem; padding: 2rem 1rem;
    }
    .cyl-card {
        position: relative !important;
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
        width: 100% !important;
        left: auto !important;
    }
    .cyl-shelf { display: none; }
    .cylinder-progress { display: none; }
    .cylinder-section { height: auto !important; }

    /* Floating mobile : empiler les cartes */
    .float-section { min-height: auto; }
    .float-scene {
        position: relative; height: auto; perspective: none;
        display: flex; flex-direction: column; gap: 2rem; padding: 2rem 1rem;
    }
    .float-card {
        position: relative !important;
        left: auto !important; top: auto !important;
        transform: none !important;
        opacity: 1 !important;
        width: 100% !important;
    }
    .float-center-text { position: relative; transform: none; margin-bottom: 2rem; }
    .float-center-text h2 { font-size: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important; transition-duration: 0.01ms !important;
    }
    .ix-hero__content { animation: none; opacity: 1; }
    .tree-node--left .tree-card,
    .tree-node--right .tree-card { opacity: 1; transform: none; }
}
