/* Variables CSS */
:root {
    --primary-blue: #0A2E65; /* Bleu foncé pour le fond et textes principaux */
    --secondary-blue: #0F3D82; /* Un peu plus clair pour certains éléments */
    --orange: #FF7B00; /* Orange vif pour les boutons et accents */
    --light-grey: #F5F5F5; /* Gris très clair pour les fonds de section */
    --medium-grey: #E0E0E0; /* Gris moyen pour bordures/separateurs */
    --dark-grey-text: #333333; /* Texte sombre */
    --light-grey-text: #666666; /* Texte gris clair */
    --white: #FFFFFF;
}

/* Base styles */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--dark-grey-text);
    background-color: var(--white);
    overflow-x: hidden; /* Empêche le scroll horizontal indésirable */
}

a {
    text-decoration: none;
    color: var(--primary-blue);
}

a:hover {
    color: var(--orange);
}

/* Utility classes */
.btn-primary {
    background-color: var(--orange);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #E66A00; /* Un orange légèrement plus foncé */
}

.highlight {
    color: var(--primary-blue);
    font-weight: 700;
}

/* --- Navbar --- */
.navbar {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Pousse les éléments aux extrémités */
    align-items: center;
    padding: 0 20px;
    flex-wrap: nowrap; /* EMPÊCHE la navigation de passer à la ligne sur les grands écrans */
    min-height: 60px; /* Assure une hauteur minimale si les polices sont petites */
}

.navbar .logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    /* TRÈS IMPORTANT : Réduire drastiquement la taille de la police du logo */
    font-size: 1.5em; /* Réduit encore la taille, ex: de 1.2em à 1em */
    white-space: nowrap; /* Empêche le texte du logo de passer à la ligne */
    flex-shrink: 0; /* Empêche le logo de rétrécir */
}

.navbar .logo img {
    /* Si vous utilisez une image de Frank Leboeuf, ajustez sa taille ici */
    height: 40px; /* Taille de l'icône */
    margin-right: 8px;
    border-radius: 50%;
}

.navbar .nav-links {
    flex-grow: 1; /* Permet à la navigation de prendre l'espace disponible */
    display: flex;
    justify-content: flex-end; /* Aligne les liens à droite */
    align-items: center;
    /* Ajoutez un peu de marge ici pour séparer le logo de la nav, si nécessaire */
    margin-left: 15px; /* Pour l'espacement entre le logo et les liens */
}

.navbar .nav-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* Force les liens à rester sur une seule ligne */
}

.navbar .nav-links ul li {
    /* Réduire l'espacement entre les liens */
    margin-left: 15px; /* Était 20px, réduisons */
}

.navbar .nav-links ul li a {
    color: var(--white);
    font-weight: 600;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    white-space: nowrap; /* Empêche les liens de passer à la ligne */
    font-size: 0.95em; /* Optionnel: Réduire légèrement la taille de police des liens */
}

.navbar .nav-links ul li a:hover {
    color: var(--orange);
}

.navbar .nav-links ul li .dropdown-toggle i {
    margin-left: 5px;
    font-size: 0.8em;
}

.navbar .nav-links ul li .connect-btn {
    background-color: var(--orange);
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 0.95em; /* Assurer que le texte du bouton est de taille cohérente */
}

.navbar .nav-links ul li .connect-btn:hover {
    background-color: #E66A00;
}

.navbar .nav-links ul li .connect-btn i {
    margin-right: 8px;
}

/* --- Hero Section --- */
.hero-section {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Styles pour l'animation du titre (rapidement, simplement, facilement) */
.animated-title {
    position: relative;
    display: inline-block;
}

.animated-title .word-changer {
    color: var(--orange);
    position: relative;
    display: inline-block;
    overflow: hidden;
    padding-bottom: 5px;
}

.animated-title .word-changer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px; /* Épaisseur de la barre */
    background-color: var(--orange); /* Couleur de la barre */
    transform: translateX(-100%); /* Commence hors de vue à gauche */
    opacity: 0; /* Invisible au début */
    transition: transform 0.6s ease-out, opacity 0.6s ease-out; /* Animation de transition */
}

/* Classes pour les étapes d'animation via JS */
.animated-title .word-changer.is-visible::after {
    transform: translateX(0); /* La barre glisse en place */
    opacity: 1; /* Devient visible */
}

.animated-title .word-changer.is-hidden::after {
    transform: translateX(100%); /* La barre glisse hors de vue à droite */
    opacity: 0; /* Devient invisible */
}


.evaluation-form {
    background-color: var(--white);
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-grey-text);
}

.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-grey); /* Garde la bordure */
    border-radius: 5px; /* Garde le rayon des coins */
    font-size: 1em;
    /* RETIRE TOUTES LES LIGNES CI-DESSOUS POUR UTILISER LA FLÈCHE NATIVE DU NAVIGATEUR */
    /* appearance: none; */
    /* -webkit-appearance: none; */
    /* -moz-appearance: none; */
    /* background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20256%20512%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M256%20160v192h-256V160H256zm-128%2064l64%2064-64%2064V224z%22%2F%3E%3C%2Fsvg%3E'); */
    /* background-repeat: no-repeat; */
    /* background-position: right 15px center; */
    /* background-size: 12px; */
    cursor: pointer;
}

.evaluation-form .btn-primary {
    width: 100%;
    margin-top: 10px;
}

/* --- How It Works Section --- */
.how-it-works-section {
    background-color: var(--secondary-blue);
    color: var(--white);
    padding: 60px 20px;
}

.how-it-works-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap; /* Pour le responsive */
}

.how-it-works-content .text-block {
    flex: 1;
    min-width: 450px; /* Minimum pour éviter un écrasement */
}

.how-it-works-content .text-block h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: 700;
}

.how-it-works-content .text-block h3 {
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 30px;
    font-weight: 400;
}

.how-it-works-content .text-block ul {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.how-it-works-content .text-block ul li {
    display: flex;
    align-items: flex-start; /* Alignement en haut pour le texte long */
    margin-bottom: 25px;
}

.how-it-works-content .text-block ul li .step-number {
    background-color: var(--orange);
    color: var(--white);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    min-width: 35px; /* Pour éviter que le cercle ne se déforme */
    min-height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.2em;
    margin-right: 15px;
}

.how-it-works-content .text-block ul li h4 {
    margin: 0 0 5px 0;
    font-size: 1.3em;
    font-weight: 600;
}

.how-it-works-content .text-block ul li p {
    margin: 0;
    font-size: 1em;
    opacity: 0.9;
}

.how-it-works-content .text-block .learn-more {
    color: var(--white);
    margin-left: 20px;
    font-weight: 600;
    border-bottom: 2px solid var(--white);
    padding-bottom: 2px;
}

/* Style pour la barre d'évaluation dans la section "How It Works" */
.how-it-works-content .evaluation-bar-container {
    flex: 1; /* Prend l'espace disponible */
    display: flex;
    justify-content: center; /* Centre la barre horizontalement */
    align-items: center; /* Centre la barre verticalement */
    min-width: 300px; /* Assure une largeur minimale */
}

.evaluation-bar {
    background-color: var(--white);
    color: var(--dark-grey-text);
    padding: 20px 40px; /* Ajustez le padding pour la taille désirée */
    border-radius: 40px; /* Pour un effet de pilule arrondie */
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    font-size: 1.5em; /* Taille de la police pour "Évaluation Rapide" */
    font-weight: 600;
    text-align: center;
    transform: rotate(5deg); /* Légère rotation comme sur l'image */
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
    min-width: 300px; /* Largeur minimale de la barre */
    max-width: 450px; /* Largeur maximale pour éviter qu'elle ne soit trop étirée */
}


/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--light-grey);
    padding: 60px 20px;
    text-align: center;
}

.testimonials-section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--dark-grey-text);
    font-weight: 700;
}

.testimonials-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    scroll-snap-type: x mandatory; /* Pour un défilement fluide */
    padding-bottom: 20px; /* Espace pour le scrollbar */
}

.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: left;
    flex: 0 0 275px; /* Taille fixe pour les cartes */
    scroll-snap-align: start;
    position: relative;
    padding-top: 60px; /* Espace pour le badge vérifié et étoiles */
}

.testimonial-card .rating {
    position: absolute;
    top: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    color: #FFD700; /* Jaune or pour les étoiles */
    font-size: 1.1em;
}

.testimonial-card .rating i {
    margin-right: 3px;
}

.testimonial-card .rating span {
    color: #28A745; /* Vert pour "Vérifié" */
    font-weight: 600;
    font-size: 0.9em;
    margin-left: 10px;
}

.testimonial-card h4 {
    font-size: 1.3em;
    margin-top: 15px;
    margin-bottom: 10px;
    color: var(--primary-blue);
    font-weight: 600;
}

.testimonial-card p {
    font-size: 0.95em;
    color: var(--light-grey-text);
    margin-bottom: 15px;
}

.testimonial-card .author {
    font-size: 0.85em;
    color: var(--dark-grey-text);
    font-weight: 600;
}

.testimonials-section .trustpilot-info {
    margin-top: 30px;
    font-size: 0.95em;
    color: var(--light-grey-text);
}

.testimonials-section .trustpilot-info .bold {
    font-weight: 700;
    color: var(--dark-grey-text);
}

.testimonials-section .trustpilot-logo {
    margin-top: 15px;
}

.testimonials-section .trustpilot-logo img {
    max-width: 120px; /* Ajustez la taille du logo */
    height: auto;
}

.testimonials-section .arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7); /* Fond blanc semi-transparent */
    color: var(--dark-grey-text); /* Couleur de l'icône (chevron) en gris foncé */
    border: none;
    border-radius: 50%; /* Pour qu'elles soient rondes */
    width: 40px; /* Taille du cercle */
    height: 40px; /* Taille du cercle */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15); /* Ombre plus légère */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 50;
}

.testimonials-section .arrow-btn:hover {
    background-color: var(--white); /* Devient blanc opaque au survol */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); /* Ombre plus prononcée au survol */
}

/* Ajustez les positions si nécessaire */
.testimonials-section .arrow-btn.left {
    left: 20px;
}

.testimonials-section .arrow-btn.right {
    right: 20px;
}


/* --- Footer --- */
footer {
    background-color: var(--dark-grey-text);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

footer .footer-links a {
    color: var(--white);
    margin-left: 20px;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

footer .footer-links a:hover {
    color: var(--orange);
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    /* Navbar */
    .navbar-container {
        flex-direction: column; /* Revenir en colonne sur petits écrans */
        align-items: flex-start; /* Aligner les éléments à gauche en mode colonne */
        padding: 15px;
        flex-wrap: wrap; /* Permet aux éléments de passer à la ligne sur petits écrans */
    }
    .navbar .logo {
        margin-bottom: 15px;
        font-size: 1.4em; /* On peut augmenter un peu la taille du logo sur les écrans intermédiaires */
        width: 100%; /* Permet au logo de prendre toute la largeur s'il est le seul sur la ligne */
        justify-content: center; /* Centre le logo en mode colonne */
    }
    .navbar .nav-links {
        width: 100%; /* Prend toute la largeur disponible */
        justify-content: center; /* Centre les liens de navigation */
        margin-left: 0; /* Enlever la marge latérale en mode colonne */
    }
    .navbar .nav-links ul {
        flex-wrap: wrap; /* Permet aux liens de passer à la ligne si l'espace est insuffisant */
        justify-content: center; /* Centre les liens lorsqu'ils sont sur plusieurs lignes */
    }
    .navbar .nav-links ul li {
        margin: 5px 10px; /* Ajuste les marges */
    }

    /* Hero Section */
    .hero-section {
        padding: 60px 20px;
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1.1em;
    }
    .evaluation-form {
        padding: 20px;
    }

    /* How It Works Section */
    .how-it-works-content {
        flex-direction: column;
        text-align: center;
    }
    .how-it-works-content .text-block {
        min-width: unset; /* Annule le min-width pour mobile */
        width: 100%;
        padding: 0;
    }
    .how-it-works-content .text-block ul {
        text-align: left; /* Garde l'alignement à gauche pour les listes */
        padding-left: 20px;
    }

    /* Nouvelle barre d'évaluation */
    .how-it-works-content .evaluation-bar-container {
        width: 100%;
        margin-top: 30px; /* Espace entre le texte et la barre en mode colonne */
    }
    .evaluation-bar {
        font-size: 1.2em; /* Réduit la taille de la police sur tablette */
        padding: 15px 30px;
        transform: rotate(0deg); /* Enlève la rotation sur les petits écrans */
        min-width: 250px;
        max-width: 90%; /* Prend une bonne partie de la largeur */
    }


    /* Testimonials Section */
    .testimonials-container {
        flex-direction: column;
        align-items: center;
        overflow-x: visible; /* Pas besoin de scroll sur mobile si en colonne */
        scroll-snap-type: none;
    }
    .testimonial-card {
        flex: 0 0 auto; /* Pour ne pas avoir de largeur fixe */
        width: 90%;
        margin-bottom: 20px;
    }
    .testimonials-section .arrow-btn {
        display: none; /* Cache les flèches sur mobile */
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 15px;
    }
    footer .footer-links a {
        margin: 0 10px;
    }
}

@media (max-width: 600px) {
    /* Navbar */
    .navbar .logo {
        font-size: 1.2em; /* Réduire encore sur très petits écrans */
    }
    .navbar .nav-links ul li a {
        font-size: 0.9em; /* Réduire la taille des liens */
        padding: 5px 8px; /* Ajuster le padding des boutons */
    }
    .navbar .nav-links ul li .connect-btn {
        padding: 6px 12px;
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 2em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .evaluation-form {
        padding: 20px;
    }

    /* How It Works Section */
    .how-it-works-content .text-block h2 {
        font-size: 1.8em;
    }
    .how-it-works-content .text-block h3 {
        font-size: 1.5em;
    }
    .how-it-works-content .text-block ul li h4 {
        font-size: 1.1em;
    }
    .how-it-works-content .text-block ul li p {
        font-size: 0.9em;
    }

    /* Nouvelle barre d'évaluation */
    .evaluation-bar {
        font-size: 1.1em; /* Réduit encore sur mobile */
        padding: 12px 25px;
    }

    /* Testimonials Section */
    .testimonials-section h2 {
        font-size: 2em;
    }
    .testimonial-card {
        padding: 25px;
        padding-top: 50px;
    }
    .testimonial-card .rating {
        top: 25px;
        left: 25px;
        font-size: 1em;
    }
}