/* Casimontrez - Noir Royale Design System */

/* Variables CSS pour la palette de couleurs */
:root {
    /* Couleurs principales */
    --ugolny-noir: #0E0E11;
    --graphite-sombre: #1A1A1F;
    --bleu-elegant: #3A70FF;
    --violet-royal: #6C2DBE;
    --dore: #FFD700;
    --dore-sombre: #D4AF37;
    
    /* Couleurs de texte */
    --texte-principal: #E0E0E0;
    --texte-secondaire: #A0A5B9;
    --erreur: #FF4D67;
    
    /* Transparences */
    --bleu-40: #3A70FF40;
    --bleu-80: #3A70FF80;
    --bleu-10: #3A70FF10;
    
    /* Typographie */
    --font-titles: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Marcellus SC', serif;
    
    /* Espacements et bordures */
    --border-radius: 12px;
    --shadow-glow: 0 0 10px var(--bleu-80);
    --shadow-card: 0 6px 12px rgba(58, 112, 255, 0.3);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--ugolny-noir);
    color: var(--texte-principal);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-titles);
    font-weight: 700;
    line-height: 1.2;
}

.font-playfair {
    font-family: var(--font-titles);
}

.font-marcellus {
    font-family: var(--font-accent);
}

/* Texte dégradé */
.gradient-text {
    background: linear-gradient(135deg, var(--bleu-elegant), var(--violet-royal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Boutons */
.btn-primary {
    background: linear-gradient(135deg, var(--bleu-elegant), var(--violet-royal));
    color: var(--texte-principal);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    border: none;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--dore);
    color: var(--ugolny-noir);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    border: none;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--dore-sombre);
    transform: translateY(-1px);
}

/* Cartes de casino */
.casino-card {
    background: var(--graphite-sombre);
    border: 1px solid var(--bleu-40);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.casino-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-card);
}

.casino-card:hover::before {
    left: 100%;
}

/* Badge top */
.top-badge {
    background: var(--dore);
    color: var(--ugolny-noir);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    position: absolute;
    top: 0px;
    right: 1px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* Filtres */
.filter-btn {
    padding: 12px 20px;
    background: var(--graphite-sombre);
    color: var(--texte-secondaire);
    border: 1px solid var(--bleu-40);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--bleu-elegant), var(--violet-royal));
    color: var(--texte-principal);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

/* Fond avec motifs */
.bg-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%233A70FF' stroke-opacity='0.08' stroke-width='1'%3E%3Cpath d='M30 30m-20 0a20 20 0 1 1 40 0a20 20 0 1 1 -40 0'/%3E%3Cpath d='M30 10v40M10 30h40'/%3E%3Cpath d='M25 25l10 0l0 10l-10 0z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 60px 60px;
    background-repeat: repeat;
}

.bg-pattern-casino {
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23FFD700' fill-opacity='0.05'%3E%3Ccircle cx='20' cy='20' r='3'/%3E%3Ccircle cx='60' cy='20' r='3'/%3E%3Ccircle cx='20' cy='60' r='3'/%3E%3Ccircle cx='60' cy='60' r='3'/%3E%3Cpath d='M40 25l5 5l-5 5l-5-5z'/%3E%3Cpath d='M40 55l5 5l-5 5l-5-5z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Header */
.header-fixed {
    backdrop-filter: blur(10px);
    background: rgba(14, 14, 17, 0.95);
    border-bottom: 1px solid var(--bleu-40);
}

/* Navigation */
.nav-link {
    color: var(--texte-secondaire);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--bleu-elegant), var(--violet-royal));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--bleu-elegant);
}

.nav-link:hover::after {
    width: 100%;
}

/* Formulaires */
.form-input {
    width: 100%;
    padding: 16px;
    background: var(--ugolny-noir);
    color: var(--texte-principal);
    border: 1px solid var(--bleu-40);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--bleu-elegant);
    box-shadow: 0 0 0 2px var(--bleu-10);
}

.form-input::placeholder {
    color: var(--texte-secondaire);
}

/* Checkbox personnalisé */
.custom-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--graphite-sombre);
    border: 2px solid var(--bleu-40);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-checkbox:checked {
    background: linear-gradient(135deg, var(--bleu-elegant), var(--violet-royal));
    border-color: transparent;
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-family: var(--font-titles);
    text-align: center;
    margin-bottom: 3rem;
}

/* Grilles */
.grid-casinos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in {
    animation: slideIn 0.6s ease-out;
}

/* Icônes */
.icon-feature {
    width: 48px;
    height: 48px;
    background: var(--bleu-10);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.icon-feature:hover {
    background: var(--bleu-elegant);
    transform: scale(1.1);
}

.icon-feature svg {
    color: var(--bleu-elegant);
    transition: color 0.3s ease;
}

.icon-feature:hover svg {
    color: white;
}

/* Témoignages */
.testimonial-card {
    background: var(--graphite-sombre);
    border: 1px solid var(--bleu-40);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--dore);
    font-family: var(--font-titles);
    opacity: 0.3;
}

/* Footer */
.footer-link {
    color: var(--texte-secondaire);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--bleu-elegant);
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--texte-principal);
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
}

.mobile-menu-btn:hover {
    color: var(--bleu-elegant);
    transform: scale(1.1);
}

.mobile-nav {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 45;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-nav.show {
    display: block !important;
    animation: slideDown 0.3s ease;
}

/* Show mobile menu button on small screens */
@media (max-width: 767px) {
    .mobile-menu-btn {
        display: block !important;
    }
    
    .mobile-nav {
        display: none;
    }
}

/* Hide mobile elements on desktop */
@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none !important;
    }
    
    .mobile-nav {
        display: none !important;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fix for mobile body width */
html {
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    position: relative;
}

* {
    box-sizing: border-box;
}

*:before,
*:after {
    box-sizing: border-box;
}

/* Prevent horizontal scroll on mobile */
.container, 
.max-w-7xl, 
.max-w-6xl, 
section, 
header, 
main, 
footer {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure all containers respect viewport width */
.container, .max-w-7xl, .max-w-6xl {
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Prevent images and other content from breaking layout */
img, 
video, 
iframe, 
object, 
embed {
    max-width: 100%;
    height: auto;
}

/* Fix for elements that might cause horizontal scroll */
pre, 
code {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Responsive */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .grid-casinos {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .casino-card {
        padding: 1.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* Mobile-specific adjustments */
    .max-w-7xl, .max-w-6xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Header adjustments for mobile */
    header .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 480px) {
    .casino-card {
        padding: 1rem;
    }
    
    .top-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    /* Extra small screens */
    .max-w-7xl, .max-w-6xl {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Make sure text doesn't overflow */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Adjust hero text for small screens */
    .gradient-text {
        font-size: 2rem !important;
        line-height: 1.1;
    }
    

}

/* Utilitaires */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-6xl { max-width: 72rem; }
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-900 { z-index: 900; }
.z-1000 { z-index: 1000; }

.opacity-70 { opacity: 0.7; }
.opacity-100 { opacity: 1; }

.transition { transition: all 0.3s ease; }

.cursor-pointer { cursor: pointer; }

.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }

.rounded { border-radius: var(--border-radius); }
.rounded-full { border-radius: 50%; }

.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

.border { border: 1px solid var(--bleu-40); }
.border-t { border-top: 1px solid var(--bleu-40); }

.bg-ugolny { background-color: var(--ugolny-noir); }
.bg-graphite { background-color: var(--graphite-sombre); }

.text-primary { color: var(--texte-principal); }
.text-secondary { color: var(--texte-secondaire); }
.text-gold { color: var(--dore); }
.text-error { color: var(--erreur); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--ugolny-noir);
}

::-webkit-scrollbar-thumb {
    background: var(--bleu-elegant);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--violet-royal);
}

/* Sélection de texte */
::selection {
    background: var(--bleu-elegant);
    color: white;
}

::-moz-selection {
    background: var(--bleu-elegant);
    color: white;
}
