/* =========================================
   GLOBAL SETTINGS
========================================= */

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

/* ----- SETTINGS (Thème Glass & Néon) ----- */
:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: #e2e8f0;
    --text-dark: #000000;
    --primary-color: #00d2ff;
    --primary-dark: #0066ff;
    --glass-bg: rgba(10, 15, 35, 0.35);
    --glass-border: rgba(255, 255, 255, 0.15);
    --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}
/* ----------------------------------------- */

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem 4rem;
    overflow: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 1300px) {
    body {
        overflow-x: hidden;
        overflow-y: auto; 
        padding: 2rem 3rem;       
        text-align: center;
    }
}

@media (max-width: 500px) {
    body {
        overflow-x: hidden;
        overflow-y: auto; 
        padding: 1rem 1.5rem;       
        text-align: center;
    }
}

/* =========================================
   HEADER
========================================= */

.site-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: text-shadow 0.3s ease;
}

.logo:hover {
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
}

/* Nouvel effet de survol néon */
.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color); /* Lueur sous le trait */
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.burger-icon {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 100;
}

.burger-line {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Header Mobile */
@media (max-width: 900px) {
    .site-header {
        width: 100%;
        max-width: 100%;
    }

    .header-inner {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center; /* Maintient le burger sur la même ligne que la marque */
        width: 100%;
    }

    .burger-icon {
        display: flex;
    }

    .burger-icon:focus-visible {
        outline: 2px solid var(--primary-color);
    }

    /* Le menu déroulant adopte le style Glassmorphism */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.85); /* Fond très sombre mais transparent */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
        z-index: 99;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .main-nav li {
        width: 100%;
        text-align: center;
    }

    .main-nav a {
        display: block;
        padding: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .menu-toggle:checked ~ .main-nav {
        max-height: 400px;
    }

    /* Animation du burger en croix avec couleur cyan */
    .menu-toggle:checked ~ .burger-icon .burger-line {
        background-color: var(--primary-color);
        box-shadow: 0 0 8px var(--primary-color);
    }
    
    .menu-toggle:checked ~ .burger-icon .burger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle:checked ~ .burger-icon .burger-line:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle:checked ~ .burger-icon .burger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-info {
    font-size: 0.85rem;
    color: #888888;
}

.footer-info .copyright {
    color: var(--text-muted);
    font-weight: bold;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.footer-info .status {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}

@media (max-width: 900px) {
    .site-footer {
        width: 100%;
        max-width: 100%;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* =========================================
   TOGGLE SWITCH
========================================= */

.toggle-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.toggle-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    transition: .4s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    border-radius: 50%;
    transition: .4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Effet de rebond naturel */
}

/* État activé : Dégradé bleu/cyan et lueur */
input:checked + .toggle-slider {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}