/* =========================================== */
/* VARIABLES DE COULEUR (ROOT) */
/* =========================================== */
:root {
    --main-green: #4c9eaf; 
    --main-red: #3893e3; 
    --text-color: #333;
    --light-bg: #f4f4f4;
    --border-color: #ccc;
    
    /* Couleurs Personnalisées */
    --dark-blue: #206E8D; 
    --primary-blue: #4685d8; /* Utilisé pour le survol et les titres */
    --light-blue-bg: #eaf3f9; 
    --light-green-band: #a1d3f5; 
    --hover-bg-menu: rgba(70, 133, 216, 0.1); /* Nouveau fond pour le survol du menu */

    /* Couleurs Engagements */
    --eng-green-cyan: #008080; 
    --eng-orange-red: #FF6633;
    --eng-green-chartreuse: #8CC63E;
    --eng-purple: #800080;
    
    /* Couleurs Footer */
    --footer-bg: #EAF3F9; 
    --footer-text: #004C92; 

    /* TYPOGRAPHIE UNIFIÉE */
    --font-title: 'Oswald', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --base-font-size: 16px;
}

/* =========================================== */
/* RÉINITIALISATION ET TYPOGRAPHIE DE BASE */
/* =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

body {
    line-height: 1.6;
    color: var(--text-color);
    font-family: var(--font-body); 
}

a {
    text-decoration: none; 
    color: var(--text-color);
}

h1, h2, h3, .card-title, .fw-bold {
    font-family: var(--font-title); 
    color: var(--dark-blue); 
    text-transform: uppercase;
}

p, .lead, .card-text, .text-base-size, .language-selector {
    font-size: var(--base-font-size) !important; 
    line-height: 1.6;
}

.text-primary, .text-dark-blue {
    color: var(--dark-blue) !important;
}

/* Fonds avec texture pour un look premium */
.bg-light-blue {
    background-color: var(--light-blue-bg) !important;
    background-image: url('images/bgmenuc.jpg');
    background-repeat: repeat;
    background-position: top left;
}
.bg-light-grey, .qui-sommes-nous {
    background-color: var(--light-bg) !important;
    background-image: url('images/bgmenuc.jpg');
    background-repeat: repeat;
    background-position: top left;
}

/* =========================================== */
/* HEADER & NAVIGATION (Hover sans Soulignement) */
/* =========================================== */
.header {
    background-color: #f7f7f7;
    background-image: url('images/bgmenuc.jpg');
    background-repeat: repeat;
    background-position: top left;
    border-bottom: 3px solid var(--primary-blue);
    transition: box-shadow 0.3s ease;
}

.logo-img {
    height: 80px; 
    width: auto;
    transition: transform 0.3s ease;
}
.logo-img:hover {
    transform: scale(1.08); 
}

/* STYLE DE LIENS DE NAVIGATION ATTRACTIF */
.main-nav .nav-link {
    color: var(--dark-blue); 
    font-weight: 600; 
    margin: 0 5px;
    padding: 10px 15px; 
    position: relative;
    border-radius: 5px;
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
}

.main-nav .nav-link:hover, .main-nav .nav-link.active {
    color: var(--primary-blue); /* Changement de couleur du texte */
    background-color: var(--hover-bg-menu); /* Fond subtil (le "halo") */
    transform: translateY(-2px); 
}

/* Style pour le bouton principal de contact */
.account-button {
    background-color: var(--dark-blue) !important;
    border: 1px solid var(--dark-blue) !important;
    color: white !important;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(32, 110, 141, 0.4);
}
.account-button:hover {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    transform: scale(1.05); 
    box-shadow: 0 6px 12px rgba(70, 133, 216, 0.6);
}

.motif-bande {
    height: 30px; 
    width: 100%;
    background-image: url('images/bgamenu.png');
    background-size: cover; 
    background-repeat: no-repeat; 
}


/* =========================================== */
/* CTA & BOUTONS */
/* =========================================== */
.cta-button, .red-cta {
    font-family: var(--font-title);
    text-transform: uppercase;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.cta-button:hover, .red-cta:hover {
    transform: scale(1.03);
    background-color: var(--primary-blue) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-custom-download {
    display: inline-flex; 
    align-items: center;
    background-color: var(--dark-blue) !important; 
    color: white !important;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, box-shadow 0.3s ease; 
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 
    border: none !important;
}

.btn-custom-download:hover {
    background-color: var(--primary-blue) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); 
}


/* =========================================== */
/* SECTION CATALOGUES (Cartes) */
/* =========================================== */
.card-bg {
    background-color: #f7f7f7;
    background-image: url('images/bgmenuc.jpg');
    background-repeat: repeat;
    background-position: top left;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease; 
}
.card-bg:hover {
    transform: translateY(-8px); 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
}

.card-image {
    height: 120px; 
    object-fit: cover;
}


/* =========================================== */
/* CARROUSEL DE PRODUITS (Design des produits amélioré) */
/* =========================================== */

.produit-carte {
    overflow: hidden; 
    border-radius: 8px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white; 
}

.produit-carte:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px; 
}

.produit-carte .card-img-top {
    height: 100%; 
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease; 
}

.produit-carte:hover .card-img-top {
    transform: scale(1.05); /* Zoom subtil sur l'image */
}

/* Nom du produit en overlay avec dégradé */
.nom-produit-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 10px 10px 10px; 
    /* Dégradé allant de transparent à une couleur semi-noire/sombre */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    color: white;
    font-family: var(--font-title);
    font-size: 1.2rem; 
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); 
    /* Effet de glissement au début */
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none; 
}

.produit-carte:hover .nom-produit-overlay {
    opacity: 1;
    transform: translateY(0); /* Le nom glisse vers le haut */
}

/* Style des flèches du carrousel */
.arrow {
    background-color: var(--dark-blue);
    width: 50px; 
    height: 50px;
    opacity: 1; 
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.arrow:hover {
    background-color: var(--primary-blue);
    transform: scale(1.1); 
}

/* CSS IMPORTANT pour que les boutons désactivés aient un look "grisé" */
.arrow[disabled] {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    transform: none !important;
    background-color: var(--dark-blue) !important; /* Garder la couleur de base mais pâle */
}


/*@media (max-width: 991.98px) {
    /* Cache les produits 2, 3, 4 sur mobile pour n'en afficher qu'un seul */
   /* .carousel-item .col:nth-child(n+2) {
        display: none;
    }
    .carousel-item .col:first-child {
        display: block;
    }
}*/

@media (max-width: 991.98px) {
    .carousel-item .col {
        flex: 0 0 50%; /* 2 produits par ligne 
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .carousel-item .col {
        flex: 0 0 100%; /* 1 produit par ligne sur très petits écrans */
        max-width: 100%;
    }
}
@media (max-width: 991.98px) {
    /* ✅ Montre tous les produits sur la première page uniquement */
    .carousel-item.active .col {
        display: block;
    }

    /* Cache les produits des autres slides tant qu'elles ne sont pas actives */
    .carousel-item:not(.active) .col {
        display: none;
    }

    /* Ajustement pour un affichage agréable (2 produits par ligne sur mobile) */
    .carousel-item .col {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Sur très petits écrans (téléphones étroits) : 1 produit par ligne */
    @media (max-width: 576px) {
        .carousel-item .col {
            flex: 0 0 100%;
            max-width: 100%;
        }
    }
}

.btn-coming-soon {
    background-color: #6c757d !important;
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    cursor: not-allowed;
    opacity: 0.85;
}

.btn-coming-soon i {
    margin-right: 5px;
}


/* =========================================== */
/* SECTIONS ENGAGEMENTS */
/* =========================================== */

.engagement-card:hover .engagement-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.engagement-icon {
    font-size: 28px;
    color: white;
    width: 60px;
    height: 60px;
    line-height: 60px;
    margin: 0 auto 10px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Couleurs des icônes d'engagement */
.green-cyan { background-color: var(--eng-green-cyan); }
.orange-red { background-color: var(--eng-orange-red); }
.green-chartreuse { background-color: var(--eng-green-chartreuse); }
.purple { background-color: var(--eng-purple); }

/* Icons de Commitment (3 étapes - style repris) */
.feature-item {
    transition: transform 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-5px); 
}

.feature-icon {
    font-size: 30px;
    width: 60px;
    height: 60px;
    line-height: 60px; 
    border-radius: 50%; 
    margin: 0 auto 10px;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}
.feature-icon.green { background-color: var(--main-green); }
.feature-icon.red { background-color: var(--main-red); }
.feature-icon.orange { background-color: orange; }


/* =========================================== */
/* PIED DE PAGE & SCROLL UP */
/* =========================================== */

.bg-footer {
    background-color: var(--footer-bg) !important;
}
.text-footer {
    color: var(--footer-text) !important;
}
.text-footer-link {
    color: var(--footer-text) !important;
    font-family: var(--font-body);
    font-size: var(--base-font-size) !important;
    transition: color 0.3s ease;
}
.text-footer-link:hover {
    text-decoration: underline;
    color: var(--primary-blue) !important;
}

/* Flèche de retour en haut */
#scroll-up-fleche {
   position: fixed;
   bottom: 30px; 
   right: 30px;  
   background: transparent;
   width: 0; 
   height: 0;
   z-index: 999; 
   cursor: pointer;
}

#scroll-up-fleche::after {
    content: ''; 
    display: block; 
    width: 0;
    height: 0;
    border-left: 10px solid transparent; 
    border-right: 10px solid transparent;
    border-bottom: 20px solid var(--dark-blue); 
    transition: border-bottom-color 0.3s ease;
}

#scroll-up-fleche:hover::after {
    border-bottom-color: var(--primary-blue); 
}

/* =========================================== */
/* FOOTER FLEXIBLE ET RESPONSIVE */
/* =========================================== */

.logo-img-footer {
    max-width: 180px;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img-footer:hover {
    transform: scale(1.05);
}

/* Alignement général du footer */
.footer-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

/* Pour que les textes soient harmonieux */
.footer-contact p,
.footer-details p {
    margin-bottom: 5px;
}

/* Centrage automatique sur mobile */
@media (max-width: 991.98px) {
    .footer-info {
        flex-direction: column;
        text-align: center;
    }

    .logo-img-footer {
        max-width: 160px;
        margin-bottom: 20px;
    }

    .footer-contact,
    .footer-details {
        margin-bottom: 15px;
    }

    .footer-legals {
        flex-direction: column;
        gap: 8px;
    }
}

/* Style des liens légaux */
.footer-legals a {
    display: inline-block;
    margin: 5px;
    transition: color 0.3s ease;
}

.footer-legals a:hover {
    text-decoration: underline;
    color: var(--primary-blue) !important;
}

 