body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Section Accueil avec Overlay pour la lisibilité */
.accueil {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url("../image/accueil4.png") center/cover no-repeat;
    min-height: 100vh;
    padding: 100px 0;
}

/* Carte du formulaire */
#devis {
    scroll-margin-top: 90px;
}

.devis-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    border: none;
    backdrop-filter: blur(10px);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

#devis.devis-highlight .devis-card,
.devis-card.devis-highlight {
    box-shadow: 0 0 0 4px rgba(243, 113, 7, 0.45), 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

.form-title {
    background: #010714;
    color: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Style des champs */
.form-control, .form-select {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #f37107;
    box-shadow: 0 0 0 0.25rem rgba(243, 113, 7, 0.732);
}

/* Bouton principal du formulaire */
.btn-submit {
    background-color: #f37107;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-submit:hover {
    background-color: #d66206;
    transform: translateY(-2px);
}

/* Animations */
.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

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

/* Adaptations Mobile */
@media (max-width: 991px) {
    .accueil {
        padding: 50px 0;
        text-align: center;
    }
    #devis {
        scroll-margin-top: 80px;
    }
    .accueil .row {
        flex-direction: column;
    }
    .features div {
        justify-content: center;
    }
}
/* Container de la grille — 4 colonnes (4 cartes par rangée) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 220px));
    gap: 20px;
    justify-content: center;
    margin: 0 auto;
    max-width: 960px;
}

/* Style de la carte individuelle */
.service-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    scroll-margin-top: 90px;
}

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

/* Wrapper pour l'icône */
.icon-wrapper {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
  
}

.icon-wrapper img {
    max-width: 100%;
    height: auto;
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f7fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #2a87b5;
    box-shadow: 0 4px 14px rgba(42, 135, 181, 0.15);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #2a87b5 0%, #0B5E7E 100%);
    color: #fff;
}

/* Texte sous l'icône */
.service-card p {
    color: #a18b5c; /* Couleur dorée comme sur l'image */
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

/* Le bouton doré style image */
.btn-devis-gold {
    background-color: #2a87b5;
    color: white;
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
    border: none;
}

.btn-devis-gold:hover {
    background-color: #e0a838;
    color: white;
}

/* =============================================
   RESPONSIVE : Gestion des écrans téléphones
   ============================================= */

/* Tablettes (iPad, etc.) - On passe à 3 colonnes */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Téléphones (Android, iPhone) - On passe à 2 colonnes */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }
    
    .service-card {
        padding: 15px 10px;
        min-height: 150px;
    }
    
    .icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.35rem;
    }

    .service-card p {
        font-size: 0.8rem;
    }
}

/* Très petits téléphones - 1 seule colonne si besoin */
@media (max-width: 400px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}


/* --- Mise en page de la section --- */
.avantages-section {
    overflow: hidden; /* Empêche le scroll horizontal pendant l'animation */
    background-image: url("../image/accueil4.png");
    background-size: cover;
    background-position: center;
}

.avantages-container {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 500px;
    padding: 50px 0;
}

/* --- L'image (Côté droit) --- */
.avantages-image {
    position: absolute;
    right: 0;
    width: 70%; /* Prend une grande partie de la largeur */
    height: 90%;
    z-index: 1;
    animation: slideFromRight 1.2s ease-out forwards;
    border: 4px solid #044876;
    border-radius: 20px;
    overflow: hidden;
}

.avantages-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    border-radius: 15px;
}

/* --- La carte de texte (Côté gauche) --- */
.avantages-card {
    position: relative;
    z-index: 2; /* Passe par-dessus l'image */
    background: white;
    width: 450px;
    padding: 40px;
    border-radius: 30px;
    animation: slideFromLeft 1.2s ease-out forwards;
    border: 4px solid #044876;

}

/* --- Styles de texte --- */
.avantages-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
}

.avantages-list {
    list-style: none;
    padding-left: 0;
}

.avantages-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #444;
}

.avantages-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.text-inconvenients {
    color: #a18b5c;
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-gold-devis {
    background-color: #044876;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
}

.btn-gold-devis:hover {
    background-color: #8a764d;
    transform: scale(1.05);
}

/* --- KEYFRAMES (Animations) --- */

@keyframes slideFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-150px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromRight {
    0% {
        opacity: 0;
        transform: translateX(150px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- RESPONSIVE --- */

@media (max-width: 991px) {
    .avantages-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .avantages-image {
        position: relative;
        width: 100%;
        height: 300px;
        order: 1; /* Image en premier sur mobile */
        margin-bottom: -50px; /* Chevauchement */
    }

    .avantages-card {
        width: 90%;
        margin: 0 auto;
        order: 2;
        padding: 30px;
    }
}

.slider-section  {
    background-color: #1e2f385e;
    scroll-margin-top: 90px;
}
.slider-container {
    position: relative;
    max-width: 1000px; /* On limite la largeur pour centrer le tout */
    margin: 0 auto;
    padding: 0 50px;
}

.slider-track {
    display: flex;
    gap: 20px;
    overflow-x: hidden; /* Cache les images qui dépassent */
    scroll-behavior: smooth;
    padding: 10px 0;
}

.slide-card {
    flex: 0 0 calc(33.333% - 14px); /* Affiche exactement 3 cartes */
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.card-img-wrapper img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.card-footer-text {
    padding: 15px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a1a;
    text-align: left;
}

/* --- Boutons Flèches --- */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: white;
    border: 1px solid #eee;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.nav-btn:hover { background: #f8f9fa; transform: translateY(-50%) scale(1.1); }
.nav-btn.prev { left: 0; }
.nav-btn.next { right: 0; }

/* --- Responsive --- */
@media (max-width: 992px) {
    .slide-card { flex: 0 0 calc(50% - 10px); } /* 2 cartes sur tablette */
}

@media (max-width: 600px) {
    .slide-card { flex: 0 0 100%; } /* 1 carte sur mobile */
    .slider-container { padding: 0 10px; }
    .nav-btn { display: none; } /* On swipe au doigt sur mobile */
    .slider-track { overflow-x: auto; }
}









/* Import d'une police moderne */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap');

.process-section {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    position: relative;
}

.process-title {
    font-weight: 600;
    color: #444;
}

.process-title .brand { color: #0d496b; }
.process-title span { font-style: italic; color: #0d496b; }

/* Ligne décorative */
.process-line {
    height: 2px;
    background: #f0c9c0;
    width: 80%;
    margin: 0 auto -15px auto;
    position: relative;
}

/* Style des étapes */
.step-box {
    padding: 20px;
    transition: transform 0.3s ease;
}

.step-box:hover {
    transform: translateY(-10px);
}

.step-number {
    display: block;
    font-size: 5rem;
    font-weight: 800;
    color: #0d496b;
    line-height: 1;
    margin-bottom: 10px;
    opacity: 0.8;
}

.step-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.step-desc {
    color: #666;
    font-size: 0.95rem;
    max-width: 200px;
    margin: 0 auto;
}

.process-footer {
    color: #888;
    max-width: 700px;
    margin: 0 auto;
    font-size: 0.9rem;
}

/* --- ANIMATIONS --- */
.animate-step {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: var(--delay);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajustements Mobile */
@media (max-width: 768px) {
    .step-number { font-size: 3.5rem; }
    .step-name { font-size: 1.4rem; }
}





/* --- Configuration du Chatbot --- */
#chatbot-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: 'Poppins', sans-serif;
}

/* Bulle d'aide (Teaser) */
.chat-teaser {
    background: white;
    color: #333;
    padding: 10px 18px;
    border-radius: 15px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    animation: fadeInBounce 0.8s ease;
}

.chat-teaser::after {
    content: "";
    position: absolute;
    bottom: -8px;
    right: 20px;
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: white transparent transparent;
}

.teaser-close-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 18px;
    margin-left: 8px;
    cursor: pointer;
}

/* Bouton principal orange */
.chat-bubble-launcher {
    width: 60px;
    height: 60px;
    background: #246b94; /* Couleur corail de votre image */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-bubble-launcher:hover { transform: scale(1.1); }

.chat-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #fff;
    color: #d97d66;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fenêtre de Chat */
.chat-popup-window {
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 5px;
}

/* Header et Placement du bouton FERMER */
.chat-header-custom {
    background: linear-gradient(135deg, #66b7d9, #1c82a7);
    padding: 15px;
    position: relative; /* Indispensable pour le bouton absolute */
    display: flex;
    align-items: center;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    object-fit: cover;
}

.btn-close-header {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: 0.2s;
}

.btn-close-header:hover { opacity: 1; transform: scale(1.1); }

/* Zone des messages */
.chat-messages-area {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
    overflow-y: auto;
}

.ai-msg-bubble {
    background: white;
    padding: 15px;
    border-radius: 15px 15px 15px 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 0.9rem;
    color: #444;
}

.btn-outline-custom {
    border: 1px solid #3183af;
    color: #d97d66;
    border-radius: 10px;
    background: white;
    font-weight: 500;
}

.btn-outline-custom:hover { background: #3d86c6; color: white; }

.chat-input-footer {
    padding: 12px 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
}

.send-msg-btn {
    background: none;
    border: none;
    color: #d97d66;
    font-size: 1.4rem;
    margin-left: 10px;
}

/* Animations */
@keyframes fadeInBounce {
    0% { opacity: 0; transform: scale(0.5) translateY(20px); }
    70% { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

/* Ne pas redéfinir .d-none ici — casse Bootstrap (menu header sur l'accueil) */







/* --- Styles de la Section Contact Premium --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

.contact-pro {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa; /* Fond légèrement gris pour détacher la carte */
}

.form-card-premium {
    border-radius: 30px;
    overflow: hidden;
    background: white;
    border: none;
}

/* Colonne de gauche Or */
.bg-gold {
    background-color: #034775ec; /* Ta couleur dorée */
}

.text-white-50 { color: rgba(255, 255, 255, 0.7) !important; }
.contact-detail { font-size: 0.9rem; }

/* NOUVEAU : Le conteneur de l'avatar animé */
.avatar-anim-container {
    width: 400px;  /* Taille du carré de l'avatar */
    height: 230px;
    
    border-radius: 25px; /* Coins arrondis Pro */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin-top: 30px;
    margin-bottom: -10px; /* Légère triche pour le positionner vers le bas */
}

/* L'avatar lui-même (l'image/le GIF) */
.avatar-animated {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* S'adapte au carré sans déformer */
    border-radius: 20px; /* Coins arrondis pour l'image */
}

/* Colonne de droite Formulaire */
.form-group-pro {
    position: relative;
    margin-bottom: 15px;
}

.form-label-pro {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: block;
}

.form-control-pro {
    width: 100%;
    border: none;
    border-bottom: 2px solid #eee; /* Ligne fine Visme */
    padding: 10px 0;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: transparent;
}

.form-control-pro:focus {
    border-bottom-color: #0f67b5; /* Ligne devient dorée */
    box-shadow: none;
}

/* Bouton Premium */
.btn-submit-premium {
    background-color: #0f67b5;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-submit-premium:hover {
    background-color: #8a764d;
    box-shadow: 0 10px 25px rgba(161, 139, 92, 0.3);
    transform: translateY(-2px);
    color: white;
}

/* Animation d'entrée pour la carte */
.animate-fade-in {
    animation: fadeIn ease 1s;
}

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




