/* Variables cohérentes avec les autres pages */
:root {
    --primary: #00ff9d;
    --primary-dark: #00cc7d;
    --secondary: #6c63ff;
    --accent: #ff2e63;
    --violet: #9d4edd;
    --violet-light: #c77dff;
    --dark: #0a0a0f;
    --dark-light: #1a1a24;
    --gray: #2a2a35;
    --light: #f0f0f0;
    --terminal-green: #00ff41;
    --neon-pink: #ff006e;
    --neon-blue: #00d9ff;
    --neon-green: #00ff9d;
    --neon-purple: #9d4edd;
    --neon-yellow: #ffbe0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ===== ARRIÈRE-PLAN CYBERPUNK IDENTIQUE AUX AUTRES PAGES ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 98%, rgba(255, 0, 110, 0.1) 98%),
        linear-gradient(0deg, transparent 98%, rgba(0, 217, 255, 0.1) 98%);
    background-size: 50px 50px;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Particules flottantes cyberpunk */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, var(--neon-pink), transparent),
        radial-gradient(2px 2px at 60% 70%, var(--neon-blue), transparent),
        radial-gradient(1px 1px at 50% 50%, var(--neon-purple), transparent),
        radial-gradient(1px 1px at 80% 10%, var(--neon-green), transparent),
        radial-gradient(2px 2px at 90% 60%, var(--neon-yellow), transparent);
    background-size: 200% 200%;
    animation: particleFloat 15s ease-in-out infinite;
    z-index: -1;
    opacity: 0.3;
}

@keyframes particleFloat {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

/* Terminal header identique aux autres pages */
.terminal-header {
    background: rgba(15, 15, 23, 0.95);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--violet);
}

.terminal-dots {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: var(--accent); }
.dot.yellow { background: #ffb74d; }
.dot.green { background: var(--primary); }

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    color: var(--light);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Navigation identique aux autres pages */
.menu {
    background: rgba(26, 26, 36, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--violet);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger {
    width: 25px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--light);
    transition: all 0.3s ease;
}

.menu-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-item {
    color: var(--light);
    text-decoration: none;
    padding: 10px 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-item:hover,
.menu-item.active {
    color: var(--violet-light);
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--violet));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu-item:hover::after,
.menu-item.active::after {
    width: 80%;
}

.terminal-input {
    display: flex;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    color: var(--terminal-green);
    font-size: 0.9rem;
}

.prompt {
    margin-right: 10px;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ===== SECTIONS - STYLE COHÉRENT AVEC LES AUTRES PAGES ===== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.title-number {
    color: var(--violet);
    font-size: 2.8rem;
    opacity: 0.9;
}

.title-text {
    color: var(--light);
    background: linear-gradient(45deg, var(--light), var(--violet-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.title-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--violet), transparent);
    margin-left: 20px;
}

/* Contenu des mentions légales */
.legal-container {
    background: rgba(26, 26, 36, 0.8);
    border-radius: 15px;
    border: 2px solid rgba(157, 78, 221, 0.2);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 1;
}

.legal-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(157, 78, 221, 0.1);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--violet-light);
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 3px solid var(--violet);
}

.legal-container p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light);
    margin-bottom: 15px;
    padding-left: 20px;
}

.legal-container a {
    color: var(--violet-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.legal-container a:hover {
    color: var(--primary);
}

.legal-container a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.legal-container a:hover::after {
    width: 100%;
}

.address {
    font-style: normal;
    line-height: 1.6;
    margin-top: 10px;
    padding-left: 25px;
}

.version-badge {
    display: inline-block;
    background: linear-gradient(45deg, var(--violet), var(--secondary));
    color: var(--dark);
    padding: 8px 20px;
    border-radius: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.3);
    transition: all 0.3s ease;
}

.version-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.4);
}

/* ===== FOOTER IDENTIQUE AUX AUTRES PAGES ===== */
.footer {
    background: rgba(26, 26, 36, 0.95);
    border-top: 1px solid var(--violet);
    padding: 30px 20px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--violet-light);
}

.separator {
    color: var(--violet);
}

.version {
    color: var(--violet-light);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 50%;
    color: var(--violet-light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: rgba(157, 78, 221, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(157, 78, 221, 0.3);
}

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(157, 78, 221, 0.2);
}

.footer-bottom p {
    color: var(--light);
    opacity: 0.6;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .menu-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: left 0.3s ease;
        z-index: 999;
        padding: 20px;
    }
    
    .menu-links.active {
        left: 0;
    }
    
    .menu-item {
        font-size: 1.1rem;
        padding: 15px 30px;
        justify-content: center;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .terminal-input {
        display: none;
    }
    
    .section-title {
        font-size: 1.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .title-number {
        font-size: 2.2rem;
    }
    
    .title-text {
        font-size: 1.5rem;
    }
    
    .title-line {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .legal-container {
        padding: 25px;
    }
    
    .legal-title {
        font-size: 1.3rem;
    }
    
    .legal-container p {
        font-size: 1rem;
        padding-left: 15px;
    }
    
    /* Footer responsive */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .title-number {
        font-size: 1.8rem;
    }
    
    .title-text {
        font-size: 1.2rem;
    }
    
    .legal-container {
        padding: 20px;
    }
    
    .legal-title {
        font-size: 1.2rem;
        padding-left: 10px;
    }
    
    .legal-container p {
        padding-left: 10px;
    }
    
    .address {
        padding-left: 15px;
    }
    
    .footer {
        padding: 30px 15px;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Effet de scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(157, 78, 221, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(157, 78, 221, 0.5);
}

/* Sélection de texte */
::selection {
    background: var(--violet);
    color: white;
}

::-moz-selection {
    background: var(--violet);
    color: white;
}

/* Ajout d'une animation discrète pour les particules de l'arrière-plan */
@keyframes subtlePulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.25; }
}