/* --- RESET & VARIABLES --- */
:root {
    --primary-blue: #1e3a8a; /* Bleu foncé principal */
    --dark-blue: #172554;    /* Bleu très foncé pour le dégradé */
    --accent-yellow: #fbbf24; /* Jaune bouton */
    --text-white: #ffffff;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-light: #f9fafb;
    --footer-bg: #0f172a;
    
    --font-heading: 'Inter', sans-serif; 
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

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

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

ul {
    list-style: none;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}

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

.btn-text {
    color: var(--text-dark);
    font-weight: 600;
    margin-right: 15px;
}
.btn-text:hover {
    color: var(--primary-blue);
}

.btn-yellow {
    background-color: var(--accent-yellow);
    color: #1a1a1a;
    border: 2px solid var(--accent-yellow);
}
.btn-yellow:hover {
    background-color: #f59e0b;
    border-color: #f59e0b;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}
.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* --- HEADER --- */
header {
    background-color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logos {
    display: flex;
    gap: 20px; /* Espace entre les deux logos */
    align-items: center;
}

/* On ajoute ce style pour contrôler la taille des images */
.header-img {
    height: 50px; /* Ajuste cette valeur selon la hauteur souhaitée */
    width: auto;  /* Garde les proportions */
    object-fit: contain;
}

nav {
    display: none; /* Mobile first : caché sur petit écran, affiché sur desktop */
}

nav a {
    color: var(--text-gray);
    margin: 0 15px;
    font-size: 0.9rem;
}
nav a:hover { color: var(--primary-blue); }

.auth-buttons-header .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, #254a9e 0%, #1e3a8a 50%, #11235a 100%);
    color: white;
    text-align: center;
    padding-top: 80px;
    position: relative;
    /* Pour s'assurer que le SVG en bas se positionne bien */
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 60px;
}

.badge {
    background: rgba(255,255,255,0.15);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.2);
}
.dot {
    height: 8px;
    width: 8px;
    background-color: var(--accent-yellow);
    border-radius: 50%;
    display: block;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 400;
}

.highlight {
    color: var(--accent-yellow);
    font-style: italic; /* Souvent en italique avec Playfair */
}

.subtitle {
    max-width: 700px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 60px;
}

/* Stats */
.stats-grid {
    display: flex;
    gap: 60px;
    justify-content: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.icon-box {
    background: rgba(255,255,255,0.1);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.stat-item strong {
    font-size: 1.5rem;
    display: block;
}

.stat-item span {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Wave separator */
.wave-container {
    line-height: 0; /* Supprime l'espace sous le SVG */
    width: 100%;
    position: absolute;
    bottom: -1px; /* Légère correction pour éviter les lignes blanches */
    left: 0;
}
.wave-container svg {
    width: 100%;
    height: auto;
    display: block;
}

/* --- PROCESS SECTION --- */
.process {
    padding: 100px 0;
    text-align: center;
    background-color: white;
}

.section-tag {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.process h2, .cta-bottom h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #111;
    margin-bottom: 10px;
}

.section-desc {
    color: var(--text-gray);
    margin-bottom: 60px;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.steps-line {
    position: absolute;
    top: 40px; /* Centre verticalement par rapport aux icônes */
    left: 10%;
    right: 10%;
    height: 1px;
    background-color: #e5e7eb;
    z-index: 0;
}

.step {
    flex: 1;
    position: relative;
    z-index: 1;
    padding: 0 10px;
}

.step-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: #eff6ff; /* Bleu très clair */
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 1.8rem;
    color: var(--primary-blue);
    position: relative;
}

.step-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-yellow);
    color: #000;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.step h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.step p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* --- CTA BOTTOM --- */
.cta-bottom {
    background: linear-gradient(135deg, #2c4c9c 0%, #1a3066 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta-bottom h2 {
    color: white;
}

.cta-bottom p {
    max-width: 600px;
    margin: 0 auto 40px auto;
    opacity: 0.9;
}

.badge-light {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #e0f2fe;
}
.badge-light i { color: var(--accent-yellow); }

/* --- FOOTER --- */
footer {
    background-color: var(--footer-bg);
    color: #94a3b8;
    padding: 60px 0 20px 0;
    font-size: 0.9rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.contact-list li, .links-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.links-list a {
    color: #94a3b8;
}
.links-list a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
}

/* --- RESPONSIVE --- */
@media (min-width: 768px) {
    nav { display: block; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .stats-grid { flex-direction: column; gap: 30px; }
    .steps-container { flex-direction: column; gap: 40px; }
    .steps-line { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .header-content { flex-wrap: wrap; }
    .auth-buttons-header { display: none; } /* Simplification pour mobile */
}
/* --- SECTION SERVICES --- */
.services {
    padding: 80px 0;
    background-color: white;
}

/* Utilitaire pour centrer le texte d'en-tête (si pas déjà existant) */
.text-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes égales */
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    border: 1px solid #e5e7eb; /* Bordure grise très légère */
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

/* Variantes de couleurs pour les icônes */
.icon-blue {
    background-color: #eff6ff; /* Fond bleu très pâle */
    color: var(--primary-blue);
}

.icon-yellow {
    background-color: #fffbeb; /* Fond jaune très pâle */
    color: #d97706; /* Jaune ocre pour l'icône */
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #111;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Adaptation Mobile pour la grille Services */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
    }
}
/* --- SECTION BÉNÉFICES --- */
.benefits {
    padding: 80px 0;
    background-color: var(--bg-light); /* Fond gris clair pour alterner avec le blanc */
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes */
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s ease;
    /* Pour aligner le contenu si les textes sont courts */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.benefit-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #111;
    margin-bottom: 15px;
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Styles spécifiques des icônes pour cette section */
.icon-blue-gradient {
    /* Dégradé bleu comme sur l'image */
    background: linear-gradient(135deg, #60a5fa 0%, #eff6ff 100%);
    color: white;
}
/* Si on veut l'icône blanche sur fond dégradé, ou icône bleue sur fond dégradé ?
   Sur l'image, c'est une icône blanche sur un fond bleu dégradé. */
.icon-blue-gradient i {
    color: white; 
}

.icon-yellow-filled {
    background-color: #f59e0b; /* Jaune/Orange plus soutenu */
    color: white;
}

/* Adaptation Mobile pour la grille Bénéfices */
@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 par ligne sur tablette */
    }
}

@media (max-width: 600px) {
    .benefits-grid {
        grid-template-columns: 1fr; /* 1 par ligne sur mobile */
    }
}