/* Feuille unique du gabarit : layout + header + footer.
   Fusionnee le 2026-08-30 : en HTTP/1.1 le navigateur ne charge que 6 ressources
   en parallele, et chaque requete coute un aller-retour (~300 ms depuis le
   Cameroun). 3 fichiers bloquants -> 1 seul. */

/* ===== layout.css ===== */
/* Extrait de website.php (bloc <style> inline) le 2026-08-30.
   Present sur TOUTES les pages du site : externalise pour etre mis en cache
   une seule fois au lieu d'etre renvoye a chaque page vue. */

/* Floating CTA — deux boutons empiles, slide horizontal independant */
        .floating-cta{position:fixed;right:0;top:50%;transform:translateY(-50%);z-index:999;display:flex;flex-direction:column;gap:4px}
        .floating-cta-link{display:flex;align-items:center;padding:12px 14px;color:#fff;text-decoration:none;white-space:nowrap;border-radius:10px 0 0 10px;box-shadow:-2px 2px 10px rgba(0,0,0,0.12);overflow:hidden;transform:translateX(calc(100% - 44px));transition:transform 0.4s ease}
        .floating-cta-link:hover{color:#fff;text-decoration:none;transform:translateX(0)!important}
        #cta-premium{background:linear-gradient(135deg,#0d9488,#0f766e);animation:cta-peek-a 10s ease-in-out infinite}
        #cta-newsletter{background:linear-gradient(135deg,#4da900,#3d8700);animation:cta-peek-b 10s ease-in-out infinite}
        .floating-cta-link i{font-size:15px;flex-shrink:0;width:16px;text-align:center}
        .floating-cta-text{font-size:12px;font-weight:700;letter-spacing:0.3px;margin-left:10px}
        @keyframes cta-peek-a{0%,100%{transform:translateX(calc(100% - 44px))}8%{transform:translateX(0)}40%{transform:translateX(0)}48%{transform:translateX(calc(100% - 44px))}}
        @keyframes cta-peek-b{0%,50%,100%{transform:translateX(calc(100% - 44px))}58%{transform:translateX(0)}90%{transform:translateX(0)}98%{transform:translateX(calc(100% - 44px))}}

        /* Newsletter Modal */
        .nl-modal-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,0.4);backdrop-filter:blur(3px);z-index:9998}
        .nl-modal-overlay.open{display:block}
        .nl-modal{display:none;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%) scale(0.95);width:400px;max-width:90vw;background:#fff;border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,0.2);z-index:9999;padding:32px;text-align:center;opacity:0;transition:opacity 0.25s,transform 0.25s}
        .nl-modal.open{display:block;opacity:1;transform:translate(-50%,-50%) scale(1)}
        .nl-modal-close{position:absolute;top:14px;right:14px;background:none;border:none;color:#94a3b8;font-size:18px;cursor:pointer;padding:4px;transition:color 0.2s}
        .nl-modal-close:hover{color:#ef4444}
        .nl-modal-icon{width:56px;height:56px;margin:0 auto 16px;background:linear-gradient(135deg,#4da900,#3d8700);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:22px}
        .nl-modal-title{font-size:20px;font-weight:800;color:#1e293b;margin:0 0 8px}
        .nl-modal-desc{font-size:13px;color:#64748b;margin:0 0 20px;line-height:1.5}
        .nl-modal-field{margin-bottom:12px}
        .nl-modal-field input{width:100%;padding:12px 16px;border:1.5px solid #e2e8f0;border-radius:8px;font-size:14px;outline:none;transition:border-color 0.2s}
        .nl-modal-field input:focus{border-color:#4da900;box-shadow:0 0 0 3px rgba(77,169,0,0.1)}
        .nl-modal-wa-toggle{display:flex;align-items:center;gap:10px;padding:10px 12px;background:#f0fbe8;border:1px solid #d4edbc;border-radius:8px;margin-bottom:12px;transition:background 0.2s,border-color 0.2s}
        .nl-modal-wa-toggle:hover{background:#e8f5d8;border-color:#4da900}
        .nl-modal-wa-info{flex:1}
        .nl-modal-wa-title{font-size:12px;font-weight:600;color:#1e293b}
        .nl-modal-wa-icon{color:#25d366;font-size:20px;opacity:0.8}
        .nl-switch{position:relative;display:inline-block;width:42px;height:24px;flex-shrink:0}
        .nl-switch input{opacity:0;width:0;height:0}
        .nl-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background:#cbd5e1;border-radius:24px;transition:background 0.3s}
        .nl-slider::before{content:'';position:absolute;width:18px;height:18px;left:3px;bottom:3px;background:#fff;border-radius:50%;transition:transform 0.3s;box-shadow:0 1px 3px rgba(0,0,0,0.15)}
        .nl-switch input:checked+.nl-slider{background:#25d366}
        .nl-switch input:checked+.nl-slider::before{transform:translateX(18px)}
        .nl-modal-wa-input{display:none;gap:8px;margin-bottom:12px}
        .nl-modal-wa-input.open{display:flex}
        .nl-modal-wa-input select{padding:10px 8px;border:1.5px solid #e2e8f0;border-radius:8px;font-size:13px;outline:none;background:#fafafa;width:110px}
        .nl-modal-wa-input input{flex:1;padding:10px 12px;border:1.5px solid #e2e8f0;border-radius:8px;font-size:13px;outline:none}
        .nl-modal-wa-input select:focus,.nl-modal-wa-input input:focus{border-color:#4da900}
        .nl-modal-submit{width:100%;padding:13px;background:linear-gradient(135deg,#4da900,#3d8700);color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:700;cursor:pointer;transition:background 0.2s,transform 0.2s}
        .nl-modal-submit:hover{background:linear-gradient(135deg,#5fc40a,#4da900);transform:translateY(-1px)}
        .nl-modal-feedback{margin-top:12px;font-size:13px;font-weight:600;display:none}
        .nl-modal-feedback.success{display:block;color:#4da900}
        .nl-modal-feedback.error{display:block;color:#ef4444}
        .nl-modal-footer-text{font-size:10px;color:#94a3b8;margin:12px 0 0}

        @media(max-width:768px){.floating-cta{top:auto;bottom:70px}.floating-cta-link{padding:10px 12px;transform:translateX(calc(100% - 38px))}.floating-cta-link i{font-size:13px;width:14px}.floating-cta-text{font-size:11px}@keyframes cta-peek-a{0%,100%{transform:translateX(calc(100% - 38px))}8%{transform:translateX(0)}40%{transform:translateX(0)}48%{transform:translateX(calc(100% - 38px))}}@keyframes cta-peek-b{0%,50%,100%{transform:translateX(calc(100% - 38px))}58%{transform:translateX(0)}90%{transform:translateX(0)}98%{transform:translateX(calc(100% - 38px))}}}

        .preloader{position:fixed;top:0;left:0;width:100%;height:100%;background:#fff !important;z-index:9999999;overflow:hidden}
        .skeleton-wrapper{width:100%;max-width:1200px;margin:0 auto;padding:20px 24px;box-sizing:border-box}
        .skeleton-item{background:linear-gradient(90deg,#f2f2f2 25%,#e6e6e6 50%,#f2f2f2 75%);background-size:200% 100%;animation:shimmer 1.5s ease-in-out infinite;border-radius:6px}
        .skeleton-nav{display:flex;align-items:center;justify-content:space-between;padding:16px 0;border-bottom:1px solid #f0f0f0;margin-bottom:32px}
        .skeleton-nav-logo{width:110px;height:32px}
        .skeleton-nav-links{display:flex;gap:20px}
        .skeleton-nav-link{width:56px;height:14px}
        .skeleton-hero{margin-bottom:40px;padding:48px 0}
        .skeleton-hero-title{width:55%;height:32px;margin-bottom:16px}
        .skeleton-hero-subtitle{width:38%;height:18px;margin-bottom:24px}
        .skeleton-hero-btn{width:140px;height:40px;border-radius:20px}
        .skeleton-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-bottom:40px}
        .skeleton-card{border-radius:10px;overflow:hidden}
        .skeleton-card-img{width:100%;height:180px;margin-bottom:14px}
        .skeleton-card-line{height:14px;margin-bottom:10px}
        .skeleton-card-line.short{width:60%}
        .skeleton-card-line.medium{width:80%}
        .skeleton-section{margin-bottom:32px}
        .skeleton-section-title{width:200px;height:22px;margin-bottom:20px}
        .skeleton-rows{display:flex;flex-direction:column;gap:12px}
        .skeleton-row-line{height:14px}
        .skeleton-row-line:nth-child(1){width:100%}
        .skeleton-row-line:nth-child(2){width:92%}
        .skeleton-row-line:nth-child(3){width:75%}
        @keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
        @media(max-width:768px){
            .skeleton-cards{grid-template-columns:1fr}
            .skeleton-hero-title{width:80%}
            .skeleton-hero-subtitle{width:60%}
            .skeleton-nav-links{display:none}
        }

/* ===== header.css ===== */
/* Extrait de wsheader.php (bloc <style> inline) le 2026-08-30.
   Present sur TOUTES les pages du site : externalise pour etre mis en cache
   une seule fois au lieu d'etre renvoye a chaque page vue. */

/* ========================================
   TOPBAR STYLES
   ======================================== */
.sa-topbar {
    padding: 0 !important;
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    min-height: 32px;
}

/* Breaking News Ticker */
.topbar-left {
    flex: 1;
    min-width: 0;
    margin-right: 15px;
    overflow: hidden;
}

.breaking-ticker {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 32px;
}

.bt-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #4da900;
    padding: 4px 12px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #fff;
}

.bt-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: btPulse 1.5s ease-in-out infinite;
}

@keyframes btPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.bt-track {
    flex: 1;
    overflow: hidden;
    height: 32px;
    line-height: 32px;
}

.bt-scroll {
    display: inline-block;
    white-space: nowrap;
    animation: btMarquee 60s linear infinite;
    padding-left: 100%;
}

.bt-scroll:hover {
    animation-play-state: paused;
}

.bt-scroll a {
    display: inline;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    margin-right: 40px;
}

.bt-scroll a:hover {
    text-decoration: underline;
    color: #4da900;
}

.bt-scroll .bt-sep {
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #4da900;
    border-radius: 50%;
    margin: 0 18px;
    vertical-align: middle;
    opacity: 0.6;
}

@keyframes btMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

#ticker li a {
    color: inherit !important;
    font-size: 12px !important;
    text-decoration: none;
    line-height: 18px;
}

#ticker li a:hover {
    text-decoration: underline;
}

#ticker li:before {
    display: none !important;
    content: none !important;
}

/* Right Section */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-divider {
    width: 1px;
    height: 14px;
    background: #e5e7eb;
}

/* Social Links */
.topbar-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-social a {
    color: #64748b;
    font-size: 13px;
    transition: color 0.2s;
}

.topbar-social a:hover {
    color: #4da900;
}

.topbar-social a:hover {
    opacity: 1;
}

/* User Actions */
.topbar-user {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    color: #374151;
    font-size: 12px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.user-link:hover {
    background: #f0fbe8;
    text-decoration: none;
    color: #4da900;
}

.user-link i {
    font-size: 12px;
}

.user-link.signup-btn {
    background: rgba(255,255,255,0.15);
}

.user-link.signup-btn:hover {
    background: rgba(255,255,255,0.25);
}

/* User Dropdown */
.ws-user-dropdown {
    position: relative;
    display: inline-block;
}

.ws-user-toggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: inherit;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.ws-user-toggle:hover {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
}

/* Initials badge */
.ws-initials-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.ws-initials-lg {
    width: 40px;
    height: 40px;
    font-size: 15px;
    background: var(--primary-color, #4da900);
    color: #fff;
}

.ws-user-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ws-user-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.ws-user-dropdown.open .ws-user-arrow {
    transform: rotate(180deg);
}

/* Dropdown menu - reset des styles globaux .sa-topbar ul */
.ws-user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    min-width: 200px;
    padding: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    list-style: none;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    display: block !important;
    flex-wrap: nowrap !important;
}

.ws-user-menu li {
    margin-right: 0 !important;
    display: block !important;
    width: 100% !important;
}

.ws-user-menu li.ws-user-menu-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
}

.ws-user-dropdown.open .ws-user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ws-user-menu-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
}

.ws-menu-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    flex-shrink: 0;
}

.ws-menu-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.ws-user-menu-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 0;
}

.ws-user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #444;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.ws-user-menu-item:hover {
    background: #f8f8f8;
    color: #1a1a1a;
    text-decoration: none;
}

.ws-user-menu-item i {
    width: 16px;
    text-align: center;
    font-size: 13px;
    color: #888;
}

.ws-user-menu-item:hover i {
    color: #555;
}

.ws-menu-logout {
    color: #dc3545;
}

.ws-menu-logout:hover {
    background: #fef2f2;
    color: #dc3545;
}

.ws-menu-logout i {
    color: #dc3545;
}

/* Responsive */
@media (max-width: 992px) {
    .topbar-social { display: none; }
    .topbar-divider:first-of-type { display: none; }
}

@media (max-width: 768px) {
    .topbar-inner {
        flex-wrap: wrap;
        gap: 8px;
    }
    .topbar-left {
        width: 100%;
        margin-right: 0;
        order: 2;
    }
    .topbar-right {
        width: 100%;
        justify-content: flex-end;
        order: 1;
    }
    .user-link span { display: none; }
    .user-link { padding: 6px; }
    .ws-user-name { display: none; }
    .ws-user-toggle { padding: 4px 8px; }
    .ws-user-menu { right: -10px; min-width: 180px; }
}

/* ========================================
   NAVBAR STYLES
   ======================================== */
.sa-menu {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    z-index: 100;
    overflow: visible;
}

.sa-menu .menu-content {
    overflow: visible;
}

.sa-menu .navbar {
    padding: 0;
}

.sa-menu .menu-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.sa-menu .navbar-brand {
    padding: 10px 0;
    margin-right: 30px;
}

.sa-menu .navbar-brand img {
    max-height: 45px;
    width: auto;
}

.sa-menu .navbar-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sa-menu .navbar-nav > li {
    position: relative;
    list-style: none;
}

.sa-menu .navbar-nav > li > a {
    display: block;
    padding: 12px 15px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.sa-menu .navbar-nav > li > a:hover,
.sa-menu .navbar-nav > li.active > a {
    color: var(--primary-color, #c00);
}

.sa-menu .navbar-nav > li > a span {
    margin-left: 5px;
}

.sa-menu .navbar-nav > li > a span i {
    font-size: 10px;
}

/* Dropdown */
/* Bootstrap dropdown override pour la navbar */
.sa-menu .dropdown-menu {
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 4px 0;
    min-width: 12rem;
    font-size: 13px;
}

.sa-menu .dropdown-item {
    padding: 8px 16px;
    color: #374151;
    font-size: 13px;
    transition: background 0.15s, color 0.15s;
}

.sa-menu .dropdown-item:hover,
.sa-menu .dropdown-item:focus {
    background: #f0fbe8;
    color: #4da900;
}

.sa-menu .dropdown-divider {
    margin: 4px 0;
    border-color: #f1f5f9;
}

.sa-menu .dropdown-toggle::after {
    margin-left: 4px;
    vertical-align: 2px;
    border-top-width: 4px;
    border-right-width: 4px;
    border-left-width: 4px;
}

/* Hide extra icons */
.sa-menu .navbar-nav > li > .icon {
    display: none !important;
}

/* ========================================
   MODERN SEARCH - Icon that expands
   ======================================== */
.sa-search-modern {
    position: relative;
    margin-left: auto;
    display: flex;
    align-items: center;
}

.sa-search-modern .search-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sa-search-modern .search-toggle:hover {
    background: #f5f5f5;
    color: var(--primary-color, #c00);
}

.sa-search-modern.active .search-toggle {
    display: none;
}

/* Expanded search form */
.sa-search-modern .search-expanded {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    visibility: hidden;
    transition: width 0.3s ease, opacity 0.3s ease;
    overflow: visible;
}

.sa-search-modern.active .search-expanded {
    width: 380px;
    opacity: 1;
    visibility: visible;
    overflow: visible;
}

.sa-search-modern .search-expanded form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    padding: 4px 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.sa-search-modern.active .search-expanded form:focus-within {
    border-color: var(--primary-color, #c00);
}

.sa-search-modern .search-expanded input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 12px;
    font-size: 14px;
    background: transparent;
    min-width: 0;
}

.sa-search-modern .search-expanded input::placeholder {
    color: #999;
}

.sa-search-modern .search-expanded button {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sa-search-modern .search-expanded button[type="submit"]:hover {
    background: var(--primary-color, #c00);
    color: #fff;
}

.sa-search-modern .search-expanded .search-close {
    color: #999;
}

.sa-search-modern .search-expanded .search-close:hover {
    background: #f5f5f5;
    color: #333;
}

/* ========================================
   SEARCH SUGGESTIONS DROPDOWN
   ======================================== */
.search-suggestions {
    position: absolute;
    top: 55px;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    border: 1px solid #ddd;
    max-height: 420px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 10001;
}

.sa-search-modern.active.has-suggestions .search-suggestions {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.suggestions-loading {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

.suggestions-loading i {
    margin-right: 8px;
    color: var(--primary-color, #c00);
}

.suggestions-empty {
    padding: 25px 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.suggestions-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.suggestion-item:hover,
.suggestion-item.active {
    background: #f8f8f8;
}

.suggestion-item .suggestion-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}

.suggestion-item .suggestion-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.suggestion-item .suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-item .suggestion-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.suggestion-item .suggestion-meta {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-item .suggestion-meta i {
    font-size: 10px;
    color: var(--primary-color, #c00);
}

.suggestion-item .suggestion-category {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #666;
}

.suggestions-footer {
    padding: 12px 16px;
    border-top: 1px solid #eee;
    text-align: center;
}

.suggestions-footer a {
    color: var(--primary-color, #c00);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.suggestions-footer a:hover {
    text-decoration: underline;
}

/* Dark mode support */
.sa-dark .search-suggestions {
    background: #1f1f1f;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.sa-dark .suggestion-item:hover,
.sa-dark .suggestion-item.active {
    background: #2a2a2a;
}

.sa-dark .suggestion-item .suggestion-title {
    color: #e8e8e8;
}

.sa-dark .suggestion-item .suggestion-category {
    background: #333;
    color: #aaa;
}

.sa-dark .suggestions-footer {
    border-top-color: #333;
}

/* Fullscreen search overlay on mobile */
@media (max-width: 768px) {
    /* Reset quand non actif */
    .sa-search-modern .search-expanded {
        position: absolute;
        top: 50%;
        left: auto;
        right: 0;
        width: 0;
        height: auto;
        min-height: 0;
        transform: translateY(-50%);
        padding: 0;
        background: transparent;
        box-shadow: none;
        overflow: hidden;
    }

    /* État actif sur mobile */
    .sa-search-modern.active .search-expanded {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        height: auto;
        min-height: 60px;
        transform: none;
        z-index: 9999;
        background: #fff;
        border-radius: 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.15);
        display: block;
        padding: 10px 15px;
        overflow: visible;
        opacity: 1;
        visibility: visible;
    }

    .sa-search-modern.active .search-expanded form {
        width: 100%;
        border: 2px solid #e0e0e0;
        box-shadow: none;
        border-radius: 25px;
        padding: 4px 8px;
    }

    .sa-search-modern .search-expanded input {
        font-size: 16px;
        padding: 12px;
    }

    /* Suggestions sur mobile */
    .sa-search-modern .search-suggestions {
        position: absolute;
        top: 55px;
    }

    .sa-search-modern.active .search-suggestions {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 0;
        max-height: calc(100vh - 80px);
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    }

    .suggestion-item .suggestion-thumb {
        width: 60px;
        height: 60px;
    }

    .suggestion-item .suggestion-title {
        font-size: 15px;
    }
}

/* Mobile Toggle */
.sa-menu .navbar-toggler {
    border: none;
    padding: 8px;
    background: none;
}

.sa-menu .navbar-toggler:focus {
    box-shadow: none;
}

@media (max-width: 992px) {
    .sa-menu .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 15px;
        max-height: 70vh;
        overflow-y: auto;
        z-index: 1000;
    }
    .sa-menu .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .sa-menu .navbar-nav > li {
        width: 100%;
    }
    .sa-menu .navbar-nav > li > a {
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }
    .sa-menu .dropdown-menu {
        box-shadow: none;
        border: none;
        padding: 0 0 0 12px;
        border-left: 2px solid #4da900;
    }
    .sa-menu .dropdown-item {
        padding: 8px 12px;
    }
    .sa-menu .dropdown-divider {
        display: none;
    }
    .sa-menu .sa-search {
        margin: 15px 0 0;
        width: 100%;
    }
}

/* ========================================
   LANGUAGE SELECTOR STYLES
   ======================================== */
/* Styles pour le selecteur de langue */
.sa-language .lang-dropdown {
    position: relative;
    display: inline-block;
}
.sa-language .lang-current {
    background: transparent;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    transition: all 0.2s ease;
}
.sa-language .lang-current:hover {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
}
.sa-language .lang-flag {
    font-size: 16px;
}
.sa-language .lang-arrow {
    transition: transform 0.2s ease;
}
.sa-language .lang-dropdown.open .lang-arrow {
    transform: rotate(180deg);
}

/* Menu dropdown - cache par defaut */
.sa-language .lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    min-width: 140px;
    padding: 8px 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    list-style: none;
    z-index: 1000;
    /* Cache par defaut */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

/* Menu visible quand dropdown ouvert */
.sa-language .lang-dropdown.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sa-language .lang-menu li {
  list-style: none;
  width: 100%;
}
.sa-language .lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.15s ease;
}
.sa-language .lang-option:hover {
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
}
.sa-language .lang-option.active {
    background-color: #e8f4fd;
    font-weight: 600;
    color: #0066cc;
}

/* Header Advertisement Banner - Modern Design */
.header-ad-wrapper {
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.header-ad-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ad-label {
    position: absolute;
    top: 8px;
    left: 15px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    background: rgba(255,255,255,0.9);
    padding: 2px 8px;
    border-radius: 3px;
    z-index: 5;
}

.header-ad-link {
    display: block;
    line-height: 0;
    position: relative;
    width: 100%;
}

.header-ad-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.header-ad-link:hover .header-ad-img {
    opacity: 0.95;
}

.ad-dismiss {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    opacity: 0.7;
}

.ad-dismiss:hover {
    background: rgba(244, 67, 54, 0.9);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.ad-dismiss svg {
    width: 12px;
    height: 12px;
}

/* Responsive */
@media (max-width: 992px) {
    .header-ad-img {
        max-height: 80px;
    }
    .ad-label {
        left: 10px;
        font-size: 8px;
    }
    .ad-dismiss {
        right: 10px;
        width: 24px;
        height: 24px;
    }
    .ad-dismiss svg {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    .header-ad-container {
        padding: 5px 0;
    }
    .header-ad-img {
        max-height: 50px;
    }
    .ad-label {
        display: none;
    }
    .ad-dismiss {
        width: 22px;
        height: 22px;
        right: 5px;
    }
}

/* ===== footer.css ===== */
/* Extrait de footer.php (bloc <style> inline) le 2026-08-30.
   Present sur TOUTES les pages du site : externalise pour etre mis en cache
   une seule fois au lieu d'etre renvoye a chaque page vue. */

/* ========================================
   PRE-FOOTER CTA BANNER
   ======================================== */
.footer-cta {
    background: linear-gradient(135deg, #1e3a1a 0%, #0f2b0d 50%, #1a1a2e 100%);
    padding: 45px 0;
    position: relative;
    overflow: hidden;
}

.footer-cta::before {
    content: '';
    position: absolute;
    top: -80%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(77, 169, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.footer-cta::after {
    content: '';
    position: absolute;
    bottom: -80%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(77, 169, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.footer-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.footer-cta-title {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px;
}

.footer-cta-text {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
}

.footer-cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.footer-cta-btn.primary {
    background: linear-gradient(135deg, #4da900, #3d8600);
    color: #fff;
    box-shadow: 0 4px 15px rgba(77, 169, 0, 0.3);
}

.footer-cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 169, 0, 0.5);
    color: #fff;
    text-decoration: none;
}

.footer-cta-btn.outline {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
    background: transparent;
}

.footer-cta-btn.outline:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

/* ========================================
   MAIN FOOTER
   ======================================== */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
}

.footer-main {
    padding: 50px 0 30px;
}

.footer-col {
    margin-bottom: 30px;
}

/* Brand */
.footer-brand { margin-bottom: 16px; }

.footer-logo-img {
    max-height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-about-text {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* Social */
.footer-social {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.footer-social-link {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.08);
}

.footer-social-link:hover {
    transform: translateY(-3px);
    color: #fff;
    text-decoration: none;
}

.footer-social-link.facebook:hover  { background: #1877f2; }
.footer-social-link.twitter:hover   { background: #1da1f2; }
.footer-social-link.instagram:hover { background: #e4405f; }
.footer-social-link.linkedin:hover  { background: #0a66c2; }
.footer-social-link.youtube:hover   { background: #ff0000; }

/* App Store Badges */
.footer-app-badges {
    display: flex;
    gap: 8px;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 12px;
    line-height: 1.2;
}

.app-badge:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
}

.app-badge i {
    font-size: 20px;
    flex-shrink: 0;
}

.app-badge span small {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

/* Headings */
.footer-heading {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 3px;
    background: #4da900;
    border-radius: 2px;
}

.footer-heading-mt { margin-top: 24px; }

/* Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 8px; }

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a::before {
    content: '';
    width: 0;
    height: 2px;
    background: #4da900;
    transition: width 0.2s ease;
    flex-shrink: 0;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: none;
    padding-left: 4px;
}

.footer-links a:hover::before { width: 12px; }

/* Recent Articles */
.footer-recent-articles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-recent-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.footer-recent-item:hover {
    transform: translateX(3px);
    text-decoration: none;
}

.footer-recent-img {
    width: 60px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
}

.footer-recent-img-ph {
    width: 60px;
    height: 48px;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    flex-shrink: 0;
}

.footer-recent-info { flex: 1; min-width: 0; }

.footer-recent-title {
    font-size: 12px;
    font-weight: 500;
    color: #cbd5e1;
    margin: 0 0 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.footer-recent-item:hover .footer-recent-title { color: #fff; }

.footer-recent-date {
    font-size: 11px;
    color: #64748b;
}

.footer-recent-date i { margin-right: 3px; font-size: 10px; }

/* Placeholder skeleton */
.footer-recent-placeholder { display: flex; flex-direction: column; gap: 10px; }
.footer-ph-line {
    height: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    animation: footerPulse 1.5s ease-in-out infinite;
}
.footer-ph-line.w80 { width: 80%; }
.footer-ph-line.w70 { width: 70%; }
.footer-ph-line.w60 { width: 60%; }
.footer-ph-line.w50 { width: 50%; }

@keyframes footerPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Newsletter */
.footer-newsletter-text {
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 14px;
    line-height: 1.6;
}

.newsletter-input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.newsletter-input-group:focus-within { border-color: #4da900; }
.newsletter-input-group.success { border-color: #22c55e; }

.newsletter-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 14px;
    color: #fff;
    font-size: 13px;
    min-width: 0;
}

.newsletter-input-group input::placeholder { color: #64748b; }

.newsletter-input-group button {
    background: #4da900;
    border: none;
    color: #fff;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.newsletter-input-group button:hover { background: #3d8600; }

.newsletter-feedback {
    font-size: 12px;
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.newsletter-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.newsletter-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Tags */
.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.footer-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    color: #94a3b8;
    font-size: 11px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.footer-tag:hover {
    background: rgba(77, 169, 0, 0.15);
    border-color: #4da900;
    color: #4da900;
    text-decoration: none;
}

/* Contact */
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 10px;
}

.footer-contact-item i {
    color: #4da900;
    width: 16px;
    text-align: center;
    font-size: 12px;
    flex-shrink: 0;
}

.footer-contact-item a,
.footer-contact-item span {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-item a:hover { color: #fff; }

/* ========================================
   FOOTER BOTTOM
   ======================================== */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 18px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-copyright {
    margin: 0;
    font-size: 12px;
    color: #475569;
}

.footer-bottom-center {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #475569;
}

.footer-rss,
.footer-sitemap-link {
    color: #475569;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-rss:hover,
.footer-sitemap-link:hover { color: #94a3b8; }

.footer-rss i { margin-right: 4px; }

.footer-powered {
    margin: 0;
    font-size: 12px;
    color: #475569;
}

.footer-powered strong { color: #64748b; }

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #4da900;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(77, 169, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #3d8600;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(77, 169, 0, 0.5);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
    .footer-main { padding: 40px 0 20px; }
    .footer-cta-inner { flex-direction: column; text-align: center; }
    .footer-cta-actions { justify-content: center; }
    .footer-app-badges { justify-content: center; }
}

@media (max-width: 768px) {
    .footer-cta { padding: 30px 0; }
    .footer-cta-title { font-size: 20px; }
    .footer-cta-actions { flex-direction: column; width: 100%; max-width: 280px; margin: 0 auto; }
    .footer-cta-btn { justify-content: center; }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-social { justify-content: center; }
    .footer-app-badges { justify-content: center; flex-wrap: wrap; }
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-col { text-align: center; }
    .footer-links a { justify-content: center; }
    .footer-contact-item { justify-content: center; }
    .footer-tags { justify-content: center; }
    .footer-recent-item { justify-content: center; }

    .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; font-size: 14px; }
}

@media (max-width: 576px) {
    .footer-app-badges { flex-direction: column; align-items: center; }
    .app-badge { width: 100%; max-width: 180px; justify-content: center; }
}
