/* =========================================
   VARIABLES & DESIGN SYSTEM
========================================= */
:root {
    --primary: #4A3AFF;
    --primary-dark: #3226B2;
    --primary-light: #8C82FF;
    --secondary: #00D09C; /* vibrant green for trust/success */
    
    --bg-dark: #0A0B10;
    --bg-darker: #050508;
    --bg-light: #F8F9FA;
    --surface: #1C1E2D;
    
    --text-main: #2D3142;
    --text-muted: #6B7280;
    --text-light: #F3F4F6;
    
    --border: rgba(255, 255, 255, 0.1);
    --border-light: rgba(0, 0, 0, 0.08);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 100px;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-soft: 0 10px 40px rgba(74, 58, 255, 0.08);
    --shadow-hover: 0 20px 40px rgba(74, 58, 255, 0.15);
}

/* =========================================
   RESET & BASICS
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #ffffff;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-warning { color: #FFB020; }
.text-success { color: var(--secondary); }
.text-white { color: white; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.opacity-70 { opacity: 0.7; }
.opacity-90 { opacity: 0.9; }
.max-w-600 { max-width: 600px; }
.max-w-800 { max-width: 800px; margin: 0 auto; }
.bg-light { background-color: var(--bg-light); }

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-family: var(--font-heading);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 58, 255, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 58, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* =========================================
   NAVBAR
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
}

.logo-icon {
    background: var(--primary);
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.badge {
    font-size: 0.7rem;
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    vertical-align: top;
    margin-left: 4px;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 16px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* =========================================
   HERO SECTION (DARK PREMIUM)
========================================= */
.hero {
    position: relative;
    padding: 160px 0 100px;
    background-color: var(--bg-darker);
    color: var(--text-light);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 80% 20%, rgba(74, 58, 255, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(0, 208, 156, 0.1) 0%, transparent 40%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.tagline {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: white;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.cta-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.trust-badges {
    display: flex;
    gap: 24px;
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Glassmorphism Cards */
.hero-visual {
    position: relative;
}

.glass-card {
    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);
    border-radius: var(--radius-lg);
    padding: 24px;
    color: white;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.main-card {
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.main-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 16px;
}

.text-2xl { font-size: 2rem; }

.card-title {
    font-weight: 700;
    font-size: 1.2rem;
}

.card-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.stat-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
}

.badge-success {
    background: rgba(0, 208, 156, 0.2);
    color: var(--secondary);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
}

.float-card-1 {
    position: absolute;
    top: -20px;
    right: -20px;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    z-index: 3;
    font-weight: 600;
    animation: float 6s ease-in-out infinite;
}

.float-card-2 {
    position: absolute;
    bottom: -30px;
    left: -20px;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    z-index: 3;
    font-weight: 600;
    animation: float 8s ease-in-out infinite reverse;
}

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

/* =========================================
   SECTIONS
========================================= */
.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.comparison-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

.comparison-card.bad {
    border-top: 4px solid #EF4444;
}

.comparison-card.good {
    border-top: 4px solid var(--secondary);
    box-shadow: 0 20px 50px rgba(0, 208, 156, 0.1);
}

.comp-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.bad .comp-icon { color: #EF4444; }
.good .comp-icon { color: var(--secondary); }

.comparison-card h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.comp-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.bad .comp-list i { color: #EF4444; }
.good .comp-list i { color: var(--secondary); }

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    border: 4px solid white;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 24px;
    margin-top: 16px;
}

.step-card h3 {
    margin-bottom: 16px;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* FAQ List */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.faq-question {
    padding: 24px;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px;
    max-height: 500px; /* arbitrary large value */
}

/* CTA Section */
.cta-section {
    background: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    border-radius: 50%;
}

/* =========================================
   FOOTER
========================================= */
.footer {
    background: var(--bg-darker);
    color: white;
    padding: 80px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer h4 {
    font-family: var(--font-heading);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer ul a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer ul a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   ANIMATIONS UTILS
========================================= */
[data-reveal] {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="fade-up"] { transform: translateY(30px); }
[data-reveal="slide-up"] { transform: translateY(50px); }
[data-reveal="zoom-in"] { transform: scale(0.95); }
[data-reveal="fade-in"] { transform: translateY(0); }

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 80px;
    }

    .hero-cta {
        justify-content: center;
        flex-direction: column;
        gap: 16px;
    }
    
    .trust-badges {
        justify-content: center;
    }

    .comparison-grid, .steps-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        gap: 32px;
    }
    
    .main-card {
        transform: none;
    }
    .main-card:hover {
        transform: none;
    }
}

@media (max-width: 992px) {
    .nav-links, .nav-actions {
        display: none !important; /* Mobile menu handled via JS later */
    }
    
    .nav-toggle {
        display: block !important;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
}

/* --- Dropdown Nav --- */
.nav-dropdown { position: relative; }
.nav-dropdown-content { 
    display: none; position: absolute; top: 100%; left: 0; 
    background: white; min-width: 280px; box-shadow: var(--shadow-soft); 
    border-radius: 12px; padding: 12px 0; z-index: 1000; border: 1px solid var(--border-light);
}
.nav-dropdown:hover .nav-dropdown-content { display: block; }
.nav-dropdown-content a { 
    display: block !important; padding: 12px 24px !important; color: var(--text-main) !important;

    border-bottom: none !important; width: 100% !important; text-align: left !important;
    font-weight: 500 !important;
}
.nav-dropdown-content a:hover { background: var(--bg-light); color: var(--primary) !important; }

@media (max-width: 992px) {
    .nav-dropdown-content { 
        display: block !important; 
        position: static !important; 
        box-shadow: none !important; 
        border: none !important; 
        padding: 8px 16px !important; 
        background: var(--bg-light) !important;
        width: 100% !important;
        border-radius: 8px !important;
        margin-top: 8px !important;
    }
    .nav-dropdown-content a {
        padding: 8px 16px !important;
        border-bottom: none !important;
    }
    .nav-dropdown:hover .nav-dropdown-content {
        display: block !important;
    }
}

/* =========================================
   GRILLE & CARTES DE BLOG UNIFIÉES
========================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 32px;
    margin-top: 48px;
    width: 100%;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--radius-md); /* 16px */
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.blog-card-image {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-light);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05); /* Effet zoom ultra-premium */
}

.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.blog-card-category {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-date {
    color: var(--text-muted);
}

.blog-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-main);
    margin: 0 0 12px;
    line-height: 1.4;
    font-weight: 700;
    transition: color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.blog-card:hover h3 {
    color: var(--primary); /* Met en valeur l'article au survol */
}

.blog-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* =========================================
   ROBUSTE & PREMIUM MOBILE NAVIGATION SYSTEM
 ========================================= */
@media (max-width: 992px) {
    .nav-container {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-rows: 80px auto auto !important;
        align-items: center !important;
        height: auto !important;
        padding: 0 16px !important;
    }
    
    .logo {
        grid-column: 1 !important;
        grid-row: 1 !important;
        font-size: 1.2rem !important;
    }
    
    .logo-text {
        white-space: nowrap !important;
    }
    
    .logo-text .badge {
        font-size: 0.65rem !important;
        padding: 1px 6px !important;
    }

    .nav-toggle {
        display: block !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: end !important;
        padding: 8px !important;
        font-size: 1.3rem !important;
        background: transparent !important;
        border: none !important;
        outline: none !important;
    }

    .nav-links {
        display: none !important;
        grid-column: 1 / span 2 !important;
        grid-row: 2 !important;
        flex-direction: column !important;
        gap: 16px !important;
        padding: 16px 0 !important;
        border-top: 1px solid var(--border-light) !important;
        width: 100% !important;
    }
    
    .nav-actions {
        display: none !important;
        grid-column: 1 / span 2 !important;
        grid-row: 3 !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 16px 0 24px !important;
        width: 100% !important;
        border-top: none !important;
    }
    
    .nav-actions .btn {
        width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
    }

    /* Tiroir de menu mobile actif */
    .navbar.nav-open .nav-links {
        display: flex !important;
    }
    
    .navbar.nav-open .nav-actions {
        display: flex !important;
    }
}

/* =========================================
   OVERLOAD RESPONSIVE POUR LES PAGES ARTICLES
 ========================================= */
@media (max-width: 992px) {
    body .blog-header {
        padding: 100px 0 40px !important;
    }
    body .blog-header h1 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
        padding: 0 16px !important;
    }
    body .article-body {
        font-size: 1rem !important;
        line-height: 1.7 !important;
        padding: 0 16px !important;
    }
    body .article-body h2 {
        font-size: 1.5rem !important;
        margin: 32px 0 16px !important;
    }
    body .article-body h3 {
        font-size: 1.25rem !important;
    }
    body .cta-inline {
        padding: 24px !important;
        margin: 32px 0 !important;
    }
    body .cta-inline h3 {
        font-size: 1.4rem !important;
    }
    body .pro-tip {
        padding: 16px !important;
        margin: 24px 0 !important;
    }
}

/* =========================================
   ARTICLE HERO IMAGE
 ========================================= */
.article-hero-image {
    max-width: 900px;
    margin: 0 auto 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border: 1px solid var(--border-light);
    padding: 0;
}

.article-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 450px;
}

@media (max-width: 992px) {
    .article-hero-image {
        margin: 0 16px 32px;
        border-radius: 12px;
    }
    .article-hero-image img {
        max-height: 300px;
    }
}

/* =========================================
   PREMIUM INTERNAL LINKS STYLE OVERRIDE
   ========================================= */
.article-body a, .article-content a {
    color: var(--primary) !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(74, 58, 255, 0.4) !important;
    text-underline-offset: 4px !important;
    text-decoration-thickness: 2px !important;
    transition: all 0.2s ease-in-out !important;
    padding: 0 4px !important;
    border-radius: 4px !important;
}

.article-body a:hover, .article-content a:hover {
    color: var(--primary-dark) !important;
    text-decoration-color: var(--primary-dark) !important;
    background-color: rgba(74, 58, 255, 0.08) !important;
}
