@charset "UTF-8";

/* Variables Clash Royale */
:root {
    --primary-color: #50b1fe;
    --secondary-color: #ffbd21;
    --dark-bg: #1a1f3a;
    --darker-bg: #0d1021;
    --card-bg: #2c3454;
    --border-color: #5271ff;
    --text-primary: #ffffff;
    --text-secondary: #c7d0e8;
    --gold: #ffd700;
    --orange: #ff8c1a;
    --purple: #9c27b0;
    --royal-blue: #4a90e2;
    --shadow-primary: 0 0 30px rgba(80, 177, 254, 0.4);
    --shadow-secondary: 0 0 30px rgba(255, 189, 33, 0.4);
    --shadow-glow: 0 0 50px rgba(255, 215, 0, 0.6);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Rubik', 'Segoe UI', 'Arial', sans-serif;
    background: linear-gradient(135deg, #0d1021 0%, #1a1f3a 25%, #2c3454 50%, #1a1f3a 75%, #0d1021 100%);
    color: var(--text-primary);
    line-height: 1.6;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(80, 177, 254, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 189, 33, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(156, 39, 176, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Scrollbar - Masquée */
::-webkit-scrollbar {
    width: 0px;
    display: none;
}

body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE et Edge */
}

/* Navigation - Style arène Clash Royale */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: 
        linear-gradient(180deg, 
            rgba(52, 62, 94, 0.98) 0%, 
            rgba(36, 44, 68, 0.98) 50%,
            rgba(26, 31, 58, 0.98) 100%);
    backdrop-filter: blur(15px);
    border-bottom: 4px solid #3d2817;
    box-shadow: 
        0 0 0 2px rgba(255, 215, 0, 0.3),
        0 6px 30px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -2px 0 rgba(0, 0, 0, 0.5);
    z-index: 1000;
    position: relative;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 215, 0, 0.8) 20%,
        rgba(80, 177, 254, 0.6) 40%,
        rgba(255, 189, 33, 0.8) 60%,
        rgba(80, 177, 254, 0.6) 80%,
        transparent 100%);
}

.navbar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(90deg, 
            transparent, 
            transparent 50px, 
            rgba(0, 0, 0, 0.05) 50px, 
            rgba(0, 0, 0, 0.05) 51px);
    pointer-events: none;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8))
            drop-shadow(0 0 8px rgba(80, 177, 254, 0.6))
            drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
    transition: all 0.3s ease;
}

.nav-logo:hover {
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 1))
            drop-shadow(0 0 15px rgba(80, 177, 254, 0.8))
            drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
    transform: scale(1.05);
}

.clan-name {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #50b1fe 0%, #ffbd21 50%, #50b1fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(80, 177, 254, 0.6)) 
            drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(80, 177, 254, 0.1), rgba(255, 189, 33, 0.1));
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--gold));
    border-radius: 2px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(80, 177, 254, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6);
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
    overflow: hidden;
    background: 
        linear-gradient(135deg, rgba(13, 16, 33, 0.95), rgba(26, 31, 58, 0.9)),
        radial-gradient(ellipse at 50% 0%, rgba(80, 177, 254, 0.15), transparent 60%),
        radial-gradient(ellipse at 0% 100%, rgba(156, 39, 176, 0.1), transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(255, 189, 33, 0.1), transparent 50%),
        linear-gradient(180deg, #0d1021 0%, #1a1f3a 50%, #2c3454 100%);
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(80, 177, 254, 0.03) 2px, rgba(80, 177, 254, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 189, 33, 0.03) 2px, rgba(255, 189, 33, 0.03) 4px);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(10, 14, 39, 0.7) 100%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image: 
        radial-gradient(circle at 20% 50%, var(--primary-color) 2px, transparent 2px),
        radial-gradient(circle at 60% 70%, var(--secondary-color) 2px, transparent 2px),
        radial-gradient(circle at 80% 10%, var(--gold) 2px, transparent 2px),
        radial-gradient(circle at 40% 30%, var(--purple) 1.5px, transparent 1.5px),
        radial-gradient(circle at 90% 60%, var(--primary-color) 1.5px, transparent 1.5px),
        radial-gradient(circle at 10% 80%, var(--secondary-color) 1px, transparent 1px);
    background-size: 300px 300px, 250px 250px, 400px 400px, 350px 350px, 200px 200px, 450px 450px;
    animation: drift 25s linear infinite, sparkle 3s ease-in-out infinite;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.3; }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo {
    margin-bottom: 2rem;
}

.hero-logo img {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.8))
            drop-shadow(0 0 20px rgba(80, 177, 254, 0.6))
            drop-shadow(0 8px 16px rgba(0, 0, 0, 0.9));
    animation: float 3s ease-in-out infinite, logoGlow 2s ease-in-out infinite;
    position: relative;
}

.hero-logo::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3), transparent 70%);
    animation: pulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes logoGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.8))
                drop-shadow(0 0 20px rgba(80, 177, 254, 0.6))
                drop-shadow(0 8px 16px rgba(0, 0, 0, 0.9));
    }
    50% { 
        filter: drop-shadow(0 0 60px rgba(255, 215, 0, 1))
                drop-shadow(0 0 30px rgba(80, 177, 254, 0.8))
                drop-shadow(0 8px 16px rgba(0, 0, 0, 0.9));
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffbd21 25%, #50b1fe 50%, #ffbd21 75%, #ffd700 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shineTitle 3s linear infinite, glow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8))
            drop-shadow(0 4px 8px rgba(0, 0, 0, 0.9))
            drop-shadow(0 0 40px rgba(80, 177, 254, 0.5));
    letter-spacing: 3px;
    text-transform: uppercase;
}

@keyframes shineTitle {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3)); }
    50% { filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.6)); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
    align-items: center;
}

.hero-buttons .btn {
    margin: 0;
}

/* Buttons - Style Clash Royal 3D */
.btn {
    position: relative;
    border: none;
    border-radius: 8px;
    font-family: 'Rubik', sans-serif;
    font-size: 0.95rem;
    color: #fff;
    cursor: pointer;
    padding: 16px 45px;
    display: inline-block;
    margin: 10px 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(180deg, #ffde59 0%, #ffbd21 50%, #ff9f1a 100%);
    box-shadow: 
        0 7px 0 #ae6a06,
        0 8px 1px rgba(0, 0, 0, 0.3),
        0 8px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.btn::before {
    content: '';
    position: absolute;
    z-index: -1;
    transition: all 0.3s;
}

.btn:hover {
    box-shadow: 
        0 5px 0 #ae6a06,
        0 6px 1px rgba(0, 0, 0, 0.3),
        0 6px 8px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transform: translateY(2px);
    filter: brightness(1.1);
}

.btn:active {
    box-shadow: 
        0 1px 0 #ae6a06,
        0 2px 1px rgba(0, 0, 0, 0.3),
        inset 0 1px 3px rgba(0, 0, 0, 0.3);
    transform: translateY(6px);
    filter: brightness(0.95);
}

.btn .overlay {
    width: 95%;
    height: 87%;
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0px 1px 4px #fe8d0a;
    border-radius: 5px;
    top: 2px;
    left: 5px;
    pointer-events: none;
    z-index: 1;
}

.btn .overlay:nth-child(2) {
    height: 45%;
    width: 92.5%;
    left: 7px;
    border-radius: 5px;
    top: 6px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    pointer-events: none;
    z-index: 1;
}

.btn .overlay:nth-child(3) {
    width: 5px;
    height: 8px;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 200px;
    right: 8px;
    left: auto;
    transform: rotate(-45deg);
    pointer-events: none;
    z-index: 1;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    inset: 0;
    border-radius: 5px;
    opacity: 0;
    animation: none;
    pointer-events: none;
    z-index: 0;
}

.btn-primary {
    background: linear-gradient(180deg, #6ec1ff 0%, #50b1fe 50%, #3a9ae8 100%);
    box-shadow: 
        0 7px 0 #005cc1,
        0 8px 1px rgba(0, 0, 0, 0.3),
        0 8px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    box-shadow: 
        0 5px 0 #005cc1,
        0 6px 1px rgba(0, 0, 0, 0.3),
        0 6px 8px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(80, 177, 254, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transform: translateY(2px);
    filter: brightness(1.1);
}

.btn-primary:active {
    box-shadow: 
        0 1px 0 #005cc1,
        0 2px 1px rgba(0, 0, 0, 0.3),
        inset 0 1px 3px rgba(0, 0, 0, 0.3);
    transform: translateY(6px);
    filter: brightness(0.95);
}

.btn-primary .overlay {
    box-shadow: 0px 1px 4px #2082ff;
}

.btn-secondary {
    background: linear-gradient(180deg, #ffde59 0%, #ffbd21 50%, #ff9f1a 100%);
    box-shadow: 
        0 7px 0 #ae6a06,
        0 8px 1px rgba(0, 0, 0, 0.3),
        0 8px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    color: #fff;
    border: none;
}

.btn-secondary:hover {
    box-shadow: 
        0 5px 0 #ae6a06,
        0 6px 1px rgba(0, 0, 0, 0.3),
        0 6px 8px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 189, 33, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transform: translateY(2px);
    filter: brightness(1.1);
}

.btn-secondary:active {
    box-shadow: 
        0 1px 0 #ae6a06,
        0 2px 1px rgba(0, 0, 0, 0.3),
        inset 0 1px 3px rgba(0, 0, 0, 0.3);
    transform: translateY(6px);
    filter: brightness(0.95);
}

.btn-secondary .overlay {
    box-shadow: 0px 1px 4px #fe8d0a;
}

.btn-discord {
    background: linear-gradient(180deg, #7289da 0%, #5865F2 50%, #4752c4 100%);
    box-shadow: 
        0 7px 0 #2c2f70,
        0 8px 1px rgba(0, 0, 0, 0.3),
        0 8px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    color: #fff;
    border: none;
}

.btn-discord:hover {
    box-shadow: 
        0 5px 0 #2c2f70,
        0 6px 1px rgba(0, 0, 0, 0.3),
        0 6px 8px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(88, 101, 242, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transform: translateY(2px);
    filter: brightness(1.1);
}

.btn-discord:active {
    box-shadow: 
        0 1px 0 #2c2f70,
        0 2px 1px rgba(0, 0, 0, 0.3),
        inset 0 1px 3px rgba(0, 0, 0, 0.3);
    transform: translateY(6px);
    filter: brightness(0.95);
}

.btn-discord .overlay {
    box-shadow: 0px 1px 4px #7289DA;
}

.btn-clan {
    background: linear-gradient(180deg, #ffde59 0%, #ffbd21 50%, #ff9f1a 100%);
    box-shadow: 
        0 7px 0 #ae6a06,
        0 8px 1px rgba(0, 0, 0, 0.3),
        0 8px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    color: #fff;
    border: none;
}

.btn-clan:hover {
    box-shadow: 
        0 5px 0 #ae6a06,
        0 6px 1px rgba(0, 0, 0, 0.3),
        0 6px 8px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 189, 33, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transform: translateY(2px);
    filter: brightness(1.1);
}

.btn-clan:active {
    box-shadow: 
        0 1px 0 #ae6a06,
        0 2px 1px rgba(0, 0, 0, 0.3),
        inset 0 1px 3px rgba(0, 0, 0, 0.3);
    transform: translateY(6px);
    filter: brightness(0.95);
}

.btn-clan .overlay {
    box-shadow: 0px 1px 4px #fe8d0a;
}

.btn-shop {
    background: linear-gradient(180deg, #b366ff 0%, #9c27b0 50%, #7b1fa2 100%);
    box-shadow: 
        0 7px 0 #4a148c,
        0 8px 1px rgba(0, 0, 0, 0.3),
        0 8px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    color: #fff;
    border: none;
}

.btn-shop:hover {
    box-shadow: 
        0 5px 0 #4a148c,
        0 6px 1px rgba(0, 0, 0, 0.3),
        0 6px 8px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(156, 39, 176, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transform: translateY(2px);
    filter: brightness(1.1);
}

.btn-shop:active {
    box-shadow: 
        0 1px 0 #4a148c,
        0 2px 1px rgba(0, 0, 0, 0.3),
        inset 0 1px 3px rgba(0, 0, 0, 0.3);
    transform: translateY(6px);
    filter: brightness(0.95);
}

.btn-shop .overlay {
    box-shadow: 0px 1px 4px #b366ff;
}

.btn-lg {
    padding: 14px 35px;
    font-size: 0.9rem;
}

.btn-xl {
    padding: 15px 40px;
    font-size: 1rem;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700, #ffbd21, #50b1fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6))
            drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
    letter-spacing: 2px;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    box-shadow: 0 0 10px var(--gold);
}

.title-icon {
    margin: 0 0.5rem;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    font-size: 1.2em;
}

.title-icon:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Rules Section */
.rules {
    padding: 6rem 2rem;
    background: 
        linear-gradient(180deg, rgba(13, 16, 33, 0.95), rgba(26, 31, 58, 0.95), rgba(44, 52, 84, 0.95)),
        radial-gradient(circle at 10% 20%, rgba(80, 177, 254, 0.1), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 189, 33, 0.1), transparent 40%);
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-color), var(--gold), var(--secondary-color)) 1;
    position: relative;
    overflow: hidden;
}

.rules::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        radial-gradient(circle, rgba(255, 215, 0, 0.03) 1px, transparent 1px),
        radial-gradient(circle, rgba(80, 177, 254, 0.03) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px;
    background-position: 0 0, 25px 25px;
    animation: particleFloat 60s linear infinite;
    pointer-events: none;
}

@keyframes particleFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(360deg); }
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.rule-card {
    background: 
        linear-gradient(145deg, rgba(52, 62, 94, 0.95), rgba(36, 44, 68, 0.92)),
        linear-gradient(180deg, rgba(80, 177, 254, 0.03) 0%, transparent 50%);
    border: none;
    border-radius: 30px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 0 20px rgba(82, 113, 255, 0.15);
    backdrop-filter: blur(5px);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.rule-card:nth-child(1) {
    animation-delay: 0.2s;
}

.rule-card:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rule-card::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.4) 0%, 
        rgba(80, 177, 254, 0.3) 25%,
        rgba(255, 189, 33, 0.35) 50%,
        rgba(80, 177, 254, 0.3) 75%,
        rgba(255, 215, 0, 0.4) 100%);
    border-radius: 30px;
    z-index: -1;
    opacity: 1;
    transition: all 0.5s ease;
}

.rule-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 100%);
    border-radius: 30px 30px 0 0;
    pointer-events: none;
    z-index: 1;
}

.rule-card:hover {
    transform: translateY(-15px) scale(1.03) rotateX(2deg);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(255, 215, 0, 0.5),
        0 0 25px rgba(80, 177, 254, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);
    animation: cardPulse 2s ease-in-out infinite;
}

.rule-card:hover::before {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.6) 0%, 
        rgba(80, 177, 254, 0.5) 25%,
        rgba(255, 189, 33, 0.55) 50%,
        rgba(80, 177, 254, 0.5) 75%,
        rgba(255, 215, 0, 0.6) 100%);
    animation: borderGlow 2s ease-in-out infinite;
}

@keyframes cardPulse {
    0%, 100% {
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.8),
            0 0 40px rgba(255, 215, 0, 0.5),
            0 0 25px rgba(80, 177, 254, 0.6);
    }
    50% {
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.8),
            0 0 50px rgba(255, 215, 0, 0.7),
            0 0 35px rgba(80, 177, 254, 0.8);
    }
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

@keyframes borderPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: scale(1.05);
        opacity: 1;
    }
}

.rule-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.rule-header h3 {
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff, #c7d0e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.rule-number {
    background: linear-gradient(135deg, #ffd700, #ffbd21, #ff8c1a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem;
    font-weight: 900;
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.6))
            drop-shadow(0 0 20px rgba(255, 189, 33, 0.8));
}

.rule-number::before {
    content: attr(data-number);
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ffd700, #ff8c1a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(10px);
    opacity: 0.6;
    z-index: -1;
}

.rule-header h3 {
    font-size: 1.5rem;
}

.rule-content {
    position: relative;
    z-index: 1;
}

.rule-item {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.rule-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    line-height: 1;
}

.rule-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.rule-item strong {
    color: var(--primary-color);
}

/* Bonus Rules */
.bonus-rules {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.15), rgba(255, 189, 33, 0.1), rgba(255, 140, 26, 0.15));
    border: 3px solid var(--gold);
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2),
                0 0 40px rgba(255, 215, 0, 0.2);
}

.bonus-rules::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.2), transparent 70%);
    pointer-events: none;
}

.bonus-rules h3 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8))
            drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.bonus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.bonus-item {
    padding: 1.5rem;
    background: 
        linear-gradient(145deg, rgba(62, 52, 42, 0.8), rgba(42, 35, 28, 0.8)),
        linear-gradient(90deg, rgba(255, 215, 0, 0.05) 0%, transparent 50%, rgba(255, 215, 0, 0.05) 100%);
    border-radius: 12px;
    border: 2px solid rgba(139, 90, 43, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 215, 0, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.bonus-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 3px,
            rgba(139, 90, 43, 0.1) 3px,
            rgba(139, 90, 43, 0.1) 4px
        );
    pointer-events: none;
}

.bonus-item:hover {
    background: 
        linear-gradient(145deg, rgba(72, 62, 52, 0.9), rgba(52, 45, 38, 0.9)),
        linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 50%, rgba(255, 215, 0, 0.1) 100%);
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 215, 0, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}

.bonus-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    line-height: 1;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8))
            drop-shadow(0 0 8px rgba(80, 177, 254, 0.6))
            drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
    animation: gemGlow 3s ease-in-out infinite;
    position: relative;
}

@keyframes gemGlow {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8))
                drop-shadow(0 0 8px rgba(80, 177, 254, 0.6))
                drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 1))
                drop-shadow(0 0 15px rgba(80, 177, 254, 0.8))
                drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
    }
}

.bonus-item p {
    font-weight: 600;
    color: var(--text-secondary);
}

/* Ambiance Section */
.ambiance {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, rgba(26, 35, 64, 0.9), rgba(10, 14, 39, 0.9));
}

.ambiance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.ambiance-card {
    background: linear-gradient(135deg, rgba(26, 35, 64, 0.8), rgba(10, 14, 39, 0.6));
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.1);
}

.ambiance-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 107, 0, 0.3), var(--shadow-secondary);
    border-color: var(--primary-color);
}

.ambiance-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    line-height: 1;
}

.ambiance-card:nth-child(2) .ambiance-icon {
    animation-delay: 0.2s;
}

.ambiance-card:nth-child(3) .ambiance-icon {
    animation-delay: 0.4s;
}

.ambiance-card:nth-child(4) .ambiance-icon {
    animation-delay: 0.6s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.ambiance-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.ambiance-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* CTA Section - Style coffre Clash Royale */
.cta {
    padding: 6rem 2rem;
    background: 
        linear-gradient(135deg, 
            rgba(44, 52, 84, 0.95), 
            rgba(36, 44, 68, 0.95)),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1), transparent 60%);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-image: linear-gradient(90deg, 
        rgba(255, 189, 33, 0.8),
        rgba(80, 177, 254, 0.6),
        rgba(255, 215, 0, 0.8)) 1;
    text-align: center;
    position: relative;
    box-shadow: 
        inset 0 0 100px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(255, 215, 0, 0.2);
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(80, 177, 254, 0.1) 0%, transparent 30%);
    pointer-events: none;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

/* Effet de panneau badge pour les sections importantes */
.section-badge {
    background: 
        linear-gradient(145deg, rgba(62, 52, 42, 0.9), rgba(42, 35, 28, 0.9));
    border: 3px solid rgba(139, 90, 43, 0.8);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 215, 0, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.5);
    position: relative;
}

.section-badge::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.5),
        transparent 30%,
        transparent 70%,
        rgba(255, 215, 0, 0.5));
    border-radius: 15px;
    z-index: -1;
    opacity: 0.5;
}

.cta-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(26, 35, 64, 0.8), rgba(10, 14, 39, 0.6));
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 1rem;
}

.step h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
    align-items: center;
}

.cta-buttons .btn {
    margin: 0;
}

/* Footer - Style bannière Clash Royale */
.footer {
    background: 
        linear-gradient(180deg, 
            rgba(36, 44, 68, 0.98) 0%,
            rgba(26, 31, 58, 0.98) 50%,
            rgba(13, 16, 33, 0.98) 100%);
    border-top: 4px solid #3d2817;
    box-shadow: 
        0 0 0 2px rgba(255, 215, 0, 0.3),
        0 -6px 30px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem 1rem;
    color: var(--text-secondary);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 215, 0, 0.8) 20%,
        rgba(80, 177, 254, 0.6) 50%,
        rgba(255, 215, 0, 0.8) 80%,
        transparent 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.footer-section p {
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    font-size: 0.85rem;
}

/* Responsive */
/* Tablets et petits écrans */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .rules-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .bonus-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        padding: 0.8rem 1rem;
    }

    .nav-links {
        gap: 0.8rem;
        font-size: 0.75rem;
    }

    .nav-logo {
        height: 40px;
    }

    .clan-name {
        font-size: 1.1rem;
    }

    /* Hero Section */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 2rem 1rem;
        margin-top: 70px;
    }

    .hero-logo img {
        max-width: 180px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    /* Buttons */
    .btn {
        width: 100%;
        padding: 18px 50px;
        font-size: 0.9rem;
        margin: 0;
    }

    .btn-lg {
        padding: 18px 50px;
        font-size: 0.95rem;
    }

    .btn-xl {
        padding: 18px 50px;
        font-size: 1rem;
    }

    /* Sections */
    .rules,
    .cta {
        padding: 4rem 1rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    /* Rules Grid */
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .rule-card {
        padding: 1.5rem;
    }

    .rule-header h3 {
        font-size: 1.2rem;
    }

    .rule-number {
        font-size: 2rem;
    }

    .rule-item {
        margin-bottom: 0.8rem;
    }

    /* Bonus Rules */
    .bonus-rules {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .bonus-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .bonus-item {
        padding: 1rem;
    }

    .bonus-icon {
        font-size: 1.5rem;
    }

    /* CTA Section */
    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .cta-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .step {
        padding: 1.5rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    /* Footer */
    .footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-bottom {
        font-size: 0.75rem;
    }
}

/* Très petits écrans (< 480px) */
@media (max-width: 480px) {
    /* Navigation */
    .nav-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.8rem 0.5rem;
    }

    .logo-container {
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
    }

    .nav-logo {
        height: 35px;
    }

    .clan-name {
        font-size: 1rem;
    }

    .nav-links {
        gap: 0.5rem;
        font-size: 0.7rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Hero */
    .hero-logo img {
        max-width: 150px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    /* Sections */
    .section-title {
        font-size: 1.4rem;
    }

    /* Buttons */
    .btn {
        padding: 15px 40px;
        font-size: 0.85rem;
    }

    .btn-lg,
    .btn-xl {
        padding: 15px 40px;
        font-size: 0.9rem;
    }

    /* Rules */
    .rule-card {
        padding: 1.2rem;
    }

    .rule-icon {
        font-size: 1.2rem;
    }

    .rule-item p {
        font-size: 0.85rem;
    }

    /* Bonus Grid */
    .bonus-grid {
        grid-template-columns: 1fr;
    }

    .bonus-item {
        padding: 0.8rem;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
    }

    .hero-logo img {
        max-width: 120px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}

/* Animations supplémentaires */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* Focus states pour l'accessibilité */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
