@charset "UTF-8";

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Theme Variables */
:root {
    /* Light Theme (default) */
    --bg-primary: #ffffff;
    --bg-secondary: #F8F9FA;
    --bg-accent: #0A2342;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-accent: #ff4800; /* light-red */
    --text-light: #ffffff;
    --border-color: #e5e7eb;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    
    /* Couleurs principales RandomHub */
    --hub-blue: #0A2342;        /* Bleu principal */
    --hub-blue-rgb: 10, 35, 66;
    --hub-light-blue: #1D3557;  /* Bleu secondaire */
    --hub-light-blue-rgb: 29, 53, 87;
    --hub-orange: #ff4800;      /* Orange accent (light-red) */
    --hub-orange-rgb: 255, 72, 0;
    --hub-dark-red: #e03f00;    /* Rouge foncé */
    --hub-dark-red-rgb: 224, 63, 0;
    --hub-gray: #F8F9FA;        /* Gris clair */
    
    /* Couleurs principales (mapping vers les nouvelles couleurs) */
    --primary-color: var(--hub-blue);
    --primary-dark: var(--hub-light-blue);
    --primary-light: var(--hub-light-blue);
    --secondary-color: var(--hub-orange);
    --accent-color: var(--hub-orange);
    
    /* Couleurs neutres (mise à jour) */
    --background: var(--bg-primary);
    --background-light: var(--hub-gray);
    --background-dark: #f3f4f6;
    --border-light: var(--hub-gray);
    
    /* Couleurs d'état */
    --success-color: #10b981;
    --success-color-rgb: 16, 185, 129;
    --warning-color: var(--hub-orange);
    --warning-color-rgb: var(--hub-orange-rgb);
    --error-color: var(--hub-dark-red);
    --error-color-rgb: var(--hub-dark-red-rgb);
    --info-color: var(--hub-light-blue);
    --info-color-rgb: var(--hub-light-blue-rgb);
    
    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Typographie */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Espacements */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Bordures */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 0.75rem;
    --border-radius-2xl: 1rem;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #0f172a; /* slate-900 */
    --bg-secondary: #1e293b; /* slate-800 */
    --bg-accent: #334155; /* slate-700 */
    --text-primary: #f8fafc; /* slate-50 */
    --text-secondary: #cbd5e1; /* slate-300 */
    --text-accent: #ff4800; /* orange reste identique */
    --text-light: #ffffff;
    --border-color: #475569; /* slate-600 */
    --card-bg: #1e293b; /* slate-800 */
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    
    /* Mise à jour des variables de base pour le thème sombre */
    --background: var(--bg-primary);
    --background-light: var(--bg-secondary);
    --background-dark: var(--bg-accent);
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Transitions globales pour le changement de thème */
*, *::before, *::after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Amélioration des transitions pour les éléments interactifs */
.btn, .modal-content, .form-input, .theme-toggle {
    transition: all 0.3s ease;
}

/* Animation pour le changement de thème */
@keyframes themeTransition {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

[data-theme] {
    animation: themeTransition 0.3s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Navigation */
.nav-link {
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #ff4800;
}

/* Theme Toggle Button */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    min-width: 60px;
    min-height: 30px;
    border-radius: 15px;
    background-color: var(--bg-secondary);
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    border: 2px solid var(--border-color);
}

.theme-toggle::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--hub-orange);
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-toggle::after {
    transform: translateX(28px);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    width: 16px;
    height: 16px;
    z-index: 1;
    color: var(--text-primary);
    transition: opacity 0.3s ease;
}

[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 0.5;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 0.5;
}

[data-theme="light"] .theme-toggle .sun-icon {
    opacity: 1;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 1;
}

/* Theme-specific overrides */
[data-theme="dark"] .bg-white {
    background-color: var(--card-bg) !important;
}

[data-theme="dark"] .bg-hub-gray {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .bg-gray-50 {
    background-color: var(--bg-secondary) !important;
}

/* Textes */
[data-theme="dark"] .text-gray-500,
[data-theme="dark"] .text-gray-600,
[data-theme="dark"] .text-gray-700 {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .text-gray-900 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-hub-blue {
    color: var(--text-primary) !important;
}

/* Bordures et ombres */
[data-theme="dark"] .border-gray-200 {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .shadow-lg,
[data-theme="dark"] .shadow-md,
[data-theme="dark"] .shadow-sm,
[data-theme="dark"] .shadow-xl {
    box-shadow: var(--card-shadow) !important;
}

/* Navigation en mode sombre */
[data-theme="dark"] .bg-hub-blue {
    background-color: var(--bg-primary) !important;
    border-bottom: 1px solid var(--border-color);
}

/* Footer en mode sombre */
[data-theme="dark"] footer {
    background-color: var(--bg-accent) !important;
}

/* Form inputs */
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea,
[data-theme="dark"] .form-select {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-textarea:focus,
[data-theme="dark"] .form-select:focus {
    border-color: var(--hub-orange) !important;
    box-shadow: 0 0 0 3px rgba(255, 72, 0, 0.1) !important;
}

[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .form-textarea::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.7;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    gap: var(--spacing-sm);
    position: relative;
    overflow: hidden;
}

.btn::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.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-dark);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-lg);
}

/* Effet de pulsation pour les boutons d'action */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 72, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 72, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 72, 0, 0); }
}

.btn-primary {
    animation: pulse 2s infinite;
}

.btn-hero-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    font-weight: 600;
}

.btn-hero-secondary:hover {
    background-color: white;
    color: var(--hub-blue);
    border-color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--hub-blue) 0%, var(--hub-light-blue) 100%);
    color: white;
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/svg/random-pattern.svg');
    opacity: 0.3;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 150px;
    background: url('../images/svg/wave-bg.svg') no-repeat bottom center;
    background-size: cover;
    z-index: 1;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.badge-icon {
    font-size: 1.1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 1.2s ease-out;
}

.text-gradient {
    background: linear-gradient(45deg, var(--hub-orange), #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.4s ease-out;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 1.6s ease-out;
}

.btn-hero-primary {
    background: var(--hub-orange);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 72, 0, 0.3);
}

.btn-hero-primary:hover {
    background: var(--hub-dark-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 72, 0, 0.4);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.2rem;
}

.hero-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 1.8s ease-out;
    padding: 0.5rem;
}

.hero-section:nth-child(1) {
    animation: slideInLeft 1.2s ease-out;
}

/* Style spécifique pour la section roulette dans le hero */
.hero-section.roulette-section {
    position: relative;
    z-index: 10;
}

.hero-section:nth-child(2) {
    animation: fadeInUp 1.4s ease-out;
}

.hero-section:nth-child(3) {
    animation: slideInRight 1.6s ease-out;
}

.hero-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 5; /* Base z-index pour toutes les sections */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 15; /* Assure que les en-têtes sont au-dessus des autres éléments */
}

.section-icon {
    font-size: 1.75rem;
    background: rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hero-section:hover .section-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.3);
}

.section-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hero-section p {
    margin-bottom: 1.25rem;
    opacity: 0.9;
    font-size: 1rem;
    line-height: 1.5;
    flex-grow: 1;
    min-height: 4.5rem; /* Hauteur minimale pour uniformiser l'apparence */
    position: relative;
    z-index: 15; /* Assure que le texte est au-dessus des autres éléments */
}

.section-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    min-height: 2.5rem; /* Hauteur minimale pour uniformiser l'apparence */
    position: relative;
    z-index: 15; /* Assure que les tags sont au-dessus des autres éléments */
}

.tag {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 0.3rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-section {
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    margin-top: auto;
    height: 3.25rem; /* Hauteur fixe pour tous les boutons */
    z-index: 20; /* Assure que les boutons sont toujours au-dessus des autres éléments */
}

.btn-section::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.6s ease;
}

.btn-section:hover::before {
    left: 100%;
}

.btn-section:hover {
    background: var(--hub-orange);
    border-color: var(--hub-orange);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.hero-trust-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.trust-icon {
    font-size: 1.1rem;
}

/* Roulette Styles */
.roulette-container {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto;
    perspective: 1000px;
}

.roulette-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--hub-blue);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 5s cubic-bezier(0.17, 0.67, 0.21, 0.99);
    border: 8px solid var(--hub-light-blue);
    transform-style: preserve-3d;
}

.roulette-wheel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20%;
    height: 20%;
    background-color: var(--hub-light-blue);
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.roulette-wheel::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.wheel-roulette-section {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: bottom center;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    color: white;
    font-weight: bold;
    text-align: center;
    padding-top: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.roulette-arrow {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 80px;
    z-index: 10;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
    animation: bounce 1s infinite alternate;
    transition: all 0.3s ease;
}

@keyframes bounce {
    0% { transform: translateX(-50%) translateY(0); }
    100% { transform: translateX(-50%) translateY(-5px); }
}

/* Coin Flip Styles */
.coin-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    perspective: 1000px;
}

.coin {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s ease-in-out;
    cursor: pointer;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotateX(0deg); }
    50% { transform: translateY(-10px) rotateX(5deg); }
    100% { transform: translateY(0px) rotateX(0deg); }
}

.coin-side {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    backface-visibility: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    border: 8px solid rgba(255, 255, 255, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.coin-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
    animation: spin 8s linear infinite;
}

.coin-side::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: url('../images/svg/coin-shine.svg') no-repeat center center;
    background-size: contain;
    z-index: 2;
    opacity: 0.7;
}

.coin-side span {
    position: relative;
    z-index: 2;
}

.heads {
    background: linear-gradient(45deg, #d4af37, #f9d423);
    color: white;
    transform: rotateY(0deg);
}

.heads::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    z-index: 0;
}

.tails {
    background: linear-gradient(45deg, #c0c0c0, #e0e0e0);
    color: #333;
    transform: rotateY(180deg);
}

.tails::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    border-radius: 50%;
    border: 2px dashed rgba(0, 0, 0, 0.1);
    z-index: 0;
}

@keyframes flip {
    0% { 
        transform: rotateY(0) translateY(0); 
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    10% { 
        transform: rotateY(180deg) translateY(-50px); 
        box-shadow: 0 50px 30px rgba(0, 0, 0, 0.2);
    }
    20% { 
        transform: rotateY(360deg) translateY(0); 
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    30% { 
        transform: rotateY(540deg) translateY(-30px); 
        box-shadow: 0 30px 20px rgba(0, 0, 0, 0.25);
    }
    40% { 
        transform: rotateY(720deg) translateY(0); 
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    50% { 
        transform: rotateY(900deg) translateY(-20px); 
        box-shadow: 0 20px 15px rgba(0, 0, 0, 0.25);
    }
    60% { 
        transform: rotateY(1080deg) translateY(0); 
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    70% { 
        transform: rotateY(1260deg) translateY(-10px); 
        box-shadow: 0 15px 10px rgba(0, 0, 0, 0.25);
    }
    80% { 
        transform: rotateY(1440deg) translateY(0); 
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    90% { 
        transform: rotateY(1620deg) translateY(-5px); 
        box-shadow: 0 10px 8px rgba(0, 0, 0, 0.25);
    }
    100% { 
        transform: rotateY(1800deg) translateY(0); 
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
}

/* Dice Styles */
.dice-display {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    perspective: 1000px;
}

.dice {
    width: 70px;
    height: 70px;
    background-color: white;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--hub-blue);
    position: relative;
    animation: diceRoll 0.8s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    transform-style: preserve-3d;
    color: var(--hub-orange);
}

.dice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
}

.dice::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 5px;
    right: 5px;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    z-index: -1;
    filter: blur(3px);
}

@keyframes diceRoll {
    0% { 
        transform: translateY(-50px) rotateX(720deg) rotateZ(360deg); 
        opacity: 0; 
    }
    60% { 
        transform: translateY(20px) rotateX(0deg) rotateZ(0deg); 
    }
    80% { 
        transform: translateY(-10px) rotateX(20deg) rotateZ(5deg);
    }
    100% { 
        transform: translateY(0) rotateX(0deg) rotateZ(0deg); 
        opacity: 1; 
    }
}

/* Result Display */
.result-display {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(10, 35, 66, 0.1);
    position: relative;
    overflow: hidden;
}

.result-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/svg/dice-pattern.svg');
    opacity: 0.05;
    z-index: 0;
}

.result-display > * {
    position: relative;
    z-index: 1;
}

/* Section styling */
section {
    position: relative;
    padding: 2rem 0;
    border-radius: 1rem;
    margin-bottom: 4rem;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/svg/random-pattern.svg');
    opacity: 0.03;
    z-index: -1;
    border-radius: 1rem;
}

.section-header {
    position: relative;
    z-index: 15; /* Augmenté pour assurer la visibilité */
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--hub-orange);
    border-radius: 2px;
}

/* Form Styles */
input[type="text"],
input[type="number"],
textarea,
select,
.form-input, 
.form-textarea, 
.form-select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus,
.form-input:focus, 
.form-textarea:focus, 
.form-select:focus {
    outline: none;
    border-color: var(--hub-orange);
    box-shadow: 0 0 0 4px rgba(255, 72, 0, 0.1);
    transform: translateY(-2px);
}

/* Labels */
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

input:focus + label,
textarea:focus + label,
select:focus + label {
    color: var(--hub-orange);
}

/* Form groups */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

/* Placeholder styling */
::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Custom select styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230A2342' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
}

/* Responsive Adjustments */
@media (min-width: 1400px) {
    .hero-sections {
        max-width: 1300px;
        grid-template-columns: repeat(3, minmax(0, 380px));
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .hero-sections {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-sections {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero-primary, 
    .btn-hero-secondary {
        width: 100%;
    }
    
    .roulette-container {
        width: 280px;
        height: 280px;
    }
    
    .coin-container {
        width: 150px;
        height: 150px;
    }
}

/* Animation pour la roulette */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinning {
    animation: spin 0.5s linear infinite;
}

/* Animation pour les résultats */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.result-display {
    animation: fadeIn 0.5s ease-out;
}