@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* =============================================
   CITADELLE LABS — IMMERSIVE PRO
   Structure : Normal → Dive 3D → Normal
   ============================================= */

:root {
    --bg: #0A0C12;
    --bg-card: #111318;
    --border: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(139, 92, 246, 0.3);

    --white: #F8FAFC;
    --gray: #94A3B8;
    --dark-gray: #475569;

    --accent: #8B5CF6;
    --accent-light: #A78BFA;
    --accent-dark: #6D28D9;
    --gold: #F59E0B;
    --emerald: #10B981;

    --font: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button {
    cursor: pointer;
    font-family: var(--font);
    border: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}


/* ═════════════════════════════════════════════
   NAVBAR — Classique, propre, pro
   ═════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 3rem;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 12, 18, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 3rem;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--gray);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-discord {
    background: var(--accent);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.nav-discord:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3);
}


/* ═════════════════════════════════════════════
   HERO — PAGE NORMALE (Chapitre 1)
   ═════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: fixed;
    /* Le fond reste fixé à l'écran */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    /* Ne bloque pas les clics sur la page par erreur */
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.hero-fade {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 18, 0.15);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 750px;
    padding: 0 5%;
}

.hero-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Boutons Pro */
.hero-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.btn.primary {
    background: var(--accent);
    color: var(--white);
}

.btn.primary:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.35);
}

.btn.outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn.outline:hover {
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.1);
}

/* Scroll invite */
.scroll-invite {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: opacity 0.5s;
}

.scroll-invite span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 20px;
    height: 30px;
    border: 2px solid var(--gray);
    border-radius: 10px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    background: var(--white);
    border-radius: 3px;
    animation: scrollDown 1.5s infinite;
}

@keyframes scrollDown {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 12px);
        opacity: 0;
    }
}


/* ═════════════════════════════════════════════
   DIVE ZONE — MODE IMMERSIF 3D (Chapitre 2)
   ═════════════════════════════════════════════ */
.dive-zone {
    position: relative;
}

.dive-scroll-space {
    height: 600vh;
}

.dive-viewport {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    /* Permet à la vidéo de fond fixe d'être vue !! */
    z-index: 20;
    display: none;
}

/* Particles removed to keep a clean professional aesthetic */

/* Progress bar (thin line on the left) */
.dive-progress {
    position: absolute;
    left: 30px;
    top: 15%;
    bottom: 15%;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 50;
    border-radius: 2px;
}

.dive-progress-bar {
    width: 100%;
    height: 0%;
    background: var(--accent);
    border-radius: 2px;
    transition: height 0.1s;
    box-shadow: 0 0 10px var(--accent);
}

/* ═══ DIVE CARDS ═══ */
.dive-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90vw;
    max-width: 950px;
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    will-change: transform, opacity;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.card-visual {
    width: 45%;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.dive-card:hover .card-visual img {
    transform: scale(1.06);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 40%, var(--bg-card) 100%);
}

.card-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(10, 12, 18, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    padding: 12px 16px;
    text-align: center;
    border-radius: 12px;
}

.card-date span {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
}

.card-date {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.placeholder-visual {
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--dark-gray);
}

.placeholder-visual i {
    font-size: 2.5rem;
}

.placeholder-visual span {
    font-size: 0.9rem;
    font-weight: 600;
}

.card-info {
    width: 55%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tag.green {
    background: rgba(16, 185, 129, 0.12);
    color: var(--emerald);
}

.tag.gold {
    background: rgba(245, 158, 11, 0.12);
    color: var(--gold);
}

.tag.purple {
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent);
}

.tag.dim {
    background: rgba(71, 85, 105, 0.2);
    color: var(--dark-gray);
}

.card-info h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.card-info p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.card-stats {
    display: flex;
    gap: 30px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.card-stats div {
    font-size: 0.9rem;
    color: var(--gray);
}

.card-stats strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 2px;
}


/* ═════════════════════════════════════════════
   ASSOCIATION — PAGE NORMALE (Chapitre 3)
   ═════════════════════════════════════════════ */
.asso-section {
    padding: 10rem 0 6rem;
    position: relative;
    z-index: 10;
    background: rgba(10, 12, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.asso-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.asso-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
    line-height: 1.05;
}

.section-desc {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

.values-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.value-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 28px;
    transition: var(--transition);
}

.value-item:hover {
    border-color: var(--border-accent);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
}

.value-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 16px;
    line-height: 1;
}

.value-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.value-item p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}


/* ═════════ Stats Band ═════════ */
.stats-band {
    background: rgba(10, 12, 18, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem 0;
    position: relative;
    z-index: 10;
}

.stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat span {
    font-size: 0.9rem;
    color: var(--gray);
}


/* ═════════ CTA ═════════ */
.cta-section {
    padding: 8rem 0;
    text-align: center;
    background: rgba(10, 12, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    z-index: 10;
}

.cta-inner h2 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 900;
    margin-bottom: 1.2rem;
}

.cta-inner p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto 2.5rem auto;
}


/* ═════════ Footer ═════════ */
.footer {
    background: rgba(6, 8, 12, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    z-index: 10;
}

.footer-inner {
    padding: 4rem 0;
    display: flex;
    justify-content: space-between;
    gap: 4rem;
}

.footer-brand h3 {
    font-size: 1.3rem;
    font-weight: 800;
}

.footer-brand p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 6px;
}

.footer-cols {
    display: flex;
    gap: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.footer-col a {
    color: var(--gray);
    font-size: 0.95rem;
    transition: 0.2s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 1.5rem 5%;
    color: var(--dark-gray);
    font-size: 0.85rem;
}


/* ═════════ RESPONSIVE ═════════ */
@media (max-width: 1024px) {
    .dive-card {
        flex-direction: column;
        max-width: 600px;
    }

    .card-visual {
        width: 100%;
        min-height: 250px;
    }

    .card-info {
        width: 100%;
    }

    .card-overlay {
        background: linear-gradient(to bottom, transparent 40%, var(--bg-card) 100%);
    }

    .values-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        flex-direction: column;
    }

    .dive-progress {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .values-row {
        grid-template-columns: 1fr;
    }

    .stats-row {
        flex-direction: column;
        gap: 2rem;
    }

    .card-info {
        padding: 24px;
    }

    .footer-cols {
        flex-direction: column;
        gap: 2rem;
    }
}