/* ==========================================================================
   1. VARIABLES & CONFIGURATION GLOBALE
   ========================================================================== */
:root {
    --primary: #1e40af;    /* Bleu plus soutenu pour un contraste maximal */
    --accent: #ea580c;     /* Orange vif : Excellent contraste avec le bleu pour les daltoniens */
    --dark: #0f172a;       /* Presque noir, parfait pour la lisibilité */
    --light: #f0f5ff;      /* CORRIGÉ : Un bleu TRÈS clair/pastel pour le fond (lisible et doux) */
    --gray-text: #475569;  /* CORRIGÉ : Un gris plus foncé pour passer les tests de contraste */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

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

/* ==========================================================================
   2. BARRE DE NAVIGATION & COMPOSANTS
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
}

.logo {
    color: var(--primary); /* CORRIGÉ : Le logo utilise la couleur de la marque */
    font-size: 1.8rem;     /* CORRIGÉ : Taille humaine et responsive */
    font-weight: 700;
}

.navbar nav a {
    text-decoration: none;
    color: var(--dark);
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.2s;
}

.navbar nav a:hover {
    color: var(--primary); /* Micro-interaction au survol */
}

/* Bouton d'action (Lien stylisé) */
.btn-cta {
    display: inline-block;
    text-decoration: none;
    background-color: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    transition: transform 0.2s ease-in-out, background-color 0.2s;
    font-size: 1.1rem; /* CORRIGÉ : Reste gros et cliquable sans déformer la page */
}

.btn-cta:hover {
    transform: scale(1.05);
    background-color: #c2410c; /* L'orange fonce un peu au survol */
}

/* Modificateur pour le bouton de la navbar */
.navbar .text-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* ==========================================================================
   3. SECTION HERO (MOBILE-FIRST)
   ========================================================================== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 5%;
    text-align: center;
}

.hero-content {
    margin-bottom: 40px;
}

h1 {
    font-size: 2.3rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--gray-text); /* CORRIGÉ : Ce gris sur fond bleu clair est 100% lisible */
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

/* ==========================================================================
   4. AUTRES SECTIONS (FEATURES & ABOUT)
   ========================================================================== */
.features-section, .about-section {
    padding: 80px 5%;
    text-align: center;
}

.features-section h2 {
    margin-bottom: 40px;
    font-size: 2rem;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
}

.about-box {
    background: white; /* CORRIGÉ : Plus propre et plus contrasté */
    border: 2px solid #e2e8f0;
    padding: 40px;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   5. FOOTER CENTRÉ
   ========================================================================== */
footer {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--dark);
    color: #94a3b8; /* Gris clair sur fond noir : Contraste parfait */
    font-size: 0.9rem;
}

/* ==========================================================================
   6. MISE EN PAGE ÉCRANS LARGES (ORDINATEURS)
   ========================================================================== */
@media (min-width: 768px) {
    .hero {
        flex-direction: row-reverse;
        min-height: 75vh;
        align-items: center;
        text-align: left;
    }

    .hero-content {
        flex: 1;
        padding-left: 5%;
        margin-bottom: 0;
    }

    .hero-image {
        flex: 1;
        padding-right: 5%;
    }

    .features-grid {
        flex-direction: row;
    }

    .feature-card {
        flex: 1;
    }
}