/*
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.0.0
*/

:root {
    /* Couleurs de marque */
    --te-color-primary: #1B4965;
    /* Bleu OcÃ©an - Confiance, OcÃ©an Atlantique */
    --te-color-secondary: #606C38;
    /* Vert Savane - Nature, Baobab, Casamance */
    --te-color-accent: #F4E5C3;
    /* Sable DÃ©sert - Chaleur, Plages, Lompoul */
    --te-color-accent-dark: #D4B886;
    --te-color-light: #F9F9F9;
    /* ArriÃ¨re-plan gÃ©nÃ©ral */
    --te-color-white: #FFFFFF;
    --te-color-dark: #121212;
    /* Texte principal */
    --te-text-main: #333333;
    --te-text-muted: #666666;

    /* Typographie */
    --te-font-heading: 'Outfit', sans-serif;
    /* Ã‰lÃ©gance, appel Ã  l'aventure */
    --te-font-body: 'Inter', sans-serif;
    /* LisibilitÃ© maximale */
    --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);
}

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

/* The following was duplicated and we should remove it */
[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);
    color: var(--te-text-main);
    background-color: var(--te-color-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* --- 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, #1B4965, #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;
    }
}


/* =====================================================
   MASTER OPTIMIZATION v1.0 - Harmonisation Globale
   ===================================================== */

/* 1. Anti-overflow global - empêche le scroll horizontal sur mobile */
html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* 2. Typographie Fluide avec clamp() - s'adapte de 320px à 2560px */
:root {
    --te-fs-h1: clamp(2rem, 5vw, 4rem);
    --te-fs-h2: clamp(1.6rem, 3.5vw, 2.8rem);
    --te-fs-h3: clamp(1.2rem, 2.5vw, 1.8rem);
    --te-fs-body: clamp(0.95rem, 1.5vw, 1.1rem);
    --te-fs-small: clamp(0.8rem, 1.2vw, 0.9rem);
    --te-fs-caption: clamp(0.7rem, 1vw, 0.8rem);
}

h1 { font-size: var(--te-fs-h1) !important; }
h2 { font-size: var(--te-fs-h2) !important; }
h3 { font-size: var(--te-fs-h3) !important; }
p, li, td, label { font-size: var(--te-fs-body); line-height: 1.75; }
small, .te-caption, .te-badge { font-size: var(--te-fs-small); }

/* 3. Container harmonisé avec padding fluide */
.container {
    max-width: var(--te-max-width, 1280px);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
    width: 100%;
    box-sizing: border-box;
}

/* 4. Section padding fluide */
.section-padding {
    padding: clamp(3rem, 7vw, 7rem) 0;
}

/* 5. Micro-animations harmonisées */
* {
    box-sizing: border-box;
}

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

/* Smooth focus ring pour accessibilité */
*:focus-visible {
    outline: 3px solid var(--te-color-primary);
    outline-offset: 3px;
    border-radius: var(--te-radius-sm);
    transition: outline 0.15s ease;
}

/* 6. Cards harmonisées - hover uniforme sur tous les CPT */
.te-card,
.te-hotel-card,
.te-experience-card,
.te-restaurant-card,
.te-circuit-card,
.te-destination-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
    border-radius: var(--te-radius-lg);
    overflow: hidden;
}

.te-card:hover,
.te-hotel-card:hover,
.te-experience-card:hover,
.te-restaurant-card:hover,
.te-circuit-card:hover,
.te-destination-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--te-shadow-hover);
}

/* 7. Boutons harmonisés */
.te-btn,
.btn,
button[class*="te-btn"] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: clamp(0.6rem, 1.5vw, 0.85rem) clamp(1.2rem, 2.5vw, 1.8rem);
    border-radius: var(--te-radius-md);
    font-weight: 600;
    font-size: var(--te-fs-small);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    font-family: var(--te-font-body);
}

.te-btn:hover {
    transform: translateY(-2px);
}

/* 8. Grilles responsives harmonisées */
.te-grid {
    display: grid;
    gap: clamp(1rem, 3vw, 2rem);
}

.te-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.te-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .te-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .te-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .te-grid-4,
    .te-grid-3 { grid-template-columns: 1fr; }
}

/* 9. Hero section fluide */
.hero-section {
    min-height: clamp(500px, 80vh, 900px);
}

.hero-section h1 {
    font-size: var(--te-fs-h1) !important;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* 10. Images lazy-load avec fade-in */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded,
img.lazyloaded {
    opacity: 1;
}

/* 11. Skeleton loader pour les chargements AJAX */
.te-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: te-shimmer 1.5s infinite;
    border-radius: var(--te-radius-md);
}

[data-theme="dark"] .te-skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
}

@keyframes te-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 12. Auto-linker styling (SEO Maillage) */
.te-auto-link {
    color: var(--te-color-primary);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
    font-weight: 500;
}

.te-auto-link:hover {
    text-decoration-color: var(--te-color-primary);
}

/* 13. Live Data (Météo shortcode) */
.te-live-data {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(27, 73, 101, 0.08);
    border: 1px solid rgba(27, 73, 101, 0.15);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--te-color-primary);
    font-feature-settings: 'tnum';
}

[data-theme="dark"] .te-live-data {
    background: rgba(27, 73, 101, 0.2);
    border-color: rgba(27, 73, 101, 0.4);
    color: #7dd3fc;
}

/* 14. FAQ Schema accordéon (si HTML généré par l'IA) */
.te-faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 1rem 0;
}

.te-faq-question {
    font-weight: 600;
    font-size: var(--te-fs-body);
    color: var(--te-color-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.te-faq-answer {
    margin-top: 0.75rem;
    color: var(--te-text-muted);
    line-height: 1.7;
    font-size: var(--te-fs-small);
}

/* 15. Page Transition (Swup compatible) */
html.is-animating .swup-transition-main {
    opacity: 0;
    transform: translateY(8px);
}

.swup-transition-main {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 16. Print styles - propre pour l'impression d'itinéraires */
@media print {
    .site-header,
    .site-footer,
    .te-topbar,
    .te-cookie-banner,
    #te-chatbot-widget,
    .te-wishlist-btn,
    .no-print { display: none !important; }
    
    body { font-size: 12pt; color: #000; background: #fff; }
    a { color: #000; text-decoration: underline; }
    h1, h2, h3 { page-break-after: avoid; }
    img { max-width: 100% !important; }
}

/* 17. Admin style pour les outils IA (meilleure UX dans le Dashboard WP) */
#te-ai-generator-wrap,
#te-ai-translator-wrap,
.te-meta-box-ai {
    font-family: var(--te-font-body, 'Inter', sans-serif);
}

/* Button Espace Pro */
.btn-partner {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.btn-partner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4);
    color: white !important;
}
