/* Custom Responsive Styles for UNIET Website */

/* ===================================
   GLOBAL FONT FAMILY
   =================================== */
* {
    font-family: Arial, sans-serif !important;
}

body, h1, h2, h3, h4, h5, h6, p, a, span, div, li, button, input, textarea, select {
    font-family: Arial, sans-serif !important;
}

/* ===================================
   IMAGES RESPONSIVES & OPTIMISÉES
   =================================== */
img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* Lazy loading pour images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Images dans les articles et contenus */
.trend-top-img img,
.single-gallery-image img,
article img,
.content img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

/* Support WebP avec fallback */
.webp-supported img[data-webp] {
    content: attr(data-webp);
}

/* Optimisation pour écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img[data-srcset] {
        content: image-set(
            url(attr(data-srcset)) 2x
        );
    }
}

/* ===================================
   PAGE-WIDE BACKGROUND IMAGE
   =================================== */
html, body {
    min-height: 100%;
}
body {
    background: #ffffff;
}

/* Reset margin/padding to avoid gaps */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

/* ===================================
   PAGE CONTAINER ALIGNMENT WITH NAVBAR
   =================================== */
.container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Remove gaps between trending images */
.trending-area {
    line-height: 0 !important;
}

.trending-main {
    line-height: 0 !important;
}

.trending-main .row {
    margin: 0 !important;
    gap: 0 !important;
    line-height: 0 !important;
}

.trending-main .col-lg-8,
.trending-main .col-lg-4,
.trending-main .col-md-6,
.trending-main .col-sm-6,
.trending-main .col-lg-12,
.trending-main .col-md-12,
.trending-main .col-sm-12 {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
}

.trending-top {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

.trend-top-img {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

.trend-top-img img {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
}

.slider-active,
.single-slider {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

/* Force no gaps in responsive mode */
@media (max-width: 992px) {
    .trending-area {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .trending-area .container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }
    
    .trending-main {
        padding: 0 !important;
    }
    
    .trending-main .row {
        margin: 0 !important;
        gap: 0 !important;
    }
    
    .trending-main [class*="col-"] {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .trending-top {
        margin-bottom: 0 !important;
        padding: 0 !important;
    }
    
    .trend-top-img {
        margin: 0 !important;
        padding: 0 !important;
        height: 100% !important;
    }
    
    .trend-top-img img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* ===================================
   PROGRESS BAR ANIMATION
   =================================== */
@keyframes progressSlide {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.progress-bar-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,111,43,0.3);
}

.scrolling-text-bar {
    background: #E21B20;
    color: white;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.scrolling-text {
    animation: scroll-left 20s linear infinite;
}

/* ===================================
   HEADER STYLES WITH WHITE BACKGROUND
   =================================== */
.header-area {
    -webkit-box-shadow: 0 4px 20px rgba(226, 27, 32, 0.15), 0 0 30px rgba(21, 102, 46, 0.1);
    -moz-box-shadow: 0 4px 20px rgba(226, 27, 32, 0.15), 0 0 30px rgba(21, 102, 46, 0.1);
    box-shadow: 0 4px 20px rgba(226, 27, 32, 0.15), 0 0 30px rgba(21, 102, 46, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9998;
    background: #ffffff; /* Fallback */
    background: -webkit-linear-gradient(135deg, #ffffff 0%, #f8f8f8 50%, #ffffff 100%);
    background: -moz-linear-gradient(135deg, #ffffff 0%, #f8f8f8 50%, #ffffff 100%);
    background: -o-linear-gradient(135deg, #ffffff 0%, #f8f8f8 50%, #ffffff 100%);
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 50%, #ffffff 100%);
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    padding-top: 4px;
    /* Backdrop filter avec fallbacks */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    /* Fallback pour navigateurs sans support */
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(226, 27, 32, 0.1);
}

.header-top {
    background-color: transparent !important;
    position: relative;
}

.header-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #E21B20 50%, transparent 100%);
    opacity: 0.3;
}

/* Logo hover effect */
.logo img {
    -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -moz-transition: -moz-transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -o-transition: -o-transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
}

.logo a:hover img {
    -webkit-transform: scale(1.15);
    -moz-transform: scale(1.15);
    -ms-transform: scale(1.15);
    -o-transform: scale(1.15);
    transform: scale(1.15);
}

/* Université Étoile et slogan hover effect */
.logo div {
    transition: all 0.3s ease;
}

.logo:hover div span {
    animation: sparkle 0.6s ease-in-out;
}

.logo div span {
    display: inline-block;
    transition: all 0.3s ease;
}

.logo:hover div span:nth-child(1),
.logo:hover div span:nth-child(2) {
    text-shadow: 0 0 10px rgba(226, 27, 32, 0.6), 
                 0 0 20px rgba(226, 27, 32, 0.4),
                 0 0 30px rgba(226, 27, 32, 0.2);
}

.logo:hover div span:nth-child(3) {
    text-shadow: 0 0 10px rgba(21, 102, 46, 0.6),
                 0 0 20px rgba(21, 102, 46, 0.4),
                 0 0 30px rgba(21, 102, 46, 0.2);
}

@-webkit-keyframes sparkle {
    0%, 100% { 
        -webkit-filter: brightness(1);
        filter: brightness(1);
    }
    50% { 
        -webkit-filter: brightness(1.3);
        filter: brightness(1.3);
    }
}

@keyframes sparkle {
    0%, 100% { 
        -webkit-filter: brightness(1);
        filter: brightness(1);
    }
    50% { 
        -webkit-filter: brightness(1.3);
        filter: brightness(1.3);
    }
}

/* Styles uniformes pour tous les liens du menu */
.main-menu ul li a,
#navigation li a {
    color: #E21B20 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    padding: 10px 18px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.main-menu ul li a::after,
#navigation li a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #15662E 0%, #1a7a38 100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(21, 102, 46, 0.3);
}

.main-menu ul li a:hover,
#navigation li a:hover {
    color: #15662E !important;
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(21, 102, 46, 0.2);
}

.main-menu ul li a:hover::after,
#navigation li a:hover::after {
    width: 80%;
}

/* Espace pour compenser le header fixe */
body {
    padding-top: 70px;
}

@media (max-width: 768px) {
    body {
        padding-top: 75px;
    }
}

/* ===================================
   MOBILE MENU HAMBURGER ICON
   =================================== */
.mobile_menu .slicknav_btn {
    background-color: transparent !important;
    padding: 8px !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.mobile_menu .slicknav_btn:hover {
    background-color: rgba(226, 27, 32, 0.08) !important;
}

.mobile_menu .slicknav_menu .slicknav_btn .slicknav_icon-bar {
    background-color: #333333 !important;
    height: 2px !important;
    border-radius: 2px !important;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.slicknav_btn .slicknav_icon-bar {
    background-color: #333333 !important;
    height: 2px !important;
    border-radius: 2px !important;
    margin: 5px 0 !important;
}

.slicknav_icon-bar {
    background-color: #333333 !important;
    height: 2px !important;
    width: 24px !important;
    border-radius: 2px !important;
}

.header-top {
    background-color: #ffffff !important;
}

.main-menu ul li a {
    color: #333333 !important;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 18px;
    transition: all 0.3s ease;
}

.main-menu ul li a:hover {
    color: #006F2B !important;
}

.main-menu ul li .submenu {
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-top: 2px solid #006F2B;
}

.main-menu ul li .submenu li a {
    color: #555555 !important;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.main-menu ul li .submenu li a:hover {
    background: #f8f8f8;
    color: #006F2B !important;
    padding-left: 25px;
}

/* Submenus imbriqués (niveau 2+) s'ouvrent à droite */
.main-menu ul li .submenu .submenu,
#navigation li .submenu .submenu {
    left: 100% !important;
    right: auto !important;
    top: 0 !important;
    margin-left: 0px !important;
}

.main-menu ul li .submenu li:hover > .submenu,
#navigation li .submenu li:hover > .submenu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) !important;
}

.btn-inscription {
    background: #15662E !important; /* Fallback */
    background: -webkit-linear-gradient(135deg, #15662E 0%, #1a7a38 100%) !important;
    background: -moz-linear-gradient(135deg, #15662E 0%, #1a7a38 100%) !important;
    background: -o-linear-gradient(135deg, #15662E 0%, #1a7a38 100%) !important;
    background: linear-gradient(135deg, #15662E 0%, #1a7a38 100%) !important;
    color: white !important;
    padding: 12px 28px !important;
    -webkit-border-radius: 8px !important;
    -moz-border-radius: 8px !important;
    border-radius: 8px !important;
    -webkit-transition: all 0.3s ease !important;
    -moz-transition: all 0.3s ease !important;
    -o-transition: all 0.3s ease !important;
    transition: all 0.3s ease !important;
    -webkit-box-shadow: 0 4px 12px rgba(21, 102, 46, 0.4) !important;
    -moz-box-shadow: 0 4px 12px rgba(21, 102, 46, 0.4) !important;
    box-shadow: 0 4px 12px rgba(21, 102, 46, 0.4) !important;
    font-weight: 700 !important;
    text-transform: none !important;
    /* Optimisation touch */
    -webkit-tap-highlight-color: rgba(21, 102, 46, 0.3);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.btn-inscription:hover,
.btn-inscription:focus {
    background: #1a7a38 !important; /* Fallback */
    background: -webkit-linear-gradient(135deg, #1a7a38 0%, #15662E 100%) !important;
    background: -moz-linear-gradient(135deg, #1a7a38 0%, #15662E 100%) !important;
    background: -o-linear-gradient(135deg, #1a7a38 0%, #15662E 100%) !important;
    background: linear-gradient(135deg, #1a7a38 0%, #15662E 100%) !important;
    -webkit-transform: translateY(-3px) !important;
    -moz-transform: translateY(-3px) !important;
    -ms-transform: translateY(-3px) !important;
    -o-transform: translateY(-3px) !important;
    transform: translateY(-3px) !important;
    -webkit-box-shadow: 0 6px 20px rgba(21,102,46,0.5) !important;
    -moz-box-shadow: 0 6px 20px rgba(21,102,46,0.5) !important;
    box-shadow: 0 6px 20px rgba(21,102,46,0.5) !important;
}

.btn-inscription:active {
    -webkit-transform: translateY(-1px) !important;
    -moz-transform: translateY(-1px) !important;
    -ms-transform: translateY(-1px) !important;
    -o-transform: translateY(-1px) !important;
    transform: translateY(-1px) !important;
}

/* Bouton CTA principal avec animation */
.btn-cta-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-cta-primary:hover::before {
    left: 100%;
}

/* Pulse animation pour attirer l'attention */
@-webkit-keyframes pulse-cta {
    0%, 100% {
        -webkit-box-shadow: 0 4px 12px rgba(21, 102, 46, 0.4);
        box-shadow: 0 4px 12px rgba(21, 102, 46, 0.4);
    }
    50% {
        -webkit-box-shadow: 0 6px 20px rgba(21, 102, 46, 0.6), 0 0 30px rgba(21, 102, 46, 0.3);
        box-shadow: 0 6px 20px rgba(21, 102, 46, 0.6), 0 0 30px rgba(21, 102, 46, 0.3);
    }
}

@keyframes pulse-cta {
    0%, 100% {
        -webkit-box-shadow: 0 4px 12px rgba(21, 102, 46, 0.4);
        box-shadow: 0 4px 12px rgba(21, 102, 46, 0.4);
    }
    50% {
        -webkit-box-shadow: 0 6px 20px rgba(21, 102, 46, 0.6), 0 0 30px rgba(21, 102, 46, 0.3);
        box-shadow: 0 6px 20px rgba(21, 102, 46, 0.6), 0 0 30px rgba(21, 102, 46, 0.3);
    }
}

.btn-cta-primary {
    -webkit-animation: pulse-cta 2s infinite;
    -moz-animation: pulse-cta 2s infinite;
    -o-animation: pulse-cta 2s infinite;
    animation: pulse-cta 2s infinite;
}

/* ===================================
   BASE RESPONSIVE STYLES
   =================================== */

/* Base Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container responsive */
@media (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Responsive Tables */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        overflow-y: visible;
    }
    
    table thead {
        display: none;
    }
    
    table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
    }
    
    table td {
        display: block;
        text-align: right;
        padding-left: 50%;
        position: relative;
    }
    
    table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: bold;
        text-align: left;
    }
}

/* Responsive Forms */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    select,
    textarea {
        width: 100% !important;
        font-size: 16px !important;
        padding: 10px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
}

/* ===================================
   FORMULAIRES TACTILES OPTIMISÉS
   =================================== */

/* Tous les formulaires */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    min-height: 48px !important; /* Taille tactile minimale recommandée */
    padding: 14px 16px !important;
    font-size: 16px !important; /* Évite le zoom automatique sur iOS */
    border: 2px solid #ddd;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif !important;
    /* Supprime styles natifs navigateur */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Optimisations tactiles */
    -webkit-tap-highlight-color: rgba(21, 102, 46, 0.2);
    -webkit-touch-callout: none;
    /* Force hardware acceleration */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
}

/* Focus states pour accessibilité */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: #15662E !important;
    outline: none;
    -webkit-box-shadow: 0 0 0 3px rgba(21, 102, 46, 0.2);
    -moz-box-shadow: 0 0 0 3px rgba(21, 102, 46, 0.2);
    box-shadow: 0 0 0 3px rgba(21, 102, 46, 0.2);
    /* Animation pour Safari */
    -webkit-transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -moz-transition: border-color 0.2s ease, box-shadow 0.2s ease;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Textarea */
textarea {
    min-height: 120px !important;
    resize: vertical;
}

/* Labels */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

/* Boutons de formulaire */
button[type="submit"],
input[type="submit"],
.btn-submit {
    min-height: 52px !important;
    padding: 16px 32px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    background: #15662E !important; /* Fallback */
    background: -webkit-linear-gradient(135deg, #15662E 0%, #1a7a38 100%) !important;
    background: -moz-linear-gradient(135deg, #15662E 0%, #1a7a38 100%) !important;
    background: -o-linear-gradient(135deg, #15662E 0%, #1a7a38 100%) !important;
    background: linear-gradient(135deg, #15662E 0%, #1a7a38 100%) !important;
    color: white !important;
    border: none !important;
    -webkit-border-radius: 8px !important;
    -moz-border-radius: 8px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    -webkit-transition: all 0.3s ease !important;
    -moz-transition: all 0.3s ease !important;
    -o-transition: all 0.3s ease !important;
    transition: all 0.3s ease !important;
    -webkit-box-shadow: 0 4px 12px rgba(21, 102, 46, 0.3) !important;
    -moz-box-shadow: 0 4px 12px rgba(21, 102, 46, 0.3) !important;
    box-shadow: 0 4px 12px rgba(21, 102, 46, 0.3) !important;
    width: 100%;
    /* Optimisations tactiles cross-browser */
    touch-action: manipulation;
    -ms-touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(21, 102, 46, 0.3);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

button[type="submit"]:hover,
input[type="submit"]:hover,
.btn-submit:hover,
button[type="submit"]:focus,
input[type="submit"]:focus,
.btn-submit:focus {
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 6px 16px rgba(21, 102, 46, 0.4) !important;
    -moz-box-shadow: 0 6px 16px rgba(21, 102, 46, 0.4) !important;
    box-shadow: 0 6px 16px rgba(21, 102, 46, 0.4) !important;
    background: #1a7a38 !important; /* Fallback */
    background: -webkit-linear-gradient(135deg, #1a7a38 0%, #15662E 100%) !important;
    background: -moz-linear-gradient(135deg, #1a7a38 0%, #15662E 100%) !important;
    background: -o-linear-gradient(135deg, #1a7a38 0%, #15662E 100%) !important;
    background: linear-gradient(135deg, #1a7a38 0%, #15662E 100%) !important;
}

button[type="submit"]:active,
input[type="submit"]:active,
.btn-submit:active {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
}

/* Espacement des champs */
.form-group,
.form-field {
    margin-bottom: 20px;
}

/* Messages d'erreur */
.error-message {
    color: #E21B20;
    font-size: 14px;
    margin-top: 6px;
    display: block;
}

.error input,
.error textarea,
.error select {
    border-color: #E21B20 !important;
}

/* Messages de succès */
.success-message {
    color: #15662E;
    font-size: 14px;
    margin-top: 6px;
    display: block;
}

/* Checkbox et Radio buttons */
input[type="checkbox"],
input[type="radio"] {
    min-width: 22px !important;
    min-height: 22px !important;
    margin-right: 10px;
    cursor: pointer;
}

/* Select personnalisé avec flèche */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    padding-right: 45px !important;
}

/* Mobile specific */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    select,
    textarea {
        min-height: 52px !important;
        padding: 16px 18px !important;
        font-size: 16px !important;
    }
    
    button[type="submit"],
    input[type="submit"],
    .btn-submit {
        min-height: 56px !important;
        font-size: 18px !important;
    }
    
    .form-group,
    .form-field {
        margin-bottom: 24px;
    }
}

/* Responsive Navigation */
@media (max-width: 991px) {
    .main-menu {
        display: none;
    }
    
    .mobile_menu {
        display: block !important;
    }
    
    /* Menu mobile en overlay fixe pour afficher tous les items */
    .slicknav_menu {
        display: block !important;
        position: fixed !important;
        top: 75px !important; /* valeur par défaut, surchargée dynamiquement par JS */
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        background: #ffffff !important;
        border-top: 1px solid #eee !important;
        box-shadow: 0 8px 20px rgba(0,0,0,0.12) !important;
    }
    
    .slicknav_nav {
        max-height: calc(100vh - 90px) !important; /* viewport moins header + marges */
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Verrouillage du scroll du fond quand le menu est ouvert */
    body.menu-open {
        overflow: hidden !important;
        height: 100vh !important;
    }
}

/* Gallery Responsive */
@media (max-width: 768px) {
    .single-gallery-image {
        height: 200px !important;
        background-size: cover !important;
        background-position: center !important;
    }
}

/* Slider Responsive */
@media (max-width: 768px) {
    .slider-active .single-slider {
        min-height: 0;
    }
    
    .trending-top {
        margin-bottom: 15px;
    }
    
    .trend-top-img {
        height: auto !important;
    }
}

/* Video Responsive */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-responsive iframe,
.video-responsive video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Buttons Responsive */
@media (max-width: 576px) {
    .btn,
    .genric-btn {
        width: 100%;
        padding: 12px 20px;
        margin-bottom: 10px;
    }
}

/* Typography Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    h4 {
        font-size: 1.1rem !important;
    }
    
    h5, h6 {
        font-size: 1rem !important;
    }
    
    p, body {
        font-size: 14px !important;
    }
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-area .col-xl-3,
    .footer-area .col-lg-3,
    .footer-area .col-md-6 {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .footer-social {
        text-align: center;
        margin-top: 20px;
    }
}

/* Marquee Responsive */
@media (max-width: 768px) {
    marquee {
        font-size: 14px !important;
        padding: 10px 5px !important;
    }
}

/* Card Responsive */
@media (max-width: 768px) {
    .card {
        margin-bottom: 20px;
    }
    
    .card-body {
        padding: 15px;
    }
}

/* Spacing Adjustments for Mobile */
@media (max-width: 576px) {
    .pt-15 { padding-top: 10px !important; }
    .pt-30 { padding-top: 15px !important; }
    .pb-25 { padding-bottom: 15px !important; }
    .pb-30 { padding-bottom: 15px !important; }
    .mb-30 { margin-bottom: 15px !important; }
    .mt-30 { margin-top: 15px !important; }
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

.row {
    margin-left: -15px;
    margin-right: -15px;
}

/* Fix for embedded content */
iframe,
embed,
object {
    max-width: 100%;
}

/* ===================================
   MODERN FOOTER STYLING
   =================================== */
.modern-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: #fff;
    font-family: Arial, sans-serif !important;
    padding-top: 60px;
    position: relative;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #15662E 0%, #E21B20 50%, #15662E 100%);
}

.footer-main {
    padding-bottom: 30px;
}

.footer-logo-section img {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    transition: all 0.3s ease;
}

.footer-logo-section img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.footer-title {
    color: #E21B20;
    font-family: Arial, sans-serif !important;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #15662E;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: #15662E;
    padding-left: 5px;
    text-decoration: underline;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact li i {
    color: #E21B20;
    margin-right: 10px;
    margin-top: 3px;
    font-size: 16px;
}

.footer-social .social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-social .social-links a {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #E21B20 0%, #15662E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.footer-social .social-links a i {
    font-family: 'Font Awesome 5 Brands', 'FontAwesome' !important;
    font-weight: 400;
    font-style: normal;
    line-height: 1;
}

.footer-social .social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 20px rgba(226, 27, 32, 0.5);
    background: linear-gradient(135deg, #15662E 0%, #E21B20 100%);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: 30px;
}

.footer-copyright {
    color: #999;
    font-size: 14px;
    margin: 0;
    font-family: Arial, sans-serif !important;
}

/* Footer Center Alignment */
.footer-logo-section {
    text-align: center;
}

.footer-widget {
    text-align: center;
}

.footer-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.footer-links {
    display: inline-block;
    text-align: center;
}

.footer-contact {
    display: inline-block;
    text-align: left;
}

.footer-contact li {
    justify-content: flex-start;
}

.footer-social .social-links {
    justify-content: center;
}

/* ===================================
   MENU RESPONSIVE POUR PETITS ÉCRANS
   =================================== */

/* Styles pour mobile menu (max-width: 991px) */
@media (max-width: 991px) {
    /* Cache le menu desktop sur mobile */
    .main-menu {
        display: none !important;
    }
    
    /* Affiche le menu mobile */
    .mobile_menu {
        display: block !important;
        width: 100% !important;
        clear: both !important;
    }
    
    /* Styles pour le menu mobile slicknav */
    .slicknav_menu {
        background: #ffffff !important;
        padding: 0 !important;
        margin: 10px 0 !important;
    }
    
    .slicknav_nav {
        background: #ffffff !important;
        clear: both !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 8px 0 !important;
        border-top: 1px solid #eee !important;
        border-bottom: 1px solid #eee !important;
    }
    
    .slicknav_nav li {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .slicknav_nav a {
        padding: 12px 18px !important;
        color: #333 !important;
        font-weight: 600 !important;
        border-bottom: 1px solid #f2f2f2 !important;
        font-size: 15px !important;
        font-family: Arial, sans-serif !important;
        display: block !important;
        text-decoration: none !important;
    }
    
    .slicknav_nav a:hover {
        background: #f8f8f8 !important;
        color: #15662E !important;
        padding-left: 24px !important;
    }
    
    /* Sous-menus de niveau 1 */
    .slicknav_nav .slicknav_item > a {
        padding-left: 20px !important;
    }
    
    .slicknav_nav .slicknav_item > ul {
        background: #fafafa !important;
        border-left: 2px solid #eee !important;
    }
    
    .slicknav_nav .slicknav_item > ul > li > a {
        padding-left: 40px !important;
        font-size: 14px !important;
        background: #f9f9f9 !important;
    }
    
    /* Sous-menus de niveau 2 */
    .slicknav_nav .slicknav_item .slicknav_item > ul {
        background: #f7f7f7 !important;
        border-left: 2px solid #eee !important;
    }
    
    .slicknav_nav .slicknav_item .slicknav_item > ul > li > a {
        padding-left: 60px !important;
        font-size: 13px !important;
        background: #f5f5f5 !important;
    }
    
    /* Sous-menus de niveau 3 */
    .slicknav_nav .slicknav_item .slicknav_item .slicknav_item > ul > li > a {
        padding-left: 80px !important;
        font-size: 12px !important;
        background: #f4f4f4 !important;
    }
    
    /* Flèches des sous-menus */
    .slicknav_arrow {
        display: inline-block !important;
        font-size: 18px !important;
        margin-left: 8px !important;
        color: #333 !important;
        line-height: 1.2 !important;
        vertical-align: middle !important;
    }
    
    /* Bouton hamburger personnalisé */
    .slicknav_btn {
        background-color: transparent !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        border-radius: 4px !important;
        padding: 10px !important;
        margin: 8px 0 !important;
        cursor: pointer !important;
        float: right !important;
        -webkit-transition: all 0.3s ease;
        -moz-transition: all 0.3s ease;
        -o-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }
    
    .slicknav_btn:hover {
        background-color: rgba(226, 27, 32, 0.05) !important;
        border-color: rgba(226, 27, 32, 0.2) !important;
    }
    
    .slicknav_icon-bar {
        background-color: #333333 !important;
        height: 2px !important;
        margin: 4px 0 !important;
        border-radius: 2px !important;
        display: block !important;
        width: 22px !important;
        -webkit-transition: all 0.3s ease;
        -moz-transition: all 0.3s ease;
        -o-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }
    
    /* Ajustement header mobile */
    .header-area {
        padding-top: 0 !important;
    }
    
    .header-top {
        padding: 4px 0 !important;
    }
    
    body {
        padding-top: 0 !important;
    }
    
    /* Bouton inscription mobile */
    .btn-inscription {
        display: inline-block !important;
        width: auto !important;
        text-align: center !important;
        padding: 10px 25px !important;
        font-size: 14px !important;
    }
    
    /* Logo responsive */
    .logo {
        gap: 6px !important;
    }
    
    .logo img {
        max-width: 28px !important;
    }
    
    .logo div span:nth-child(1),
    .logo div span:nth-child(2) {
        font-size: 11px !important;
        line-height: 1.1 !important;
    }
    
    .logo div span:nth-child(3) {
        font-size: 8px !important;
    }
}

/* Alignement burger + logo sur mobile/tablette */
@media (max-width: 991px) {
    /* Aucun espace au-dessus du header */
    header,
    .header-area,
    .main-header {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .header-top .row {
        align-items: center !important;
    }
    .mobile_menu,
    .mobile_menu .slicknav_menu {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        padding: 0 !important;
        margin: -4px 0 0 auto !important; /* pousse à droite et monte légèrement */
        background: transparent !important;
        width: auto !important;
    }
    .mobile_menu .slicknav_btn {
        margin-left: auto !important;
        margin-right: 0 !important;
        margin-top: -2px !important; /* ajuste finement la hauteur du bouton */
        float: none !important;
    }

    /* Forcer le menu hamburger en colonne (vertical) */
    .mobile_menu .slicknav_nav {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding: 8px 0 !important;
        margin: 0 !important;
        background: #fff !important;
        width: 100% !important;
    }

    
/* ===================================
NAVBAR SIMPLE ET RESPONSIVE
=================================== */

/* Style de base de la navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #fff;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Logo styling */
.navbar .logo a {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #003366;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.navbar .logo img {
    max-width: 65px !important;
    object-fit: cover;
    object-position: center;
    height: auto;
}

.navbar .logo-text {
    display: none;
}

/* Navigation links */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #003366;
}

/* Actions buttons (Desktop) */
.actions {
    display: flex;
    gap: 0;
    align-items: center;
    flex-shrink: 0;
}

.actions .btn {
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
    font-weight: 500;
}

.actions .btn.call {
    background: #0066cc;
    color: #fff;
}

.actions .btn.call:hover {
    background: #0052a3;
}

.actions .btn.enrol {
    background: #ff6600;
    color: #fff;
}

.actions .btn.enrol:hover {
    background: #e55a00;
}

.actions .btn.login {
    background: #eee;
    color: #333;
}

.actions .btn.login:hover {
    background: #ddd;
}

/* Hamburger caché en desktop */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    flex-direction: column;
    gap: 6px;
    z-index: 10001;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animation hamburger au clic */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(13px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-13px);
}

/* Responsive mobile et tablette */
@media (max-width: 991px) {
    .navbar {
        flex-wrap: wrap;
        gap: 15px;
        padding: 0.5rem 1rem;
    }

    .navbar .logo {
        flex: 0 1 auto;
    }

    .navbar .logo a {
        font-size: 1.2rem;
    }

    .navbar .logo img {
        max-width: 50px !important;
    }

    .hamburger {
        display: flex;
        order: 3;
        margin-left: auto;
    }

    .actions {
        display: none;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 9999;
        padding: 40px 20px;
        margin: 0;
        list-style: none;
        animation: slideIn 0.3s ease-out;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        color: #fff;
        font-size: 18px;
        display: block;
        padding: 15px 0;
    }

    .nav-links a:hover {
        color: #ff6600;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Desktop layout */
@media (min-width: 992px) {
    .navbar {
        flex-wrap: nowrap;
        gap: 30px;
    }

    .nav-links {
        display: flex;
    }

    .actions {
        display: flex;
    }

    .hamburger {
        display: none;
    }
}

/* Header fixe sur mobile */
.header-area {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9998 !important;
    background: #fff !important;
}

@media (max-width: 991px) {
    body {
        padding-top: 70px;
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (min-width: 992px) {
    .header-area {
        position: static !important;
    }

    body {
        padding-top: 0 !important;
    }
}
    .header-area {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        background: #fff !important;
    }

    /* Enlever le padding interne du header en mobile */
    .header-top {
        padding: 0 !important;
    }

    /* Masquer la barre de progression pour éviter un espace au-dessus du header */
    .progress-bar-top {
        display: none !important;
    }
}

/* Grands écrans (> 991px) */
@media (min-width: 992px) {
    .logo img {
        max-width: 65px !important;
    }
    
    .logo div span:nth-child(1),
    .logo div span:nth-child(2) {
        font-size: 17px !important;
    }
    
    .logo div span:nth-child(3) {
        font-size: 13px !important;
    }
    
    .logo p {
        font-size: 12px !important;
    }
}

/* Tablettes (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .logo img {
        max-width: 60px !important;
    }
    
    .logo div span:nth-child(1),
    .logo div span:nth-child(2) {
        font-size: 16px !important;
    }
    
    .logo div span:nth-child(3) {
        font-size: 12px !important;
    }
    
    .logo p {
        font-size: 11px !important;
    }
    
    body {
        padding-top: 0 !important;
    }
}

/* Très petits écrans (max-width: 576px) */
@media (max-width: 576px) {
    .header-top {
        padding: 8px 0 !important;
    }
    
    .logo {
        gap: 6px !important;
    }
    
    .logo img {
        max-width: 50px !important;
    }
    
    .logo div span:nth-child(1),
    .logo div span:nth-child(2) {
        font-size: 14px !important;
    }
    
    .logo div span:nth-child(3) {
        font-size: 10px !important;
    }
    
    .logo p {
        font-size: 10px !important;
    }
    
    body {
        padding-top: 95px !important;
    }
    
    .scrolling-text {
        font-size: 12px !important;
    }
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .modern-footer {
        padding-top: 40px;
    }
    
    .footer-logo-section {
        margin-bottom: 30px;
    }
    
    .footer-widget {
        margin-bottom: 30px;
    }
}

