:root {
    --blue-primary: #1E3A8A;
    --green-500: #10B981;
    --bg-light: #F3F4F6;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #1a202c;
}

.bg-blue-primary { background-color: var(--blue-primary); }
.text-blue-primary { color: var(--blue-primary); }
.border-blue-primary { border-color: var(--blue-primary); }
.hover\:bg-blue-primary:hover { background-color: var(--blue-primary); }

.bg-green-500 { background-color: var(--green-500); }
.text-green-500 { color: var(--green-500); }
.border-green-500 { border-color: var(--green-500); }
.hover\:bg-green-500:hover { background-color: var(--green-500); }

.btn-cta {
    background-image: linear-gradient(to right, #00ff00, #0000ff);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.card-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.hero-slide {
    transition: opacity 1s ease-in-out;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.hero-slide.active {
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* Cibler le lien du logo personnalisé */
.custom-logo-link {
    display: inline-block; /* Pour un bon comportement */
}

/* Cibler l'image du logo à l'intérieur du lien */
.custom-logo-link img {
    height: 50px; /* Définissez ici la hauteur désirée, ex: 50px */
    width: auto;  /* La largeur s'ajustera automatiquement pour garder les proportions */
    max-width: 180px; /* Évite que le logo devienne trop large */
}
/* Pour les écrans de moins de 768px */
@media (max-width: 767px) {
    .custom-logo-link img {
        height: 60px; /* Une hauteur légèrement plus petite pour mobile */
        width: auto;
    }
}


.footer-navigation a {
    transition: color 0.3s ease;
}

.footer-navigation a:hover {
    color: var(--green-500);
}


.service-card-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--blue-primary);
    padding: 4px;
    background-color: white;
    transition: all 0.3s ease;
}

.card-service:nth-child(even) .service-card-image {
    border-color: var(--green-500);
}

/* Nouvel effet de survol pour l'image */
.card-service:hover .service-card-image {
    border-color: white;
    transform: scale(1.1) rotate(5deg);
}

/* --- Système de Menu Mobile --- */

/* Style du body quand le menu est ouvert pour bloquer le scroll */
body.no-scroll {
    overflow: hidden;
}

/* Position et animation du menu panneau latéral */
#mobile-menu.is-open {
    transform: translateX(0);
}

/* Styles pour l'overlay (par défaut : invisible et non cliquable) */
#mobile-menu-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Styles pour l'overlay quand il est actif (visible et cliquable) */
#mobile-menu-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

/*
 * Style pour le logo à l'intérieur du panneau de menu mobile.
 * On le cible spécifiquement pour ne pas affecter le logo principal.
 */
#mobile-menu .custom-logo-link img {
    height: 45px; /* Hauteur de 45px, parfaite pour un menu mobile */
    width: auto;
    max-width: 150px; /* S'assure qu'il ne dépasse pas une certaine largeur */
}

/* --- Styles pour les filtres de la page Réalisations --- */
.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--blue-primary);
    border-radius: 9999px;
    font-weight: 600;
    color: var(--blue-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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


/* Fallback simple pour l'état actif, basé sur une classe si le JS était utilisé */
.filter-btn.active {
    background-color: var(--blue-primary);
    color: white;
}

/* ======================================= */
/* SECTION : STYLES POUR LES TÉMOIGNAGES   */
/* ======================================= */

/*
 * Style pour l'image du client dans le carrousel.
 * La classe est appliquée à la balise <img> dans front-page.php.
 * Cette règle ajoute un fond de secours si une image avec de la transparence
 * est téléversée (par exemple, un logo PNG au lieu d'une photo).
 */
.testimonial-image {
    background-color: var(--blue-primary);
}

/* 
 * AMÉLIORATION OPTIONNELLE (RECOMMANDÉ)
 * Sur les écrans très étroits, les flèches de navigation peuvent sortir de l'écran.
 * Ce code les repositionne à l'intérieur de la carte sur les mobiles
 * pour une meilleure expérience utilisateur.
 */
@media (max-width: 767px) {
    #testimonial-prev,
    #testimonial-next {
        /* On annule la translation horizontale pour les ramener à l'intérieur */
        transform: translateY(-50%); 
        
        /* On ajoute un fond semi-transparent pour qu'elles restent lisibles sur le texte */
        background-color: rgba(255, 255, 255, 0.7);
    }

    #testimonial-prev {
        left: 0.5rem; /* Décale la flèche de gauche de 8px du bord */
    }

    #testimonial-next {
        right: 0.5rem; /* Décale la flèche de droite de 8px du bord */
    }
}


/* Style pour la formulaire de devis */

/* Style de base pour les labels du formulaire */
.form-label {
    display: block;
    font-weight: 600; /* semibold */
    margin-bottom: 0.5rem; /* mb-2 */
    color: #4a5568; /* text-gray-700 */
}

/* Style de base pour les inputs, select, textarea */
.form-input {
    width: 100%;
    padding: 1rem; /* p-4 */
    border-radius: 0.5rem; /* rounded-lg */
    border: 2px solid #e2e8f0; /* border-gray-300 */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #f7fafc; /* bg-gray-100 */
}

.form-input:focus {
    outline: none;
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Style du bouton de soumission au survol */
#quote-form button:hover i {
    transform: translateX(5px);
}

/* --- Embellissement PREMIUM de la Page Devis --- */

/* Amélioration des champs du formulaire */
.form-input::placeholder {
    color: #a0aec0; /* text-gray-500 */
}

/* NOUVEAU : Validation visuelle des champs */
.form-input.is-valid {
    border-color: var(--green-500);
}

.form-input.is-invalid {
    border-color: #e53e3e; /* text-red-600 */
}

/* Style de la nouvelle section "Comment ça marche" */
.process-step {
    position: relative;
    padding: 1rem;
}
.step-icon {
    width: 4rem; /* w-16 */
    height: 4rem; /* h-16 */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem; /* mb-6 */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px; /* rounded-full */
    background-color: white;
    border: 3px solid var(--blue-primary);
    color: var(--blue-primary);
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700;
    transition: all 0.3s ease;
}
.process-step:hover .step-icon {
    background-color: var(--blue-primary);
    color: white;
    transform: scale(1.1);
}
.step-title {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700; /* font-bold */
    color: var(--blue-primary);
    margin-bottom: 0.5rem;
}
.step-description {
    color: #4a5568; /* text-gray-700 */
}

/* --- Embellissement PREMIUM de la Section À Propos --- */

.about-image-container img {
    transform: scale(1.05); /* Léger zoom par défaut pour un effet "plein cadre" */
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-image-container:hover img {
    transform: scale(1); /* Effet de dé-zoom au survol pour une interaction subtile */
}

/* 
 * Style pour la couleur du motif SVG en arrière-plan.
 * `text-blue-100` n'est pas une couleur par défaut de Tailwind,
 * donc nous devons la définir nous-mêmes.
 */
.text-blue-100 {
    color: #DBEAFE; /* Couleur `blue-100` de Tailwind */
}

/* AJOUTEZ CECI À LA FIN DE /assets/css/main.css */

/* --- Embellissement PRESTIGE de la Section À Propos --- */

.about-image-wrapper {
    position: relative;
}
.about-image-wrapper img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* Superposition sombre au survol de l'image */
.about-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--blue-primary);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.about-image-wrapper:hover::after {
    opacity: 0.2;
}
.about-image-wrapper:hover img {
    transform: scale(1.05); /* Effet de zoom léger */
}

/* Accent graphique derrière le titre h2 */
.title-with-accent {
    position: relative;
}
.title-with-accent::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 0.5rem; /* 8px */
    height: 3rem; /* 48px */
    background-color: var(--green-500);
    z-index: -1;
    opacity: 0.5;
}
@media (max-width: 1023px) { /* Sur mobile, l'accent est plus discret */
    .title-with-accent::before {
        left: -1rem;
        height: 2.5rem;
    }
}


/* Styles pour les compteurs animés */
.stat-number {
    display: block;
    font-size: 3rem; /* text-5xl */
    font-weight: 800; /* extrabold */
    color: var(--blue-primary);
    line-height: 1;
}
.stat-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem; /* text-sm */
    color: #4a5568; /* text-gray-700 */
    font-weight: 600;
}

/* --- Embellissement PRESTIGE de la Section Témoignages --- */

/* Style des boutons de navigation pour s'adapter au fond sombre */
.testimonial-nav-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}
.testimonial-nav-btn:hover {
    background-color: var(--green-500);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

/* Styles pour les points de navigation sur fond sombre */
.testimonial-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}
.testimonial-dot.active,
.testimonial-dot:hover {
    background-color: white;
    transform: scale(1.25);
}

/* Styles pour les points de navigation */
.testimonial-dot {
    width: 0.75rem; /* w-3 */
    height: 0.75rem; /* h-3 */
    border-radius: 9999px; /* rounded-full */
    background-color: #cbd5e1; /* bg-gray-300 */
    transition: all 0.3s ease;
}
.testimonial-dot.active,
.testimonial-dot:hover {
    background-color: var(--blue-primary);
    transform: scale(1.25);
}

/* --- Embellissement PRESTIGE de la Section Contact --- */

/* Fond animé pour la section contact */
#contact-pattern path {
    animation: contact-wave 8s linear infinite;
}
@keyframes contact-wave {
    from { transform: translateX(0); }
    to { transform: translateX(-120px); } /* La largeur de 2 motifs */
}


/* --- Formulaire avec "Floating Labels" --- */
.floating-label-group {
    position: relative;
}

.floating-input {
    width: 100%;
    padding: 1.25rem 1rem 0.75rem; /* Espace pour le label */
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    -webkit-appearance: none;
}
.floating-input:focus {
    outline: none;
    border-color: var(--green-500);
    background-color: rgba(255, 255, 255, 0.15);
}

.floating-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    pointer-events: none; /* Permet de cliquer à travers le label */
}

/* Magie du "Floating Label" */
.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
    top: 0.5rem;
    left: 1rem;
    font-size: 0.75rem;
    color: var(--green-500);
}

/* Style de l'autocomplétion des navigateurs */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #2747a0 inset !important; /* Couleur de fond similaire */
    -webkit-text-fill-color: white !important;
}


/* --- Carte des coordonnées --- */
.contact-info-item {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}
.contact-info-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}
.contact-info-icon {
    font-size: 1.875rem; /* text-3xl */
    color: var(--green-500);
    margin-right: 1.5rem;
}
.contact-info-title {
    font-size: 1.125rem; /* text-lg */
    font-weight: 700; /* font-bold */
}
.contact-info-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-info-link:hover {
    color: var(--green-500);
}


/* --- Ambiance immersive pour la Section Témoignages --- */

/* L'ID #testimonial-pattern correspond à celui défini dans le SVG */
#testimonial-pattern path {
    animation: testimonial-wave 10s linear infinite;
}

@keyframes testimonial-wave {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-160px); /* La largeur de 2 motifs (80px * 2) */
    }
}
/* --- Embellissement PRESTIGE de la Section "Comment ça marche" (Fond Bleu) --- */

/* L'animation du fond "Blueprint" */
#grid-pattern-dark { /* S'assure que l'animation est bien définie si elle est déjà présente */
    animation: blueprint-scroll 20s linear infinite;
}
@keyframes blueprint-scroll {
    from { transform: translateX(0) translateY(0); }
    to { transform: translateX(-80px) translateY(-80px); }
}

/* Conteneur et ligne de connexion animée (maintenant en vert sur fond bleu) */
.process-line-container {
    position: relative;
}
.process-line-container::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 15%;
    height: 2px;
    background-color: var(--green-accent); /* CHANGEMENT: Ligne de connexion verte */
    opacity: 0.5;
    width: 0;
    transition: width 1s ease-in-out 0.5s;
    z-index: -1;
    display: none;
}
@media (min-width: 768px) { .process-line-container::before { display: block; } }
.process-line-container.aos-animate::before { width: 70%; }


/* Amélioration de l'icône de l'étape pour le fond sombre */
.step-icon {
    background-color: white;
    color: var(--blue-primary);
    border: 3px solid var(--green-accent);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.process-step:hover .step-icon {
    background-color: green;
    border-color: white;
    color: white;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.25), 0 10px 10px -5px rgba(16, 185, 129, 0.1);
}

/* Titre de l'étape maintenant en blanc */
.step-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Description de l'étape en bleu très clair pour un contraste doux */
.step-description {
    color: #a3bcf4; /* équivalent à text-blue-200 ou text-blue-300 */
}

/* --- Bouton "Retour en Haut" (Scroll to Top) --- */
#scroll-to-top-btn {
    position: fixed; /* Reste visible même en défilant */
    bottom: 1.5rem;  /* 24px du bas */
    right: 1.5rem;   /* 24px de la droite */
    z-index: 50;     /* S'assure qu'il est au-dessus du contenu */

    /* Apparence */
    width: 3rem;          /* 48px de large */
    height: 3rem;         /* 48px de haut */
    border-radius: 9999px; /* Parfaitement rond */
    background-color: var(--green-500);
    color: white;
    font-size: 1.25rem; /* text-xl */
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    
    /* Animation et état par défaut (caché) */
    opacity: 0;
    transform: translateY(20px); /* Légèrement décalé vers le bas */
    pointer-events: none; /* Inactif quand il est invisible */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* État visible (quand la classe .is-visible est ajoutée par le JS) */
#scroll-to-top-btn.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; /* Re-devient cliquable */
}

/* Effet de survol */
#scroll-to-top-btn:hover {
    background-color: var(--green-accent);
    transform: scale(1.1);
}


/* --- Embellissement PRESTIGE du Menu Mobile --- */

.mobile-nav-link {
    position: relative;
    padding-left: 1.5rem; /* px-6 - laisse de la place */
}
/* La barre décorative, cachée par défaut */
.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--green-accent);
    
    transform-origin: center;
    transform: scaleY(0); /* Invisible par défaut */
    transition: transform 0.3s ease-in-out;
}

/* Affiche la barre au survol OU si le lien est actif */
.mobile-nav-link:hover::before,
.mobile-nav-link.is-active-link::before {
    transform: scaleY(1);
}

/* --- Bouton Flottant WhatsApp --- */
.whatsapp-float-btn {
    position: fixed;
    bottom: 5.5rem; /* Juste au-dessus du bouton "scroll to top" */
    right: 1.5rem;
    z-index: 50;
    
    /* Apparence */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;   /* 56px */
    height: 3.5rem;  /* 56px */
    border-radius: 50%;
    background-color: #25D366; /* Vert officiel de WhatsApp */
    color: white;
    font-size: 2rem; /* text-3xl */
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);

    /* Animation */
    opacity: 0;
    transform: scale(0);
    transform-origin: bottom right; /* L'animation part du coin */
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.whatsapp-float-btn.is-visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.15);
}

/* Animation de pulsation */
.whatsapp-float-btn::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100%;
    height: 100%;
    background-color: #25D366;
    border-radius: 50%;
    animation: whatsapp-pulse 2s infinite ease-out;
}

@keyframes whatsapp-pulse {
    0% {
        transform: translateX(-50%) translateY(-50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translateX(-50%) translateY(-50%) scale(1.6);
        opacity: 0;
    }
}