/* ============================================================
   CONGO DAMAZ – FEUILLE DE STYLES PRINCIPALE
   ============================================================
   Ce fichier regroupe tous les styles du site public.
   Il présuppose que Bootstrap 5 est chargé avant lui.
   ============================================================ */

/* --- Polices --- */
body {
    font-family: 'Dosis', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    top: 0 !important;
    position: static !important;
    margin-top: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Signika', sans-serif;
    font-weight: 700;
}

/* --- Couleurs du thème --- */
.c-white { color: #fff !important; }
.c-green { color: #6ba539 !important; }
.bg-green  { background-color: #6ba539 !important; }
.bg-green-b { background-color: #5a8f2e !important; }
.bg-yellow { background-color: #f4b41b !important; }
.bg-orange { background-color: #e67e22 !important; }

.h-title {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* --- Header --- */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.contain_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.logo_Site_header {
    max-height: 60px;
}

/* Menu */
.nav_menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav_menu ul li {
    position: relative;
    margin: 0 15px;
}

.nav_menu ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.nav_menu ul li a:hover {
    color: #6ba539;
}

/* Sous-menu */
.nav_menu ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1000;
}

.nav_menu ul li:hover ul {
    display: block;
}

.nav_menu ul li ul li {
    margin: 0;
}

.nav_menu ul li ul li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    white-space: nowrap;
}

.nav_menu ul li ul li a:hover {
    background: #f5f5f5;
    color: #6ba539;
}

/* Burger menu (mobile) */
.burger_menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger_menu div {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 4px 0;
}

@media (max-width: 768px) {
    .nav_menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav_menu.active {
        display: flex;
    }

    .nav_menu ul {
        flex-direction: column;
        padding: 20px;
    }

    .nav_menu ul li {
        margin: 10px 0;
    }

    .burger_menu {
        display: flex;
    }
}

/* --- Hero --- */
.hero-short {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    background: #333; /* fallback */
    margin-top: 70px; /* pour compenser le header fixe */
}

.hero-short img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    z-index: 0;
}

.hero-short .container {
    position: relative;
    z-index: 1;
}

.hero-short h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-short .desc-hero-short {
    font-size: 1.2rem;
    max-width: 600px;
}

/* --- Sections standard --- */
.std-sub-product {
    padding: 80px 0;
}

.block-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.content-left {
    flex: 1;
}

.content-right {
    flex: 1;
}

.content-right img {
    width: 100%;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .block-content {
        flex-direction: column;
    }
}

/* --- Cartes zoom (Business Units, articles) --- */
.card-zoom {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
    cursor: pointer;
}

.card-zoom img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-zoom:hover img {
    transform: scale(1.05);
}

.card-zoom .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.card-zoom .content h3 {
    margin-bottom: 5px;
}

/* --- Blog cartes --- */
.carte-blog {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    cursor: pointer;
}

.carte-blog:hover {
    transform: translateY(-5px);
}

.bottom-card-post {
    padding: 15px;
}

.date-post {
    display: inline-block;
    padding: 5px 15px;
    font-size: 0.9rem;
    border-radius: 0 0 10px 0;
}

.read-more-post {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    font-weight: 600;
}

/* --- Footer --- */
footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 60px 0 20px;
}

footer a {
    color: #ccc;
    text-decoration: none;
}

footer a:hover {
    color: #6ba539;
}

.main-footer-col ul {
    list-style: none;
    padding: 0;
}

.main-footer-col ul li {
    margin-bottom: 8px;
}

.footer-2-copy {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-logo {
    max-width: 150px;
    height: auto;
    display: block;
}

/* --- Boutons CTA flottants --- */
.cta-fixed-right {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cta-fixed-right .item-cta a {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 50px;
    background: #6ba539;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* --- Popups Magnific --- */
.white-popup {
    position: relative;
    background: #fff;
    padding: 30px;
    width: auto;
    max-width: 600px;
    margin: 20px auto;
    border-radius: 10px;
}

/* --- Prefooter compteurs --- */
.prefooter-3 {
    padding: 60px 0;
}

.counter {
    font-size: 3rem;
    font-weight: 700;
    display: block;
}

/* --- Newsletter --- */
.newsletter-point-vert input {
    margin-bottom: 10px;
    padding: 10px;
}

/* --- Divers --- */
.separator-ble {
    display: block;
    margin: 20px auto;
}

/* ========== SÉLECTEUR DE LANGUE (DRAPEAUX SANS ENCADREMENT) ========== */
.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
}

.lang-flag {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: inherit;
}

.lang-flag:hover {
    opacity: 0.7;
}

.lang-flag:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* ========== MASQUAGE AGRESSIF BARRE GOOGLE TRANSLATE ========== */
iframe.skiptranslate,
iframe[src*="translate.google"],
iframe[id*="google"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

.goog-te-gadget,
.goog-te-banner-frame,
body > .skiptranslate {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}
/* ---- Tous les boutons en vert SAUF ceux du hero ---- */
.btn:not(.hero-short .btn) {
    background-color: #6ba539 !important;
    border-color: #6ba539 !important;
    color: #fff !important;
}

.btn:not(.hero-short .btn):hover {
    background-color: #5a8f2e !important;
    border-color: #5a8f2e !important;
    color: #fff !important;
}

/* Corrige l’effet au clic/focus */
.btn:not(.hero-short .btn):focus,
.btn:not(.hero-short .btn):active {
    background-color: #5a8f2e !important;
    border-color: #5a8f2e !important;
    box-shadow: 0 0 0 0.2rem rgba(107, 165, 57, 0.5) !important;
}
/* Empêche la déformation des images dans les cartes */
.card-zoom img,
.card-img-top,
.carte-blog img,
.content-right img,
.img-container img {
    object-fit: cover;        /* Remplit le cadre sans déformer, rogne si nécessaire */
    width: 100%;
    height: 100%;
    display: block;
}
/* --- Améliorations pour la section newsletter moderne --- */
.newsletter-modern .form-control {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.newsletter-modern .btn {
    transition: transform 0.2s;
}
.newsletter-modern .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107,165,57,0.4);
}
