/* ==========================================================================
   1. VARIABLES & RESET (Mobile First)
   ========================================================================== */
:root {
    /* Couleurs principales (Palette Premium Bleu & Or) */
    --primary: #0d253f;          /* Bleu nuit institutionnel */
    --primary-light: #1e3a5f;    /* Bleu secondaire / Dégradés */
    --accent: #d4af37;           /* Jaune or premium */
    --accent-hover: #b89528;     /* Jaune or sombre (Hover) */
    
    /* Couleurs Neutres & Textes */
    --text-dark: #2b2b2b;        /* Anthracite lisible */
    --text-muted: #6c757d;       /* Gris intermédiaire */
    --bg-light: #f4f7f9;         /* Fond clair */
    --white: #ffffff;
    --border: #e2e8f0;
    
    /* Alerts & Accents secondaires */
    --success-bg: #dcfce7;
    --success-text: #166534;
    --success-color: #2e7d32;
    
    /* Design Tokens */
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-standard: all 0.3s ease;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}
.bg-hero {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }
.gradient-text {
    background: linear-gradient(90deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
.header {
    background-color: var(--primary);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    padding: 0.8rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--white);
}

.logo span {
    color: var(--accent);
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
}

.nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--primary);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 1rem;
}

.nav-menu.active {
    display: flex;
}

/* Liens du menu en Jaune Or */
.nav-link {
    padding: 0.5rem 0;
    color: var(--accent);
    font-weight: 500;
    transition: var(--transition-standard);
}

.nav-link:hover, 
.nav-link.active {
    color: var(--white);
    opacity: 0.9;
}

.nav-cta {
    background-color: var(--accent);
    color: var(--primary) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition-standard);
}

.nav-cta:hover {
    background-color: var(--accent-hover);
}

/* ==========================================================================
   3. HERO SECTIONS
   ========================================================================== */
.hero, 
.hero-section, 
.hero-inner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 4rem 1.25rem 3.5rem;
    text-align: center;
}

.hero-content, 
.hero-inner-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-tag, 
.badge {
    display: inline-block;
    background-color: rgba(212, 175, 55, 0.2);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background-color: rgba(46, 125, 50, 0.15);
    color: #4caf50;
    border-color: #4caf50;
}

.hero h1, 
.hero-section h1, 
.hero-inner h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.hero p, 
.hero-lead, 
.hero-inner p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin: 0 auto 2rem;
    max-width: 800px;
    color: #e2e8f0;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   4. BOUTONS & COMPOSANTS INTERACTIFS
   ========================================================================== */
.btn-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-standard);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary);
}

.btn-light:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.btn-block, 
.btn-submit {
    display: block;
    width: 100%;
    background-color: var(--accent);
    color: var(--primary);
    border: none;
    padding: 1rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-standard);
}

.btn-block:hover, 
.btn-submit:hover {
    background-color: var(--accent-hover);
}

/* ==========================================================================
   5. SECTIONS & LAYOUT DE BASE
   ========================================================================== */
.section, 
.services-section, 
.why-us-section {
    padding: 4rem 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.why-us-section {
    background-color: var(--bg-light);
}

.section-title, 
.section-header h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.section-subtitle, 
.section-header p, 
.section-intro {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.section-header p, 
.section-intro {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Systèmes de Grille Responsive */
.grid, 
.grid-2, 
.grid-3, 
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.services-grid {
    gap: 2rem;
    align-items: stretch;
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

/* ==========================================================================
   6. CARTES & CONTENUS
   ========================================================================== */
/* Cartes Standards & Features */
.card, 
.card-feature, 
.service-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: var(--transition-standard);
    position: relative;
}

.card:hover, 
.card-feature:hover, 
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow);
}

.service-card.featured {
    border: 2px solid var(--accent);
    box-shadow: var(--box-shadow);
}

.card-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.card h3, 
.card-feature h3, 
.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.card p, 
.card-feature p, 
.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Icônes de cartes */
.card-icon, 
.icon-wrapper, 
.feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--bg-light);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.service-card.featured .icon-wrapper,
.feature-icon {
    background-color: var(--primary);
    color: var(--accent);
}

/* Listes à puces dans les cartes */
.feature-list {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.feature-list li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.feature-list li i {
    color: var(--accent);
    font-size: 0.85rem;
}

.feature-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.feature-text h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.feature-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   7. BANDEAUX SPÉCIAUX & CHIFFRES CLÉS
   ========================================================================== */
.ia-banner {
    background-color: #081726;
    color: var(--white);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    margin: 2rem 0;
}

.ia-banner h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.ia-banner p {
    opacity: 0.9;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.trust-banner, 
.stats-section {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 1.25rem;
    margin: 2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stat-item .num, 
.stat-item h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.stat-item .label, 
.stat-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-box {
    background-color: var(--primary);
    color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.cta-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.cta-box p {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.cta-banner {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 3.5rem 1.25rem;
    text-align: center;
}

.cta-banner h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #e2e8f0;
}

/* ==========================================================================
   8. FORMULAIRES
   ========================================================================== */
.form-container {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

.alert-success {
    background-color: var(--success-bg);
    color: var(--success-text);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    background-color: var(--bg-light);
    transition: var(--transition-standard);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--white);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
.footer {
    background-color: #081726;
    color: #8892b0;
    padding: 3rem 1.25rem 1.5rem;
    margin-top: 3rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition-standard);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.7;
    font-size: 0.8rem;
}

/* ==========================================================================
   10. MEDIA QUERIES (Tablette & Desktop >= 768px)
   ========================================================================== */
@media (min-width: 768px) {
    /* Navigation Desktop */
    .menu-toggle { 
        display: none; 
    }
    
    .nav-menu {
        display: flex !important;
        position: static;
        flex-direction: row;
        width: auto;
        background: none;
        padding: 0;
        border: none;
        align-items: center;
        gap: 1.5rem;
    }
    
    .nav-cta { 
        margin: 0 0 0 1rem; 
    }

    /* Typographies Large écran */
    .hero h1, 
    .hero-section h1, 
    .hero-inner h1 { 
        font-size: 2.5rem; 
    }

    .btn-group {
        flex-direction: row;
        justify-content: center;
    }

    /* Structures de Grilles Desktop */
    .grid { 
        grid-template-columns: repeat(3, 1fr); 
    }
    
    .grid-2 { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .grid-3 { 
        grid-template-columns: repeat(3, 1fr); 
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }

    .why-us-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
    
    .stats-grid { 
        grid-template-columns: repeat(4, 1fr); 
    }
    
    .form-row { 
        grid-template-columns: repeat(2, 1fr); 
    }

    .footer-grid { 
        grid-template-columns: 2fr 1fr 1fr; 
    }
}