/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #7c3aed;
    --primary-light: #a855f7;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-section: #0f0f18;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --border: rgba(124, 58, 237, 0.3);
    --glow: 0 0 20px rgba(124, 58, 237, 0.5);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== UTILITAIRES ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-title span {
    color: var(--primary-light);
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: var(--glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(124, 58, 237, 0.7);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary-light);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 3rem;
    transition: var(--transition);
    background: transparent;
}

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

.nav-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    letter-spacing: 3px;
}

.logo-dot {
    color: var(--primary-light);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 50%;
    animation: floatParticle linear infinite;
    opacity: 0;
}

@keyframes floatParticle {
    0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeInDown 0.8s ease;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3.5rem, 12vw, 8rem);
    font-weight: 900;
    letter-spacing: 8px;
    line-height: 1;
    margin: 0.3rem 0 0.8rem;
    animation: fadeInUp 0.8s ease 0.2s both;
    filter: drop-shadow(0 0 30px rgba(124, 58, 237, 0.6));
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 550px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s both;
    margin: 0.5rem 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s both;
    margin-top: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 18px;
    height: 18px;
    border-right: 2px solid var(--primary-light);
    border-bottom: 2px solid var(--primary-light);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ===== À PROPOS ===== */
.apropos {
    padding: 6rem 0;
    background: var(--bg-section);
}

.apropos-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-top: 3rem;
}

.apropos-avatar {
    flex-shrink: 0;
    position: relative;
    width: 180px;
    height: 180px;
}

.avatar-cercle {
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    z-index: 1;
}

.avatar-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    border-top-color: transparent;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.apropos-text h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.apropos-text h3 span {
    color: var(--primary-light);
}

.apropos-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.apropos-text strong {
    color: var(--primary-light);
}

.competences {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.comp-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.comp-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

.comp-item i {
    color: var(--primary-light);
}

/* ===== MES JEUX ===== */
.jeux {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.jeux-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.jeu-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.jeu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--secondary));
}

.jeu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3);
    border-color: var(--primary-light);
}

.jeu-card.featured::before {
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.card-badge.soon {
    background: linear-gradient(135deg, var(--accent), #f97316);
}

.card-icon {
    font-size: 3.5rem;
    line-height: 1;
}

.card-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
}

.card-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid var(--border);
    color: var(--primary-light);
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}

.card-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.8rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.card-stats i {
    color: var(--accent);
    margin-right: 0.3rem;
}

.btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #00875a, #00c48c);
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    margin-top: auto;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 196, 140, 0.4);
}

.coming-soon {
    opacity: 0.7;
}

.coming-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(10,10,15,0.9));
    color: var(--accent);
    text-align: center;
    padding: 1.5rem 1rem 1rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 3px;
    font-weight: 700;
}

/* ===== NOUVEAUTÉS ===== */
.nouveautes {
    padding: 6rem 0;
    background: var(--bg-section);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
}

.news-date {
    font-size: 0.8rem;
    color: var(--secondary);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.news-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.news-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: white;
}

.news-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-tag {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--secondary);
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ===== CONTACT ===== */
.contact {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group label {
    display: none;
}

.form-success {
    display: none;
    color: #00c48c;
    font-weight: 600;
    padding: 0.8rem;
    background: rgba(0, 196, 140, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 196, 140, 0.3);
    text-align: center;
}

.form-success.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.contact-social h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.social-item i {
    font-size: 1.3rem;
    color: var(--primary-light);
    width: 25px;
}

.social-item:hover {
    border-color: var(--primary-light);
    transform: translateX(5px);
    box-shadow: var(--glow);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-section);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

.footer-top {
    text-align: center;
    margin-bottom: 1rem;
}

.footer-top .logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 3px;
}

.footer-top p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.3rem;
    }

    .burger {
        display: flex;
        z-index: 1000;
    }

    .burger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .burger.open span:nth-child(2) {
        opacity: 0;
    }

    .burger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .apropos-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .competences {
        justify-content: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .navbar.scrolled {
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .jeux-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== AVATAR IMAGE ===== */
.avatar-cercle {
    overflow: hidden;
    padding: 0;           /* reset padding si besoin */
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Fix : anneau qui tourne bien autour du cercle */
.apropos-avatar {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-cercle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.avatar-ring {
    position: absolute;
    /* Centré par rapport au parent flex */
    top: 50%;
    left: 50%;
    width: 178px;
    height: 178px;
    transform: translate(-50%, -50%) rotate(0deg);
    border-radius: 50%;
    border: 2.5px solid var(--primary);
    border-top-color: transparent;
    border-right-color: transparent;
    animation: spinRing 3s linear infinite;
    z-index: 2;
}

@keyframes spinRing {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== IMAGE JEU CARTE ===== */
.game-icon-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.jeu-card:hover .game-icon-img {
    transform: scale(1.05) rotate(-2deg);
}

/* ===== CONTACT SOCIAL AMÉLIORÉ ===== */
.social-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.social-item i {
    font-size: 1.5rem;
    color: var(--primary-light);
    width: 30px;
    flex-shrink: 0;
}

.social-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.social-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

.social-handle {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.social-item:hover {
    border-color: var(--primary-light);
    transform: translateX(5px);
    box-shadow: var(--glow);
}

.social-item:hover i {
    color: var(--secondary);
}
/* ===== FORM SUCCESS MESSAGE ===== */
.form-success {
    display: none;
    opacity: 0;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid #22c55e;
    color: #22c55e;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    margin-top: 1rem;
    transition: opacity 0.5s ease;
}

/* Instagram hover */
.social-item:has(.fa-instagram):hover {
    border-color: #e1306c;
    box-shadow: 0 0 15px rgba(225, 48, 108, 0.3);
}

.social-item:has(.fa-instagram):hover i {
    color: #e1306c;
}
/* ===== GLITCH EFFECT ===== */
.glitch {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #fff, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch::before {
    animation: glitch1 5s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    filter: drop-shadow(-3px 0 var(--secondary));
}

.glitch::after {
    animation: glitch2 5s infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    filter: drop-shadow(3px 0 var(--primary-light));
}

@keyframes glitch1 {
    0%, 85%, 100% { transform: translate(0); opacity: 0; }
    87% { transform: translate(-5px, -2px); opacity: 1; }
    89% { transform: translate(5px, 2px); opacity: 1; }
    91% { transform: translate(0); opacity: 0; }
}

@keyframes glitch2 {
    0%, 80%, 100% { transform: translate(0); opacity: 0; }
    82% { transform: translate(5px, 2px); opacity: 1; }
    84% { transform: translate(-5px, -2px); opacity: 1; }
    86% { transform: translate(0); opacity: 0; }
}

/* ===== HERO BADGES ===== */
.hero-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0.8rem 0;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.badge {
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.4);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.88rem;
    color: var(--primary-light);
    font-weight: 600;
    transition: var(--transition);
}

.badge:hover {
    background: rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

.badge:nth-child(1) { animation-delay: 0.8s; }
.badge:nth-child(2) { animation-delay: 1s; }
.badge:nth-child(3) { animation-delay: 1.2s; }

@keyframes badgePop {
    from { opacity: 0; transform: scale(0.5); }
    to   { opacity: 1; transform: scale(1); }
}

/* ===== COMING SOON TEXT ===== */
.coming-soon-text {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    animation: blink 2s ease-in-out infinite;
    margin-top: -0.5rem;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ===== STATS ROW ===== */
.stats-row {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1rem 1.5rem;
    border-radius: 14px;
    flex: 1;
    min-width: 90px;
    transition: var(--transition);
}

.stat-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--glow);
    transform: translateY(-3px);
}

.stat-number {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-light);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== SCREENSHOTS SECTION ===== */
.screenshots-section {
    padding: 6rem 0;
    background: var(--bg-section);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 1rem;
}

.screenshot-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: var(--transition);
    aspect-ratio: 9/16;
}

.screenshot-item:hover {
    transform: scale(1.04) translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.35);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.screenshot-item:hover img {
    transform: scale(1.06);
}

.screenshot-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.88));
    padding: 30px 10px 12px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-light);
    letter-spacing: 1px;
}

.screenshot-item:hover .screenshot-overlay {
    transform: translateY(0);
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 16px;
    border: 2px solid var(--primary);
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
    line-height: 1;
    transition: var(--transition);
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--primary-light);
    transform: scale(1.2);
}

#lightbox-caption {
    color: var(--primary-light);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ===== RESPONSIVE SCREENSHOTS ===== */
@media (max-width: 768px) {
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-row {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== BTN SCREENSHOTS ===== */
.btn-screenshots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(124, 58, 237, 0.15);
    border: 2px solid var(--primary);
    color: var(--primary-light);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    letter-spacing: 1px;
}

.btn-screenshots:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

/* ===== MODALE SCREENSHOTS ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 8000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    max-width: 900px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--primary-light);
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary-light);
    transform: scale(1.2);
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.modal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.modal-item img {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--border);
    transition: var(--transition);
}

.modal-item:hover img {
    border-color: var(--primary-light);
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

.modal-item span {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
}

/* ===== BOUTON SUPPRESSION COMPTE (carte jeu) ===== */
.btn-supprimer-compte {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(220, 38, 38, 0.12);
    border: 2px solid #dc2626;
    color: #f87171;
    padding: 0.7rem 1.5rem;
    border-radius: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    width: 100%;
    text-align: center;
    margin-top: 0.6rem;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.btn-supprimer-compte:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
}

/* ===== PAGE SUPPRESSION DE COMPTE ===== */
.suppression-compte {
    padding: 8rem 0 6rem;
    background: var(--bg-dark);
    min-height: 100vh;
}

.btn-retour {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.btn-retour:hover {
    transform: translateX(-5px);
}

.suppression-warning {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid #dc2626;
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
    margin: 2rem 0 3rem;
}

.suppression-warning i {
    color: #f87171;
    font-size: 1.4rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.suppression-warning p {
    color: var(--text-main);
    line-height: 1.6;
}

.suppression-steps {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.suppression-step {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem;
    transition: var(--transition);
}

.suppression-step:hover {
    border-color: var(--primary-light);
    box-shadow: var(--glow);
}

.step-number {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    color: var(--primary-light);
}

.step-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.step-img {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    max-width: 350px;
}

.step-img img {
    width: 100%;
    display: block;
}

.suppression-contact {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-muted);
}

.suppression-contact a {
    color: var(--primary-light);
    font-weight: 600;
    text-decoration: none;
}

.suppression-contact a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .suppression-step {
        flex-direction: column;
    }
}
/* ========== BOUTON POLITIQUE DE CONFIDENTIALITÉ (carte jeu) ========== */
.btn-confidentialite {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 12px 20px;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.4);
    color: #00f5ff;
    border-radius: 50px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-confidentialite:hover {
    background: rgba(0, 245, 255, 0.2);
    border-color: #00f5ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 245, 255, 0.3);
}

/* ========== PAGE LÉGALE (Politique de confidentialité / Suppression compte) ========== */
.legal-page {
    padding: 140px 20px 80px;
    min-height: 100vh;
    background: var(--bg-dark, #0a0a0f);
    color: #fff;
}

.legal-page h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #00f5ff, #ff00e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: 50px;
    font-size: 1rem;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    line-height: 1.8;
}

.legal-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    color: #00f5ff;
    margin-top: 35px;
    margin-bottom: 15px;
    border-left: 4px solid #ff00e5;
    padding-left: 15px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: #ddd;
    margin-bottom: 15px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
}

.legal-content ul {
    margin: 15px 0 20px 20px;
    color: #ccc;
}

.legal-content ul li {
    margin-bottom: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
}

.legal-content ul li strong {
    color: #00f5ff;
}

.legal-content a {
    color: #ff00e5;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: #00f5ff;
}

.btn-link {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #00f5ff, #ff00e5);
    color: #fff !important;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 0, 229, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding: 120px 15px 60px;
    }
    .legal-page h1 {
        font-size: 1.8rem;
    }
    .legal-content {
        padding: 25px 20px;
    }
    .legal-content h2 {
        font-size: 1.2rem;
    }
}