
/* Variables de Couleurs */
:root {
    --primary-color: #003366; /* Bleu Profond */
    --secondary-color: #FF6600; /* Orange Vif */
    --light-bg-color: #F8F8F8; /* Blanc Cassé */
    --text-color: #333333;
}

/* Base et Typographie */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: white; /* Fond de la page */
}
h1, h2, h3, h4 {
    font-weight: 700;
}

/* Classes Bootstrap Personnalisées */
.bg-primary-custom { background-color: var(--primary-color) !important; }
.text-primary-custom { color: var(--primary-color) !important; }
.text-orange-custom { color: var(--secondary-color) !important; }
.bg-light-custom { background-color: var(--light-bg-color) !important; }

/* Boutons */
.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}
.btn-primary-custom:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}
/* Pour les boutons outline du header */
.btn-orange-hover {
    transition: all 0.3s ease;
}
.btn-orange-hover:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white !important;
}

/* 1️⃣ Header */
#main-header {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.navbar-nav .nav-link {
    font-weight: 600;
    transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}


/* 2️⃣ Slider Dynamique (Hero) */
.hero-slider {
    position: relative;
    height: 90vh; /* Hauteur pour un effet "hero" */
    overflow: hidden;
}
.carousel-item {
    height: 90vh;
    background-size: cover;
    background-position: center;
    transition: transform 1.5s ease-in-out; /* Transition pour le mouvement droite->gauche */
}
/* Images de fond simulées avec un attribut data-image */
.carousel-item:nth-child(1) { background-image: url('images/slider12.jpg'); }
.carousel-item:nth-child(2) { background-image: url('images/slider11.jpg'); }

.carousel-item:nth-child(3) { background-image: url('images/slider9.jpg'); }

.carousel-item:nth-child(4) { background-image: url('images/slider13.jpg'); }

/* Effet de fondu noir pour lisibilité du texte */
.carousel-item::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.carousel-caption {
    position: absolute; /* Remplacement de position: static sur mobile */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding-bottom: 0; /* Annuler padding par défaut de Bootstrap */
    padding-top: 5rem;
    text-align: left;
    max-width: 800px; /* Limiter la largeur du texte */
    margin: auto;
}
.carousel-caption h1, .carousel-caption p {
    color: white;
}

/* 4️⃣ Section Réalisations (Grid & Hover) */
.realization-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.realization-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}
.realization-item:hover img {
    transform: scale(1.05); /* Zoom léger au survol */
}
.realization-item .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 51, 102, 0.75); /* Bleu semi-transparent */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.realization-item:hover .overlay {
    opacity: 1;
}

/* 5️⃣ Section Partenaires (Slider Horizontal) */
.partner-slider {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
}

/* L'animation keyframe sera définie plus bas pour le défilement */
.partner-slider div {
    display: inline-block;
    animation: partner-scroll 20s linear infinite; /* Animation de défilement */
    padding: 0 40px;
}
.partner-slider img {
    height: 50px; /* Taille des logos */
    /*filter: grayscale(100%);  Noir et Blanc */
    opacity: 1;
    transition: opacity 0.3s ease;
}
.partner-slider img:hover {
    opacity: 1;
    filter: none; /* Couleur au survol */
}

/* Animation de défilement pour les partenaires */
@keyframes partner-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Défilement de la moitié du contenu */
}


/* 7️⃣ Bouton Flottant WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366; /* Vert WhatsApp */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    line-height: 60px; /* Centrage vertical de l'icône */
    z-index: 1000;
    box-shadow: 2px 2px 3px #999;
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

/* Animations de Scroll (Utilisation de la classe .animate-on-scroll par JS) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Ajustements (Mobile First - Ajuster pour tablette et desktop) */
@media (max-width: 991px) {
    .hero-slider, .carousel-item {
        height: 65vh; /* Moins de hauteur sur mobile */
    }
    .carousel-caption {
        text-align: center;
    }
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
        line-height: 50px;
    }
}
