:root {
    /* Couleurs extraites de l'identité OMS */
    --oms-blue-dark: #004d66; /* Le O */
    --oms-blue-light: #0099cc; /* Le M */
    --oms-black: #1a1a1a;     /* Le S et Montagnes */
    --oms-grey: #f4f4f4;
}

body {
    font-family: 'Open Sans', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Montserrat', sans-serif;
}

/* --- Navigation --- */
#mainNav {
    background-color: transparent;
    transition: all 0.4s ease;
    padding-top: 20px;
    padding-bottom: 20px;
}

#mainNav.navbar-scrolled {
    background-color: rgba(26, 26, 26, 0.95); /* Fond sombre au scroll */
    padding-top: 10px;
    padding-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-link {
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: white !important;
    margin-right: 15px;
}

.nav-link:hover {
    color: var(--oms-blue-light) !important;
}

/* --- Boutons personnalisés --- */
.text-primary-custom {
    color: var(--oms-blue-light);
}

.btn-primary-custom {
    background-color: var(--oms-blue-light);
    border-color: var(--oms-blue-light);
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background-color: var(--oms-blue-dark);
    border-color: var(--oms-blue-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 153, 204, 0.4);
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    min-height: 600px;
    /* Remplace 'hero-bg.jpg' par une image réelle de camion ou mine */
    background: url('../img/hero-bg.jpg') no-repeat center center; 
    background-size: cover;
    background-attachment: fixed; /* Effet Parallax */
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 77, 102, 0.7), rgba(26, 26, 26, 0.8));
}

.hero-title {
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: var(--oms-blue-light);
}

/* Responsive pour le texte Hero */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-buttons .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
}
/* --- Sections Générales --- */
.section-padding {
    padding: 100px 0;
}

.ls-2 {
    letter-spacing: 2px;
}

.separator {
    height: 4px;
    width: 80px;
    background-color: var(--oms-blue-light);
    border-radius: 2px;
}

/* --- Section À Propos --- */
.about-image-wrapper {
    position: relative;
    padding: 20px;
}

.about-image-wrapper img {
    border: 10px solid #fff;
    /* Petit effet de rotation subtil pour le style */
    transform: rotate(-2deg); 
    transition: all 0.5s ease;
}

.about-image-wrapper:hover img {
    transform: rotate(0deg);
}

.experience-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--oms-blue-dark);
    color: white;
    padding: 20px 30px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 2;
}

.experience-badge small {
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Section Services (Cartes) --- */
.service-card {
    transition: all 0.3s ease;
    border: none;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    border-bottom: 4px solid var(--oms-blue-light);
}

.icon-box {
    width: 80px;
    height: 80px;
    background-color: var(--oms-blue-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Changement de couleur de l'icône au survol de la carte */
.service-card:hover .icon-box {
    background-color: var(--oms-blue-light);
    transform: rotateY(360deg); /* Petite animation 3D sympa */
}
/* --- Section Stats --- */
.bg-dark-custom {
    background-color: var(--oms-blue-dark);
}

/* --- Section Portfolio --- */
.portfolio-item img {
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1); /* Zoom l'image au survol */
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 95, 115, 0.85); /* Couleur du logo en transparence */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1; /* Affiche le texte au survol */
}

.portfolio-filters .btn-outline-dark.active,
.portfolio-filters .btn-outline-dark:hover {
    background-color: var(--oms-blue-light);
    border-color: var(--oms-blue-light);
    color: white;
}
/* --- Formulaire --- */
.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) {
    border-color: var(--oms-blue-light);
    box-shadow: 0 0 0 0.25rem rgba(0, 153, 204, 0.25);
}

.contact-info {
    border-left: 5px solid var(--oms-blue-dark);
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 996;
    background: var(--oms-blue-light);
    width: 40px;
    height: 40px;
    border-radius: 50px;
    transition: all 0.4s;
}

.back-to-top i {
    font-size: 24px;
    color: #fff;
    line-height: 0;
}

.back-to-top:hover {
    background: var(--oms-blue-dark);
    color: #fff;
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}
/* --- Slider Partenaires --- */
.slider {
    height: 100px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slider::before, .slider::after {
    background: linear-gradient(to right, white 0%, rgba(255,255,255,0) 100%);
    content: "";
    height: 100px;
    position: absolute;
    width: 100px;
    z-index: 2;
}

.slider::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.slider::before {
    left: 0;
    top: 0;
}

.slide-track {
    animation: scroll 30s linear infinite;
    display: flex;
    width: calc(250px * 10); /* Ajuster selon le nombre de logos total */
}

.slide {
    height: 100px;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.slide img {
    filter: grayscale(100%); /* Logos en gris pour faire pro */
    opacity: 0.6;
    transition: all 0.3s;
    max-height: 60px;
}

.slide img:hover {
    filter: grayscale(0%); /* Couleur au survol */
    opacity: 1;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 5)); } /* Déplace la moitié de la piste */
}