/* --- PREMIUM TYPOGRAPHY IMPORT --- */
/* 'Plus Jakarta Sans' pour les titres (Moderne, Géométrique, Tech) */
/* 'Inter' pour le texte courant (Lisibilité maximale, Standard Industriel) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* --- DESIGN TOKENS (V2.0 ENTERPRISE THEME) --- */
:root {
    /* Palette "Deep Slate" & "Electric Indigo" */
    --primary: #0F172A;
    /* Slate 900: Pour les Titres (Encre profonde) */
    --secondary: #475569;
    /* Slate 600: Pour les sous-titres */
    --text: #334155;
    /* Slate 700: Pour le corps de texte */

    /* Accentuation - Indigo vibrant mais professionnel */
    --accent: #4F46E5;
    /* Indigo 600 */
    --accent-hover: #4338CA;
    /* Indigo 700 */
    --accent-glow: rgba(79, 70, 229, 0.4);
    /* Pour l'effet de lueur */

    /* Surfaces */
    --bg-body: #F8FAFC;
    /* Slate 50: Fond de page (Pas blanc pur) */
    --bg-surface: #FFFFFF;
    /* Blanc pur: Pour les cartes */
    --bg-glass: rgba(255, 255, 255, 0.85);
    /* Pour le header sticky */

    /* Bordures subtiles (High-End Feel) */
    --border: rgba(148, 163, 184, 0.2);
    /* Très léger, presque invisible */
    --border-hover: rgba(79, 70, 229, 0.3);
    /* Légèrement bleu au survol */

    /* Ombres "Enterprise" (Douces et diffuses) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Variables Utilitaires Maintenues */
    --success: #10b981;
    --white: #ffffff;
    --light: #f8fafc;
}

/* --- GLOBAL RESET & TYPOGRAPHY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    /* Rendu Mac OS net */
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg-body);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    /* Corps de texte propre */
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    /* Évite les scrollbars horizontaux accidentels */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.025em;
    /* Le secret du look "Pro" : lettrage serré */
    line-height: 1.2;
}

h1 {
    font-weight: 800;
    letter-spacing: -0.04em;
    /* Encore plus serré pour les gros titres */
}

p {
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

/* --- TOP BAR (Legacy - Optional) --- */
.top-bar {
    background: #1e293b;
    color: #94a3b8;
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.top-link {
    color: #cbd5e1;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- GLASSMORPHISM NAVIGATION --- */
nav {
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border);
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    /* L'effet de verre dépoli */
    -webkit-backdrop-filter: blur(12px);
    /* Support Safari */
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    /* Leger shadow */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo {
    font-size: 1.5rem;
    text-transform: uppercase;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--accent);
    /* Le lien s'allume en bleu au survol */
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary);
}

.btn-cta-nav {
    background: var(--accent);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 14px 0 var(--accent-glow);
    transition: all 0.3s ease;
}

.btn-cta-nav:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}

/* --- HERO SECTION --- */
/* Layout preserved, Typography updated */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.7)),
        url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=60');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 8rem 0 6rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    /* Override generic h1 color */
}

.hero p {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.3rem;
    color: #e2e8f0;
    font-weight: 300;
}

/* --- GLOWING BUTTONS --- */
.btn-primary,
.btn-hero,
.btn-calc {
    background: var(--accent);
    color: white !important;
    padding: 1rem 2rem;
    border-radius: 8px;
    /* Pas trop rond, pas trop carré */
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    /* Ensure they behave like buttons */

    /* La "Tech Glow" */
    box-shadow: 0 4px 14px 0 var(--accent-glow);
}

.btn-primary:hover,
.btn-hero:hover,
.btn-calc:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
    /* Glow plus intense */
}

.btn-outline-dark,
.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    /* Bordure subtile au lieu de blanc/noir dur */
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

/* Specific fix for hero outline button which needs white text */
.btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    margin-left: 10px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline-dark:hover {
    border-color: var(--primary);
    background: var(--bg-body);
}

/* --- LOGOS SECTION --- */
.logos-section {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
}

.logos-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    opacity: 0.6;
    filter: grayscale(100%);
}

.partner-logo svg {
    height: 32px;
    width: auto;
    fill: var(--text);
    /* Updated to use variable */
}

/* --- CONTENT GENERAL --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

/* --- ENTERPRISE CARDS --- */
.card,
.pricing-card,
.solution-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    /* Bordure ultra-fine */
    border-radius: 16px;
    /* Arrondi moderne */
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Rebond subtil */
    position: relative;
    overflow: hidden;
    /* Pour contenir les effets internes */
}

/* Effet "Levitation" au survol */
.card:hover,
.pricing-card:hover,
.solution-card:hover {
    transform: translateY(-4px);
    /* Remonte légèrement */
    box-shadow: var(--shadow-float);
    /* L'ombre devient diffuse */
    border-color: var(--border-hover);
}

/* --- RESULTS & TAGS --- */
.case-tag {
    background: #dbeafe;
    /* Could use rgba of accent */
    color: var(--accent);
    /* Use accent for consistency */
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
}

.result-box {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.result-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--success);
    /* Keeping success color */
    display: block;
}

.result-label {
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 600;
}

/* --- FOOTER --- */
footer {
    background: var(--primary);
    color: #94a3b8;
    padding: 4rem 0 2rem;
    margin-top: auto;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto 3rem;
    padding: 0 20px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--white);
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        /* Use surface color */
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-card);
        text-align: center;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .top-bar {
        display: none;
    }

    .logos-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
    }
}

/* --- SOLUTIONS PAGE SPECIFICS --- */
.solutions-hero {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8)),
        url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=60');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
}

.trust-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-stats span {
    font-size: 0.9rem;
    color: #cbd5e1;
}

.trust-stats strong {
    color: var(--white);
    font-size: 1.1rem;
}

.solution-card.featured {
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.15);
    /* Updated to match accent */
}

.icon-badge {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.result-metric {
    color: var(--success);
    font-weight: 700;
    font-size: 0.9rem;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1rem;
}

.benefits-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.benefits-list li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.link-arrow {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

/* ROI Calculator */
.roi-section {
    background: var(--primary);
    color: white;
    padding: 5rem 0;
}

.calculator-widget {
    background: white;
    color: var(--text);
    padding: 2rem;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-float);
    /* Updated shadow */
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.input-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
}

.calc-results {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 5px solid var(--accent);
    display: none;
}

.savings-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0.5rem 0;
}

/* FAQ Accordion */
.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--text);
}

.faq-icon {
    transition: transform 0.3s;
}

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

.faq-item.active .faq-answer {
    max-height: 1000px;
    /* Sufficient height for content */
    transition: max-height 0.5s ease-in-out;
    padding-bottom: 1.5rem;
    /* Ensure bottom padding is visible */
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    display: none;
}

@media (max-width: 768px) {
    .trust-stats {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }

    .calc-grid {
        grid-template-columns: 1fr;
    }

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

    .mobile-sticky-cta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--border);
        padding: 1rem;
        z-index: 9999;
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    }

    .mobile-sticky-cta span {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--primary);
    }

    .mobile-sticky-cta .btn-small {
        background: var(--accent);
        color: white;
        text-decoration: none;
        padding: 0.5rem 1rem;
        border-radius: 4px;
        font-weight: 700;
    }
}

/* --- PRICING TABLE (US Market Style) --- */

.pricing-section {
    background: var(--light);
    padding: 4rem 0 6rem;
    border-top: 1px solid var(--border);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

.pricing-card {
    /* Updated by Card Styles above */
    display: flex;
    flex-direction: column;
}

/* "Pop-out" effect for the middle card */
.pricing-card.popular {
    border: 2px solid var(--accent);
    transform: scale(1.05);
    box-shadow: var(--shadow-float);
    /* Improved shadow */
    z-index: 2;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Typography inside cards */
.card-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

.pricing-card h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1rem 0;
}

.currency {
    font-size: 1.2rem;
    vertical-align: top;
    margin-right: 2px;
}

.period {
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 400;
}

.catchphrase {
    font-size: 0.9rem;
    color: var(--secondary);
    line-height: 1.4;
    min-height: 2.8em;
}

/* Features List */
.feature-list {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.feature-list li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li.excluded {
    color: #cbd5e1;
    text-decoration: line-through;
}

.check {
    color: var(--success);
    font-weight: bold;
}

.cross {
    color: #cbd5e1;
}

.btn-price {
    display: block;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
    /* Handled by btn-primary/outline classes */
}

/* Mobile Responsiveness for Pricing */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .pricing-card.popular {
        transform: scale(1);
        order: -1;
    }

    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
}

/* --- SMART STICKY BAR (CRO) --- */

.sticky-bar {
    position: fixed;
    bottom: -100px;
    /* Caché par défaut */
    left: 0;
    width: 100%;
    background: var(--primary);
    /* Fond sombre professionnel */
    color: var(--white);
    padding: 1rem 0;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transition: bottom 0.4s ease-in-out;
    /* Animation fluide */
    border-top: 1px solid var(--accent);
}

.sticky-bar.visible {
    bottom: 0;
    /* Apparition */
}

.sticky-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticky-text {
    display: flex;
    flex-direction: column;
}

.sticky-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
}

.sticky-subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
    /* Gris clair */
}

.btn-sticky {
    background: var(--accent);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.2s, background 0.2s;
    white-space: nowrap;
}

.btn-sticky:hover {
    background: #0284c7;
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sticky-subtitle {
        display: none;
    }

    /* Gagner de la place */

    .sticky-content {
        flex-direction: row;
        gap: 1rem;
    }

    .sticky-title {
        font-size: 0.9rem;
    }

    .btn-sticky {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}