/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-rose: #e9b5c5;
    --primary-black: #1d1d1b;
    --primary-white: #ffffff;
    --gradient-rose: linear-gradient(135deg, #e9b5c5 0%, #f4d0dc 100%);
    --gradient-dark: linear-gradient(135deg, #1d1d1b 0%, #2a2a28 100%);
    --gradient-storm: linear-gradient(45deg, #1d1d1b 0%, #3d3d3b 50%, #1d1d1b 100%);
    --shadow-glow: 0 0 20px rgba(233, 181, 197, 0.3);
    --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: 
    linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 1)), 
    url('ton3.png'); /* image de fond */
background-repeat: no-repeat;
background-position: center;
background-size: cover; 

    color: var(--primary-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    line-height: 1.2;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(29, 29, 27, 0.95);
    backdrop-filter: blur(20px);
    transition: var(--transition);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(120deg, transparent 0%, #e9b5c5 50%, transparent 100%);
    background-size: 200% 100%;
    animation: borderSlide 3s linear infinite;
    transition: background 0.5s ease, background-size 0.5s ease;
    z-index: 1;
    pointer-events: none;
}
@keyframes borderSlide {
    from {
        background-position: 200% 0%;
    }
    to {
        background-position: 0% 0%;
    }
}

.navbar.scrolled {
    background: rgba(29, 29, 27, 0);
    box-shadow: var(--shadow-dark);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    width: 36px;
    height: 42px;
    filter: drop-shadow(0 0 8px rgba(233, 181, 197, 0.5));
}

.nav-title {
    font-family: 'Orbitron', monospace;
    font-weight: 900;

    font-size: 1.5rem;
    background: var(--gradient-rose);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--primary-white);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: var(--transition);
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: #ffffff;
    background: #e9b5c542;
    background-size: 200% 100%;
    background-position: 100% 0;
}

.nav-link.active {
    color: #ffffff;
    background: #e9b5c588;
    border: none;
    box-shadow:
        0 0 10px #e9b5c5c5,
        0 0 20px #e9b5c59a,
        inset 0 0 8px #e9b5c588;
    backdrop-filter: blur(6px);
    transform: scale(1.05);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: 1px solid rgba(233, 181, 197, 0.3);
    border-radius: 6px;
    padding: 0.25rem;
    cursor: pointer;
    transition: var(--transition);
    width: 32px;
    height: 24px;
    overflow: hidden;
}

.lang-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lang-btn.active,
.lang-btn:hover {
    border-color: var(--primary-rose);
    box-shadow: var(--shadow-glow);
}

/* Burger Menu */
#checkbox {
    display: none;
}

.toggle {
    position: relative;
    width: 30px; /* réduit de 40px à 30px */
    cursor: pointer;
    margin: auto;
    display: none;
    height: calc(3px * 3 + 8px * 2); /* réduit de 4px/11px à 3px/8px */
}

.bar {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px; /* réduit de 4px */
    border-radius: 1.5px;
    background: var(--primary-rose);
    color: inherit;
    opacity: 1;
    transition: none 0.35s cubic-bezier(.5, -0.35, .35, 1.5) 0s;
}

.bar--top {
    bottom: calc(50% + 8px + 3px / 2); /* ajusté */
    transition-property: bottom, transform;
    transition-delay: calc(0s + 0.35s) * 0.6;
}

.bar--middle {
    top: calc(50% - 3px / 2); /* ajusté */
    transition-property: opacity, transform;
    transition-delay: calc(0s + 0.35s * 0.3);
}

.bar--bottom {
    top: calc(50% + 8px + 3px / 2); /* ajusté */
    transition-property: top, transform;
    transition-delay: 0s;
}

#checkbox:checked + .toggle .bar--top {
    transform: rotate(-135deg);
    transition-delay: 0s;
    bottom: calc(50% - 3px / 2);
}

#checkbox:checked + .toggle .bar--middle {
    opacity: 0;
    transform: rotate(-135deg);
    transition-delay: calc(0s + 0.35s * 0.3);
}

#checkbox:checked + .toggle .bar--bottom {
    top: calc(50% - 3px / 2);
    transform: rotate(-225deg);
    transition-delay: calc(0s + 0.35s * 0.6);
}


/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.2) contrast(1.3);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(29, 29, 27, 0.986) 0%, 
        rgb(29, 29, 27) 50%, 
        rgb(0, 0, 0) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero-lightning {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    animation: lightningPulse 2s ease-in-out infinite;
}

.lightning-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(233, 181, 197, 0.8));
}

.lightning-bolt {
    animation: lightningFlash 3s ease-in-out infinite;
}

@keyframes lightningPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

@keyframes lightningFlash {
    0%, 90%, 100% { opacity: 1; }
    95% { opacity: 0.7; }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.striking {
    display: block;
    color: var(--primary-white);
    animation: slideInLeft 1s ease-out;
}

.storm {
    display: block;
    background: var(--gradient-rose);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInRight 1s ease-out 0.3s both;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-games {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.9s both;
    flex-wrap: wrap;
}

.game-tag {
    background: rgba(233, 181, 197, 0.12);
    border: 1px solid var(--primary-rose);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(12px);
    transition: var(--transition);
    color: var(--primary-rose);
    box-shadow: 0 0 4px rgba(233, 181, 197, 0.2) inset;
    letter-spacing: 0.5px;
    text-shadow: 0 0 1px rgba(233, 181, 197, 0.3);
    display: inline-block;
    cursor: pointer;
}

.game-tag:hover {
    background: rgba(233, 181, 197, 0.2);
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 4px 12px rgba(233, 181, 197, 0.4),
        inset 0 0 6px rgba(233, 181, 197, 0.3);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out 1.2s both;
    flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
    padding: 1rem 2rem;
    border: 2px solid #fafafa;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.cta-primary {
    background-color: var(--primary-rose);
    color: var(--primary-black);
    box-shadow: 3px 3px var(--primary-black);
    border-color: var(--primary-black);
}

.cta-primary:active {
    box-shadow: none;
    transform: translate(3px, 3px);
}

.cta-secondary {
    background-color: var(--primary-black);
    color: var(--primary-rose);
    box-shadow: 3px 3px var(--primary-rose);
    border-color: var(--primary-rose);
}

.cta-secondary:active {
    box-shadow: none;
    transform: translate(3px, 3px);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
}

/* Texte "Scroll" */
.scroll-indicator span {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--primary-rose);
}

/* Bouton style "souris" */
.mouse {
    width: 25px;
    height: 40px;
    border: 1px solid var(--primary-rose);
    background-color: transparent;
    border-radius: 13px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
}

/* Trait animé à l'intérieur de la souris */
.scroll {
    width: 3px;
    height: 10px;
    background-color: var(--primary-rose);
    border-radius: 2px;
    position: absolute;
    bottom: 9px;
    animation: move_918 1.5s linear infinite;
}

/* Animation du trait */
@keyframes move_918 {
    0% { bottom: 9px; }
    50% { bottom: 5px; }
    100% { bottom: 9px; }
}

/* Sections */
section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--gradient-rose);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: #000000;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-card {
    background: #e9b5c549;
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(233, 181, 197, 0.08);
    margin-bottom: 2rem;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0),
                0 0 10px rgb(233, 181, 197);
}

.story-card:hover {
    transform: translateY(-4px);
    border-color: rgba(233, 181, 197, 0.3);
    box-shadow: 0 0 15px rgba(233, 181, 197, 0.15),
                inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.story-card h3 {
    color: var(--primary-rose);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-image {
    position: relative;
}

.about-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    filter: brightness(0.8) contrast(1.1);
    transition: var(--transition);
}

.about-image:hover .about-img {
    filter: brightness(1) contrast(1.2);
    transform: scale(1.02);
}

/* Games Section */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: linear-gradient(45deg, #222222 0%, #e9b5c54b 50%, #222222 100%);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid #e9b5c5;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(233, 181, 197, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: var(--transition);
}

.game-card:hover::before {
    transform: translateX(100%);
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-rose);
    box-shadow: var(--shadow-glow);
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: grayscale(100%);
    transition: var(--transition);
}

.game-card:hover .game-icon {
    filter: grayscale(0%);
    transform: scale(1.2);
}

.game-card h3 {
    color: var(--primary-rose);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Objectives Section */
.objectives {
    background: 
    linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.9)), /* filtre noir */
    url('ton2.png'); /* image de fond */
background-repeat: no-repeat;
background-position: center;
background-size: cover; /* image plus petite (contain = sans déformation) */

}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.objective-card {
    background: rgba(233, 181, 197, 0.05);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(233, 181, 197, 0.1);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.objective-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-rose);
    box-shadow: var(--shadow-glow);
    background: rgba(233, 181, 197, 0.1);
}

.objective-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.objective-card h3 {
    color: var(--primary-rose);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Social Section */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.social-card {
    background: var(--gradient-storm);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    text-decoration: none;
    color: var(--primary-white);
    border: 1px solid rgba(233, 181, 197, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(233, 181, 197, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: var(--transition);
}

.social-card:hover::before {
    transform: translateX(100%);
}

.social-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-rose);
    box-shadow: var(--shadow-glow);
    color: var(--primary-white);
}

.social-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.social-card h3 {
    color: var(--primary-rose);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.social-card p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--gradient-dark);
    border-top: 1px solid rgb(233, 181, 197);
}

.footer-content {
    padding: 3rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: var(--primary-rose);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.footer-brand p {
    opacity: 0.7;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 36px;
    height: 40px;
    margin-bottom: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    color: var(--primary-rose);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-column a {
    display: block;
    color: var(--primary-white);
    text-decoration: none;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary-rose);
    opacity: 1;
    transform: translateX(5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgb(233, 181, 197);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-rose);
    border-radius: 50%;
    color: var(--primary-white);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-white);
    color: var(--primary-black);
    transform: translateY(-3px);
}

.footer-copyright {
    text-align: right;
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-copyright p {
    margin-bottom: 0.25rem;
}
/* Responsive Design */
@media (max-width: 1400px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-container {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(78vh - 80px);
        background: rgba(29, 29, 27, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem;
        transition: var(--transition);
        border-bottom: 2px solid #e9b5c5;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .toggle {
        display: block;
    }

    .hero-title {
        margin-top: -40px;
    }

    .hero-games {
    display: none;
  }

    .hero-content {
        padding: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 280px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-copyright {
        text-align: center;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .hero-games {
        flex-direction: column;
        align-items: center;
    }
    
    .game-tag {
        display: block;
        text-align: center;
    }
    
    .games-grid,
    .objectives-grid,
    .social-grid {
        grid-template-columns: 1fr;
    }
    .teams-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease-out;
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-black);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-rose);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f4d0dc;
}

/* Performance Optimizations */
* {
    will-change: auto;
}

.hero-lightning,
.lightning-bolt,
.game-card::before,
.social-card::before {
    will-change: transform;
}

img {
    will-change: auto;
}