/* --- STYLES DE BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif; /* Tu pourras changer pour une police plus moderne plus tard */
}

body {
    /* Le fameux fond dégradé rouge de tes images */
    background: linear-gradient(to right, #e60000, #5a1010);
    color: white;
    min-height: 100vh;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll; /* Force la barre de défilement à toujours rester visible pour éviter les sauts d'écran */
}

/* --- EN-TÊTE --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 8%;
}

.logo h1 {
    font-size: 24px;
    letter-spacing: 2px;
}

.logo p {
    font-size: 10px;
    letter-spacing: 5px;
    margin-top: -5px;
}

/* --- NAVIGATION (MENU EN HAUT À DROITE) --- */
nav a {
    color: white;
    text-decoration: none;
    margin-left: 15px; /* L'espace entre les boutons */
    font-size: 16px; /* Texte légèrement plus grand (c'était 14px) */
    padding: 8px 18px; /* L'espace invisible autour du texte qui deviendra blanc au survol */
    border-radius: 25px; /* Pour faire un bel arrondi façon "pilule" */
    transition: all 0.3s ease; /* Animation fluide pour la couleur et le fond */
}

/* L'effet magique quand on passe la souris */
nav a:hover {
    background-color: white; /* Le fond devient blanc */
    color: #cc0000; /* Le texte prend le rouge de ton arrière-plan */
    text-decoration: none; /* On s'assure qu'il n'y a pas de soulignement */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2); /* Petite ombre discrète */
}

/* Le style pour la page où on se trouve actuellement (Accueil) */
nav a.active {
    /* Au lieu du font-weight: bold qui décale tout, on utilise cette astuce : */
    text-shadow: 0 0 1px white, 0 0 1px white; 
    text-decoration: none;
}

/* --- SECTION ACCUEIL --- */
.hero-section {
    text-align: center;
    padding: 50px 8%;
}

.main-title {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 50px;
    line-height: 1.2;
}

/* --- GALERIE PHOTOS --- */
.photo-gallery {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Style temporaire pour les photos en attendant que tu mettes tes vraies images */
.photo-placeholder {
    width: 180px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* --- SECTION AVIS --- */
.reviews-section {
    padding: 50px 10%;
    text-align: center;
    padding-bottom: 80px;
}

.reviews-title {
    font-size: 24px;
    margin-bottom: 40px;
    font-weight: normal;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 colonnes comme sur ta photo */
    gap: 20px;
    text-align: left;
}

/* 1. On prépare la carte pour qu'elle retienne les étoiles */
.review-card {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: 100%; 
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* <-- TRÈS IMPORTANT : C'est ce qui permet de bloquer les étoiles dans le coin de cette carte */
}

.review-card:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* 2. On place les étoiles et on les agrandit */
.stars {
    position: absolute; /* Détache les étoiles du texte */
    top: 25px; /* Distance par rapport au bord haut */
    right: 25px; /* Distance par rapport au bord droit */
    color: white; 
    font-size: 24px; /* Étoiles plus grandes (c'était 20px) */
    letter-spacing: 2px;
}

/* 3. On agrandit le texte et on lui laisse de la place en haut */
.review-text {
    font-size: 16px; /* Texte plus grand et lisible (c'était 14px) */
    line-height: 1.6; /* Aère un peu l'espacement entre les lignes */
    margin-top: 35px; /* Pousse le texte vers le bas pour ne pas qu'il touche les étoiles */
    margin-bottom: 20px;
    font-style: normal; /* Sur ta maquette le texte est droit, j'ai enlevé l'italique */
    flex-grow: 1; 
}

.review-author {
    font-weight: bold;
    font-size: 14px;
    display: block; /* Pour qu'il se mette à la ligne */
}

/* Version Mobile : on passe à 1 seule colonne sur les petits écrans */
@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    header {
        flex-direction: column;
        gap: 20px;
    }
    nav a {
        margin: 0 10px;
    }
}

/* --- SECTION SERVICES --- */
.services-section {
    padding: 60px 10%;
    text-align: center;
}

.title-container {
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15); /* Le fond légèrement transparent derrière le titre */
    padding: 10px 30px;
    border-radius: 8px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes */
    gap: 15px; /* L'espace entre les carrés blancs */
    margin-bottom: 60px;
}

.service-card {
    background-color: white;
    color: #333; /* Texte gris foncé/noir */
    border-radius: 5px;
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
}

/* Espaces gris temporaires pour tes photos */
.service-img-placeholder {
    height: 160px;
    background-color: #dcdcdc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
}

.service-content {
    padding: 20px;
    flex-grow: 1;
}

.service-content h4 {
    color: #8b0000; /* Rouge foncé pour les titres des services */
    margin-bottom: 10px;
    font-size: 16px;
}

.service-content p {
    font-size: 14px;
    line-height: 1.4;
}

/* --- CARTE DE FRANCE --- */
.france-map-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    text-align: left;
    margin-top: 30px;
}

.map-placeholder {
    font-size: 150px; /* Grand emoji en attendant ta vraie carte */
    filter: grayscale(100%) brightness(200%); /* Pour le rendre un peu blanc */
}

.map-text h3 {
    font-size: 32px;
    line-height: 1.3;
    font-weight: bold;
}

/* --- RESPONSIVE (POUR LES TÉLÉPHONES) --- */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* Passe à 2 colonnes sur tablette */
    }
    .france-map-section {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr; /* Passe à 1 colonne sur téléphone */
    }
}

/* --- FORMULAIRE MULTI-ÉTAPES --- */
.quote-section {
    padding: 60px 10%; /* On réduit les marges sur les côtés (c'était 5%) */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-container {
    width: 100%;
    max-width: 96%; /* Le formulaire prend désormais 96% de la largeur de l'écran ! */
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Barre de progression */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-bottom: 15px;
}

.step-indicator {
    color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s;
}

.step-indicator.active {
    color: white;
}

/* Les étapes */
.form-step {
    display: none; /* Cache toutes les étapes par défaut */
    animation: fadeIn 0.5s;
}

.form-step.active {
    display: block; /* Affiche uniquement l'étape active */
}

.form-step h3 {
    margin-bottom: 25px;
    font-size: 22px;
    border-bottom: 1px dashed rgba(255,255,255,0.3);
    padding-bottom: 10px;
    display: inline-block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Structure des champs */
.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
    width: 100%;
}

.form-group.half {
    width: 50%;
}

.form-group label {
    display: block;
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: bold;
}

/* Style des champs de saisie */
.multi-step input[type="text"],
.multi-step input[type="email"],
.multi-step input[type="tel"],
.multi-step input[type="number"],
.multi-step textarea,
.custom-select {
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: background-color 0.3s, border 0.3s;
}

.custom-select option {
    background-color: #5a1010; /* Fond rouge foncé pour la liste déroulante */
    color: white;
}

.multi-step ::placeholder { color: rgba(255, 255, 255, 0.6); }
.multi-step input:focus, .multi-step textarea:focus, .custom-select:focus {
    background-color: rgba(255, 255, 255, 0.4);
    border-color: white;
}

/* Boutons Radio stylisés (Étape 1) */
.radio-cards {
    display: flex;
    gap: 15px;
}

.radio-card {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.radio-card:hover { background-color: rgba(255, 255, 255, 0.3); }
.radio-card input { display: none; } /* Cache le petit rond de base */
.radio-card input:checked + span { font-weight: bold; }
.radio-card:has(input:checked) {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.4);
}

.radio-card span { font-size: 18px; color: white; }

/* Boutons Suivant/Précédent */
.btn-group { margin-top: 30px; display: flex; }
.btn-group.right { justify-content: flex-end; }
.btn-group.split { justify-content: space-between; }

.btn-next, .btn-prev, .submit-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-next, .submit-btn {
    background-color: white;
    color: #8b0000;
}

.btn-prev {
    background-color: rgba(255,255,255,0.2);
    color: white;
}

.btn-next:hover, .submit-btn:hover { transform: scale(1.05); }
.btn-prev:hover { background-color: rgba(255,255,255,0.3); }

/* Responsive (Mobile) */
@media (max-width: 768px) {
    .form-row { flex-direction: column; gap: 0; }
    .form-group.half { width: 100%; }
    .radio-cards { flex-direction: column; }
    .progress-bar { font-size: 12px; flex-wrap: wrap; gap: 10px; }
}

/* Style des boutons radio */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* Style du bouton de validation */
.submit-container {
    text-align: center;
    margin-top: 40px;
}

.submit-btn {
    background-color: white;
    color: #8b0000; /* Texte rouge foncé */
    border: none;
    padding: 12px 35px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px; /* Bouton arrondi en forme de pilule */
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.submit-btn:hover {
    background-color: #f0f0f0;
    transform: scale(1.05); /* Petit effet de zoom au survol */
}

/* --- ADAPTATION DES IMAGES --- */
.hero-photo {
    width: 220px; /* On agrandit la largeur (c'était 180px) */
    height: 350px; /* On agrandit la hauteur (c'était 300px) */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease; /* Prépare l'animation */
}

/* Le petit effet bonus au survol */
.hero-photo:hover {
    transform: scale(1.03); 
}

.service-img {
    width: 100%;
    height: 280px; /* On a agrandi la zone de la photo */
    object-fit: cover; /* Remplissage sans déformer */
    object-position: center; /* Centre l'image pour éviter de couper les têtes ou le bas */
    display: block;
}

.france-map-img {
    width: 100%;
    max-width: 400px; /* Taille maximale de la carte */
    height: auto;
}

/* --- FOOTER --- */
.site-footer {
    background-color: #222222; /* Le gris très foncé de ta maquette */
    color: #cccccc;
    padding: 40px 10% 20px 10%;
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: flex-start; /* Aligne le bloc sur la gauche */
    margin-bottom: 40px;
    text-align: left;
}

.footer-contact h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-contact p {
    margin-bottom: 8px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #444; /* La petite ligne de séparation */
    padding-top: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    margin-left: 30px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* --- MENTIONS LÉGALES --- */
.legal-section {
    padding: 40px 10%;
    max-width: 1000px;
    margin: 0 auto; /* Pour centrer le texte au milieu de l'écran */
    text-align: left;
    line-height: 1.6;
}

.legal-section h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.legal-section h3 {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 10px;
    font-weight: bold;
}

.legal-section p {
    margin-bottom: 15px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 15px;
    }
    .footer-links a {
        margin-left: 0;
    }
}

/* --- STYLE DU LOGO IMAGE --- */
.site-logo {
    max-height: 50px; /* C'est la hauteur idéale pour ton en-tête. Tu peux mettre 60px ou 40px si tu le veux plus ou moins grand */
    width: auto; /* Garde les bonnes proportions sans écraser l'image */
    display: block;
    transition: transform 0.3s ease; /* Prépare une petite animation */
}

/* Petit effet sympa : le logo grossit très légèrement quand on passe la souris dessus */
.site-logo:hover {
    transform: scale(1.05);
}

/* --- PAGE ESTIMATION RAPIDE --- */
.estimation-section {
    padding: 60px 5%;
}

.estimation-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.estimation-box {
    flex: 1; /* Prend la moitié de l'espace */
    display: flex;
    flex-direction: column;
}

/* --- Style des champs d'estimation --- */
.estimation-box label {
    display: block;
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: bold;
}

.estimation-box input[type="text"],
.estimation-box select {
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.25); /* Fond transparent */
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px; /* Bords arrondis */
    color: white;
    font-size: 16px;
    outline: none;
    transition: background-color 0.3s, border 0.3s;
}

.estimation-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.estimation-box input:focus, 
.estimation-box select:focus {
    background-color: rgba(255, 255, 255, 0.4);
    border-color: white;
}

.map-box {
    flex: 1; /* Prend l'autre moitié */
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.3);
}

#map {
    height: 100%;
    min-height: 400px;
    width: 100%;
    /* Petit effet pour adoucir les couleurs de la carte avec ton site rouge */
    filter: brightness(0.9) contrast(1.1); 
}

.resultat-box {
    display: none; /* Caché jusqu'à ce qu'on clique sur calculer */
    margin-top: 30px;
    background-color: rgba(0, 0, 0, 0.3); /* Fond noir transparent pour faire ressortir le prix */
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    animation: fadeIn 0.5s;
}

.resultat-box h4 {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 10px;
}

.prix-geant {
    font-size: 50px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

.distance-info {
    font-size: 16px;
    margin-bottom: 20px;
}

.disclaimer {
    font-size: 13px;
    color: #ffcccc; /* Un rouge très clair */
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.4;
    text-align: left;
    background: rgba(255,0,0,0.2);
    padding: 10px;
    border-radius: 5px;
}

.btn-devis-lien {
    display: inline-block;
    background-color: white;
    color: #cc0000;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
}

.btn-devis-lien:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255,255,255,0.4);
}

/* Cache le logo moche de Leaflet Routing Machine */
.leaflet-routing-container {
    display: none !important;
}

/* Mode téléphone et petite tablette */
@media (max-width: 900px) {
    .estimation-wrapper {
        display: flex;
        flex-direction: column; /* SUPER IMPORTANT : Empile le formulaire et le résultat à la verticale */
        gap: 20px; /* On réduit l'espace entre les blocs */
        width: 100%;
        max-width: 96%;
        margin: 0 auto;
        background-color: rgba(255, 255, 255, 0.1);
        padding: 20px; /* On réduit fortement les marges intérieures pour gagner de la place */
        border-radius: 15px;
    }
}
