/*************************
******* GENERAL **********
**************************/
html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif; /* Plus de Google Fonts */
}

h1, h2, h3, h5, h6 {
    font-weight: 600;
}

h4 {
    font-weight: 500;
}

a {
    color: #45aed6;
    transition: color 400ms, background-color 400ms;
}

/*************************
******* CAROUSEL *********
**************************/
.main-content-wrapper {
    position: relative;
    height: 100vh; /* Plein écran sur PC */
    width: 100%;
    display: flex;
    background-color: #212529; /* Fond de secours pour éviter le blanc */
}

/*************************
******* NAVIGATION *******
**************************/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    /* Force le logo à gauche et le reste (liens ou hamburger) à droite */
    justify-content: space-between; 
    align-items: center;
    padding: 10px 25px; /* Ajuste la marge intérieure */
    background-color: rgba(33, 37, 41, 0.95);
    z-index: 1001;
    box-sizing: border-box; /* Très important pour éviter que ça dépasse à droite */
}
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-links-container {
    display: flex;
    gap: 20px;
    align-items: center;
}
.nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #ffcc00; /* Jaune Wanilo au survol */
}

/* Bouton Menu Mobile (Hamburger) */
.menu-toggle {
    display: none; /* Caché sur PC */
    flex-direction: column;
    cursor: pointer;
    z-index: 1002;
    padding: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 2px 0;
    transition: 0.4s;
}

/*************************
******* MOBILE NAV *******
**************************/
@media (max-width: 768px) {
.navbar {
        padding: 10px 15px;
    }

.menu-toggle {
        display: flex; /* Affiche l'hamburger à droite */
        margin-left: auto; /* Pousse l'hamburger au max à droite si besoin */
    }

.nav-links-container {
        display: none; /* Cache les liens horizontaux */
        position: fixed;
        right: -100%;
        top: 0;
        width: 75%;
        height: 100vh;
        background: #212529;
        flex-direction: column;
        padding-top: 80px;
        transition: 0.4s ease;
    }
	

    /* Quand on clique sur le menu (géré par ton JS) */
.nav-links-container.active {
        display: flex; 
        right: 0;
    }

    .nav-link {
        font-size: 20px;
        margin: 15px 0;
    }
}
.carousel-container {
    flex-grow: 1;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none; /* Géré par le JS */
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center 30%; /* Évite de couper le haut des trains/engins */
}

/* Bandeau de texte sur l'image */
.footer-card-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Transparence avec effet de flou moderne */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
   /* backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);*/
    padding: 30px 20px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    text-align: center;
}

.footer-card {
    max-width: 900px;
}

.footer-card h6 {
    color: #ffcc00;
    font-size: 30px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-card p {
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.6;
}

/*************************
******* SECTIONS *********
**************************/
.section-header {
    margin-bottom: 40px;
    margin-top: 50px;
    text-align: center;
}

.section-header .section-title {
    font-size: 30px;
    color: #4F4F4F;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 3px solid #004d00;
    display: inline-block;
}

/* Structure Card (Expertise & Valeurs) */
.card-expert-wrapper {
    padding: 20px;
    background: #fff;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.image-float-left {
    float: left;
    width: 40%;
    margin-right: 5%;
}

.image-float-left img {
    width: 100%;
    border-radius: 5px;
}

.text-content-card-expert h2 {
    color: #004d00;
    margin-top: 0;
}

/* Bouton Standard */
.main-btn {
    background: #004d00;
    color: #fff;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}

.main-btn:hover {
    background: #008000;
}

/*************************
******* MOBILE ***********
**************************/
@media (max-width: 768px) {
    /* On réduit la hauteur pour que l'image soit moins zoomée */
    .main-content-wrapper {
        height: 60vh; 
    }

    .image-float-left {
        width: 100%;
        float: none;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .footer-card h6 {
        font-size: 1.4rem;
    }

    .footer-card p {
        font-size: 1rem;
    }

    .footer-card-container {
        padding: 15px;
    }
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}