/*
Theme Name: TerangaExplorer Premium
Theme URI: https://www.terangaexplorer.com
Author: Antigravity Team
Description: Thème e-tourisme premium, immersif et ultra-rapide (SEO-first) pour la destination Sénégal.
Version: 14.1.0
*/

:root {
    /* Couleurs de marque (V13.0 Web App) */
    --te-color-primary: #f59e0b; /* Amber vibrant */
    --te-color-primary-dark: #d97706;
    --te-color-secondary: #0f172a; /* Slate foncé pour contraste */
    --te-color-accent: #fcd34d;
    --te-color-accent-dark: #f59e0b; /* [m1 FIX] Variable manquante pour .btn-accent:hover */
    --te-color-light: #f8fafc;
    --te-color-white: #ffffff;
    --te-color-dark: #0f172a;
    
    /* Texte principal */
    --te-text-main: #334155;
    --te-text-muted: #64748b;

    /* Typographie (V13.0 SaaS Look) */
    --te-font-heading: 'Outfit', sans-serif; /* Moderne, rond, accueillant */
    --te-font-body: 'Inter', sans-serif; /* Lisibilité parfaite */
    --te-font-base: var(--te-font-body);
    /* Alias global (mega-menu & composants) */

    /* Dimensions & Spacing */
    --te-max-width: 1280px;
    --te-spacing-xs: 0.5rem;
    --te-spacing-sm: 1rem;
    --te-spacing-md: 2rem;
    --te-spacing-lg: 4rem;
    --te-spacing-xl: 6rem;

    /* UI Elements */
    --te-radius-sm: 4px;
    --te-radius-md: 8px;
    --te-radius-lg: 16px;
    --te-radius-xl: 24px;

    --te-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --te-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --te-shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
    --te-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);

    --te-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Animations Web App (V13.0) */
.te-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.te-reveal.te-active {
    opacity: 1;
    transform: translateY(0);
}

.te-hover-magnet {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.te-hover-magnet:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    border-color: var(--te-color-primary) !important;
}

/* --- CTA Shine Effect (V14) --- */
.te-cta-shine {
    position: relative;
    overflow: hidden;
}
.te-cta-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: te-shine 5s infinite;
}
@keyframes te-shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* --- DARK MODE OVERRIDES --- */
[data-theme="dark"] {
    --te-color-light: #0f172a;
    --te-color-white: #1e293b;
    --te-color-dark: #f8fafc;
    --te-text-main: #f1f5f9;
    --te-text-muted: #cbd5e1;
    --te-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --te-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --te-shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.5);
    --te-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] body { background: #0f172a !important; color: #f1f5f9 !important; }
[data-theme="dark"] .site-header { background: rgba(15, 23, 42, 0.95) !important; }
[data-theme="dark"] .main-navigation a { color: #f1f5f9 !important; }
[data-theme="dark"] .main-navigation a:hover { color: var(--te-color-accent) !important; }
[data-theme="dark"] .site-title a { color: #f1f5f9 !important; }
[data-theme="dark"] .btn-partner { background-color: #f1f5f9 !important; color: #0f172a !important; }
[data-theme="dark"] footer { background: #020617 !important; }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea { background: #1e293b !important; color: #f1f5f9 !important; border-color: #334155 !important; }
[data-theme="dark"] .te-card, [data-theme="dark"] .card { background: #1e293b !important; border-color: #334155 !important; }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4 { color: #f8fafc !important; }
[data-theme="dark"] p { color: #cbd5e1; }

[data-theme="dark"] a { color: var(--te-color-accent); }

/* --- RESET BASIQUE --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--te-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--te-text-main);
    background-color: var(--te-color-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* FIX: Surcharge de sécurité pour empêcher les plugins ou le Customizer de brider la largeur */
html, body, #swup, #swup-main {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
}

/* --- TYPOGRAPHIE --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--te-font-heading);
    color: var(--te-color-dark);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--te-spacing-sm);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

a {
    color: var(--te-color-primary);
    text-decoration: none;
    transition: var(--te-transition);
}

a:hover {
    color: var(--te-color-secondary);
}

p {
    margin-bottom: var(--te-spacing-sm);
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- UTILITIES & LAYOUT --- */
.container {
    width: 100%;
    max-width: var(--te-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: var(--te-spacing-xl) 0;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--te-radius-md);
    font-family: var(--te-font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--te-transition);
    border: none;
}

.btn-primary {
    background-color: var(--te-color-primary);
    color: var(--te-color-white);
}

.btn-primary:hover {
    background-color: var(--te-color-dark);
    color: var(--te-color-white);
    transform: translateY(-2px);
    box-shadow: var(--te-shadow-md);
}

.btn-accent {
    background-color: var(--te-color-accent);
    color: var(--te-color-dark);
}

.btn-accent:hover {
    background-color: var(--te-color-accent-dark);
    color: var(--te-color-dark);
}

/* --- ANIMATIONS PRÊTES À L'EMPLOI --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}
/* Utilitaires de Grille Responsive (V11.1) */
.te-grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; }
.te-grid-25-1 { display: grid; grid-template-columns: 2.5fr 1fr; }
.te-grid-1-1 { display: grid; grid-template-columns: 1fr 1fr; }

@media (max-width: 991px) {
    .te-grid-2-1, .te-grid-25-1, .te-grid-1-1 {
        grid-template-columns: 1fr !important;
    }
}

/* === 3. HEADER & NAVIGATION === */
.main-navigation li.mega-menu {
    position: static;
}
.main-navigation li.mega-menu > ul.sub-menu {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: none;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
    padding: 30px;
    background: #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-radius: 0 0 12px 12px;
}
.main-navigation li.mega-menu:hover > ul.sub-menu {
    display: grid;
}

/* --- V14.1 PREMIUM SUB-MENU (Desktop) --- */
@media (min-width: 992px) {
    .main-navigation ul {
        display: flex;
        align-items: center;
        gap: 30px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .main-navigation li {
        position: relative;
    }
    .main-navigation li > a {
        font-weight: 600;
        color: var(--te-color-dark);
        padding: 10px 0;
        display: flex;
        align-items: center;
        transition: color 0.3s;
        position: relative;
    }
    .main-navigation li > a::after {
        content: '';
        position: absolute;
        bottom: 5px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--te-color-primary);
        transition: width 0.3s ease;
    }
    .main-navigation li:hover > a {
        color: var(--te-color-primary);
    }
    .main-navigation li:hover > a::after {
        width: 100%;
    }
    .main-navigation ul.sub-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(15px);
        min-width: 240px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        border: 1px solid rgba(255,255,255,0.4);
        border-radius: 16px;
        padding: 12px 0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        display: flex;
        flex-direction: column;
        gap: 2px;
        z-index: 99;
    }
    .main-navigation li:hover > ul.sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    .main-navigation ul.sub-menu li {
        width: 100%;
    }
    .main-navigation ul.sub-menu li a {
        padding: 12px 25px;
        font-weight: 600;
        color: #475569;
        transition: all 0.2s;
        display: block;
        font-size: 0.95rem;
    }
    .main-navigation ul.sub-menu li a::after { display: none; }
    .main-navigation ul.sub-menu li a:hover {
        background: rgba(37,99,235,0.05);
        color: var(--te-color-primary);
        padding-left: 32px;
    }
    
    /* Bouton IA Highlight */
    .te-menu-highlight a {
        background: linear-gradient(135deg, var(--te-color-accent), #f59e0b) !important;
        color: #fff !important;
        padding: 10px 24px !important;
        border-radius: 50px;
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
        transition: transform 0.3s, box-shadow 0.3s !important;
    }
    .te-menu-highlight a::after { display: none; }
    .te-menu-highlight a:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
        color: #fff !important;
    }
}

/* --- MOBILE NAVIGATION FALLBACK --- */
@media (max-width: 991px) {
    .main-navigation ul {
        list-style: none;
        padding: 10px 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .main-navigation li {
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .main-navigation li:last-child {
        border-bottom: none;
    }
    .main-navigation li > a {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--te-color-dark);
        display: block;
        padding: 15px 20px;
        transition: background 0.3s;
    }
    .main-navigation li > a:hover {
        background: rgba(0,0,0,0.02);
    }
    .main-navigation ul.sub-menu {
        padding-left: 0;
        margin-top: 0;
        background: #f8fafc;
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .main-navigation ul.sub-menu li {
        border-bottom: 1px solid rgba(0,0,0,0.03);
    }
    .main-navigation ul.sub-menu li a {
        font-size: 0.95rem;
        color: #475569;
        font-weight: 600;
        padding: 12px 20px 12px 40px;
    }
    .te-menu-highlight {
        padding: 20px;
    }
    .te-menu-highlight a {
        display: block;
        background: linear-gradient(135deg, var(--te-color-accent), #f59e0b) !important;
        color: white !important;
        padding: 15px 20px !important;
        border-radius: 12px;
        text-align: center;
        width: 100%;
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    }
}
/* --- 6. BADGE PREMIUM (Upsell) --- */
.badge-premium {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.4);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
}


/* --- V4.1: UNIFIED HOMEPAGE SECTIONS --- */

.te-stats-bar { background: linear-gradient(135deg, #0f172a, #1e293b); padding: 4rem 0; color: #f1f5f9; }
.te-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; }
.te-stat-number { font-size: 2.8rem; font-weight: 900; color: #f59e0b; font-family: var(--te-font-heading); }
.te-stat-number--green { color: #22c55e; }
.te-stat-label { font-size: 0.95rem; color: #94a3b8; margin-top: 4px; }

.te-testimonial-card { background: var(--te-color-white); padding: 2rem; border-radius: var(--te-radius-lg); box-shadow: var(--te-shadow-sm); transition: var(--te-transition); }
.te-testimonial-card:hover { box-shadow: var(--te-shadow-hover); transform: translateY(-4px); }

.te-guarantee-card { text-align: center; padding: 2.5rem 2rem; border-radius: var(--te-radius-lg); border: 2px solid #e2e8f0; transition: var(--te-transition); background: var(--te-color-white); }
.te-guarantee-card:hover { transform: translateY(-4px); box-shadow: var(--te-shadow-md); }
.te-guarantee-badge { margin-top: 1rem; padding: 6px 14px; border-radius: 50px; display: inline-block; font-size: 0.8rem; font-weight: 600; }
.te-guarantee-badge--green { background: #f0fdf4; color: #15803d; }
.te-guarantee-badge--yellow { background: #fefce8; color: #a16207; }
.te-guarantee-badge--blue { background: #eff6ff; color: #1d4ed8; }

.te-guide-section { background: linear-gradient(135deg, #1e293b, #0f172a); padding: 5rem 0; color: #f1f5f9; position: relative; overflow: hidden; }
.te-guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; position: relative; z-index: 2; }
@media (max-width: 768px) { .te-guide-grid { grid-template-columns: 1fr; } }
.te-guide-preview { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--te-radius-lg); padding: 3rem 2rem; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); text-align: center; }

.te-partner-box { background: linear-gradient(135deg, var(--te-color-white), #f0f9ff); border-radius: var(--te-radius-xl); padding: 4rem 3rem; box-shadow: var(--te-shadow-lg); border: 1px solid #e0f2fe; text-align: center; position: relative; overflow: hidden; }

.te-btn-primary { background: linear-gradient(135deg, var(--te-color-primary), #2563eb); color: #fff !important; padding: 14px 32px; border-radius: 50px; font-weight: 800; text-decoration: none; font-size: 1rem; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 6px 20px rgba(27,73,101,0.3); transition: var(--te-transition); border: none; cursor: pointer; }
.te-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(27,73,101,0.4); }
.te-btn-accent { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff !important; padding: 14px 32px; border-radius: 50px; font-weight: 800; text-decoration: none; font-size: 1rem; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 15px rgba(245,158,11,0.4); transition: var(--te-transition); border: none; cursor: pointer; }
.te-btn-accent:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(245,158,11,0.5); }

.te-trust-verified { margin-top: 1.5rem; padding: 1rem; background: #f0fdf4; border-radius: var(--te-radius-md); border: 1px solid #bbf7d0; }
.te-trust-zero-commission { margin-top: 0.8rem; padding: 10px 14px; background: #fefce8; border-radius: var(--te-radius-md); border: 1px solid #fef08a; display: flex; align-items: center; gap: 8px; }

/* --- V4.1: DARK MODE — NEW SECTIONS --- */
[data-theme="dark"] .te-stats-bar { background: linear-gradient(135deg, #020617, #0f172a); }
[data-theme="dark"] .te-testimonial-card { background: #1e293b; }
[data-theme="dark"] .te-guarantee-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .te-guarantee-badge--green { background: rgba(34,197,94,0.15); }
[data-theme="dark"] .te-guarantee-badge--yellow { background: rgba(245,158,11,0.15); }
[data-theme="dark"] .te-guarantee-badge--blue { background: rgba(59,130,246,0.15); }
[data-theme="dark"] .te-partner-box { background: linear-gradient(135deg, #1e293b, #0f172a); border-color: #334155; }
[data-theme="dark"] .te-trust-verified { background: rgba(34,197,94,0.1); border-color: #166534; }
[data-theme="dark"] .te-trust-zero-commission { background: rgba(245,158,11,0.1); border-color: #a16207; }
[data-theme="dark"] .te-guide-section { background: linear-gradient(135deg, #020617, #0f172a); }

/* --- ACCESSIBILITY: FOCUS VISIBLE --- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--te-color-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* --- FOOTER TRUST BAR --- */
.te-footer-trust { display: flex; justify-content: center; gap: 2rem; padding: 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 2rem; flex-wrap: wrap; }
.te-footer-trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #94a3b8; font-weight: 600; }

/* --- RESPONSIVE REFINEMENTS --- */
@media (max-width: 992px) {
    /* Auto-collapse inline grids that were set to 2 columns (2fr 1fr) */
    .container > div[style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    /* Disable sticky sidebar on mobile */
    .sidebar {
        position: static !important;
        margin-top: 2rem !important;
    }
    .te-auto-grid {
        grid-template-columns: 1fr !important;
    }
    h1 { font-size: 2.5rem !important; }
    h2 { font-size: 2rem !important; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section-padding { padding: 4rem 0; }
    .te-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .te-partner-box { padding: 2.5rem 1.5rem; }
}

/* --- V12 RGPD COOKIE BANNER --- */
.te-cookie-banner { position: fixed; bottom: -200px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 600px; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 20px 25px; z-index: 99999; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25); transition: bottom 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); color: #f8fafc; }
.te-cookie-banner.show { bottom: 25px; }
.te-cookie-banner-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.te-cookie-text { flex: 1; font-size: 0.85rem; line-height: 1.5; color: #cbd5e1; }
.te-cookie-text strong { color: #fff; font-size: 1rem; display: block; margin-bottom: 5px; }
.te-cookie-btn { background: var(--te-color-primary, #f59e0b); color: #fff; border: none; padding: 10px 24px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: background 0.3s ease; white-space: nowrap; }
.te-cookie-btn:hover { background: #d97706; }
@media (max-width: 768px) { .te-cookie-banner { border-radius: 12px 12px 0 0; width: 100%; bottom: -250px; } .te-cookie-banner.show { bottom: 0; } .te-cookie-banner-inner { flex-direction: column; text-align: center; } .te-cookie-btn { width: 100%; } }

/* --- V10 CARROUSEL HORIZONTAL MOBILE (SWIPE TINDER/INSTAGRAM) --- */
.te-swipe-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
    padding-bottom: 15px;
}
.te-swipe-gallery::-webkit-scrollbar { display: none; }
.te-swipe-gallery > * {
    scroll-snap-align: start;
    flex: 0 0 80%; /* 80% du slide pour inviter au scroll */
}

/* =====================================================
   V11.1 — CORRECTIONS MOBILES GLOBALES
   ===================================================== */

/* --- Barre de recherche Hero --- */
.search-bar {
    flex-wrap: wrap !important;
    border-radius: 16px !important;
}

@media (max-width: 768px) {
    /* Barre de recherche : empiler verticalement */
    .search-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        border-radius: 20px !important;
        padding: 12px !important;
        gap: 10px;
    }
    .search-bar input[type="search"] {
        padding: 14px 16px !important;
        font-size: 1rem !important;
        width: 100% !important;
    }
    .search-bar button {
        width: 100% !important;
        border-radius: 12px !important;
        margin-left: 0 !important;
        padding: 14px 20px !important;
        font-size: 1rem !important;
    }
    .search-bar svg {
        display: none; /* cacher l'icône loupe sur mobile */
    }

    /* Hero : réduire hauteur sur mobile */
    .hero-section {
        height: 100svh !important;
        min-height: 550px;
    }
    .hero-section h1 {
        font-size: 2.2rem !important;
    }
    .hero-section p {
        font-size: 1rem !important;
    }

    /* Header Partner Button : raccourcir sur mobile */
    .btn-partner {
        font-size: 0.65rem !important;
        padding: 7px 10px !important;
        letter-spacing: 0 !important;
    }
    
    /* Masquer le bouton partenaire sur très petit écran si nécessaire */
    @media (max-width: 400px) {
        .btn-partner {
            display: none !important;
        }
    }

    /* Sections générales */
    .section-padding {
        padding: 3rem 0 !important;
    }

    /* Sidebar sticky sur mobile → pas de sticky */
    .sidebar {
        position: static !important;
    }
    
    /* Single templates : sidebar passe en bas */
    .te-grid-2-1,
    .te-grid-25-1 {
        gap: 2rem !important;
    }

    /* Galerie : forcer 1 seul item visible */
    .te-gallery-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: 280px !important;
    }
    .te-gallery-item:not(.te-gallery-item-1) {
        display: none !important;
    }
}

@media (max-width: 480px) {
    /* Hero encore plus petit */
    .hero-section h1 {
        font-size: 1.9rem !important;
    }

    /* Topbar : masquer email sur 480px */
    .te-topbar .topbar-email {
        display: none !important;
    }

    /* Personas swipe : prendre 90% de la largeur */
    .te-swipe-gallery > * {
        flex: 0 0 90% !important;
    }
}

/* --- Tablette (entre 769px et 1024px) --- */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section h1 {
        font-size: 3rem !important;
    }
    .te-grid-2-1,
    .te-grid-25-1 {
        grid-template-columns: 3fr 2fr !important;
        gap: 2.5rem !important;
    }
}

