/*---------------------------------------
 * VARIABLES GLOBALES
 *---------------------------------------*/
:root {
    --transition-smooth: all 0.3s ease;
    --shadow-primary: 0 10px 30px rgba(59, 180, 75, 0.2);
    --shadow-success: 0 10px 30px rgba(18, 206, 93, 0.3);
    --primary-gradient: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-link-hover-color) 100%);
    --success-gradient: linear-gradient(135deg, #12CE5D 0%, #0ea54a 100%);
    --warning-gradient: linear-gradient(135deg, #FFD80C 0%, #ff9500 100%);
}

/*---------------------------------------
 * UTILITAIRES & CLASSES COMMUNES
 *---------------------------------------*/
/* Effets hover */
.hover-text-primary:hover { color: #1e3c72 !important; }
.hover-text-success:hover { color: #12CE5D !important; }
.hover-text-warning:hover { color: #FFD80C !important; }
.hover-text-white:hover { color: #ffffff !important; transition: color 0.3s ease; }

/* Effets d'élévation */
.hover-elevate-up {
    transition: var(--transition-smooth);
}
.hover-elevate-up:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.hover-lift {
    transition: var(--transition-smooth);
}
.hover-lift:hover {
    transform: translateY(-3px);
}
.hover-lift-light:hover {
    transform: translateY(-2px);
}

/* Texte avec limitation de ligne */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Classes de style de ligne */
.line-height-base { line-height: 1.6; }
.line-height-lg { line-height: 1.8; }

/* Utilitaire d'image */
.object-cover {
    object-fit: cover;
    object-position: center;
}

/* Ombres de texte */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.text-shadow-strong {
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.8),
        1px 1px 2px rgba(0, 0, 0, 0.6);
}

/*---------------------------------------
 * ACCESSIBILITÉ
 *---------------------------------------*/
/* Liens d'accès rapide */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--bs-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 6px;
}

/* Focus visible pour l'accessibilité */
.keyboard-navigation *:focus {
    outline: 2px solid var(--bs-primary) !important;
    outline-offset: 2px !important;
}

/* Focus states pour les éléments interactifs */
.nav-link:focus-visible,
.btn:focus-visible,
.dropdown-item:focus-visible,
.footer-link:focus-visible,
.social-link:focus-visible,
.footer-menu-link:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid #12CE5D;
    outline-offset: 2px;
}

/* Support des modes d'affichage spéciaux */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .nav-link,
    .nav-link::after {
        transition: none;
    }

    .footer-section {
        animation: none;
    }

    .footer-link:hover,
    .social-link:hover,
    .btn-outline-cnom-red:hover {
        transform: none;
    }
}

@media (prefers-color-scheme: dark) {
    .card {
        background-color: rgba(255, 255, 255, 0.95);
    }

    .landing-header {
        background: rgba(33, 37, 41, 0.95);
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .nav-link {
        color: var(--bs-gray-300);
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--bs-primary) !important;
    }
}

@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }

    .card {
        border: 1px solid #000;
    }

    .nav-link {
        border-bottom-width: 4px;
    }

    .nav-link:hover,
    .nav-link.active {
        border-bottom-color: currentColor;
    }

    .footer-main-bg {
        background: #000000;
        border-top: 3px solid #ffffff;
    }

    .footer-link, .footer-menu-link {
        color: #ffffff !important;
        text-decoration: underline !important;
    }

    .social-link {
        border: 2px solid #ffffff;
        background: #000000 !important;
    }

    .social-link i {
        color: #ffffff !important;
    }

    .landing-dark-separator {
        background: #ffffff;
        height: 2px;
    }
}

/* Styles pour l'impression */
@media print {
    .hero-section,
    .slider-nav,
    .slider-btn {
        display: none;
    }

    .footer-section {
        background: none !important;
        color: black !important;
        border-top: 1px solid #ddd;
        padding-top: 1rem !important;
    }

    .footer-section * {
        color: black !important;
    }

    .social-networks,
    .emergency-contact,
    .landing-curve {
        display: none !important;
    }
}

/*---------------------------------------
 * FORMULAIRES ET VALIDATION
 *---------------------------------------*/
/* Styles pour intl-tel-input */
.iti {
    width: 100%;
}

/* Style pour les messages d'erreur et de validation */
.error {
    border: 1px solid #dc3545;
}
.is-valid {
    border: 1px solid #198754;
}

/* Styles améliorés pour les formulaires */
.form-control:focus,
.form-select:focus {
    border-color: #12CE5D;
    box-shadow: 0 0 0 0.2rem rgba(18, 206, 93, 0.25);
}

/*---------------------------------------
 * ANIMATIONS
 *---------------------------------------*/
/* Keyframes */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(-5px) rotate(-1deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Classes avec animations */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.animate-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation du menu mobile — uniquement quand le drawer est ouvert */
[data-kt-drawer="true"].drawer-on {
    animation: slideInFromLeft 0.3s ease-out;
    z-index: 11000;
}

/* Cacher le menu header sur mobile tant que le JS n'a pas initialisé le drawer */
@media (max-width: 991.98px) {
    .app-header-mobile-drawer:not(.drawer-on) {
        display: none !important;
    }
}

/* Animation pour les postes */
.poste-item.fade-enter-active, .poste-item.fade-leave-active {
    transition: opacity 0.5s;
}
.poste-item.fade-enter, .poste-item.fade-leave-to {
    opacity: 0;
}

.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

/*---------------------------------------
 * HEADER & NAVIGATION
 *---------------------------------------*/
/* Header principal */
.landing-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    z-index: 10000;
    position: relative;
}

.landing-header[data-kt-sticky-name="landing-header"] {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
    z-index: 10000;
    position: relative;
}

/* Logo et branding */
.landing-header a:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

/* Navigation standard */
.nav-link {
    position: relative;
    padding: 0.75rem 1rem;
    border-bottom: 3px solid transparent;
    border-top: 3px solid transparent;
    transition: all 0.3s ease;
    color: var(--bs-gray-700);
    text-decoration: none;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--bs-primary) !important;
    border-bottom-color: var(--bs-primary);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--bs-primary) !important;
    border-top-color: var(--bs-primary);
    border-bottom-color: var(--bs-primary);
    font-weight: 600;
}

/* Effet de transition pour le border */
.nav-link::after {
    content: '';
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    transition: all 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Variantes de styles pour la navigation */
.nav-link-simple {
    position: relative;
    padding: 0.75rem 1rem;
    border-bottom: 4px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--bs-gray-700);
    text-decoration: none;
    font-weight: 500;
}

.nav-link-simple:hover {
    color: var(--bs-primary) !important;
    border-bottom-color: var(--bs-primary);
    transform: translateY(-2px);
}

.nav-link-simple.active {
    color: var(--bs-primary) !important;
    border-bottom-color: var(--bs-primary);
    font-weight: 600;
}

/* Style 1: Border large et net */
.nav-link-thick {
    border-bottom: 5px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.nav-link-thick:hover,
.nav-link-thick.active {
    border-bottom-color: var(--bs-primary);
    color: var(--bs-primary) !important;
}

/* Style 2: Border avec gradient */
.nav-link-gradient {
    position: relative;
    border-bottom: 4px solid transparent;
}

.nav-link-gradient::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-success) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link-gradient:hover::before,
.nav-link-gradient.active::before {
    transform: scaleX(1);
}

/* Style 3: Border animé du centre vers l'extérieur */
.nav-link-center {
    position: relative;
    border-bottom: 4px solid transparent;
}

.nav-link-center::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 4px;
    background-color: var(--bs-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link-center:hover::after,
.nav-link-center.active::after {
    width: 100%;
}

/* Style 4: Border avec effet de glow */
.nav-link-glow {
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-link-glow:hover,
.nav-link-glow.active {
    border-bottom-color: var(--bs-primary);
    box-shadow: 0 3px 10px rgba(var(--bs-primary-rgb), 0.3);
    color: var(--bs-primary) !important;
}

/* Classes utilitaires pour les styles de navigation */
.nav-style-default .nav-link {
    /* Utilise le style par défaut avec ::after */
}

.nav-style-simple .nav-link {
    border-bottom: 4px solid transparent;
}

.nav-style-simple .nav-link:hover,
.nav-style-simple .nav-link.active {
    border-bottom-color: var(--bs-primary);
    color: var(--bs-primary) !important;
}

.nav-style-simple .nav-link::after {
    display: none;
}

/* Dropdowns améliorés */
.dropdown-menu {
    border: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    margin-top: 8px;
    padding: 8px;
    min-width: 280px;
}

.dropdown-item {
    border-radius: 8px;
    margin-bottom: 2px;
    transition: all 0.2s ease;
    padding: 12px 16px;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(59, 180, 75, 0.1) 0%, rgba(45, 146, 58, 0.1) 100%);
    transform: translateX(4px);
    color: var(--bs-primary);
}

/* Badge pour notifications */
.badge-sm {
    font-size: 10px;
    padding: 4px 6px;
    min-width: 18px;
}

.badge {
    font-weight: 600;
    letter-spacing: 0.025em;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Barre d'information urgente */
.alert {
    font-size: 14px;
}

/*---------------------------------------
 * HERO SECTION & SLIDER
 *---------------------------------------*/
/* Hero Slider Styles avec images d'arrière-plan */
.hero-section {
    height: 100vh;
    min-height: 600px;
    margin-top: -120px;
    padding-top: 120px;
    z-index: 1;
    position: relative;
}

.hero-slider {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide.next {
    transform: translateX(100%);
}

.hero-slide.prev {
    transform: translateX(-100%);
}

/* Overlay sombre pour améliorer la lisibilité du texte */
.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

/* Conteneur transparent pour le texte */
.hero-content-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    pointer-events: none;
}

/* Hero particles et effets */
.hero-particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 200px 200px;
    animation: float 8s ease-in-out infinite;
    opacity: 0.6;
}

.hero-shape {
    background: linear-gradient(45deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* Navigation du slider */
.slider-nav {
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-dot.active,
.slider-dot:hover {
    background: white;
    border-color: white;
    transform: scale(1.2);
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
    transform: scale(1.1);
}

/* Gradient text spécial pour le hero */
.gradient-text-hero {
    background: linear-gradient(135deg, #12CE5D 0%, #FFD80C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    word-break: break-word;
}

/* Gradient text général */
.gradient-text {
    background: linear-gradient(135deg, #12CE5D 0%, #FFD80C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/*---------------------------------------
 * FOOTER
 *---------------------------------------*/
/* Footer principal */
.footer-main-bg {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
}

.landing-curve svg {
    width: 100%;
}

.landing-dark-color {
    color: #1a1a1a;
}

/* Contact info styles */
.contact-info .hover-text-white:hover {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

/* Footer links */
.footer-link {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-link i {
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.footer-link:hover i {
    color: var(--bs-primary) !important;
}

/* Informations utiles */
.useful-info .text-gray-300 {
    font-weight: 500;
}

.useful-info i {
    flex-shrink: 0;
}

/* Social links */
.social-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link.facebook {
    color: #4267B2;
    background: rgba(66, 103, 178, 0.1);
}

.social-link.facebook:hover {
    background: #4267B2;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(66, 103, 178, 0.3);
}

.social-link.twitter {
    color: #1DA1F2;
    background: rgba(29, 161, 242, 0.1);
}

.social-link.twitter:hover {
    background: #1DA1F2;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.3);
}

.social-link.linkedin {
    color: #0077B5;
    background: rgba(0, 119, 181, 0.1);
}

.social-link.linkedin:hover {
    background: #0077B5;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.3);
}

.social-link.youtube {
    color: #FF0000;
    background: rgba(255, 0, 0, 0.1);
}

.social-link.youtube:hover {
    background: #FF0000;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

.social-link.email {
    color: #34c759;
    background: rgba(52, 199, 89, 0.1);
}

.social-link.email:hover {
    background: #34c759;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 199, 89, 0.3);
}

/* Emergency contact */
.emergency-contact {
    border-top: 1px dashed var(--bs-danger);
    border-bottom: 1px dashed var(--bs-danger);
    border-left: 3px solid var(--bs-danger);
    border-right: 3px solid var(--bs-danger);
    background-color: rgba(220, 53, 69, 0.1);
}

.btn-outline-cnom-red {
    color: var(--bs-danger);
    border-color: var(--bs-danger);
}

.btn-outline-cnom-red:hover {
    background: var(--bs-danger);
    border-color: var(--bs-danger);
    color: white;
    transform: translateY(-2px);
}

/* Separator */
.landing-dark-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    margin: 0 auto;
    width: 90%;
}

/* Bottom footer */
.footer-menu-link {
    color: #b0b0b0 !important;
    transition: color 0.3s ease;
    position: relative;
    text-decoration: none;
}

.footer-menu-link:hover {
    color: #ffffff !important;
}

.footer-menu-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--bs-primary);
    transition: width 0.3s ease;
}

.footer-menu-link:hover::after {
    width: 100%;
}

/* Logo hover effect */
.footer-section a:hover img {
    filter: brightness(1.2);
    transition: filter 0.3s ease;
}

/*---------------------------------------
 * COMPOSANTS UI
 *---------------------------------------*/
/* Styles des boutons */
.btn {
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: var(--transition-smooth);
}

.btn-success {
    background: var(--success-gradient);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #0ea54a 0%, #12CE5D 100%);
    box-shadow: var(--shadow-success);
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-success) 100%);
    box-shadow: var(--shadow-primary);
}

.btn-warning {
    background: var(--warning-gradient);
    border: none;
    color: #000;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ff9500 0%, #FFD80C 100%);
    color: #000;
}

/* Composants de cartes */
.stats-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
    min-height: 75px;
}

.stats-box:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.stats-card {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    width: 200px;
}

/* Cards articles */
.article-card {
    transition: var(--transition-smooth);
    overflow: hidden;
}

.article-card:hover {
    box-shadow: var(--shadow-primary);
}

.featured-article {
    overflow: hidden;
}

.featured-image {
    position: relative;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.3) 0%, transparent 100%);
}

/* Cards services */
.service-card {
    transition: var(--transition-smooth);
    border-radius: 1rem;
    overflow: hidden;
}

.service-card:hover {
    box-shadow: var(--shadow-primary);
}

.service-card:hover .symbol-label {
    transform: scale(1.1);
}

/* Cards de contact */
.contact-item-recommended {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item-recommended::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--contact-color, var(--bs-primary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-item-recommended:hover::before {
    transform: scaleX(1);
}

.contact-item-recommended:hover {
    background: #ffffff;
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: rgba(var(--contact-color-rgb, 59, 180, 75), 0.2);
}

/* Variables CSS pour chaque couleur */
.contact-item-recommended.contact-primary {
    --contact-color: var(--bs-primary);
    --contact-color-rgb: 59, 180, 75;
}

.contact-item-recommended.contact-success {
    --contact-color: var(--bs-success);
    --contact-color-rgb: 23, 198, 83;
}

.contact-item-recommended.contact-warning {
    --contact-color: var(--bs-warning);
    --contact-color-rgb: 246, 192, 0;
}

.contact-item-recommended.contact-info {
    --contact-color: var(--bs-info);
    --contact-color-rgb: 114, 57, 234;
}

.contact-item-recommended.contact-danger {
    --contact-color: var(--bs-danger);
    --contact-color-rgb: 248, 40, 90;
}

.contact-item-recommended:hover .symbol-label {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.contact-item-recommended:hover .symbol-label i {
    animation: iconPulse 1.5s infinite;
}

/* Section Valeurs */
.values-section {
    background: var(--primary-gradient);
    position: relative;
}

.values-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Cookie Consent */
#cookie-consent {
    background-color: #fff;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 3px solid var(--bs-primary);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

#cookie-consent.show {
    transform: translateY(0);
}

/* Effet d'images avec zoom */
.img-zoom-container {
    overflow: hidden;
    border-radius: var(--bs-border-radius);
}

.img-zoom {
    transition: transform 0.5s ease;
}

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

/* ScrollTop */
#kt_scrolltop {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-link-hover-color) 100%) !important;
    border: none;
    box-shadow: 0 4px 10px rgba(59, 180, 75, 0.3);
    transition: all 0.3s ease;
}

#kt_scrolltop:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 180, 75, 0.4);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-link-hover-color) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Optimisation des images */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* Poste item */
.poste-item {
    position: relative;
    transition: all 0.3s ease;
}

.poste-item:hover {
    box-shadow: 0 0.5rem 1.5rem 0.5rem rgba(0, 0, 0, 0.05);
}

/* Éléments flottants */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(18, 206, 93, 0.2);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    background: rgba(255, 216, 12, 0.2);
}

.floating-element-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
    background: rgba(30, 60, 114, 0.2);
}

/* Animation du compteur */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Cartes d'accès rapide avec effet de survol */
.card.transition-300 {
    transition: all 0.3s ease-in-out;
}
.card.transition-300:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
}

/* 3. Section Application Mobile */
.bg-light-success {
    background-color: #f3fcf6 !important; /* Vert très pâle, apaisant */
}
.badge-white {
    background-color: #ffffff;
    color: #1a1a1a;
}

/* Animation flottante pour le mockup du téléphone */
@keyframes float-mockup {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Conteneur: donne de la place verticale et centre l’image */
.mobile-mockup-wrap {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 0;
    overflow: visible;
}

/* Glow derrière */
.mobile-mockup-glow {
    width: 340px;
    height: 340px;
    background: rgba(25, 135, 84, 0.10);
    border-radius: 9999px;
    filter: blur(26px);
    z-index: 0;
}

/* Image: hauteur max contrôlée -> toujours visible */
.mobile-mockup-wrap .mobile-app-mockup-img {
    z-index: 1;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 600px;
    margin: 0;
    animation: float-mockup 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}

/* Ajustements responsifs desktop */
@media (max-width: 1400px) {
    .mobile-mockup-wrap { min-height: 560px; }
    .mobile-mockup-wrap .mobile-app-mockup-img { max-height: 560px; }
}

@media (max-width: 1200px) {
    .mobile-mockup-wrap { min-height: 520px; }
    .mobile-mockup-wrap .mobile-app-mockup-img { max-height: 520px; }
}

/* Accessibilité: si reduced motion, on coupe l’animation */
@media (prefers-reduced-motion: reduce) {
    .mobile-mockup-wrap .mobile-app-mockup-img {
        animation: none !important;
    }
}

.text-shadow-strong {
    text-shadow: 0 4px 8px rgba(0,0,0,0.6);
}
.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/*---------------------------------------
 * RESPONSIVE
 *---------------------------------------*/
/* Grand écran */
@media (max-width: 1200px) {
    .stats-card {
        width: 180px;
    }

    /* Ajustements pour grands écrans mais pas full desktop */
    .py-lg-20 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

@media (min-width: 992px) {
    .quick-access-wrapper {
        margin-top: -50px;
        position: relative;
        z-index: 10;
    }
}

@media (max-width: 991px) {
    .quick-access-wrapper {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

/* Tablette */
@media (max-width: 991.98px) {
    .hero-slide {
        background-attachment: scroll;
    }

    .slider-btn {
        display: none !important;
    }

    .hero-section {
        height: 80vh;
        min-height: 500px;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .stats-card {
        position: relative;
        margin: 2rem auto 0;
        width: 200px;
    }

    /* Footer - Ajustements pour tablette */
    .emergency-contact {
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-link {
        display: inline-flex;
        align-items: center;
    }

    .footer-main-bg .container {
        max-width: 95%;
    }
}

/* Petit écran / Mobile */
@media (max-width: 768px) {
    /* Header */
    .landing-header .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Navigation mobile */
    .nav-link {
        padding: 1rem 1.5rem;
        border-bottom-width: 2px;
        border-left: 3px solid transparent;
        border-bottom: none;
        transition: all 0.3s ease;
    }

    .nav-link:hover,
    .nav-link.active {
        border-left-color: var(--bs-primary);
        background-color: rgba(var(--bs-primary-rgb), 0.05);
        transform: translateX(4px);
    }

    .nav-link::after {
        display: none;
    }

    /* Hero section */
    .hero-section {
        margin-top: -80px;
        padding-top: 80px;
        height: 70vh;
        min-height: 450px;
        z-index: 1;
        position: relative;
    }

    .hero-content {
        padding: 1.5rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .display-3 {
        font-size: 2rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Boutons hero */
    .hero-content .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        padding: 0.75rem 1.5rem !important;
    }

    .hero-content .d-flex.flex-wrap {
        flex-direction: column;
    }

    /* Stats box */
    .stats-box .fs-1 {
        font-size: 1.75rem !important;
    }

    .stats-box .fs-6 {
        font-size: 0.8rem !important;
    }

    .row.g-4 {
        --bs-gutter-x: 0.5rem;
    }

    /* Cartes de contact */
    .contact-item-recommended {
        margin-bottom: 1.5rem;
    }

    .contact-item-recommended:hover {
        transform: translateY(-4px);
    }

    /* Footer - Ajustements pour mobile */
    .footer-main-bg .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Choisir une approche cohérente: à gauche */
    .contact-info, .footer-links, .social-networks, .useful-info {
        text-align: left;
    }

    .social-networks .d-flex {
        justify-content: flex-start;
    }

    .col-md-6:last-child {
        margin-bottom: 0;
    }

    /* Améliorer l'apparence des liens du footer sur mobile */
    .footer-link:hover {
        transform: translateX(3px);  /* réduire l'animation sur mobile */
    }

    /* Aide visuelle pour séparer les sections */
    .col-md-6:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Copyright et liens légaux */
    .d-flex.flex-column.flex-md-row.flex-stack {
        text-align: center;
    }

    /* Meilleur espacement pour les liens légaux */
    .menu.menu-gray-600 {
        margin-bottom: 1.5rem;
        justify-content: center;
    }

    /* Ajustement des marges */
    .py-7.py-lg-10 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Très petit écran */
@media (max-width: 576px) {
    .hero-content {
        padding: 1rem !important;
    }

    .hero-content h1 {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }

    .hero-content p {
        font-size: 0.95rem !important;
        padding-right: 0 !important;
    }

    .hero-content .row.g-4 {
        text-align: center;
        margin-top: 1rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .floating-element {
        display: none;
    }

    /* Stats colonnes */
    .col-4, .col-sm-4 {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .stats-box {
        padding: 0.5rem;
    }

    /* Badges */
    .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }

    /* Footer - Très petits écrans */
    .footer-main-bg {
        padding-top: 3rem !important;
    }

    /* Réduire les espacements */
    .py-10.py-lg-20 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .footer-section h5 {
        margin-bottom: 1rem !important;
        font-size: 1.15rem;
    }

    .mb-6 {
        margin-bottom: 1.25rem !important;
    }

    .mb-8 {
        margin-bottom: 1.5rem !important;
    }

    .mb-4 {
        margin-bottom: 0.75rem !important;
    }

    /* Ajuster les liens sociaux pour mobile */
    .social-link {
        width: 36px;
        height: 36px;
    }

    /* Menu des liens légaux */
    ul.menu.menu-gray-600 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    ul.menu.menu-gray-600 .menu-item {
        margin: 0 !important;
    }

    .footer-menu-link {
        padding: 0.5rem !important;
        font-size: 0.8rem;
    }

    /* Ajustement du copyright */
    .d-flex.align-items-center.order-2.order-md-1 {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Améliorer la visibilité des icônes */
    .footer-link i,
    .contact-info i,
    .useful-info i {
        font-size: 1rem !important;
    }

    /* Réduire les espacements des liens */
    .footer-link {
        margin-bottom: 0.75rem !important;
    }

    /* Textes plus petits */
    .fs-6, .fs-7 {
        font-size: 0.85rem !important;
    }

    /* Ajustement de l'information d'urgence */
    .emergency-contact {
        padding: 0.75rem !important;
    }
}

/* Écrans très étroits */
@media (max-width: 380px) {
    .footer-main-bg {
        padding-top: 2rem !important;
    }

    .social-link {
        width: 32px;
        height: 32px;
    }

    .emergency-contact {
        padding: 0.75rem !important;
    }

    .footer-menu-link {
        font-size: 0.75rem;
    }

    /* Extrêmement petits écrans */
    ul.menu.menu-gray-600 {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }

    .menu-item {
        margin: 0 !important;
    }
}
