/* Ultra-Modern CSS for Nice Sécurité */

/* ============================================
   GLOBAL STYLES & DARK MODE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0EA5E9;
    --secondary: #6366F1;
    --accent: #F43F5E;
    --dark: #0F172A;
    --darker: #020617;
    --light: #F8FAFC;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    background: var(--darker);
    color: var(--light);
}

/* Custom Scrollbar Dark */
::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--secondary), var(--primary));
}

/* ============================================
   GLASSMORPHISM EFFECTS
   ============================================ */

.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(14, 165, 233, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.15);
}

/* ============================================
   GRADIENT BACKGROUNDS
   ============================================ */

.gradient-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    background:
        radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(99, 102, 241, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(244, 63, 94, 0.2) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(14, 165, 233, 0.2) 0px, transparent 50%);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-border {
    position: relative;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* ============================================
   HEADER MODERN
   ============================================ */

.header-modern {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 40px);
    max-width: 1400px;
    transition: all 0.3s ease;
}

.header-glass {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 15px 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ============================================
   HERO SECTION MODERN
   ============================================ */

.hero-modern {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 100px;
}

.hero-bg-modern {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(99, 102, 241, 0.1) 50%, rgba(244, 63, 94, 0.1) 100%);
    z-index: 1;
}

.hero-content-modern {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 40px 20px;
}

.hero-title-modern {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px rgba(14, 165, 233, 0.5);
}

.hero-subtitle-modern {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

/* ============================================
   BUTTONS MODERN
   ============================================ */

.btn-modern {
    position: relative;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.btn-secondary-modern {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary-modern:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

/* ============================================
   CARDS MODERN 3D
   ============================================ */

.card-modern {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.card-modern:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow:
        0 20px 60px rgba(14, 165, 233, 0.2),
        0 0 40px rgba(99, 102, 241, 0.1);
}

.card-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(99, 102, 241, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-modern:hover::before {
    opacity: 1;
}

/* ============================================
   PRICING TABLE MODERN
   ============================================ */

.pricing-table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    margin: 20px 0;
}

.pricing-table-modern thead tr {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(99, 102, 241, 0.2));
    backdrop-filter: blur(10px);
}

.pricing-table-modern th {
    padding: 20px;
    text-align: left;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--light);
    border: none;
}

.pricing-table-modern th:first-child {
    border-radius: 12px 0 0 12px;
}

.pricing-table-modern th:last-child {
    border-radius: 0 12px 12px 0;
}

.pricing-table-modern tbody tr {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.pricing-table-modern tbody tr:hover {
    background: rgba(14, 165, 233, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.2);
}

.pricing-table-modern td {
    padding: 18px 20px;
    border: none;
    color: rgba(255, 255, 255, 0.9);
}

.pricing-table-modern td:first-child {
    font-weight: 600;
    color: white;
}

.pricing-table-modern td:not(:first-child) {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Désactiver le scroll horizontal sur les conteneurs de tableaux */
#pricing .overflow-x-auto {
    overflow-x: hidden !important;
    overflow-y: visible;
}

/* ============================================
   FORM MODERN
   ============================================ */

.form-modern input,
.form-modern textarea,
.form-modern select {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-modern input:focus,
.form-modern textarea:focus,
.form-modern select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
}

.form-modern input::placeholder,
.form-modern textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   BADGES MODERN
   ============================================ */

.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.badge-modern:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.badge-glow {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(14, 165, 233, 0.6);
    }
}

/* ============================================
   FOOTER MODERN
   ============================================ */

.footer-modern {
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.8) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link-modern {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    position: relative;
}

.footer-link-modern::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.footer-link-modern:hover {
    color: white;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(14, 165, 233, 0.6);
    }
}

.glow-pulse {
    animation: glow-pulse 2s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .header-modern {
        top: 10px;
        width: calc(100% - 20px);
    }

    .header-glass {
        padding: 12px 20px;
        border-radius: 16px;
    }

    .hero-title-modern {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .card-modern {
        padding: 24px;
    }

    .pricing-table-modern {
        font-size: 0.9rem;
    }

    .pricing-table-modern th,
    .pricing-table-modern td {
        padding: 12px 10px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.blur-bg {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.text-glow {
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
}

.shadow-neon {
    box-shadow:
        0 0 20px rgba(14, 165, 233, 0.3),
        0 10px 40px rgba(14, 165, 233, 0.2);
}

.border-gradient {
    border-image: linear-gradient(135deg, var(--primary), var(--secondary)) 1;
}

/* Smooth transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
