:root {
    --primary-color: #0d2d5e;
    --secondary-color: #ff6b00;
    --cta-red-color: #e63946;
    --text-color: #333;
    --light-gray: #f8f9fa;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
}

/* --- STYLES GÉNÉRAUX --- */
.section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}
.section-title-accent {
    height: 4px;
    width: 70px;
    background-color: var(--secondary-color);
    margin: 0 auto 2.5rem auto;
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--primary-color);
    color: #e9ecef;
    padding: 0.6rem 0;
    font-size: 0.9rem;
    font-weight: 500;
}
.top-bar-item {
    display: inline-flex;
    align-items: center;
}
.top-bar-item i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
    font-size: 1rem;
}
.top-bar-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.top-bar-item a:hover {
    color: white;
}
.top-bar-divider {
    margin: 0 1rem;
    opacity: 0.5;
}
        
/* --- Header & Navbar --- */
/* MODIFIÉ : Ajout de padding pour aérer la barre de navigation */
.navbar { 
    background-color: #fff; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
    padding-top: 0.8rem;    /* Un peu plus d'espace en haut */
    padding-bottom: 0.8rem; /* Un peu plus d'espace en bas */
}

/* MODIFIÉ : Augmentation de la hauteur pour une meilleure visibilité */
.navbar-brand img { 
    height: 56px;
    width: auto;
    max-width: 100%;
    display: block;
}

.nav-link { color: var(--primary-color); font-weight: 500; }
.nav-link:hover { color: var(--secondary-color); }
.navbar-nav .nav-link[data-bs-toggle="modal"] { cursor: pointer; }
.btn-primary-custom { background-color: var(--secondary-color); border-color: var(--secondary-color); color: white; font-weight: bold; padding: 0.75rem 1.5rem; border-radius: 50px; }
.btn-primary-custom:hover { background-color: #e65c00; border-color: #e65c00; }

/* --- Hero Section & Form --- */
.hero-section { 
    background: linear-gradient(rgba(13, 45, 94, 0.7), rgba(13, 45, 94, 0.7)), url('images/hero.webp') no-repeat center center;
    background-size: cover; 
    color: white; 
    padding: 100px 0; 
}
.hero-section h1 { font-size: 3rem; font-weight: 700; }
.form-container { background-color: rgba(255, 255, 255, 0.9); padding: 2rem; border-radius: 10px; }
.form-container h2, .form-container h3 { color: var(--primary-color); font-weight: 700; text-align: center; }
.form-container { scroll-margin-top: 120px; transition: box-shadow .3s; }
.form-container.is-highlight { animation: form-glow 1.6s ease-out; }
@keyframes form-glow { 0% { box-shadow: 0 0 0 0 rgba(255,107,0,.7); } 100% { box-shadow: 0 0 0 18px rgba(255,107,0,0); } }
.radio-group { display: flex; justify-content: space-around; margin-bottom: 1.5rem; }
.radio-group input[type="radio"] { display: none; }
.radio-group label { color: var(--primary-color); font-weight: 500; display: flex; align-items: center; cursor: pointer; }
.radio-group label::before { content: ''; display: inline-block; width: 18px; height: 18px; border: 2px solid var(--primary-color); border-radius: 50%; margin-right: 8px; transition: all 0.2s ease-in-out; }
.radio-group input[type="radio"]:checked + label::before { background-color: var(--secondary-color); border-color: var(--secondary-color); }
        
/* --- Section Formules / Tarifs --- */
.pricing-card { background-color: white; border-radius: 20px; padding: 2.5rem 2rem; text-align: center; border: 1px solid #e9ecef; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); height: 100%; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.pricing-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); }
.pricing-card .card-body { flex-grow: 1; display: flex; flex-direction: column; }
.pricing-icon { font-size: 3.5rem; color: var(--primary-color); margin-bottom: 1.5rem; }
.pricing-card h5 { color: var(--secondary-color); font-weight: 700; margin-bottom: 1rem; }
.pricing-card p { color: #6c757d; flex-grow: 1; }

/* --- Section Réalisations en Chiffres --- */
.stat-icon-wrapper { display: inline-flex; align-items: center; justify-content: center; width: 80px; height: 80px; background-color: var(--primary-color); border-radius: 50%; color: white; font-size: 2.5rem; margin-bottom: 1rem; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.stat-icon-wrapper.highlight { background-color: var(--secondary-color); }
.stat-number { font-size: 3rem; font-weight: 700; color: var(--secondary-color); line-height: 1; }
.stat-label { font-weight: 500; color: var(--primary-color); margin-top: 0.5rem; margin-bottom: 0.25rem; line-height: 1.4; }
.stat-item { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.stat-item.is-visible { opacity: 1; transform: translateY(0); }
.stat-item.is-visible:nth-child(2) { transition-delay: 0.1s; }
.stat-item.is-visible:nth-child(3) { transition-delay: 0.2s; }
.stat-item.is-visible:nth-child(4) { transition-delay: 0.3s; }
.stat-item.is-visible:nth-child(5) { transition-delay: 0.4s; }
.stat-item.is-visible:nth-child(6) { transition-delay: 0.5s; }

/* --- Section Services --- */
.service-card { background-color: white; padding: 2.5rem 1rem; border-radius: 15px; border: 1px solid #eee; box-shadow: 0 5px 15px rgba(0,0,0,0.04); text-align: center; height: 100%; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-icon-wrapper { width: 90px; height: 90px; background-color: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; transition: background-color 0.3s ease, transform 0.3s ease; }
.service-icon-wrapper i { font-size: 2.5rem; color: white; }
.service-title { color: var(--primary-color); font-weight: 500; font-size: 1.1rem; transition: color 0.3s ease; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 12px 25px rgba(0,0,0,0.1); }
.service-card:hover .service-icon-wrapper { background-color: var(--secondary-color); transform: scale(1.05); }
.service-card:hover .service-title { color: var(--secondary-color); }

/* --- Section Notre Équipe --- */
.team-section .image-gallery-container { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); }
.team-section .gallery-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.5s ease-in-out; }
.team-section .gallery-image.active { opacity: 1; }
.btn-cta { background-color: var(--secondary-color); border-color: var(--secondary-color); color: white; padding: 0.75rem 1.5rem; border-radius: 50px; text-decoration: none; font-weight: bold; display: inline-flex; align-items: center; gap: 0.5rem; transition: background-color 0.3s, border-color 0.3s; }
.btn-cta:hover { background-color: #e65c00; border-color: #e65c00; color: white; }

/* --- Section Zones Desservies --- */
.gov-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.gov-grid li { display: flex; align-items: center; gap: .55rem; background: #fff; border: 1px solid #e6ebf2; border-radius: 10px; padding: .6rem .85rem; color: var(--primary-color); font-weight: 500; transition: border-color .2s, box-shadow .2s, transform .2s; }
.gov-grid li:hover { border-color: var(--secondary-color); box-shadow: 0 6px 16px rgba(13,45,94,.08); transform: translateY(-2px); }
.gov-grid li i { color: var(--secondary-color); font-size: .9rem; }
@media (max-width: 767.98px) { .gov-grid { grid-template-columns: repeat(2, 1fr); } }

.map-card { position: relative; background: radial-gradient(circle at 70% 30%, #e8eef8 0%, #f4f7fb 60%, #fff 100%); border: 1px solid #e6ebf2; border-radius: 24px; padding: 2rem 1.5rem 4.5rem; box-shadow: 0 15px 40px rgba(13,45,94,.08); }
.map-wrap { position: relative; width: 62%; max-width: 290px; margin: 0 auto; }
.map-wrap img { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 18px rgba(13,45,94,.25)); }
.map-pin { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--secondary-color); border: 2px solid #fff; cursor: pointer; animation: pin-pulse 2.4s infinite; transition: transform .2s; z-index: 1; }
.map-pin .pin-label { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap; background: var(--primary-color); color: #fff; font-size: .75rem; font-weight: 700; padding: .15rem .5rem; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .2s; }
.map-pin:hover, .map-pin:focus, .map-pin.is-active { transform: scale(1.6); z-index: 5; outline: none; animation: none; }
.map-pin:hover .pin-label, .map-pin:focus .pin-label, .map-pin.is-active .pin-label { opacity: 1; transform: translateX(-50%) scale(.625); transform-origin: bottom center; }
.gov-grid li.is-active { border-color: var(--secondary-color); box-shadow: 0 6px 16px rgba(13,45,94,.08); }
@keyframes pin-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,107,0,.55); } 70% { box-shadow: 0 0 0 12px rgba(255,107,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,107,0,0); } }
.map-badge { position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%); background: var(--primary-color); color: #fff; padding: .45rem 1.1rem; border-radius: 50px; font-size: .95rem; white-space: nowrap; }
.map-badge strong { color: var(--secondary-color); font-size: 1.15rem; margin-right: .2rem; }
@media (prefers-reduced-motion: reduce) { .map-pin { animation: none; } }

/* --- Footer --- */
.footer { background-color: var(--primary-color); color: white; padding: 4rem 0; }
.footer h5 { color: var(--secondary-color); text-transform: uppercase; margin-bottom: 1.5rem; }
.footer a { color: #ccc; text-decoration: none; }
.footer a:hover { color: white; }
.footer .list-unstyled li { margin-bottom: 0.5rem; }
.footer .list-unstyled a[data-bs-toggle="modal"] { cursor: pointer; }

/* ===================== AJOUTS SEO / CONVERSION ===================== */
.skip-link { position: absolute; left: 8px; top: 8px; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 6px; }
.top-bar-item .fa-whatsapp { color: #25d366; }
h1, h2, h3 { text-wrap: balance; }

/* Boutons */
.btn-cta-light { background: #fff; color: var(--primary-color); border-color: #fff; }
.btn-cta-light:hover { background: #e9ecef; color: var(--primary-color); border-color: #e9ecef; }
.btn-cta-wa { background: #25d366; border-color: #25d366; }
.btn-cta-wa:hover { background: #1ebe5a; border-color: #1ebe5a; }

/* Hero accueil */
.hero-section .lead { color: #f1f5fb; }
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { margin-bottom: .5rem; font-weight: 500; }
.check-list i { color: var(--secondary-color); margin-right: .5rem; }
@media (max-width: 991.98px) {
    .hero-section { padding: 48px 0; }
    .hero-section h1 { font-size: 2.1rem; }
}

/* Formulaire 2 étapes */
.form-container { background-color: rgba(255,255,255,.96); box-shadow: 0 12px 40px rgba(0,0,0,.2); color: var(--text-color); }
.form-sub { text-align: center; color: #6c757d; margin-bottom: .8rem; font-size: .95rem; }
.steps-indicator { display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }
.steps-indicator .dot { width: 28px; height: 28px; border-radius: 50%; background: #dee2e6; color: #6c757d; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.steps-indicator .dot.active { background: var(--secondary-color); color: #fff; }
.steps-indicator .bar { width: 60px; height: 3px; background: #dee2e6; margin: 0 8px; }
.btn-back { color: var(--primary-color); text-decoration: none; }
.form-alt { text-align: center; font-size: .9rem; margin: 1rem 0 0; color: #6c757d; }
.form-alt a { color: var(--primary-color); font-weight: 500; }
.form-control:focus, .form-select:focus { border-color: var(--secondary-color); box-shadow: 0 0 0 .2rem rgba(255,107,0,.2); }

/* Bandeau CTA */
.cta-band { background: var(--primary-color); color: #fff; padding: 3rem 0; }
.cta-band h2 { font-weight: 700; font-size: 1.7rem; }

/* WhatsApp flottant + barre mobile */
.wa-float { position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; align-items: center; justify-content: center; font-size: 2rem; box-shadow: 0 6px 18px rgba(0,0,0,.3); z-index: 1030; text-decoration: none; }
.wa-float:hover { color: #fff; transform: scale(1.08); }
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; box-shadow: 0 -2px 12px rgba(0,0,0,.2); }
.mobile-bar a { flex: 1; text-align: center; padding: .85rem; color: #fff; font-weight: 700; text-decoration: none; }
.mobile-bar .mb-call { background: var(--primary-color); }
.mobile-bar .mb-wa { background: #25d366; }
@media (max-width: 991.98px) { body { padding-bottom: 54px; } }

/* ===================== POP-UPS ===================== */
.fd-modal .modal-dialog { max-width: 440px; }
.fd-modal .modal-content { border: 0; border-radius: 22px; box-shadow: 0 25px 60px rgba(13,45,94,.35); overflow: hidden; }
.fd-modal .modal-content::before { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); }
.fd-modal .modal-body { padding: 2.25rem 2rem 1.75rem; text-align: center; }
.fd-close { position: absolute; top: 18px; right: 18px; z-index: 2; }
.fd-icon { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; color: #fff; background: var(--secondary-color); box-shadow: 0 10px 25px rgba(255,107,0,.35); }
.fd-icon-error { background: var(--cta-red-color); box-shadow: 0 10px 25px rgba(230,57,70,.3); }
.fd-title { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); margin-bottom: .4rem; }
.fd-text { color: #6c757d; margin-bottom: 1.25rem; }
.fd-small { font-size: .9rem; color: #6c757d; margin: 1rem 0 0; }
.fd-small a { color: #1ebe5a; font-weight: 500; text-decoration: none; }

.fd-actions { display: grid; gap: .6rem; text-align: left; }
.fd-actions-2 { grid-template-columns: 1fr 1fr; }
.fd-action { display: flex; align-items: center; gap: .85rem; padding: .8rem 1rem; border: 1px solid #e6ebf2; border-radius: 14px; color: var(--primary-color); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.fd-action:hover { border-color: var(--secondary-color); box-shadow: 0 8px 20px rgba(13,45,94,.1); transform: translateY(-2px); color: var(--primary-color); }
.fd-action strong { display: block; line-height: 1.2; }
.fd-action small { display: block; color: #6c757d; font-size: .82rem; word-break: break-all; }
.fd-action-icon { flex: 0 0 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #eef2f8; color: var(--primary-color); font-size: 1.1rem; }
.fd-action-wa .fd-action-icon { background: #e6f9ee; color: #1ebe5a; font-size: 1.35rem; }
.fd-actions-2 .fd-action { flex-direction: column; text-align: center; gap: .5rem; }
.fd-actions-2 .fd-action-icon { flex: none; width: 42px; }

.fd-steps { list-style: none; padding: 0; margin: 0 0 1.5rem; text-align: left; background: var(--light-gray); border-radius: 14px; padding: .9rem 1.1rem; }
.fd-steps li { display: flex; align-items: center; gap: .7rem; padding: .35rem 0; color: var(--primary-color); font-weight: 500; }
.fd-steps i { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: #fff; color: var(--secondary-color); display: flex; align-items: center; justify-content: center; font-size: .8rem; box-shadow: 0 2px 6px rgba(0,0,0,.06); }

.fd-check { width: 84px; height: 84px; margin: 0 auto 1rem; display: block; }
.fd-check circle { stroke: #22c55e; stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; }
.fd-check path { stroke: #22c55e; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.modal.show .fd-check circle { animation: fd-draw .6s ease-out forwards; }
.modal.show .fd-check path { animation: fd-draw .4s .5s ease-out forwards; }
@keyframes fd-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .fd-check circle, .fd-check path { stroke-dashoffset: 0 !important; animation: none !important; } }
@media (max-width: 400px) { .fd-actions-2 { grid-template-columns: 1fr; } .fd-modal .modal-body { padding: 2rem 1.25rem 1.5rem; } }
[data-success-phone] { white-space: nowrap; }

/* ===================== AVIS CLIENTS ===================== */
.btn-outline-primary-custom { border: 2px solid var(--primary-color); color: var(--primary-color); font-weight: 700; padding: .65rem 1.5rem; border-radius: 50px; background: transparent; }
.btn-outline-primary-custom:hover { background: var(--primary-color); color: #fff; }
.reviews-summary { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0 auto 2rem; padding: .9rem 1.6rem; width: fit-content; background: #fff; border: 1px solid #e6ebf2; border-radius: 50px; box-shadow: 0 8px 24px rgba(13,45,94,.06); }
.reviews-score { font-size: 2.2rem; font-weight: 700; color: var(--primary-color); line-height: 1; }
.reviews-stars { color: #ffb400; letter-spacing: 2px; }
.reviews-count { color: #6c757d; font-size: .9rem; }
.reviews-state { padding: 2rem 1rem; }
.review-card { height: 100%; display: flex; flex-direction: column;background: #fff; border: 1px solid #e6ebf2; border-radius: 18px; padding: 1.5rem; box-shadow: 0 6px 18px rgba(13,45,94,.05); transition: transform .3s, box-shadow .3s; }
.review-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(13,45,94,.1); }
.review-text { flex-grow: 1; margin: .9rem 0 1.2rem; color: var(--text-color); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 6; line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review-author { display: flex; align-items: center; gap: .75rem; }
.review-author strong { display: block; color: var(--primary-color); }
.review-author small { color: #6c757d; }
.review-avatar { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; background: var(--primary-color); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* Notation par étoiles (ordre inversé : survol = étoile + précédentes) */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .3rem; border: 0; padding: 0; margin: 0 0 .25rem; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 2.1rem; color: #d5dce7; cursor: pointer; transition: color .15s, transform .15s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #ffb400; }
.star-input label:hover { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 2px solid var(--secondary-color); outline-offset: 3px; border-radius: 4px; }
.star-hint { font-size: .9rem; color: #6c757d; margin-bottom: 1.1rem; min-height: 1.3rem; }
.star-hint.is-set { color: var(--secondary-color); font-weight: 700; }
#avis { scroll-margin-top: 90px; }
