/* =========================================
   1. VARIABLES & CONFIGURATION (Facile à modifier)
   ========================================= */
:root {
    /* Palette de couleurs */
    --primary-color: #2563eb;      /* Bleu royal pour les actions principales */
    --primary-dark: #1e40af;       /* Bleu plus foncé pour le survol */
    --secondary-color: #0f172a;    /* Bleu nuit pour le texte sombre/fond */
    --accent-color: #f59e0b;       /* Orange pour attirer l'attention (optionnel) */
    
    /* Couleurs neutres */
    --bg-light: #f8fafc;           /* Fond très clair */
    --bg-white: #ffffff;
    --text-main: #334155;          /* Gris foncé pour le texte (plus doux que le noir pur) */
    --text-light: #64748b;         /* Gris moyen pour les sous-titres */
    
    /* Espacements et Dimensions */
    --container-width: 1200px;
    --header-height: 70px;
    --radius: 8px;                 /* Arrondi des boutons et cartes */
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* =========================================
   2. RESET & BASES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Essentiel pour gérer les tailles correctement */
}

html {
    scroll-behavior: smooth; /* Défilement fluide lors du clic sur les liens */
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
    background-color: var(--bg-white);
    height: var(--header-height);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed; /* Le menu reste en haut */
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    font-weight: 500;
    color: var(--secondary-color);
    transition: var(--transition);
}

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

/* =========================================
   4. COMPOSANTS (BOUTONS)
   ========================================= */
.btn-cta, .btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-cta:hover, .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px); /* Petit effet de soulèvement */
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 22px; /* Un peu moins haut à cause de la bordure */
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

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

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    margin-top: var(--header-height); /* Pour ne pas être caché par le menu fixe */
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    min-height: 80vh; /* Prend 80% de la hauteur de l'écran */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--secondary-color);
    margin-bottom: 20px;
    max-width: 800px;
}

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

.cta-group {
    display: flex;
    gap: 15px;
}

/* =========================================
   6. SECTIONS COMMUNES
   ========================================= */
section {
    padding: 80px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

/* Petite ligne décorative sous les titres H2 */
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* =========================================
   7. SERVICES (GRID LAYOUT)
   ========================================= */
.services-grid {
    display: grid;
    /* Création automatique de colonnes adaptatives (min 300px) */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* =========================================
   8. STATISTIQUES
   ========================================= */
#stats {
    background-color: var(--secondary-color);
    color: white;
    display: flex;
    justify-content: space-around;
    border-radius: var(--radius);
    text-align: center;
    /* Étendre le fond sur toute la largeur si désiré, sinon garder container */
}

.stat-item strong {
    display: block;
    font-size: 3rem;
    color: var(--primary-color); /* ou Blanc ou Accent */
    font-weight: 800;
}

/* =========================================
   9. FORMULAIRE DE CONTACT
   ========================================= */
form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

form input, 
form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

form input:focus, 
form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

form textarea {
    min-height: 150px;
    resize: vertical;
}

form button {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

form button:hover {
    background-color: var(--primary-dark);
}

.contact-info {
    text-align: center;
    margin-top: 20px;
}

/* =========================================
   10. FOOTER
   ========================================= */
footer {
    background-color: var(--secondary-color);
    color: #94a3b8;
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
}

/* =========================================
   11. RESPONSIVE (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    nav {
        flex-direction: column;
        padding: 15px;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .cta-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-cta, .btn-secondary {
        text-align: center;
    }
    
    #stats {
        flex-direction: column;
        gap: 30px;
    }
}

/* --- CSS POUR SECTION SEO CMBG --- */

#cmbg-seo-services {
    padding: 60px 20px;
    background-color: #f9f9f9; /* Gris très clair pour détacher la section */
    font-family: 'Arial', sans-serif; /* À adapter à votre police */
}

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

.seo-header {
    text-align: center;
    margin-bottom: 50px;
}

.seo-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.seo-intro {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Grille Responsive */
.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Cartes Services */
.seo-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #3498db; /* Bleu standard web */
    display: flex;
    flex-direction: column;
}

.seo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.seo-card.featured {
    border-top: 4px solid #e74c3c; /* Rouge pour mettre en avant le contenu */
    background-color: #fff;
    position: relative;
}

.seo-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: center;
}

.seo-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.seo-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.seo-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.seo-list li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    color: #555;
}

.seo-list li::before {
    content: "✔";
    color: #27ae60;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Boutons */
.seo-btn {
    display: block;
    text-align: center;
    background-color: #3498db;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.seo-btn:hover {
    background-color: #2980b9;
}

.seo-card.featured .seo-btn {
    background-color: #e74c3c;
}

.seo-card.featured .seo-btn:hover {
    background-color: #c0392b;
}

/* Mobile */
@media (max-width: 768px) {
    .seo-header h2 {
        font-size: 2rem;
    }
}