*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --accent: #FFD633;
    --bg:     #080808;
    --fg:     #ede9e3;
    --muted:  #444;
}

html, body { height: 100%; }

body {
    background: var(--bg);
    color: var(--fg);
    font-family: 'DM Mono', monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* ── Grain statique ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.045;
    pointer-events: none;
    z-index: 1;
}

/* ── Lignes de balayage ── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg, transparent, transparent 3px,
        rgba(0,0,0,0.04) 3px, rgba(0,0,0,0.04) 4px
    );
    pointer-events: none;
    z-index: 1;
}


/* ════════════════════════════════
   TRUSS + FIXTURES + FAISCEAUX
════════════════════════════════ */

.fx-truss {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    contain: layout style paint;
}

.fixture {
    position: absolute;
    top: 13px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fixture-head {
    width: var(--fw); height: calc(var(--fw) * 0.85);
    background: linear-gradient(to bottom, #3a3a3a, #1e1e1e);
    border: 1px solid #484848;
    border-radius: 2px 2px 3px 3px;
    position: relative;
    flex-shrink: 0;
}

.fixture-head::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 50%;
    transform: translateX(-50%);
    width: calc(var(--fw) * 0.7); height: 5px;
    border-radius: 0 0 50% 50%;
    background: var(--c);
    box-shadow: 0 0 8px 3px var(--c), 0 0 20px 6px var(--c);
    animation: lens-pulse var(--fd) ease-in-out var(--fdel) infinite;
}
@keyframes lens-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.fixture-beam {
    width: var(--bw);
    height: 92vh;
    clip-path: polygon(50% 0%, 2% 100%, 98% 100%);
    transform-origin: 50% 0%;
    opacity: 0;
    will-change: transform, opacity;
    background: linear-gradient(to bottom, var(--cb), transparent);
    animation: sweep-fx var(--bs) ease-in-out var(--bdel) infinite;
}

.fixture:nth-child(1) { left:9%;  --fw:11px; --bw:130px; --c:rgba(255,210,80,1);  --cb:rgba(255,210,80,.16);  --fd:3.1s; --fdel:0s;   --bs:7s;   --bdel:0s;   --fr:-38deg; --to:-8deg;  }
.fixture:nth-child(2) { left:24%; --fw:17px; --bw:260px; --c:rgba(90,170,255,1);  --cb:rgba(90,170,255,.14);  --fd:4.3s; --fdel:1.4s; --bs:9.5s; --bdel:1.8s; --fr:5deg;   --to:32deg;  }
.fixture:nth-child(3) { left:52%; --fw:13px; --bw:175px; --c:rgba(255,90,185,1);  --cb:rgba(255,90,185,.14);  --fd:2.8s; --fdel:0.5s; --bs:8s;   --bdel:3.2s; --fr:-24deg; --to:12deg;  }
.fixture:nth-child(4) { left:73%; --fw:19px; --bw:300px; --c:rgba(70,255,175,1);  --cb:rgba(70,255,175,.13);  --fd:3.9s; --fdel:2.2s; --bs:11s;  --bdel:0.9s; --fr:-6deg;  --to:-34deg; }
.fixture:nth-child(5) { left:90%; --fw:10px; --bw:110px; --c:rgba(200,255,0,1);   --cb:rgba(200,255,0,.13);   --fd:4.6s; --fdel:1.0s; --bs:6s;   --bdel:5.1s; --fr:28deg;  --to:8deg;   }

@keyframes sweep-fx {
    0%   { opacity: 0;    transform: rotate(var(--fr)); }
    10%  { opacity: 1; }
    50%  { opacity: 0.75; transform: rotate(var(--to)); }
    90%  { opacity: 1; }
    100% { opacity: 0;    transform: rotate(var(--fr)); }
}


/* ════════════════════════════════
   ÉTOILES
════════════════════════════════ */

.fx-stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; contain: layout style paint; }
.star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    animation: twinkle-s var(--d) ease-in-out var(--del) infinite;
}
@keyframes twinkle-s {
    0%, 100% { opacity: 0.05; transform: scale(0.5); }
    50%       { opacity: var(--op); transform: scale(1.4); }
}
.star:nth-child(1)  { --d:3.1s; --del:0s;   --op:.9; width:2px; height:2px; top:4%;  left:8%;  }
.star:nth-child(2)  { --d:2.4s; --del:.7s;  --op:.6; width:3px; height:3px; top:11%; left:78%; }
.star:nth-child(3)  { --d:4.2s; --del:1.2s; --op:.8; width:2px; height:2px; top:19%; left:45%; }
.star:nth-child(4)  { --d:2.8s; --del:.3s;  --op:.5; width:1px; height:1px; top:29%; left:22%; }
.star:nth-child(5)  { --d:3.6s; --del:2s;   --op:.9; width:2px; height:2px; top:7%;  left:55%; }
.star:nth-child(6)  { --d:2.1s; --del:.5s;  --op:.7; width:1px; height:1px; top:14%; left:90%; }
.star:nth-child(7)  { --d:3.9s; --del:1.8s; --op:.6; width:2px; height:2px; top:34%; left:65%; }
.star:nth-child(8)  { --d:2.6s; --del:2.4s; --op:.8; width:3px; height:3px; top:21%; left:5%;  }
.star:nth-child(9)  { --d:4.5s; --del:.9s;  --op:.5; width:2px; height:2px; top:39%; left:88%; }
.star:nth-child(10) { --d:3.3s; --del:1.5s; --op:.9; width:1px; height:1px; top:9%;  left:33%; }
.star:nth-child(11) { --d:3.8s; --del:.2s;  --op:.6; width:3px; height:3px; top:5%;  left:70%; }
.star:nth-child(12) { --d:2.3s; --del:3.5s; --op:.9; width:2px; height:2px; top:17%; left:25%; }


/* ════════════════════════════════
   BRUME
════════════════════════════════ */

.fx-fog {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 35vh;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse 120% 60% at 50% 100%, rgba(200,215,245,.1) 0%, transparent 70%);
    animation: fog-breathe 14s ease-in-out infinite alternate;
}
@keyframes fog-breathe {
    from { opacity: 0.5; }
    to   { opacity: 1; }
}


/* ════════════════════════════════
   CONTENU
════════════════════════════════ */

.container {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    animation: fadein 1s ease both;
}
@keyframes fadein {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wordmark {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(6rem, 22vw, 17rem);
    letter-spacing: 0.02em;
    line-height: 0.9;
    color: var(--fg);
    user-select: none;
}
.wordmark em { font-style: normal; color: var(--accent); }

.tagline {
    font-family: 'DM Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.65rem, 1.8vw, 0.82rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: clamp(0.5rem, 2vw, 0rem);
}

.cta {
    display: block;
    width: 72px; height: 72px;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
    filter: grayscale(20%);
}
.cta:hover { transform: scale(1.18) rotate(6deg); filter: grayscale(0%); }
.cta span, .cta-emoji { font-size: 56px; line-height: 1; display: block; }

.contact {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.04em;
}
.dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.75); }
}
.contact a {
    color: var(--fg);
    text-decoration: none;
    border-bottom: 1px solid var(--muted);
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.contact a:hover { color: var(--accent); border-color: var(--accent); }


/* ════════════════════════════════
   PAGE RDV
════════════════════════════════ */

body.page-rdv {
    overflow: auto;
    justify-content: flex-start;
}
body.page-rdv .container {
    width: 100%;
    max-width: 900px;
    padding-top: 3rem;
    padding-bottom: 4rem;
    justify-content: flex-start;
}
#my-cal-inline {
    width: 100%;
    min-height: 600px;
    overflow: scroll;
}

.page-subtitle {
    font-family: 'DM Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.65rem, 1.8vw, 0.82rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}


/* ════════════════════════════════
   PAGE MERCI
════════════════════════════════ */

.page-content {
    max-width: 480px;
    line-height: 1.8;
    font-weight: 300;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.page-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 0.9;
    color: var(--fg);
}
.page-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
}


/* ── Accessibilité ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
