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

:root {
    --void: #07070a;
    --panel: #101116;
    --accent: #FF6B35;
    --accent-soft: rgba(255, 107, 53, 0.18);
    --earth-blue: #2E6F95;
    --earth-green: #3F7D5C;
    --text: #F2EFEA;
    --muted: #9096A3;
    --line: rgba(255, 255, 255, 0.09);
    --glass: rgba(16, 17, 22, 0.75);
    --on-accent: #07070a;

    --font-display: "Space Grotesk", "Inter", sans-serif;
    --font-body: "Inter", sans-serif;
}

html[data-theme="light"] {
    --void: #f5f3ef;
    --panel: #ffffff;
    --accent-soft: rgba(255, 107, 53, 0.14);
    --text: #16171c;
    --muted: #5c5f6b;
    --line: rgba(15, 15, 20, 0.1);
    --glass: rgba(255, 255, 255, 0.75);
}

html {
    height: 100%;
    scroll-behavior: smooth;
    transition: background-color 0.2s ease;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--void);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

main {
    flex: 1;
}

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

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ---------- Navigation ---------- */

.navbar {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.4rem;
    z-index: 1000;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 1.05rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
    background-color: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
    background-color: var(--accent);
    color: var(--on-accent);
}

/* ---------- Contrôles en haut à gauche (thème + langue) ---------- */

.controls-left {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
    color: var(--text);
    border-color: var(--accent);
}

.lang-toggle {
    height: 42px;
    padding: 0 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.lang-toggle:hover {
    color: var(--text);
    border-color: var(--accent);
}

@media (max-width: 480px) {

    .controls-left,
    .navbar {
        top: 12px;
    }

    .controls-left {
        left: 12px;
        gap: 0.4rem;
    }

    .navbar {
        right: 12px;
        padding: 0.3rem;
    }

    .nav-links {
        gap: 0.15rem;
    }

    .nav-links a {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .lang-toggle {
        height: 38px;
        padding: 0 0.75rem;
        font-size: 0.75rem;
    }
}

/* ---------- Indicateur "en direct" (partagé entre pages) ---------- */

.live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
    flex-shrink: 0;
    animation: pulse 3.2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

@media (prefers-reduced-motion: reduce) {
    .live-dot {
        animation: none;
    }
}

/* ---------- En-tête de page générique (pages secondaires) ---------- */

.page-header {
    padding: 8rem 6vw 3rem;
    max-width: 1500px;
}

.page-kicker {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.page-header h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.page-lead {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 100ch;
}

/* ---------- Main-body (conteneur générique pages secondaires) ---------- */

.main-body {
    padding: 8rem 6vw 4rem;
    min-height: 100%;
}

.main-body h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.main-body h1 .iss-img {
    width: 50px;
    height: auto;
}

@media (max-width: 380px) {
    .main-body h1 {
        font-size: 1.3rem;
    }

    .main-body h1 .iss-img {
        width: 30px;
    }
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 1.5rem 6vw;
    color: var(--muted);
    font-size: 0.85rem;
}