:root {
    --primary-color: #161b26;
    --secondary-color: #5c96f2;
    --accent-color: #ff5e5e;
    --highlight: #ffc74c;
    --text-color: #f5f5f5;
    --dark-bg: #0a0e17;
    --card-bg: rgba(22, 27, 38, 0.9);
    --gradient-primary: linear-gradient(135deg, #161b26, #5c96f2);
    --gradient-secondary: linear-gradient(135deg, #ff5e5e, #ffc74c);
    --gradient-title: linear-gradient(135deg, #ff5e5e, #ffc74c);
    --shadow-small: 0 5px 15px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-large: 0 15px 35px rgba(0, 0, 0, 0.5);
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

/* Réinitialisation */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader img {
    width: 150px;
    height: auto;
    animation: pulse 2s infinite ease-in-out;
}

.loading-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 3px;
}

.loading-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    animation: loading 1.5s infinite ease-in-out;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Animation de fond */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-logo {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.07;
    filter: blur(6px) hue-rotate(15deg);
    animation: float 25s infinite ease-in-out;
    transform-origin: center;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(2%, 1%) scale(1.02) rotate(1deg);
    }
    50% {
        transform: translate(0, 2%) scale(1.05) rotate(0deg);
    }
    75% {
        transform: translate(-2%, 1%) scale(1.02) rotate(-1deg);
    }
}

/* Particules en arrière-plan */
.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--secondary-color);
    opacity: 0.3;
    pointer-events: none;
    animation: float-particle var(--animation-slow) infinite alternate;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0);
    }
    100% {
        transform: translateY(-20px) translateX(20px);
    }
}

/* Optimisations des performances */
/* Styles existants conservés, ajout/modification des styles suivants */

/* Optimisation des animations */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none; /* Important pour éviter les événements de souris sur les particules */
    will-change: transform; /* Optimiser le rendu GPU */
}

/* Créer des animations CSS au lieu d'animations JS */
.particle.animated {
    animation-duration: 8s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    animation-fill-mode: both;
}

.particle.float-type-1 {
    animation-name: floatType1;
}

.particle.float-type-2 {
    animation-name: floatType2;
}

@keyframes floatType1 {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, -20px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes floatType2 {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-20px, 20px);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* Optimiser les transitions des boutons */
.cta-button, .rule-tab, .accept-button, .contact-button {
    will-change: transform; /* Optimiser les transitions */
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; /* Transitions plus rapides */
}

.cta-button::before, .rule-tab::before {
    transition: left 0.2s ease; /* Transition plus rapide */
}

/* Optimiser l'animation du logo */
.background-logo {
    will-change: transform;
    animation: simplifiedFloat 30s infinite ease-in-out;
}

@keyframes simplifiedFloat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Optimisation du conteneur de règlements */
.rule-content {
    transition: opacity 0.2s ease; /* Transition plus simple et plus rapide */
    backface-visibility: hidden; /* Optimisation GPU */
}

/* Optimisation du header */
header {
    will-change: transform, opacity;
}

/* Optimisation des effets de survol */
.nav-link::after {
    transition: width 0.2s ease; /* Plus rapide */
}

/* Améliorer la performance des cartes */
.contact-card {
    backface-visibility: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* En-tête */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.logo img {
    height: 60px;
    filter: drop-shadow(0 3px 8px rgba(92, 150, 242, 0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 5px 15px rgba(92, 150, 242, 0.8));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    position: relative;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.nav-link:hover::after {
    width: 100%;
}

/* Menu déroulant */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--card-bg);
    min-width: 220px;
    border-radius: var(--border-radius);
    padding: 15px 0;
    box-shadow: var(--shadow-large);
    opacity: 0;
    visibility: hidden;
    transition: all var(--animation-medium);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--blur-effect);
    overflow: hidden;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-secondary);
}

.dropdown-content a {
    display: block;
    padding: 12px 25px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--animation-fast);
}

.dropdown-content a:hover {
    background: rgba(52, 152, 219, 0.2);
    padding-left: 30px;
    color: var(--secondary-color);
}

/* Section Principale */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Section Héro */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/dreams-background.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
    animation: slow-zoom 30s infinite alternate ease-in-out;
}

@keyframes slow-zoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(22, 27, 38, 0.8), rgba(10, 14, 23, 0.9));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
}

.hero-logo {
    margin-bottom: 30px;
}

.dreams-hero-logo {
    width: 100%;
    max-width: 700px;
    filter: drop-shadow(0 0 30px rgba(92, 150, 242, 0.5));
    animation: pulsate 4s infinite ease-in-out;
}

@keyframes pulsate {
    0%, 100% {
        filter: drop-shadow(0 0 30px rgba(92, 150, 242, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(255, 94, 94, 0.4));
    }
}

.hero h1 {
    position: relative;
    font-size: 5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
    line-height: 1.1;
    background: var(--gradient-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 30px rgba(255, 94, 94, 0.5);
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 3px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-button {
    position: relative;
    overflow: hidden;
    padding: 16px 40px;
    background: var(--gradient-primary);
    color: var(--text-color);
    text-decoration: none;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.cta-button::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: all 0.5s ease;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(92, 150, 242, 0.3);
}

.cta-button.secondary:hover {
    background: rgba(92, 150, 242, 0.1);
    box-shadow: 0 10px 25px rgba(92, 150, 242, 0.4);
}

.cta-button i {
    margin-right: 10px;
}

/* Section des règlements */
.rules-section {
    background: linear-gradient(135deg, #121212, #1e1e1e);
    position: relative;
    margin: 60px 0;
    z-index: 1;
}

.rules-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 15px;
    flex-wrap: wrap;
}

.rule-tab {
    padding: 12px 30px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-small);
}

.rule-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    z-index: -1;
}

.rule-tab:hover::before,
.rule-tab.active::before {
    left: 0;
}

.rule-tab:hover,
.rule-tab.active {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.rule-content {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-large), 0 0 20px rgba(92, 150, 242, 0.1);
    border: 1px solid rgba(92, 150, 242, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
}

.rule-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rule-list {
    list-style: none;
    margin: 2rem 0;
}

.rule-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.rule-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.accept-button {
    display: block;
    margin: 2rem auto 0;
    padding: 15px 40px;
    background: var(--gradient-primary);
    color: var(--text-color);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-medium);
}

.accept-button:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

/* Section Contact */
.contact-section {
    padding: 80px 0;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large), 0 0 30px rgba(92, 150, 242, 0.2);
    border: 1px solid rgba(92, 150, 242, 0.3);
}

.contact-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.contact-card p {
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-primary);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-small);
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Footer */
footer {
    position: relative;
    background: rgba(0, 0, 0, 0.6);
    padding: 30px 0;
    text-align: center;
}

.footer-logo {
    width: 180px;
    margin-bottom: 20px;
    filter: grayscale(0.3) brightness(0.9);
    transition: all 0.3s ease;
}

.footer-logo:hover {
    filter: grayscale(0) brightness(1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(92, 150, 242, 0.1);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
    background: var(--gradient-primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Médias responsives */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .rule-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .rule-tab {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .rule-content h3 {
        font-size: 2rem;
    }
}

/* Suppression de la vérification d'âge */
.age-verification {
    display: none !important;
}

/* Styles personnalisés pour les logos et bannières Dreams RP */

/* Logo du header */
.dreams-logo {
    height: 60px;
    filter: drop-shadow(0 0 15px rgba(92, 150, 242, 0.7));
    transition: all 0.3s ease;
}

.dreams-logo:hover {
    filter: drop-shadow(0 0 20px rgba(92, 150, 242, 0.9));
    transform: scale(1.05);
}

/* Style pour les titres de section */
.section-title {
    position: relative;
    font-size: 3rem;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--gradient-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 40px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Ajout pour les particules personnalisées Dreams RP */
.dreams-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    animation: dreams-float 15s infinite linear;
}

@keyframes dreams-float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100vw) rotate(360deg);
        opacity: 0;
    }
}

/* Effet de glitch pour le texte Dreams RP */
.glitch-effect {
    position: relative;
    animation: glitch 0.2s infinite;
}

.glitch-effect::before,
.glitch-effect::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-effect::before {
    left: 2px;
    text-shadow: -1px 0 #ff5e5e;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-effect::after {
    left: -2px;
    text-shadow: -1px 0 #5c96f2;
    clip: rect(44px, 450px, 46px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

@keyframes glitch-anim {
    0% {
        clip: rect(10px, 9999px, 20px, 0);
    }
    10% {
        clip: rect(66px, 9999px, 89px, 0);
    }
    20% {
        clip: rect(36px, 9999px, 26px, 0);
    }
    30% {
        clip: rect(16px, 9999px, 7px, 0);
    }
    40% {
        clip: rect(89px, 9999px, 98px, 0);
    }
    50% {
        clip: rect(22px, 9999px, 35px, 0);
    }
    60% {
        clip: rect(33px, 9999px, 10px, 0);
    }
    70% {
        clip: rect(2px, 9999px, 78px, 0);
    }
    80% {
        clip: rect(93px, 9999px, 55px, 0);
    }
    90% {
        clip: rect(48px, 9999px, 45px, 0);
    }
    100% {
        clip: rect(83px, 9999px, 14px, 0);
    }
} 