/* 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;
}

/* =========================================================
   ERP (internal) styles live later in this file.
   Scope: `body.app-internal` (prevents public bleed).
========================================================= */

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

    /* 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;
}

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

.app-hero-brand{
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}
.app-hero-logo{
    height: 64px;
    width: auto;
    max-width: min(520px, 90vw);
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,.12));
}

/* 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: var(--app-bg);
    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-brand{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--app-text);
    padding: 6px 10px;
    border-radius: 10px;
}
.custom-nav-brand:hover{
    background: var(--app-surface, #f4f6f8);
    color: var(--app-text);
}
.custom-nav-logo{
    height: 34px;
    width: auto;
    display: block;
}
.custom-nav-name{
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    font-size: 14px;
}

.custom-nav-item {
    font-size: 16px;
    font-weight: 600;
    color: var(--app-primary-blue);
    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: var(--app-surface, #f4f6f8); color: var(--app-deep-navy); 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: var(--app-primary-blue); /* Fond 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; }
.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 */
/* 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 */
/* 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 */

/* ===============================
   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 public) styles are defined on `.footer-modern` below. */

/* ===============================
   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 .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 */
body:not(.app-internal) .kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; text-align: center; }
@media (max-width: 992px){ body:not(.app-internal) .kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px){ body:not(.app-internal) .kpi-grid { grid-template-columns: 1fr; } }
body:not(.app-internal) .kpi-item { padding: 16px; border-top: 3px solid var(--primary); background: rgba(255,255,255,0.96); border-radius: 10px; }
body:not(.app-internal) .kpi-value { font-size: 2rem; font-weight: 800; color: #004080; }
body:not(.app-internal) .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));
}
body:not(.app-internal) .svc-card-content { position: relative; z-index: 1; padding: 12px; text-align: center; }
.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) */
/* (footer public responsive) handled in footer-modern section below. */

/* (footer public large screens) handled in footer-modern section below. */

/* ===============================
   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 */
.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 */
/* ===============================
   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);
}

/* =========================================================
   ERP — Internal UI (scoped)
   Scope: body.app-internal
========================================================= */

body.app-internal {
  --erp-bg: #f5f7fb;
  --erp-surface: #ffffff;
  --erp-text: #1b1f24;
  --erp-muted: rgba(27, 31, 36, 0.72);
  --erp-border: rgba(0, 0, 0, 0.08);
  --erp-border-strong: rgba(0, 0, 0, 0.12);
  --erp-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
  --erp-radius: 12px;
  --erp-primary: #0b2a5b;
  --erp-primary-soft: rgba(11, 42, 91, 0.08);
  --erp-danger: #dc3545;
  --erp-warning: #f6c343;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
}

body.app-internal main { flex: 1; }

body.app-internal .internal-shell { background: var(--erp-bg); min-height: 100vh; }
body.app-internal .internal-sidebar { background: var(--erp-surface); }
body.app-internal .internal-topbar {
  position: relative;
  z-index: auto;
  min-height: 58px;
  background: var(--erp-surface);
  border-bottom: 1px solid var(--erp-border);
}

/* Public header/nav is visible in ERP; mobile layering handled below. */

/* Hamburger must remain clickable even when layers overlap */
body.app-internal .internal-topbar button[data-bs-toggle="offcanvas"]{
  position: relative;
  z-index: 6001;
}

/* Mobile/tablet: keep hamburger ALWAYS visible at top-left (above app-banner). */
@media (max-width: 991.98px){
  body.app-internal .internal-topbar{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 5000;
  }

  /* Place public header/nav below the fixed ERP topbar. */
  body.app-internal .app-banner{
    margin-top: 58px;
  }
  /* Avoid sticky vs fixed conflicts on mobile. */
  body.app-internal .custom-nav{
    position: static !important;
    top: auto !important;
    z-index: auto !important;
  }

  body.app-internal .internal-shell{
    padding-top: 58px;
  }

  /* Offcanvas sidebar should start BELOW the fixed topbar (prevents unclickable menu items). */
  body.app-internal .internal-sidebar.offcanvas-start{
    top: 58px;
    height: calc(100% - 58px);
  }
  body.app-internal .internal-sidebar.offcanvas-start .offcanvas-body{
    max-height: calc(100% - 0px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}
body.app-internal .internal-content-inner { max-width: 1600px; margin: 0 auto; padding: 0 var(--s3); }
body.app-internal .internal-page-title { font-size: 16px; color: var(--erp-text); }

body.app-internal .internal-sidebar-inner { min-height: 100vh; }
body.app-internal .internal-nav-section { letter-spacing: 0.08em; }
body.app-internal .internal-nav-link {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--erp-text);
  text-decoration: none;
}
body.app-internal .internal-nav-link:hover { background: rgba(0,0,0,0.04); color: var(--erp-text); }
body.app-internal .internal-nav-link.active {
  background: rgba(13, 110, 253, 0.10);
  border: 1px solid rgba(13, 110, 253, 0.22);
}

/* Sidebar accordion toggles (parent sections) */
body.app-internal .internal-nav-toggle{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--erp-text);
  text-align: left;
}
body.app-internal .internal-nav-toggle:hover{
  background: rgba(0,0,0,0.04);
}
body.app-internal .internal-nav-toggle.active{
  background: rgba(13, 110, 253, 0.10);
  border: 1px solid rgba(13, 110, 253, 0.22);
}
body.app-internal .internal-nav-chevron{
  display: inline-block;
  font-size: 12px;
  color: rgba(27,31,36,0.58);
  transition: transform 180ms ease;
}
body.app-internal .internal-nav-toggle[aria-expanded="true"] .internal-nav-chevron{
  transform: rotate(180deg);
}
body.app-internal .internal-subnav { display: flex; flex-direction: column; gap: 6px; }
/* Indentation + hierarchy */
body.app-internal .internal-subnav{
  margin-left: 8px;
  padding-left: 10px;
  border-left: 1px solid rgba(0,0,0,0.06);
}
body.app-internal .internal-subnav-link{
  display: block;
  padding: 7px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(27,31,36,0.78);
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.04);
}
body.app-internal .internal-subnav-link:hover{ background: rgba(0,0,0,0.04); color: rgba(27,31,36,0.95); }
body.app-internal .internal-subnav-link.active{
  background: var(--erp-primary-soft);
  border-color: rgba(11,42,91,0.18);
  color: var(--erp-primary);
  font-weight: 700;
}

body.app-internal .internal-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s4);
  margin-bottom: var(--s4);
}
body.app-internal .internal-page-subtitle { color: var(--erp-muted); font-size: 13px; }

body.app-internal .internal-card {
  background: var(--erp-surface);
  border: 1px solid var(--erp-border);
  border-radius: var(--erp-radius);
  box-shadow: var(--erp-shadow);
}
body.app-internal .internal-card-header {
  padding: var(--s4);
  border-bottom: 1px solid var(--erp-border);
  background: var(--erp-surface);
  border-top-left-radius: var(--erp-radius);
  border-top-right-radius: var(--erp-radius);
}
body.app-internal .internal-card-body { padding: var(--s4); }

/* Executive (Direction) premium layer */
body.app-internal .executive-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(0, 0, 0, 0.10);
}
body.app-internal .executive-card::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.95;
  background: linear-gradient(135deg, rgba(11, 42, 91, 0.92), rgba(21, 101, 192, 0.70));
}
body.app-internal .executive-card--pdg::before{
  background: linear-gradient(135deg, rgba(60, 0, 16, 0.95), rgba(120, 0, 30, 0.75));
}
body.app-internal .executive-card--vpdg::before{
  background: linear-gradient(135deg, rgba(0, 20, 60, 0.95), rgba(0, 60, 140, 0.75));
}
body.app-internal .executive-card > .internal-card-body,
body.app-internal .executive-card > .internal-card-header{
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.92);
  background: transparent;
  border-color: rgba(255,255,255,0.18);
}
body.app-internal .executive-title{
  font-weight: 900;
  font-size: 18px;
  line-height: 1.15;
}
body.app-internal .executive-subtitle{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  color: rgba(255,255,255,0.85);
}
body.app-internal .executive-meta{
  margin-top: 10px;
  color: rgba(255,255,255,0.82);
}
body.app-internal .executive-badge{
  letter-spacing: 0.08em;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,0.22);
}
body.app-internal .executive-badge--pdg{ background: rgba(120, 0, 30, 0.85); }
body.app-internal .executive-badge--vpdg{ background: rgba(0, 60, 140, 0.85); }
body.app-internal .executive-card .text-muted{ color: rgba(255,255,255,0.75) !important; }

body.app-internal .internal-kpi-card { border-top: 3px solid rgba(13,110,253,0.55); }
body.app-internal .internal-kpi-danger { border-top-color: rgba(220,53,69,0.65); }
body.app-internal .internal-kpi-value { font-size: 30px; font-weight: 800; line-height: 1.05; margin-top: 4px; }
body.app-internal .internal-kpi-money { font-size: 22px; font-weight: 800; line-height: 1.1; margin-top: 6px; }

body.app-internal .internal-table thead th{
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(27,31,36,0.70);
  border-bottom-color: var(--erp-border-strong);
}
body.app-internal .internal-table td { vertical-align: middle; }
body.app-internal .internal-table .text-muted.small { color: rgba(27,31,36,0.62) !important; }

body.app-internal .internal-form .form-label { font-weight: 700; font-size: 13px; color: rgba(27,31,36,0.78); }
body.app-internal .internal-form .form-control,
body.app-internal .internal-form .form-select {
  border-radius: 12px;
  border-color: rgba(0,0,0,0.14);
}

@media (min-width: 992px){
  body.app-internal .internal-sidebar.offcanvas-lg { width: 290px; }
}

/* Offcanvas vs Modal layering (Bootstrap-compatible).
   Keep the ERP sidebar above page content, but ALWAYS below modals.
   Bootstrap defaults: offcanvas 1045 / backdrop 1040 / modal 1055 / modal-backdrop 1050.
*/
body.app-internal .internal-sidebar,
body.app-internal .offcanvas-lg {
  z-index: 1045 !important;
}
body.app-internal .offcanvas-backdrop { z-index: 1040 !important; }

/* Ensure modals remain clickable above any internal overlays. */
/* Put modals above ALL internal layers (topbar/offcanvas/footer). */
body.app-internal .modal { z-index: 7000; }
body.app-internal .modal-backdrop {
  z-index: 6990;
  /* Safety: never let the backdrop block clicks on the modal content. */
  pointer-events: none;
}

/* Fixed footer (internal pages only) + shrink on scroll */
body.app-internal main { padding-bottom: 240px; }
body.app-internal .footer-modern.app-footer{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  margin: 0;
  border-radius: 0;
  max-height: 220px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  transition: max-height 180ms ease, padding 180ms ease;
}
body.app-internal .footer-modern.app-footer .container { padding-top: 16px; padding-bottom: 16px; }

body.app-internal.app-scrolled .footer-modern.app-footer{ max-height: 92px; overflow: hidden; }
body.app-internal.app-scrolled .footer-modern.app-footer .app-footer-separator{ display: none; }
body.app-internal.app-scrolled .footer-modern.app-footer .app-footer-grid > :not(:first-child){ display: none; }
body.app-internal.app-scrolled .footer-modern.app-footer .app-footer-about{ display: none; }
body.app-internal.app-scrolled .footer-modern.app-footer .app-footer-slogan{ margin-top: 0; }
body.app-internal.app-scrolled main { padding-bottom: 120px; }

@media (max-width: 576px){
  body.app-internal main { padding-bottom: 260px; }
  body.app-internal .footer-modern.app-footer{ max-height: 240px; }
  body.app-internal.app-scrolled .footer-modern.app-footer{ max-height: 104px; }
}

/* 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;
}

/* ===============================
   FOOTER MODERNE
================================== */
.footer-modern.app-footer{
  font-family: Inter, Poppins, Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --app-footer-bg-0: #060b18;
  --app-footer-bg-1: #07122a;
  --app-footer-accent: #2a7fff;
  --app-footer-text: rgba(255,255,255,0.90);
  --app-footer-muted: rgba(255,255,255,0.70);

  color: var(--app-footer-text);
  background:
    radial-gradient(1200px 420px at 18% 0%, rgba(42,127,255,0.12), transparent 55%),
    radial-gradient(900px 360px at 86% 10%, rgba(0, 196, 255, 0.08), transparent 55%),
    linear-gradient(180deg, var(--app-footer-bg-1), var(--app-footer-bg-0));
  padding: 22px 0;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 -1px 0 rgba(255,255,255,0.04);
}

.footer-modern.app-footer .app-footer-separator{
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(42,127,255,0.55), rgba(255,255,255,0.14), transparent);
  margin-bottom: 14px;
  opacity: 0.9;
}

.footer-modern.app-footer .app-footer-brand{
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  line-height: 1.2;
  color: rgba(255,255,255,0.94);
}
.footer-modern.app-footer .app-footer-slogan{
  margin-top: 8px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
  color: rgba(255,255,255,0.86);
}
.footer-modern.app-footer .app-footer-about{
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--app-footer-muted);
  max-width: 46ch;
}

.footer-modern.app-footer .app-footer-h{
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 900;
  color: rgba(255,255,255,0.76);
  margin-bottom: 10px;
}

.footer-modern.app-footer .app-footer-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.footer-modern.app-footer .app-footer-item{
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 12.5px;
  line-height: 1.25;
  color: rgba(255,255,255,0.74);
}
.footer-modern.app-footer .app-footer-ico{
  color: rgba(255,255,255,0.86);
  transform: translateY(1px);
}
.footer-modern.app-footer .app-ico{ width: 14px; height: 14px; }

.footer-modern.app-footer .app-footer-link{
  color: rgba(255,255,255,0.86);
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  transition: color 160ms ease;
}
.footer-modern.app-footer .app-footer-link::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(42,127,255,0.9), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 190ms ease;
  opacity: 0.9;
}
.footer-modern.app-footer .app-footer-link:hover{ color: #fff; }
.footer-modern.app-footer .app-footer-link:hover::after{ transform: scaleX(1); }

@media (prefers-reduced-motion: reduce){
  .footer-modern.app-footer .app-footer-link{ transition: none !important; }
  .footer-modern.app-footer .app-footer-link::after{ transition: none !important; }
}

@media (max-width: 575px){
  .footer-modern.app-footer{ padding: 18px 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; }
