/* Tracking layout */
.tracking-layout { display: grid; grid-template-columns: 300px 1fr; gap: 20px; }
@media (max-width: 992px){ .tracking-layout { grid-template-columns: 1fr; } }
.filter-panel { position: sticky; top: 12px; align-self: start; }
.tracking-main .placeholder, .map-placeholder { height: 220px; background: rgba(0,0,0,0.05); border: 1px dashed rgba(0,0,0,0.2); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #666; }
.tracking-subnav { text-align: center; }
.tracking-subnav {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: rgba(255,255,255,0.96);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.tracking-subnav:empty, #module-content:empty { display: none; }
.tracking-main > div { scroll-margin-top: 90px; }
/* Ancrages lisibles globalement dans les panneaux */
.content-panel [id] { scroll-margin-top: 90px; }

/* Status chips */
.status-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; color: #fff; }
.status-plan { background: #6c757d; }
.status-emb { background: #0d6efd; }
.status-sortie { background: #6f42c1; }
.status-enroute { background: #fd7e14; }
.status-pod { background: #198754; }
.status-retour { background: #0dcaf0; color: #000; }
.status-clos { background: #000; }
.status-alert { background: #dc3545; }
/* ===============================
   🌐 VARIABLES & UTILITAIRES
================================== */
:root {
    --primary: #007bff; /* Bleu principal */
    --primary-dark: #0056b3; /* Bleu foncé */
    --danger: #dc3545; /* Couleur d'alerte */
    --white: #ffffff; /* Blanc */
    --light: #f8f9fa; /* Gris clair */
    --gray: #666; /* Gris pour les textes secondaires */
    --dark-gray: #333; /* Gris sombre */
    --radius: 12px; /* Bord arrondi */
    --transition: none; /* Pas d'effets */
    --shadow: none; /* Pas d'ombres */
    --shadow-hover: none; /* Pas d'ombres au survol */
    --max-width-grid: 1400px; /* Largeur maximale pour la grille */
    --service-box-padding: 20px; /* Padding des boîtes de service */
    --title-font-size: 22px; /* Taille du titre */
    --text-font-size: 16px; /* Taille du texte */
    --grid-min: 240px; /* largeur mini d'une colonne segmentée */
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.radius { border-radius: var(--radius); }
.shadow { box-shadow: none !important; }
.shadow-hover:hover { box-shadow: none !important; }
.text-center { text-align: center; }
.text-bold { font-weight: bold; }
.transition { transition: none !important; }
.hover-scale:hover { transform: none !important; transition: none !important; }
.fadeIn { animation: none !important; }

.scrollbar {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f1f1f1;
}
.scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.scrollbar::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}
.scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Global */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #ffffff !important;
    color: var(--dark-gray);
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: auto;
html { overflow-x: hidden; }

    /* Ajouter ces styles pour garantir que le footer se place correctement */
    min-height: 100vh;  /* Hauteur minimale de la page égale à la hauteur de l'écran */
    display: flex;
    flex-direction: column;
}

/* Conteneur principal de la page (pour s'assurer que tout prend l'espace restant) */
main {
    flex: 1;  /* Cela permet de prendre l'espace restant et empêche le footer de se retrouver au milieu */
}

/* ===============================
   APP BANNER - MODERNE AVEC IMAGE DE FOND
================================== */
.app-banner {
    position: relative;
    background-image: url('/static/truck1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    padding: 60px 20px;
    text-align: center;
    color: black;
    border-radius: 12px;
    box-shadow: none;
    margin-bottom: 40px;
    animation: none;
    transition: none;
}

/* Animation de brillance subtile */
.app-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: none;
    animation: none;
    z-index: 0;
}

@keyframes shineEffect {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Texte à l'avant */
.app-banner h1,
.app-banner p {
    position: relative;
    z-index: 1;
}

/* Titre */
.app-banner h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: fadeInText 1s ease-in-out;
}

/* Paragraphe */
.app-banner p {
    font-size: 18px;
    font-weight: 400;
    opacity: 1;
    animation: fadeInText 1.2s ease-in-out;
}

/* Animation du texte */
@keyframes fadeInText {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Effet au survol */
.app-banner:hover { transform: none; box-shadow: none; }

.app-banner h1:hover,
.app-banner p:hover { color: inherit; }

/* Responsive pour tablettes */
@media (max-width: 768px) {
    .app-banner {
        padding: 40px 15px;
    }
    .app-banner h1 {
        font-size: 28px;
    }
    .app-banner p {
        font-size: 16px;
    }
}

/* Responsive pour mobiles */
@media (max-width: 480px) {
    .app-banner {
        padding: 30px 10px;
    }
    .app-banner h1 {
        font-size: 24px;
    }
    .app-banner p {
        font-size: 14px;
    }
}

/* ===============================
   NAVIGATION - STYLE MODERNE HORIZONTAL
================================== */
.custom-nav {
    display: block;
    padding: 10px 0;
    background-color: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1100;
    overflow: visible !important; /* Permettre au dropdown de dépasser la barre */
}

.custom-nav:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); transform: none; }

/* Liens dans le menu */
.custom-nav-item {
    font-size: 16px;
    font-weight: 600;
    color: #007bff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

/* Effet de survol sur les liens */
.custom-nav-item:hover { background-color: #e6f0ff; color: #004080; transform: none; }

/* Ajout d'un effet d'animation lorsque l'élément est actif */
.custom-nav-item:active {
    color: #ffffff; /* Changer la couleur du texte au clic */
    background-color: #007bff; /* Fond bleu au clic */
}

/* Effet de transition au survol de chaque élément */
.custom-nav-item:hover::before { content: none; }

/* Assurer l’affichage par-dessus des dropdowns */
.dropdown-menu { z-index: 1200; }
.custom-nav .container { position: relative; }
.custom-nav .dropdown-menu { margin-top: 8px; }

/* Espace sous la barre pour le contenu injecté */
#module-content { margin-top: 12px; }

/* Espace global sous le menu pour centrer le corps */
.after-menu-space { padding-top: 32px; }
@media (min-width: 768px) { .after-menu-space { padding-top: 48px; } }
@media (min-width: 1200px) { .after-menu-space { padding-top: 64px; } }

/* Espace équilibré (haut/bas/gauche/droite égaux) */
.balanced-space { padding: clamp(24px, 4vw, 96px); }

/* Section plein écran, centrée */
.full-viewport {
    min-height: 100vh;
    min-height: 100svh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

/* Ajustements légers pour la page Transports */
.table td, .table th { vertical-align: middle; }
.badge { font-weight: 500; }
.custom-nav { position: sticky; top: 0; z-index: 1100; }
.app-banner { padding-top: 24px; padding-bottom: 24px; }

/* Menu transports centré avec lignes séparatrices */
.transports-menu .dropdown-menu li + li { border-top: 1px solid #eee; }
.transports-menu .dropdown-toggle { min-width: 160px; }

/* RESPONSIVE - Adaptation pour petits écrans */
@media (max-width: 768px) {
    .custom-nav {
        flex-direction: column; /* Empilement vertical des éléments */
        padding: 15px;
    }

    .custom-nav-item {
        font-size: 18px; /* Agrandir la taille des liens sur petits écrans */
        padding: 12px 20px; /* Plus d'espace autour des éléments */
    }
}

/* Responsivité mobile - Ajustements spécifiques pour les plus petits écrans */
@media (max-width: 480px) {
    .custom-nav {
        gap: 15px; /* Réduire l'écart entre les éléments */
    }

    .custom-nav-item {
        font-size: 16px; /* Réduire légèrement la taille du texte sur très petits écrans */
        padding: 10px 18px; /* Ajuster les espacements pour de petits écrans */
    }
}

/* ===============================
   GRID DES SERVICES - LAYOUT ADAPTATIF
================================== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding: 20px;
    grid-auto-rows: 1fr;
    width: 100%;
    max-width: var(--max-width-grid);
    margin: 0 auto;
}

/* Responsivité pour les grands écrans (ex: 4K) */
@media (min-width: 1600px) {
    .service-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Colonnes plus larges sur grand écran */
        gap: 25px; /* Augmenter l'espacement */
    }

    .service-box {
        padding: 30px; /* Plus d'espace autour des éléments */
    }

    .service-box h4 {
        font-size: 1.5rem; /* Augmenter la taille du titre */
    }

    .service-box p {
        font-size: 1rem; /* Augmenter la taille du texte */
    }
}

/* ===============================
   BOÎTES DE SERVICE AVEC IMAGES DE FOND
================================== */
.service-box {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: var(--service-box-padding);
    border-radius: var(--radius);
    box-shadow: none;
    transition: none;
    text-align: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.service-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,123,255,0.28), rgba(0,198,255,0.28));
}

.service-box > * { position: relative; z-index: 1; }

/* Images de fond spécifiques pour chaque boîte de service */
.service-box:nth-child(1) {
    background-image: url('/static/truck4.jpg');
}

.service-box:nth-child(2) {
    background-image: url('/static/truck6.jpg');
}

.service-box:nth-child(3) {
    background-image: url('/static/truck3.jpg');
}

.service-box:nth-child(4) {
    background-image: url('/static/truck1.jpg');
}

.service-box:nth-child(5) {
    background-image: url('/static/truck2.jpg');
}

.service-box:nth-child(6) {
    background-image: url('/static/truck6.jpg');
}

/* ===============================
   EFFET AU SURVOL DES BOÎTES DE SERVICE
================================== */
/* Transition plus douce au survol */
.service-box:hover { transform: none; box-shadow: var(--shadow); }

/* ===============================
   TITRE ET TEXTE DANS LES BOÎTES DE SERVICE
================================== */

/* Titre dans chaque boîte */
.service-box h4 {
    font-size: var(--title-font-size);
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: none;
 
}

/* Texte dans les boîtes */
.service-box p {
    font-size: var(--text-font-size);
    line-height: 1.6;
    opacity: 1;
    color: #ffffff;
    text-shadow: none;
}

/* ===============================
   RESPONSIVE DESIGN - ADAPTATION POUR PETITS ÉCRANS
================================== */

/* Mobile et tablettes (ajustement pour petits écrans) */
@media (max-width: 768px) {
    .service-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }

    .service-box {
        padding: 15px;
    }

    .service-box h4 {
        font-size: 20px;
    }

    .service-box p {
        font-size: 14px;
    }
}

/* Petits écrans (téléphones) */
@media (max-width: 480px) {
    .service-grid { grid-template-columns: 1fr; }

    .service-box {
        padding: 10px;
    }

    .service-box h4 {
        font-size: 18px;
    }

    .service-box p {
        font-size: 13px;
    }
}

/* ===============================
   ÉCRANS LARGES (JUSQU'À 4K)
================================== */

/* Écrans larges (grands écrans jusqu'à 4K) */
@media (min-width: 1600px) {
    .service-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Colonnes plus larges sur grand écran */
        gap: 25px; /* Augmenter l'espacement */
    }

    .service-box {
        padding: 25px; /* Plus d'espace autour des éléments */
    }

    .service-box h4 {
        font-size: 26px; /* Augmenter la taille du titre */
    }

    .service-box p {
        font-size: 18px; /* Augmenter la taille du texte */
    }
}
/* ===============================
   STYLISATION MODERNE DES SECTIONS AVEC EFFETS
================================== */

/* Style de base pour toutes les sections */
section {
    position: relative; /* Nécessaire pour superposer les effets */
    padding: 40px 20px;
    background-color: #f9f9f9; /* Fond clair */
    border-radius: 12px; /* Coins arrondis */
    margin-bottom: 40px; /* Espacement sous la section */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Ombre légère */
    overflow: hidden; /* Empêcher les effets de dépasser */
    
    /* Animations */
    animation: none;
    transition: none;
}

/* Apparition douce lors du chargement */
@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effet au survol */
section:hover { transform: none; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

/* Lumière tournante subtile en fond */
section::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.08), transparent 70%);
    animation: none;
    pointer-events: none;
    z-index: 0;
}

/* Animation de rotation lente */
@keyframes spinLight {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Le contenu reste au-dessus de la lumière animée */
section > * {
    position: relative;
    z-index: 1;
}

/* Style pour les titres H2 dans les sections */
section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #007bff; /* Bleu primaire */
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInText 1s ease-in-out;
}

/* Style pour les paragraphes dans les sections */
section p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 20px;
    animation: fadeInText 1.2s ease-in-out;
}

/* Animation douce sur les textes */
@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===============================
   STYLISATION DU DROPDOWN
================================== */
.service-dropdown {
    display: flex;
    justify-content: center; /* Centrer le dropdown */
    align-items: center;
    width: 100%; /* Assurer que le dropdown occupe toute la largeur de la section */
}

.service-dropdown select {
    font-size: 1rem;
    padding: 12px 20px;
    width: 100%;
    max-width: 450px;
    border: 2px solid #007bff;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
    transition: all 0.3s ease;
}

.service-dropdown select:hover {
    background-color: #f1f1f1;
}

/* Effet au focus (quand l'utilisateur clique dans le select) */
.service-dropdown select:focus {
    outline: none; /* Supprimer la bordure par défaut au focus */
    border-color: #007bff; /* Garder une bordure bleue au focus */
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3); /* Ombre plus marquée */
}

/* ===============================
   RESPONSIVE DESIGN
================================== */
@media (max-width: 768px) {
    section {
        padding: 30px 15px; /* Réduire le padding sur les petits écrans */
    }

    section h2 {
        font-size: 24px; /* Réduire la taille du titre pour les petits écrans */
    }

    section p {
        font-size: 14px; /* Réduire la taille du texte */
    }

    .service-dropdown select {
        font-size: 14px; /* Réduire la taille du texte dans le select */
        padding: 10px 15px; /* Ajuster le padding pour les petits écrans */
    }
}

@media (max-width: 480px) {
    .service-dropdown select {
        font-size: 12px; /* Réduire la taille du texte sur très petits écrans */
        padding: 8px 12px; /* Ajuster le padding pour les très petits écrans */
    }
}

/* ===============================
   FORMULAIRE DE CONTACT
================================== */
.contact-form-section {
    background-color: #f9f9f9; /* Fond clair pour la section */
    padding: 20px;
    border-radius: 12px; /* Coins arrondis pour un effet moderne */
    box-shadow: none; /* Pas d'ombre */
    margin-top: 30px;
}

.contact-form-section h3 {
    font-size: 24px;
    color: #007bff; /* Couleur bleue pour le titre */
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #007bff;
    box-sizing: border-box;
    margin-bottom: 10px;
    font-size: 16px;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #0056b3; /* Couleur de la bordure lors du focus */
    box-shadow: none; /* Pas d'ombre au focus */
}

.form-textarea {
    resize: vertical; /* Permet de redimensionner la zone de texte verticalement */
}

.form-btn {
    background-color: #007bff;
    color: #fff;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: none;
    width: 100%;
    max-width: 200px;
    margin: 0 auto; /* Centrer le bouton */
    display: block;
}

/* Effet de survol sur le bouton */
.form-btn:hover { background-color: #007bff; }

/* ===============================
   FOOTER - MODERNE ET ÉLÉGANT
================================== */
footer {
    background: linear-gradient(135deg, #00bfff, #007bff); /* Dégradé de couleurs dynamiques */
    color: white;
    padding: 40px 20px; /* Espacement généreux pour plus d'impact */
    text-align: center;
    border-top: 5px solid #ffffff;
    position: relative;
    box-shadow: none; /* Pas d'ombre */
    transition: none; /* Pas de transition */
}

/* Effet de survol du footer */
footer:hover { background: linear-gradient(135deg, #00bfff, #007bff); transform: none; box-shadow: none; }

/* Texte du footer */
footer p {
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: none; /* Pas d'animation */
}


/* Lien dans le footer */
footer a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: none;
}

footer a:hover { color: white; }

/* ===============================
   RESPONSIVITÉ POUR PETITS ÉCRANS
================================== */

/* Responsivité pour écrans plus petits */
@media (max-width: 768px) {
    footer {
        padding: 30px 15px; /* Moins d'espace sur les petits écrans */
    }

    footer p {
        font-size: 16px; /* Taille du texte réduite pour les petits écrans */
    }
}

/* ===============================
   Désactivation des effets dans le body (hors header)
================================== */
.login-section { box-shadow: none; transition: none; animation: none; }
.login-page {
    min-height: 100vh;
    background: url('/static/videos/truck1.jpg') center/cover no-repeat fixed;
}

.contact-page {
    min-height: 100vh;
    background: url('/static/truck5.jpg') center/cover no-repeat fixed;
}

/* Fond de page unifié pour Accueil/Services/À propos */
.page-bg {
    min-height: 100vh;
    background: url('/static/truck4.jpg') center/cover no-repeat fixed;
    position: relative;
}

.page-bg::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,86,179,0.28), rgba(0,32,80,0.28));
    pointer-events: none;
    z-index: 0;
}

.page-content { position: relative; z-index: 1; }
.page-bg > * { position: relative; z-index: 1; }

/* Supprimer l'image propre au bandeau quand on utilise une image de fond unique */
/* Conserver le visuel du header (app-banner) sur les pages à fond unique */
.page-bg .app-banner { /* aucun override d'image ici */ }
.page-bg .custom-nav { background: rgba(255,255,255,0.94) !important; }
.page-bg .custom-nav-item { color: #004080 !important; }

/* Forcer une bonne lisibilité des textes sur fond unique */
.content-panel {
    background: rgba(255,255,255,0.94);
    border-radius: 12px;
    padding: 16px 20px;
    width: 100%;
    max-width: 1800px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}
.content-panel h1,
.content-panel h2,
.content-panel h3,
.content-panel h4,
.content-panel p,
.content-panel li { color: var(--dark-gray) !important; }
.content-panel a { color: var(--primary) !important; text-decoration: none; }
.content-panel a:hover { text-decoration: underline; }

/* Sections texte sans boîtes */
.page-section { margin: 24px 0; }

/* KPIs */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; text-align: center; }
@media (max-width: 992px){ .kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px){ .kpi-grid { grid-template-columns: 1fr; } }
.kpi-item { padding: 16px; border-top: 3px solid var(--primary); background: rgba(255,255,255,0.96); border-radius: 10px; }
.kpi-value { font-size: 2rem; font-weight: 800; color: #004080; }
.kpi-label { color: var(--dark-gray); }

/* Secteurs */
.sectors-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
@media (max-width: 992px){ .sectors-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px){ .sectors-grid { grid-template-columns: 1fr; } }
.sectors-grid li { padding: 10px 12px; background: rgba(255,255,255,0.96); border-radius: 8px; text-align: center; border-top: 3px solid var(--primary); }

/* CTA devis */
.quote-cta { text-align: center; background: rgba(255,255,255,0.96); border-radius: 12px; padding: 24px; }

/* Section sombre (Services phares) */
.section-dark {
    background: linear-gradient(180deg, #0a1d33, #00132a) !important;
    padding-top: clamp(12px, 2vw, 28px);
    padding-bottom: clamp(12px, 2vw, 28px);
}
.section-dark h2 { color: #ffffff !important; }
.section-dark .list-services { gap: 16px; }
.section-dark .list-services li { margin-bottom: 0; }
.section-dark .svc-card .svc-card-content h4,
.section-dark .svc-card .svc-card-content p { color: #ffffff !important; }

/* Listes segmentées responsives */
.list-services,
.features-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--grid-min), 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    justify-items: stretch;
}

/* Disposition: 2 colonnes par défaut, 1 colonne sur petits écrans */
.list-services,
.features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 640px) {
    .list-services,
    .features-grid { grid-template-columns: 1fr; }
}

/* Si le nombre d'éléments est impair (ex: 5), le dernier occupe toute la largeur */
.list-services > li:nth-last-child(1):nth-child(odd) { grid-column: 1 / -1; }
.features-grid > li:nth-last-child(1):nth-child(odd),
.features-grid > .feature-item:nth-last-child(1):nth-child(odd) { grid-column: 1 / -1; }

.list-services li,
.features-grid li,
.features-grid .feature-item {
    padding: 12px 16px;
    border-top: 3px solid var(--primary);
    background-color: transparent;
    margin-bottom: 8px;
    text-align: center;
}

/* Cartes de services avec image de fond */
.svc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.svc-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,86,179,0.4), rgba(0,32,80,0.7));
}
.svc-card-content { position: relative; z-index: 1; padding: 12px; }
.svc-card .svc-card-content h4,
.svc-card .svc-card-content p { color: #ffffff !important; }
.list-services .svc-card { border-top: none; }
.svc-toggle { display: inline-block; margin-top: 6px; color: var(--primary-dark); text-decoration: none; }
.svc-toggle:hover, .svc-toggle:focus { text-decoration: underline; outline: none; }

/* Images de fond par service */
.svc-bg-general { background-image: url('/static/truck1.jpg'); }
.svc-bg-refrigere { background-image: url('/static/truck6.jpg'); }
.svc-bg-danger { background-image: url('/static/truck3.jpg'); }
.svc-bg-carburants { background-image: url('/static/truck5.jpg'); }
.svc-bg-logistique { background-image: url('/static/truck4.jpg'); }

/* Détails des services (affichés uniquement quand sélectionné) */
.svc-details {
    display: none;
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255,255,255,0.98);
    color: var(--dark-gray);
    text-align: left;
    border: 1px solid rgba(0,0,0,0.08);
    line-height: 1.6;
}
.svc-card.expanded .svc-details { display: block; }

/* Lisibilité du sélecteur Services */
.service-dropdown .form-select { width: min(520px, 95vw) !important; font-size: 1.05rem; padding: 10px 14px; }
.service-dropdown { margin-bottom: 8px; }

.list-services h4,
.features-grid h4,
.features-grid h3 { margin: 0 0 6px; }

/* Lisibilité sur fond d'image */
.page-bg .list-services h4,
.page-bg .list-services p,
.page-bg .features-grid h3,
.page-bg .features-grid p,
.page-bg .page-section h2,
.page-bg .page-section p { color: #ffffff !important; }
.login-section:hover { box-shadow: none; transform: none; }

.contact-form-section { box-shadow: none; }

.hero, .slogan, .slogan-gif { box-shadow: none; animation: none; }
.hero h1:hover, .hero p:hover { color: inherit; transition: none; }

.value-item:hover { transform: none; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }

.service-dropdown select { box-shadow: none; transition: none; }

/* Responsive : pour très petits écrans (mobiles) */
@media (max-width: 480px) {
    footer {
        padding: 20px 10px; /* Moins d'espace sur les très petits écrans */
    }

    footer p {
        font-size: 14px; /* Réduction de la taille du texte pour les petits appareils */
    }
}

/* ===============================
   FOOTER - OPTIMISATION POUR GRANDS ÉCRANS
================================== */

/* Responsivité pour écrans larges (jusqu'à 4K) */
@media (min-width: 1600px) {
    footer {
        padding: 60px 30px; /* Plus d'espace sur les grands écrans */
    }

    footer p {
        font-size: 20px; /* Augmenter la taille du texte pour les grands écrans */
    }

    footer a {
        font-size: 18px; /* Augmenter la taille des liens */
    }
}

/* ===============================
   HERO SECTION - STYLE MODERNE ET DYNAMIQUE
================================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #007bff, #00c6ff); /* Dégradé de couleurs bleues */
    color: white;
    height: 100vh; /* Hauteur complète de la fenêtre */
    display: flex;
    justify-content: center; /* Centrer horizontalement */
    align-items: center; /* Centrer verticalement */
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Ombre douce autour de la section */
    border-radius: 12px; /* Coins arrondis pour un effet moderne */
    animation: fadeIn 1s ease-out; /* Animation d'apparition de la section */
}


/* Texte du Hero */
.hero-text {
    animation: fadeIn 1.2s ease-out; 
}

/* Animation du texte */
@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 48px;
    font-weight: 40px;
    letter-spacing: 2px; /* Espacement des lettres */
    text-transform: uppercase; /* Mise en majuscule pour le titre */
    margin-bottom: 20px;
    color: white;
    animation: fadeInText 1s ease-in-out;
}

.hero p {
    font-size: 20px;
    font-weight: 40px;
    margin: 0;
    opacity: 0.8; /* Légère transparence pour plus de subtilité */
    color: white;
    animation: fadeInText 1.2s ease-in-out;
}

/* Effet de survol pour le texte */
.hero h1:hover {
    color: #f0e68c; /* Changement de couleur du titre au survol */
    transition: color 0.3s ease;
}

.hero p:hover {
    color: #f0e68c; /* Idem pour le paragraphe */
    transition: color 0.3s ease;
}

/* Responsivité pour petits écrans */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px; /* Réduire la taille du titre */
    }

    .hero p {
        font-size: 18px; /* Réduire la taille du texte */
    }
}

/* Responsivité pour très petits écrans */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px; /* Réduire encore la taille du titre */
    }

    .hero p {
        font-size: 16px; /* Réduire la taille du texte pour les plus petits écrans */
    }
}

/* ===============================
   SLOGAN - IMAGE DE FOND
================================== */
.slogan {
    position: relative;
    background-image: url('/static/truck2.jpg'); /* Remplacer par ton image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    color: white;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.2);
    animation: fadeIn 1.5s ease-in-out;
}

.overlay-content {
    position: relative;
    z-index: 1;
}

.slogan h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.slogan p {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.8;
    color: #ffffff;
}

/* Animation d'apparition */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ===============================
   VALEURS
================================== */
.valeur {
    padding: 4rem 2rem;
    background-color: #f7f7f7;
    color: #333;
}

.valeur h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 2rem;
}

.values-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem;
    justify-items: center;
    align-items: start;
}

.value-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: all 0.3s ease-in-out;
    text-align: center;
    width: 100%;
    max-width: 320px;
}

.value-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.value-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.value-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.value-item:focus-within {
    border: 2px solid #007bff;
}

/* Responsive */
@media (max-width: 1024px) {
    .values-list {
        grid-template-columns: 1fr 1fr;
    }

    .valeur h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .values-list {
        grid-template-columns: 1fr;
    }

    .valeur h2 {
        font-size: 1.8rem;
    }

    .value-item h3 {
        font-size: 1.2rem;
    }

    .value-item p {
        font-size: 0.9rem;
    }
}

@media (min-width: 2560px) {
    .valeur {
        padding: 6rem 3rem;
    }

    .values-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }

    .value-item {
        max-width: 380px;
    }
}

/*====================================
 Section de Connexion - Version corrigée
====================================*/

.login-section {
    max-width: 500px;
    width: 90%;
    margin: 40px auto;
    padding: 30px;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    background-color: var(--white);
    box-shadow: var(--shadow);
    box-sizing: border-box;
    transition: var(--transition);
    animation: fadeIn 0.8s ease-in-out;
}

.login-section:hover {
    box-shadow: var(--shadow-hover);
    transform: scale(1.02);
}

.login-section h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.login-section .form-group {
    margin-bottom: 20px;
}

.login-section label {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.login-section input {
    width: 100%;
    padding: 12px 15px;
    margin-top: 5px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    background-color: var(--light);
    box-sizing: border-box;
    font-size: 16px;
    transition: var(--transition);
}

.login-section input:focus {
    outline: none;
    border-color: var(--primary-dark);
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
    background-color: #eef6ff;
}

.login-section button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.login-section button:hover {
    background-color: var(--primary-dark);
}

/* Responsive design */
@media (max-width: 768px) {
    .login-section {
        max-width: 95%;
        padding: 20px;
    }

    .login-section h3 {
        font-size: 24px;
    }

    .login-section input, .login-section button {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .login-section {
        max-width: 100%;
        padding: 15px;
    }

    .login-section h3 {
        font-size: 22px;
    }

    .login-section input, .login-section button {
        padding: 12px;
    }
}

.slogan-gif {
    position: relative;
    width: 100%;
    height: 100vh; /* Pleine hauteur écran */
    background-image: url('/static/truck1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    color: #fff;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.2);
    animation: fadeIn 1.5s ease-in-out;
}

.slogan-gif h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.slogan-gif p {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Mode Dark */
.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

.dark-mode header, 
.dark-mode nav, 
.dark-mode section, 
.dark-mode footer {
    background-color: #1f1f1f;
    color: #ffffff;
}

.dark-mode .custom-nav-item {
    color: #ffffff;
}

.dark-mode .custom-nav-item:hover {
    background-color: #333;
}

.dark-mode .btn {
    background-color: #333;
    border-color: #555;
    color: #fff;
}

.dark-mode .btn:hover {
    background-color: #555;
}

/* ===============================
   OVERRIDE: Neutraliser tous les effets visuels
================================== */
:root {
    --transition: none !important;
    --shadow: none !important;
    --shadow-hover: none !important;
}
*, *::before, *::after {
    transition: none !important;
    animation: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
}
*:hover, *:focus, *:active {
    transform: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
.custom-nav, .custom-nav:hover { box-shadow: none !important; }
.custom-nav { position: static !important; top: auto !important; }
.custom-nav-item:hover { background-color: inherit !important; color: inherit !important; transform: none !important; }
.custom-nav-item:active { background-color: inherit !important; color: inherit !important; }
footer:hover { background: inherit !important; }
.btn:hover, .form-btn:hover { background-color: inherit !important; color: inherit !important; box-shadow: none !important; }
.shadow, .shadow-sm, .shadow-lg, .card { box-shadow: none !important; }
.table-hover tbody tr:hover > *, .table-hover tbody tr:hover { --bs-table-accent-bg: transparent !important; background-color: inherit !important; }
.table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-accent-bg: transparent !important; background-color: inherit !important; }
a:hover { color: inherit !important; text-decoration: inherit !important; }
/* Page d'accueil (pré-login): supprimer images/animations de fond au besoin */
.app-banner { box-shadow: none !important; animation: none !important; color: #fff; }
.app-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,86,179,0.35), rgba(0,32,80,0.35)); }
.app-banner > * { position: relative; z-index: 1; }
.service-box { /* conserver images définies plus haut */ }
section { background-color: #ffffff !important; box-shadow: none !important; }
/* Désactiver les pseudo-éléments décoratifs */
section::before, section::after { background: none !important; }
/* Footer sans dégradé */
footer { background: #212529 !important; background-image: none !important; }
/* Lisibilité des boîtes de service sans image */
/* conserver couleur d'origine des boîtes de service */
/* Neutraliser les cartes/boîtes de valeurs */
.value-item, .value-item:hover { box-shadow: none !important; transform: none !important; }
/* Neutraliser héro/slogans si utilisés */
.hero, .slogan, .slogan-gif { background: none !important; box-shadow: none !important; animation: none !important; }
/* Neutraliser scrollbar personnalisée */
.scrollbar { scrollbar-width: auto !important; scrollbar-color: auto !important; }
.scrollbar::-webkit-scrollbar { width: initial !important; height: initial !important; }
.scrollbar::-webkit-scrollbar-thumb { background: initial !important; border-radius: initial !important; }
.scrollbar::-webkit-scrollbar-track { background: initial !important; }

/* ===============================
   FOOTER MODERNE
================================== */
@keyframes footerFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes footerRiseIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.footer-modern {
    background: linear-gradient(135deg, #0056b3, #00bfff) !important;
    color: #ffffff !important;
    padding: 40px 0;
}
.footer-modern .container { max-width: 1200px; }
.footer-modern p {
    margin: 0.2rem 0;
    letter-spacing: 0.02em;
    animation: footerFadeIn 600ms ease-out 60ms both !important;
}
.footer-modern .footer-title {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    animation: footerRiseIn 650ms ease-out 20ms both !important;
}
.footer-modern a { color: #e6f2ff !important; text-decoration: none; }
.footer-modern a:hover { color: #ffffff !important; text-decoration: underline !important; }
.footer-divider { height: 1px; background: rgba(255,255,255,0.25); margin: 12px 0; }

/* Overrides de lisibilité dans les panneaux de contenu (après règles globales) */
.content-panel .list-services h4,
.content-panel .features-grid h3,
.content-panel .features-grid h4,
.content-panel .list-services p,
.content-panel .features-grid p { color: var(--dark-gray) !important; }

/* Forcer texte blanc dans les cartes svc-card (images bleues) */
.content-panel .svc-card .svc-card-content h4,
.content-panel .svc-card .svc-card-content p { color: #ffffff !important; }

/* Image dans les items de la section À propos */
.feature-media { width: 100%; height: auto; display: block; border-radius: 10px; margin-bottom: 8px; }
