/* =============================================
   NEXT — Sobriété + couleurs (logo / fond), barre pleine largeur
   ============================================= */

:root {
    --text-primary: #f4f0fc;
    --text-secondary: #c4b8d8;
    --text-muted: #8b7fa3;

    --accent: #c4a8fc;
    --accent-soft: rgba(196, 168, 252, 0.22);
    --accent-strong: #9b7ce8;
    --primary: var(--accent-strong);
    --cyan-glow: #7dd3fc;

    --bg-dark: #0c0614;
    --bg-darker: #06030c;
    --bg-card: rgba(18, 10, 32, 0.45);
    --glass-bg: rgba(16, 8, 28, 0.42);
    --glass-border: rgba(255, 255, 255, 0.14);
    --glass-highlight: rgba(255, 255, 255, 0.06);

    --line: rgba(255, 255, 255, 0.11);
    --line-strong: rgba(196, 168, 252, 0.35);

    --magic-glow: 0 0 80px rgba(196, 168, 252, 0.2);
    --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);

    --site-header-offset: 5.35rem;

    --primary-neon: var(--accent);
    
    /* Couleurs par défaut de la scrollbar */
    --sb-start: #00d4ff;
    --sb-end: #b026ff;
    --secondary-neon: var(--cyan-glow);
    --accent-bright: #eee8ff;
    --border-light: var(--line);
    --detail-gold: #e8d4ff;
    --detail-line: var(--line);
    --gradient-neon: linear-gradient(135deg, #e0d0ff 0%, #9b7ce8 45%, #7dd3fc 100%);
    --gradient-dark: linear-gradient(180deg, rgba(12, 6, 22, 0.92) 0%, rgba(4, 2, 10, 0.96) 100%);
    --gradient-logo: var(--gradient-neon);
    --shadow-dark: 0 24px 64px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-top: var(--site-header-offset);
}

/* ============================================= */
/* SCROLLBAR DYNAMIQUE */
/* ============================================= */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--sb-start) 0%, var(--sb-end) 100%);
    border-radius: 10px;
    border: 2px solid var(--bg-darker);
    transition: background 0.5s ease;
}
/* Firefox */
* { scrollbar-width: thin; scrollbar-color: var(--sb-start) var(--bg-darker); }

/* Fond : couleurs visibles, lisibilité conservée */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: url('/assets/images/background.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    filter: brightness(0.85) saturate(1.05) contrast(1.05);
    transform: translateZ(0);
    pointer-events: none;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(
        165deg,
        rgba(8, 4, 18, 0.25) 0%,
        rgba(12, 6, 24, 0.35) 40%,
        rgba(4, 2, 12, 0.45) 100%
    );
    pointer-events: none;
    z-index: -1;
}

/* ============================================= */
/* UTILITIES */
/* ============================================= */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* ============================================= */
/* HEADER — barre flottante (îlot centré), logo + liens à gauche */
/* ============================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.85rem clamp(0.65rem, 2vw, 1.25rem) 0;
    pointer-events: none;
}

.site-header__bar {
    pointer-events: auto;
    max-width: min(1320px, calc(100% - 1.25rem));
    margin: 0 auto;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: rgba(8, 4, 18, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.42),
        0 1px 0 rgba(255, 255, 255, 0.07) inset;
}

.site-header__row {
    display: flex;
    align-items: center;
    gap: 1rem 1.5rem;
    min-height: 3.35rem;
    padding: 0.35rem 1rem 0.35rem 1.05rem;
    flex-wrap: nowrap;
}

.site-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 0;
}

.site-brand__logo {
    height: 46px;
    width: auto;
    max-width: 155px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 14px rgba(196, 168, 252, 0.35));
}

.site-nav {
    flex: 1;
    min-width: 0;
}

.site-nav__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.05rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__links li {
    margin: 0;
}

.site-nav__links a {
    display: inline-block;
    padding: 0.45rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 6px;
    transition:
        color 0.18s var(--ease-out-soft),
        background 0.18s var(--ease-out-soft);
}

.site-nav__links a:hover {
    color: var(--text-primary);
    background: var(--accent-soft);
}

.site-nav__links a.is-active {
    color: var(--accent-bright);
    background: rgba(196, 168, 252, 0.18);
}

.site-nav__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    margin-left: auto;
}

.site-link {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 0.45rem 0.5rem;
    transition: color 0.18s ease;
}

.site-link:hover {
    color: var(--accent);
}

.btn-header-primary {
    padding: 0.5rem 0.95rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    background: linear-gradient(135deg, #f4ecff 0%, #c9b0fc 45%, #a884f0 100%);
    color: #1a0f2e;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    transition:
        filter 0.18s ease,
        box-shadow 0.18s ease;
    white-space: nowrap;
    box-shadow: 0 2px 16px rgba(155, 124, 232, 0.25);
}

.btn-header-primary:hover {
    filter: brightness(1.06);
    box-shadow: 0 4px 22px rgba(155, 124, 232, 0.35);
}

.btn-header-ghost {
    padding: 0.5rem 0.85rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    color: var(--accent-bright);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    transition:
        border-color 0.18s ease,
        background 0.18s ease;
    white-space: nowrap;
}

.btn-header-ghost:hover {
    border-color: rgba(196, 168, 252, 0.55);
    background: var(--accent-soft);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--accent-bright);
    transition:
        transform 0.2s var(--ease-out-soft),
        opacity 0.2s ease;
}

/* Boutons pages internes */
.btn {
    font-family: inherit;
    padding: 0.65rem 1.35rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition:
        background 0.18s var(--ease-out-soft),
        color 0.18s var(--ease-out-soft),
        border-color 0.18s var(--ease-out-soft),
        transform 0.18s var(--ease-out-soft),
        filter 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.03em;
}

.btn-primary {
    background: linear-gradient(135deg, #e8dcff 0%, #9b7ce8 55%, #7b5fc9 100%);
    color: #160a24;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 4px 20px rgba(90, 60, 140, 0.35);
}

.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    color: #160a24;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-strong);
    color: var(--accent-bright);
}

.btn-ghost:hover {
    background: var(--accent-soft);
    transform: translateY(-1px);
}

@media (max-width: 1100px) {
    .site-nav__links a {
        font-size: 0.7rem;
        padding: 0.4rem 0.45rem;
        letter-spacing: 0.05em;
    }
}

@media (max-width: 960px) {
    :root {
        --site-header-offset: 4.85rem;
    }

    .site-header {
        padding-top: 0.65rem;
    }

    .site-header__bar {
        max-width: calc(100% - 0.85rem);
        border-radius: 14px;
    }

    .site-header__row {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.45rem 0.6rem;
        align-items: center;
    }

    .site-brand {
        grid-column: 1;
        grid-row: 1;
    }

    .site-nav__actions {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        margin-left: 0;
    }

    .mobile-menu-toggle {
        grid-column: 3;
        grid-row: 1;
        display: flex;
    }

    .site-nav {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .site-nav__links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 0.4rem 0 0;
        border-top: 1px solid var(--line);
        gap: 0;
    }

    .site-nav__links.active {
        display: flex;
    }

    .site-nav__links a {
        padding: 0.75rem 0.35rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .site-nav__actions .btn-header-ghost {
        display: none;
    }

    .site-brand__logo {
        height: 40px;
        max-width: 130px;
    }
}

@media (max-width: 480px) {
    .site-nav__actions .site-link {
        display: none;
    }

    .btn-header-primary {
        padding: 0.45rem 0.55rem;
        font-size: 0.6rem;
    }
}

/* ============================================= */
/* Pages internes — panneaux vitrés (pas de « grosses popups ») */
/* ============================================= */

.page-content {
    position: relative;
    z-index: 1;
}

.page-shell {
    padding: calc(var(--site-header-offset) + 2.25rem) 0 4.5rem;
}

.page-intro {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2.5rem;
}

.page-intro .section-title {
    margin-bottom: 0.65rem;
}

.page-intro .section-subtitle {
    margin-bottom: 0;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 var(--glass-highlight);
    padding: 1.75rem 2rem;
}

.glass-panel--narrow {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.glass-panel--wide {
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
}

.glass-panel + .glass-panel {
    margin-top: 1.5rem;
}

.form-field {
    margin-bottom: 1.25rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    background: rgba(6, 2, 14, 0.35);
    border: 1px solid rgba(196, 168, 252, 0.22);
    border-radius: 10px;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text-muted);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: rgba(196, 168, 252, 0.55);
    box-shadow: 0 0 0 3px rgba(196, 168, 252, 0.12);
}

.prose-steps h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-bright);
    margin: 1.25rem 0 0.5rem;
}

.prose-steps h3:first-child {
    margin-top: 0;
}

.prose-steps p {
    color: var(--text-secondary);
    line-height: 1.75;
}

.prose-steps a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.prose-steps a:hover {
    text-decoration: underline;
}

.download-layout {
    display: grid;
    gap: 1.5rem;
    max-width: 56rem;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .download-layout--split {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.spec-list p {
    margin: 0.35rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.alert {
    padding: 0.9rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.alert--success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

.alert--error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.text-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

/* Toasts — feedback sans « grosse popup » dans le flux */
.toast-stack {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    left: auto;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: min(22rem, calc(100vw - 2rem));
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.45;
    font-weight: 500;
    border: 1px solid var(--glass-border);
    background: rgba(12, 6, 24, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    transition:
        opacity 0.28s var(--ease-out-soft),
        transform 0.28s var(--ease-out-soft);
}

.toast--in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast--out {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
}

.toast--success {
    border-color: rgba(16, 185, 129, 0.4);
    color: #a7f3d0;
}

.toast--error {
    border-color: rgba(248, 113, 113, 0.45);
    color: #fecaca;
}

.toast--info {
    border-color: rgba(196, 168, 252, 0.4);
    color: var(--accent-bright);
}

@media (max-width: 480px) {
    .toast-stack {
        right: 0.75rem;
        left: 0.75rem;
        max-width: none;
    }
}

/* ============================================= */
/* HERO SECTION */
/* ============================================= */

.hero {
    min-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 3rem 0 4rem;
    isolation: isolate;
}

/* Voile statique : profondeur sans animation */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse 70% 50% at 50% -10%,
        rgba(255, 255, 255, 0.07) 0%,
        transparent 55%
    );
}

.background-slideshow {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.slideshow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 30, 0.7);
    z-index: 1;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 50%, #0f0f1e 100%);
}

.slideshow-slide.active {
    opacity: 1;
}

/* Hero content — une seule apparition mesurée au chargement */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-content {
        animation: heroEnter 0.55s var(--ease-out-soft) both;
    }
}

@keyframes heroEnter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    margin-bottom: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background: var(--cyan-glow);
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(125, 211, 252, 0.45);
}

.hero-badge span:last-child {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 24px rgba(196, 168, 252, 0.35));
}

.hero-title .gradient-text {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    border-radius: 15px;
    font-weight: 700;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-width: 150px;
    transition:
        border-color 0.2s var(--ease-out-soft),
        box-shadow 0.2s var(--ease-out-soft);
}

.stat-item:hover {
    border-color: rgba(196, 168, 252, 0.35);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ============================================= */
/* FEATURES SECTION */
/* ============================================= */

.features-section {
    padding: 6rem 0;
    background: linear-gradient(
        180deg,
        rgba(6, 2, 14, 0.82) 0%,
        rgba(4, 2, 12, 0.9) 100%
    );
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

/* Filet discret sous le titre — repère visuel « produit fini » */
.section-title--ruled::after {
    content: '';
    display: block;
    width: 52px;
    height: 2px;
    margin: 1.1rem auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-strong), var(--cyan-glow), transparent);
    opacity: 0.9;
}

.section-subtitle {
    font-size: 1.08rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 4rem;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 2rem;
    transition:
        border-color 0.22s var(--ease-out-soft),
        box-shadow 0.22s var(--ease-out-soft),
        transform 0.22s var(--ease-out-soft);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.feature-card:hover {
    border-color: rgba(196, 168, 252, 0.32);
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(40, 20, 80, 0.22);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(196, 168, 252, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-bright);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border: 1px solid rgba(196, 168, 252, 0.22);
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================= */
/* CONTENT SECTIONS */
/* ============================================= */

.content-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.72) 100%);
    backdrop-filter: blur(5px);
    position: relative;
}

.content-section:nth-child(even) {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.78) 100%);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-image {
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
}

.content-text h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.content-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.9;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* ============================================= */
/* FOOTER */
/* ============================================= */

footer {
    background: linear-gradient(180deg, rgba(4, 2, 10, 0.92) 0%, rgba(0, 0, 0, 0.98) 100%);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    color: var(--text-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 800;
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.18s ease;
}

.footer-section a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* ============================================= */
/* ANIMATIONS */
/* ============================================= */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================= */
/* RESPONSIVE */
/* ============================================= */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-item {
        min-width: 100px;
        padding: 1rem;
    }
}

/* ============================================= */
/* DISCORD SECTION */
/* ============================================= */

.discord-cta {
    padding: 6rem 0;
    background: rgba(6, 2, 14, 0.45);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--glass-border);
}

.discord-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.discord-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 65%);
    pointer-events: none;
}

.discord-content {
    position: relative;
    z-index: 10;
}

.discord-content h2 {
    font-size: 2.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.discord-content h2::after {
    content: '';
    display: block;
    width: 44px;
    height: 2px;
    margin-top: 0.85rem;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent-strong), var(--cyan-glow));
    opacity: 0.85;
}

.discord-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.btn-discord {
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(88, 101, 242, 0.35);
}

.btn-discord:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.discord-decoration {
    position: relative;
    height: 300px;
}

.decoration-orb {
    position: absolute;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 70%);
    border-radius: 50%;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .discord-card {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    
    .discord-decoration {
        display: none;
    }
    
    .discord-content h2 {
        font-size: 1.8rem;
    }
}

/* ============================================= */
/* NEWS — mise en page magazine / dynamique */
/* ============================================= */

.news-section {
    padding: 5.5rem 0 6rem;
    background: linear-gradient(180deg, rgba(8, 3, 18, 0.55) 0%, rgba(4, 2, 12, 0.82) 100%);
    border-top: 1px solid var(--glass-border);
    position: relative;
}

.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 640px);
    height: 120px;
    background: radial-gradient(ellipse at 50% 0%, rgba(196, 168, 252, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.news-section .container {
    position: relative;
    z-index: 1;
}

.news-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 0.5rem;
}

.news-section__head .section-title,
.news-section__head .section-subtitle {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.news-section__head .section-subtitle {
    margin-bottom: 0;
    max-width: 26rem;
}

.news-section__head .section-title--ruled::after {
    margin: 1rem 0 0;
}

.news-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--accent-bright);
    border: 1px solid rgba(196, 168, 252, 0.35);
    border-radius: 999px;
    background: rgba(196, 168, 252, 0.08);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.news-all-link:hover {
    background: rgba(196, 168, 252, 0.16);
    border-color: rgba(196, 168, 252, 0.55);
    transform: translateY(-1px);
}

.news-showcase {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.15rem;
    margin-top: 2.25rem;
    align-items: stretch;
}

.news-showcase--one {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
}

.news-showcase--one .news-card--featured {
    grid-row: auto;
    grid-column: 1;
    min-height: 260px;
}

.news-showcase--two {
    grid-template-columns: 1.22fr 1fr;
    grid-template-rows: auto;
}

.news-showcase--two .news-card--featured {
    grid-row: 1;
    grid-column: 1;
    min-height: 260px;
}

.news-showcase--two .news-card--compact {
    grid-row: 1;
    grid-column: 2;
    align-self: stretch;
}

.news-card {
    --news-pad: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: var(--news-pad);
    display: flex;
    flex-direction: column;
    transition:
        border-color 0.25s var(--ease-out-soft),
        box-shadow 0.25s var(--ease-out-soft),
        transform 0.25s var(--ease-out-soft);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    text-decoration: none;
    color: inherit;
    min-height: 0;
}

.news-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 80% at 100% 0%, rgba(196, 168, 252, 0.09) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: rgba(196, 168, 252, 0.35);
    box-shadow:
        0 16px 48px rgba(40, 20, 90, 0.25),
        0 0 0 1px rgba(196, 168, 252, 0.12);
}

.news-card:hover::after {
    opacity: 1;
}

.news-card--featured {
    grid-row: 1 / span 2;
    grid-column: 1;
    --news-pad: 1.75rem 1.85rem;
    min-height: 300px;
    border-color: rgba(196, 168, 252, 0.28);
}

.news-card--featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-strong), var(--cyan-glow), var(--accent-strong));
    opacity: 0.95;
}

.news-card--compact {
    grid-column: 2;
}

.news-card--compact:nth-of-type(2) {
    grid-row: 1;
}

.news-card--compact:nth-of-type(3) {
    grid-row: 2;
}

.news-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.news-pill {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    background: rgba(196, 168, 252, 0.2);
    color: var(--accent-bright);
    border: 1px solid rgba(196, 168, 252, 0.35);
}

.news-pill--muted {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border-color: var(--line);
    letter-spacing: 0.1em;
}

.news-date-badge {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    font-variant-numeric: tabular-nums;
}

.news-date-badge .day {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.news-date-badge .month {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: lowercase;
}

.news-card__title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 0.65rem;
    color: var(--text-primary);
}

.news-card--featured .news-card__title {
    font-size: clamp(1.45rem, 2.5vw, 1.85rem);
    margin-bottom: 0.85rem;
}

.news-card--compact .news-card__title {
    font-size: 1.05rem;
}

.news-card__excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.15rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card--compact .news-card__excerpt {
    font-size: 0.88rem;
    -webkit-line-clamp: 2;
    margin-bottom: 0.85rem;
}

.news-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--accent);
    transition: gap 0.2s ease, color 0.2s ease;
}

.news-card:hover .news-card__cta {
    gap: 0.75rem;
    color: var(--accent-bright);
}

.news-card__cta svg {
    flex-shrink: 0;
    transition: transform 0.22s var(--ease-out-soft);
}

.news-card:hover .news-card__cta svg {
    transform: translateX(3px);
}

.news-empty {
    margin-top: 2.5rem;
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.news-empty p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    max-width: 26rem;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 900px) {
    .news-showcase {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .news-card--featured {
        grid-row: auto;
        grid-column: 1;
        min-height: auto;
    }

    .news-card--compact {
        grid-column: 1;
        grid-row: auto;
    }

    .news-section__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-section__head .section-title,
    .news-section__head .section-subtitle {
        text-align: left;
    }
}

/* Respect du réglage « réduire les animations » du navigateur */
@media (prefers-reduced-motion: reduce) {
    .hero-content {
        animation: none !important;
    }

    .feature-card:hover,
    .news-card:hover,
    .btn-primary:hover,
    .btn-ghost:hover,
    .btn-discord:hover {
        transform: none;
    }
}
