:root {
    --color-background: #0a0a0a;
    --color-text: #ffffff;
    --color-primary: #00ffaa;
    --color-secondary: #ff00aa;
    --color-accent: #ffcc00;
    --color-dark: #121212;
    --color-light: #f4f4f4;
    --font-primary: 'Space Grotesk', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Curseur personnalisé - Désactivé sur mobile */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
    display: none; /* Caché par défaut sur mobile */
}

/* En-tête et navigation - Mobile First */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 10, 0.95);
    min-height: 70px;
}

.logo img {
    height: 45px;
    width: auto;
}

.main-nav {
    position: relative;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}

/* Animation du burger menu */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    z-index: 10;
    list-style: none;
    backdrop-filter: blur(10px);
    gap: 2rem;
    display: flex;
}

.nav-links.active {
    right: 0;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    padding: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-align: center;
}

.nav-links a::before {
    content: attr(data-text);
    position: absolute;
    color: var(--color-primary);
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: width 0.3s ease;
    left: 50%;
    transform: translateX(-50%);
}

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

/* Section Héro - Optimisée mobile */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.6;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    position: relative;
    color: white;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.subtitle {
    font-size: 1rem;
    font-weight: 300;
    margin-top: 1rem;
    color: white;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Sections générales - Mobile First */
section {
    padding: 3rem 1rem;
}

.section-color {
    background-color: var(--color-dark);
    position: relative;
    overflow: hidden;
}

.section-color::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.section-light {
    background-color: var(--color-light);
    color: var(--color-dark);
}

h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    display: block;
    width: 100%;
}

.section-light h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-secondary);
}

.section-color h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-primary);
}

/* Grilles optimisées mobile */
.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 170, 0.2);
}

.item-content {
    padding: 1.5rem;
}

.item-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.item-content p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.btn-explore {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    color: var(--color-dark);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.9rem;
}

.btn-explore:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 255, 170, 0.4);
}

/* Articles - Mobile optimisé */
.articles-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.article-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-3px);
}

.article-date {
    font-size: 0.85rem;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.article-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
    line-height: 1.3;
}

.article-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    font-size: 0.9rem;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.read-more:hover::after {
    width: 100%;
}

/* Jeux - Mobile optimisé */
.game-creator {
    text-align: center;
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-style: italic;
    letter-spacing: 0.5px;
    background: rgba(255, 204, 0, 0.1);
    display: block;
    padding: 0.7rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 204, 0, 0.3);
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.games-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 204, 0, 0.2);
}

.game-img {
    height: 150px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
    position: relative;
    overflow: hidden;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="%23ffffff" stroke-width="2" stroke-opacity="0.1"/></svg>');
    background-size: 20px;
}

.game-card h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem;
    padding: 0 1.5rem;
    color: var(--color-accent);
    line-height: 1.3;
}

.game-card p {
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.5;
}

.btn-play {
    display: inline-block;
    margin: 0.5rem 1.5rem 1.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--color-accent);
    color: var(--color-dark);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.9rem;
}

.btn-play:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.4);
}

.btn-play.disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-play.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Section Benchmark - Mobile optimisé */
.section-benchmark {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-benchmark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 170, 0.05) 0%, rgba(255, 0, 170, 0.05) 100%);
    pointer-events: none;
}

.benchmark-header {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.benchmark-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.benchmark-subtitle {
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.benchmark-content {
    position: relative;
    z-index: 2;
}

.prompt-highlight {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 255, 170, 0.3);
    position: relative;
    overflow: hidden;
}

.prompt-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.prompt-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.prompt-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.prompt-quote {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    font-style: italic;
    line-height: 1.5;
}

.benchmark-description {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.benchmark-description p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: var(--color-dark);
}

.benchmark-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.benchmark-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.benchmark-cta {
    margin-top: 2rem;
}

.btn-benchmark {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    color: var(--color-text);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 255, 170, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-benchmark::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-benchmark:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 255, 170, 0.4);
}

.btn-benchmark:hover::before {
    left: 100%;
}

.btn-icon {
    font-size: 1rem;
}

.btn-arrow {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-benchmark:hover .btn-arrow {
    transform: translateX(3px);
}

/* À propos - Mobile optimisé */
.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-content {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-dark);
    text-align: left;
    margin-bottom: 1.2rem;
}

/* Footer - Mobile optimisé */
footer {
    background-color: var(--color-dark);
    padding: 3rem 1rem 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    text-align: center;
}

.footer-logo img {
    height: 80px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.footer-links a {
    color: var(--color-text);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--color-primary);
    color: var(--color-dark);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.7;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Breakpoints pour tablettes */
@media (min-width: 576px) {
    header {
        padding: 1.2rem 2rem;
    }
    
    .logo img {
        height: 50px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    section {
        padding: 4rem 2rem;
    }
    
    .games-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    .game-img {
        height: 180px;
    }
    
    .benchmark-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
    }
    
    .about-content {
        padding: 2rem;
    }
}

/* Breakpoints pour écrans moyens */
@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
    
    .nav-links {
        position: static;
        height: auto;
        width: auto;
        background: none;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        transition: none;
        z-index: auto;
        gap: 2rem;
        backdrop-filter: none;
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }
    
    .nav-links a::before {
        left: 0;
        transform: none;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    .subtitle {
        font-size: 1.4rem;
    }
    
    h2 {
        font-size: 2.8rem;
    }
    
    section {
        padding: 5rem 2rem;
    }
    
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .articles-container {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }
    
    .benchmark-features {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Breakpoints pour grands écrans */
@media (min-width: 992px) {
    .logo img {
        height: 60px;
    }
    
    h1 {
        font-size: 4.5rem;
    }
    
    .subtitle {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 3.2rem;
    }
    
    .hero {
        padding: 2rem;
    }
    
    .game-img {
        height: 200px;
    }
    
    .benchmark-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .benchmark-features {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-content {
        padding: 2.5rem;
    }
    
    .about-content p {
        font-size: 1.05rem;
        text-align: justify;
    }
    
    /* Réactiver le curseur sur grands écrans */
    .cursor {
        display: block;
    }
}

/* Breakpoints pour très grands écrans */
@media (min-width: 1200px) {
    h1 {
        font-size: 5rem;
    }
    
    .subtitle {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 3.5rem;
    }
    
    .nav-links a {
        font-size: 1.2rem;
    }
    
    .btn-benchmark {
        padding: 1.2rem 3rem;
        font-size: 1.1rem;
    }
}

/* Optimisations spécifiques pour très petits écrans */
@media (max-width: 375px) {
    header {
        padding: 0.8rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    section {
        padding: 2.5rem 0.8rem;
    }
    
    .game-creator {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
    
    .game-card h3 {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .game-card p {
        font-size: 0.85rem;
        padding: 0 1rem;
    }
    
    .btn-play {
        margin: 0.5rem 1rem 1.5rem;
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .prompt-highlight {
        padding: 1rem;
    }
    
    .stat-item {
        padding: 1.2rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .about-content {
        padding: 1.2rem;
    }
    
    .btn-benchmark {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* Correction du centrage des h2 */
section h2 {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}