/* ============================================================
   FRANCE ÉVASION RÉGIONS — Feuille de styles principale
   Design premium "magazine de voyage"
   ============================================================ */

:root {
    /* Palette */
    --primary:        #1b4332;
    --primary-light:  #2d6a4f;
    --accent:         #d4813a;
    --gold:           #e9c46a;
    --dark:           #0d1117;
    --text:           #2d3142;
    --text-muted:     #6b7285;
    --bg:             #fafaf8;
    --bg-warm:        #f5f0e8;
    --bg-card:        #ffffff;
    --border:         #e8e3dc;

    /* Fond secondaire (cartes, alternances) */
    --bg-secondary:   #f0ece4;

    /* Legacy aliases conservés pour compatibilité avec les autres templates */
    --primary-dark:   #152e24;
    --secondary:      #2d6a4f;
    --text-light:     #6b7285;
    --bg-light:       #f5f0e8;

    /* Tokens UI */
    --radius:         14px;
    --radius-sm:      8px;
    --radius-xs:      4px;
    --shadow:         0 1px 4px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
    --shadow-md:      0 4px 16px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.06);
    --shadow-lg:      0 12px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
    --shadow-xl:      0 24px 60px rgba(0,0,0,.18);

    /* Typo */
    --font-heading:   'Playfair Display', Georgia, serif;
    --font-body:      'Inter', system-ui, sans-serif;
    --font:           var(--font-body); /* compat */

    --max-w:          1200px;

    /* Transitions */
    --transition:     .22s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--text);
}

/* ============================================================
   UTILITAIRES
   ============================================================ */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 36px 32px;
    margin-bottom: 32px;
    border: 1px solid var(--border);
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: .8rem;
    color: var(--text-muted);
    font-weight: 500;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background var(--transition), transform var(--transition);
    font-family: var(--font-body);
}
.btn-primary:hover {
    background: var(--primary-light);
    text-decoration: none;
    color: #fff;
    transform: translateY(-1px);
}
.no-data { color: var(--text-muted); font-size: .95rem; }
.no-data .hint { font-size: .85rem; margin-top: 8px; }
.empty-state { color: var(--text-muted); text-align: center; padding: 40px; }

/* Section titles */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--text);
    margin-bottom: 10px;
}
.section-sub {
    color: var(--text-muted);
    font-size: .95rem;
    margin-bottom: 40px;
}

/* ============================================================
   EN-TÊTE
   ============================================================ */
.site-header {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
    transition: box-shadow var(--transition), background var(--transition);
}
.site-header.header-scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,.10);
    background: rgba(255,255,255,.98);
}
.site-header .container {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 68px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(27,67,50,.25));
    transition: transform var(--transition);
}
.logo:hover .logo-mark { transform: rotate(-5deg) scale(1.05); }
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--text);
    font-weight: 400;
    letter-spacing: -.02em;
    line-height: 1.15;
}
.logo-text strong {
    color: var(--primary);
    font-weight: 700;
}
.logo-evasion {
    color: var(--gold) !important;
}
.logo-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-left: 2px;
    vertical-align: super;
}

/* Nav */
.main-nav {
    display: flex;
    gap: 4px;
    margin-left: 4px;
}
.main-nav a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: .92rem;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    border-bottom: none;
    transition: color var(--transition), background var(--transition);
    text-decoration: none;
    letter-spacing: .01em;
}
.main-nav a:hover {
    color: var(--primary);
    background: rgba(27,67,50,.07);
    text-decoration: none;
}

/* Barre de recherche header */
.search-header { margin-left: auto; }
.search-form-mini {
    display: flex;
    align-items: center;
    position: relative;
}
.search-icon-left {
    position: absolute;
    left: 14px;
    font-size: .85rem;
    pointer-events: none;
    z-index: 1;
    opacity: .5;
}
.search-form-mini input {
    border: 1.5px solid var(--border);
    border-radius: 28px;
    padding: 9px 38px 9px 38px;
    font-size: .88rem;
    width: 240px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), width var(--transition);
    background: var(--bg);
    font-family: var(--font-body);
    color: var(--text);
}
.search-form-mini input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27,67,50,.12);
    width: 280px;
    background: #fff;
}
.search-form-mini input::placeholder { color: var(--text-muted); }

/* Bouton ✕ header */
.search-clear {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: .8rem;
    color: var(--text-muted);
    padding: 4px 7px;
    border-radius: 50%;
    transition: background var(--transition), color var(--transition);
    line-height: 1;
}
.search-clear:hover { background: var(--bg-warm); color: var(--text); }

/* Dropdown autocomplete */
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 340px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 300;
    overflow: hidden;
    padding: 6px 0;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    text-decoration: none;
    color: var(--text);
    transition: background var(--transition);
    cursor: pointer;
}
.search-result-item:hover,
.search-result-item.active {
    background: rgba(27,67,50,.06);
    text-decoration: none;
}
.sr-pin { font-size: 1rem; flex-shrink: 0; opacity: .6; }
.sr-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sr-nom  { font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-dept { color: var(--text-muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-no-result { padding: 12px 16px; color: var(--text-muted); font-size: .88rem; }

/* ============================================================
   FIL D'ARIANE
   ============================================================ */
.breadcrumb {
    background: #fff;
    border-bottom: 1px solid var(--border);
    font-size: .83rem;
    padding: 10px 0;
}
.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    list-style: none;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--text-muted); }
.breadcrumb li:last-child { color: var(--text-muted); font-weight: 500; }

/* ============================================================
   HERO HOMEPAGE
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background:
        linear-gradient(
            160deg,
            rgba(13,17,23,.72) 0%,
            rgba(27,67,50,.60) 55%,
            rgba(13,17,23,.78) 100%
        ),
        var(--hero-bg, linear-gradient(160deg, #1b4332 0%, #0d1117 100%));
    background-size: cover;
    background-position: center;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 100px 24px 80px;
    max-width: 860px;
    margin: 0 auto;
}
.hero-eyebrow {
    display: inline-block;
    background: rgba(233,196,106,.18);
    border: 1px solid rgba(233,196,106,.40);
    color: var(--gold);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 24px;
    backdrop-filter: blur(6px);
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 6.5vw, 5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -.02em;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero h1 em {
    font-style: italic;
    color: var(--gold);
}
.hero-sub {
    font-size: clamp(.95rem, 2vw, 1.15rem);
    color: rgba(255,255,255,.82);
    margin-bottom: 44px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-weight: 300;
}

/* Formulaire de recherche hero */
.search-form-hero {
    display: flex;
    max-width: 620px;
    margin: 0 auto 16px;
    gap: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
    border-radius: 50px;
    overflow: visible;
}
.search-hero-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}
.search-form-hero input {
    width: 100%;
    padding: 17px 46px 17px 26px;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
    outline: none;
    font-family: var(--font-body);
    color: var(--text);
    background: #fff;
}
.search-form-hero input::placeholder { color: var(--text-muted); }
.btn-hero-search {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 17px 32px;
    border-radius: 0 50px 50px 0;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    white-space: nowrap;
    font-family: var(--font-body);
    letter-spacing: .02em;
}
.btn-hero-search:hover {
    background: #bf6f2a;
    transform: none;
}
.search-clear-hero {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: .85rem;
    color: var(--text-muted);
    padding: 4px 7px;
    border-radius: 50%;
    transition: background var(--transition), color var(--transition);
    line-height: 1;
}
.search-clear-hero:hover { background: var(--bg-warm); color: var(--text); }

.hero-hint {
    color: rgba(255,255,255,.72);
    font-size: .8rem;
    margin-top: 8px;
}

/* Scroll indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 40px auto 0;
    width: fit-content;
    color: rgba(255,255,255,.5);
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    animation: fadeInUp 1s 1.2s both;
    /* Reset bouton */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: var(--font-body);
    transition: color var(--transition);
}
.scroll-indicator:hover { color: rgba(255,255,255,.85); }
.scroll-arrow {
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(255,255,255,.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
    transition: border-color var(--transition);
}
.scroll-indicator:hover .scroll-arrow { border-color: rgba(255,255,255,.7); }
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(12px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Dropdown hero */
.search-dropdown-hero {
    width: 100%;
    top: calc(100% + 8px);
    left: 0;
    border-radius: var(--radius);
}

/* ============================================================
   STATS BANNER (accueil) — redesign large
   ============================================================ */
.stats-banner {
    background: var(--dark);
    padding: 36px 0;
    position: relative;
    z-index: 90;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 6px 32px rgba(0,0,0,.45);
}
.stats-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 300% at 15% 50%, rgba(27,67,50,.45) 0%, transparent 60%),
        radial-gradient(ellipse 60% 300% at 85% 50%, rgba(212,129,58,.15) 0%, transparent 60%),
        radial-gradient(ellipse 40% 200% at 50% 50%, rgba(27,67,50,.2) 0%, transparent 70%);
    pointer-events: none;
}
.stats-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(233,196,106,.3), transparent);
}
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    position: relative;
    align-items: center;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 40px;
    border-right: 1px solid rgba(255,255,255,.08);
    position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    letter-spacing: -.02em;
}
.stat-label {
    font-size: .72rem;
    color: rgba(255,255,255,.72);
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ============================================================
   CARTE SVG FRANCE (accueil)
   ============================================================ */
.france-svg-section {
    padding: 80px 0 60px;
    background: var(--bg);
    scroll-margin-top: 85px;
}
.fsv-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.fsv-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    max-width: 520px;
}
.fsv-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: opacity var(--transition);
}
.fsv-legend-item:hover { opacity: .75; }
.fsv-legend-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.fsv-legend-label {
    font-size: .75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* SVG map wrapper */
.fsv-wrap {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,.10);
}
.fsv-svg {
    display: block;
    width: 100%;
    height: auto;
}
.fsv-path {
    fill-opacity: 0.72;
    transition: fill-opacity .15s, filter .15s;
    cursor: pointer;
}
.fsv-dept:hover .fsv-path {
    fill-opacity: 1;
    filter: url(#fsv-hover-glow);
}

/* Tooltip */
.fsv-tooltip {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    background: rgba(15,20,30,.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.fsv-tip-code {
    font-size: .7rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .08em;
}
.fsv-tip-nom {
    font-family: var(--font-heading);
    font-size: .98rem;
    color: #fff;
}
.fsv-tip-region {
    font-size: .75rem;
    color: rgba(255,255,255,.72);
}
.fsv-tip-cta {
    font-size: .72rem;
    color: var(--gold);
    margin-top: 4px;
    font-style: normal;
}

/* Surlignage région */
.fsv-dept.fsv-dimmed .fsv-path {
    fill-opacity: 0.12;
    transition: fill-opacity .2s;
}
.fsv-dept.fsv-highlighted .fsv-path {
    fill-opacity: 1;
    filter: url(#fsv-hover-glow);
    transition: fill-opacity .2s;
}

/* Légende cliquable */
.fsv-legend-item {
    cursor: pointer;
    padding: 3px 8px 3px 4px;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: border-color .15s, background .15s;
}
.fsv-legend-item:hover {
    border-color: var(--border);
    background: var(--bg-card);
    opacity: 1;
}
.fsv-legend-label {
    font-size: .75rem;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color .15s;
}
.fsv-legend-item:hover .fsv-legend-label { color: var(--text); }

/* ============================================================
   SECTION RÉGIONS
   ============================================================ */
.regions-section {
    padding: 80px 0;
    background: var(--bg);
    scroll-margin-top: 185px;
}
.regions-section .section-title { margin-bottom: 10px; }
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

/* ── PhotoStack wrapper (inspiré du composant region.txt) ── */
.region-card-wrap {
    position: relative;
    height: 260px;
}

/* Cartes empilées derrière */
.region-stack-back {
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    transition: transform .4s cubic-bezier(.4,0,.2,1), opacity .4s;
    will-change: transform;
}
.region-stack-back--1 {
    transform: rotate(2.5deg) translateY(6px) scale(.97);
    opacity: .55;
    z-index: 0;
    filter: brightness(.7);
}
.region-stack-back--2 {
    transform: rotate(-2deg) translateY(10px) scale(.94);
    opacity: .35;
    z-index: -1;
    filter: brightness(.5);
}
.region-card-wrap:hover .region-stack-back--1 {
    transform: rotate(7deg) translateY(10px) scale(.94);
    opacity: .7;
}
.region-card-wrap:hover .region-stack-back--2 {
    transform: rotate(-6deg) translateY(16px) scale(.9);
    opacity: .45;
}

/* Carte région principale */
.region-card {
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 1;
}
.region-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    text-decoration: none;
    color: #fff;
}
.region-card-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
    z-index: 0;
}
.region-card:hover .region-card-img { transform: scale(1.06); }

.region-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8,14,10,.85) 0%,
        rgba(27,67,50,.25) 55%,
        transparent 100%
    );
    transition: background var(--transition);
    z-index: 1;
}
.region-card:hover .region-card-overlay {
    background: linear-gradient(
        to top,
        rgba(27,67,50,.88) 0%,
        rgba(27,67,50,.5) 55%,
        rgba(27,67,50,.12) 100%
    );
}
.region-svg-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    z-index: 2;
    opacity: .7;
    transition: opacity var(--transition), transform var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.region-card:hover .region-svg-fallback { opacity: 0; transform: translate(-50%, -70%); }
.region-emoji {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    font-size: 3.2rem;
    z-index: 1;
    opacity: .85;
    transition: opacity var(--transition), transform var(--transition);
    text-shadow: 0 2px 16px rgba(0,0,0,.5);
}
.region-card:hover .region-emoji { opacity: 0; transform: translate(-50%, -70%); }

.region-card-body {
    position: relative;
    z-index: 2;
    padding: 20px 20px 18px;
}
.region-card-tag {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: .8;
    margin-bottom: 4px;
}
.region-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0,0,0,.7);
    line-height: 1.25;
}
.region-stats {
    font-size: .76rem;
    color: rgba(255,255,255,.7);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}
.region-stats::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    opacity: .7;
    flex-shrink: 0;
}

/* ============================================================
   VILLES POPULAIRES — redesign moderne
   ============================================================ */
.popular-section {
    background: var(--bg);
    padding: 72px 0;
    border-top: 1px solid var(--border);
}
.popular-section .section-title { margin-bottom: 8px; }
.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 36px;
}
.popular-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.popular-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--transition);
    border-radius: 0 2px 2px 0;
}
.popular-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--text);
}
.popular-card:hover::before { transform: scaleY(1); }
.popular-card-pin {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(27,67,50,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    transition: background var(--transition), transform var(--transition);
}
.popular-card-pin svg { width: 16px; height: 16px; }
.popular-card:hover .popular-card-pin {
    background: rgba(27,67,50,.15);
    transform: scale(1.1);
}
.popular-card-info { min-width: 0; flex: 1; }
.popular-name {
    font-weight: 700;
    font-size: .97rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}
.popular-dept {
    font-size: .76rem;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.popular-card-arrow {
    color: var(--text-muted);
    font-size: 1rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity var(--transition), transform var(--transition);
    flex-shrink: 0;
}
.popular-card:hover .popular-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

[data-theme="dark"] .popular-section { background: var(--bg); }
[data-theme="dark"] .popular-card { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .popular-card:hover { border-color: var(--primary); }
[data-theme="dark"] .popular-card-pin { background: rgba(64,145,108,.1); color: var(--primary-light); }
[data-theme="dark"] .popular-card:hover .popular-card-pin { background: rgba(64,145,108,.2); }

@media (max-width: 640px) {
    .popular-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
}

/* ============================================================
   SECTION FEATURES / POURQUOI NOUS CHOISIR
   ============================================================ */
.features-section {
    padding: 80px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 36px;
    margin-top: 48px;
}
.feature {
    text-align: center;
    padding: 28px 20px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}
.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    transition: transform var(--transition);
}
.feature:hover .feature-icon { transform: scale(1.08) rotate(-3deg); }
.feature-icon--blue   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); box-shadow: 0 8px 24px rgba(59,130,246,.35); }
.feature-icon--orange { background: linear-gradient(135deg, #f97316, #c2410c); box-shadow: 0 8px 24px rgba(249,115,22,.35); }
.feature-icon--purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); box-shadow: 0 8px 24px rgba(139,92,246,.35); }
.feature-icon--green  { background: linear-gradient(135deg, #1b4332, #2d6a4f); box-shadow: 0 8px 24px rgba(27,67,50,.35); }
.feature h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text);
}
.feature p {
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.6;
}

/* ============================================================
   PAGE RÉGION
   ============================================================ */
.page-header {
    padding: 40px 0 24px;
}
.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
}
.page-sub { color: var(--text-muted); margin-top: 8px; }
.page-region { padding-bottom: 60px; }

.depts-grid { display: flex; flex-direction: column; gap: 10px; }
.dept-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text);
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.dept-card:hover {
    border-color: var(--primary);
    background: rgba(27,67,50,.04);
    text-decoration: none;
    transform: translateX(4px);
}
.dept-num {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
    min-width: 52px;
    text-align: center;
    padding: 7px 8px;
    font-family: var(--font-heading);
}
.dept-info { flex: 1; }
.dept-info h2 { font-size: 1.05rem; font-weight: 600; margin-bottom: 2px; font-family: var(--font-body); }
.dept-info p { font-size: .85rem; color: var(--text-muted); }
.dept-arrow { color: var(--text-muted); font-size: 1.3rem; }

/* ============================================================
   PAGE DÉPARTEMENT
   ============================================================ */
.page-departement { padding-bottom: 60px; }

/* Section carte département */
.dept-map-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}
.dept-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.dept-map-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.dept-map-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
}
.dept-map-header h2 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin: 0 0 2px;
    color: var(--text);
    border: none !important;
    padding: 0 !important;
}
.dept-map-header p {
    font-size: .83rem;
    color: var(--text-muted);
    margin: 0;
}
.dept-map-osm-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
    white-space: nowrap;
}
.dept-map-osm-link:hover { color: var(--primary); }
.dept-map-container {
    height: 420px;
    width: 100%;
    background: #f0ede8;
}
@media (max-width: 600px) { .dept-map-container { height: 280px; } }

/* ============================================================
   PAGE LISTE DÉPARTEMENTS
   ============================================================ */
.page-depts-list { padding-bottom: 60px; }

.dept-region-group { margin-bottom: 48px; }

.dept-region-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.dept-region-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    transition: color var(--transition);
}
.dept-region-link:hover { color: var(--primary); text-decoration: none; }
.dept-region-count {
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2px 10px;
}

.depts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.dept-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    text-align: center;
    min-height: 110px;
    justify-content: center;
}
.dept-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    text-decoration: none;
    color: var(--text);
}
.dept-card-flag {
    width: 48px;
    height: auto;
    max-height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.15));
}
.dept-card-code-placeholder {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.dept-card-code {
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-warm);
    border-radius: 4px;
    padding: 1px 6px;
}
.dept-card-nom {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}
.page-departement .card h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
}
.page-departement section > h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}
.dept-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 2px 10px;
    font-size: .85rem;
    font-weight: 700;
    margin-right: 8px;
    vertical-align: middle;
}

.alpha-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 20px 0 28px;
}
.alpha-btn {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: .83rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition);
    font-family: var(--font-body);
}
.alpha-btn:hover, .alpha-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    text-decoration: none;
}

.communes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}
.commune-item {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text);
    transition: border-color var(--transition), background var(--transition);
    font-size: .9rem;
}
.commune-item:hover {
    border-color: var(--primary);
    background: rgba(27,67,50,.04);
    text-decoration: none;
}
.commune-name { font-weight: 600; }
.commune-cp   { color: var(--text-muted); font-size: .8rem; margin-top: 2px; }
.commune-pop  { color: var(--text-muted); font-size: .75rem; }

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 40px 0 20px;
}
.page-btn {
    background: var(--primary);
    color: #fff;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-decoration: none;
    transition: background var(--transition);
}
.page-btn:hover { background: var(--primary-light); text-decoration: none; color: #fff; }
.page-info { color: var(--text-muted); font-size: .9rem; }

/* ============================================================
   PAGE COMMUNE
   ============================================================ */
.page-commune { padding-bottom: 60px; }

.commune-header {
    padding: 40px 0 20px;
}
.commune-header h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
}
.commune-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

/* Chips modernes pour les infos communes */
.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px 5px 10px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .01em;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
}
.meta-chip svg { flex-shrink: 0; opacity: .85; }
.meta-chip--muted {
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.18);
    color: rgba(255,255,255,.7);
}
/* Version sans photo (fond clair) */
.commune-header .meta-chip {
    background: var(--bg-warm);
    border-color: var(--border);
    color: var(--text-muted);
}
.commune-header .meta-chip svg { color: var(--primary); }

.commune-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}
@media (max-width: 768px) {
    .commune-content-grid { grid-template-columns: 1fr; }
}

/* Météo */
.weather-card h2, .markets-card h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}
.weather-current {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.weather-main {
    display: flex;
    align-items: center;
    gap: 12px;
}
.weather-temp {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    display: block;
}
.weather-desc {
    font-size: .93rem;
    color: var(--text-muted);
    text-transform: capitalize;
}
.weather-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-left: auto;
}
.weather-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    min-width: 70px;
    text-align: center;
    border: 1px solid var(--border);
}
.wd-label { font-size: .7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.wd-val   { font-size: .98rem; font-weight: 600; margin-top: 2px; }

.weather-forecast h3 { font-size: .95rem; margin-bottom: 12px; color: var(--text-muted); }
.forecast-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
}
.forecast-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 12px 14px;
    min-width: 90px;
    text-align: center;
    flex-shrink: 0;
}
.f-date { font-size: .73rem; font-weight: 600; color: var(--text-muted); }
.f-icon { font-size: 1.6rem; }
.f-desc { font-size: .7rem; color: var(--text-muted); text-transform: capitalize; }
.f-temps { display: flex; gap: 6px; font-size: .88rem; font-weight: 600; }
.f-max { color: #dc2626; }
.f-min { color: var(--primary); }
.weather-source { font-size: .73rem; color: var(--text-muted); margin-top: 16px; text-align: right; }

/* Marchés */
.markets-count { color: var(--text-muted); font-size: .9rem; margin-bottom: 16px; }
.market-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 14px;
    background: var(--bg);
}
.market-item:last-of-type { margin-bottom: 0; }
.market-name { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.market-schedule { margin-bottom: 8px; }
.schedule-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    font-size: .9rem;
    margin-bottom: 4px;
}
.schedule-days  { font-weight: 600; color: var(--primary); }
.schedule-hours { color: var(--text-muted); }
.market-desc    { font-size: .85rem; color: var(--text-muted); margin-top: 8px; line-height: 1.5; }
.markets-source { font-size: .73rem; color: var(--text-muted); margin-top: 16px; text-align: right; }

/* Communes voisines */
.communes-voisines h2 { font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: 16px; }
.voisines-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 16px; }
.voisine-card { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--text); transition: border-color .18s, transform .18s, box-shadow .18s; }
.voisine-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(45,106,79,.13); color: var(--primary); }
.voisine-nom { font-weight: 600; font-size: .93rem; line-height: 1.3; }
.voisine-cp { font-size: .78rem; color: var(--text-muted); }
.voisine-pop { font-size: .78rem; color: var(--text-muted); }
.btn-all-communes { display: inline-block; margin-top: 4px; font-size: .88rem; color: var(--primary); text-decoration: none; font-weight: 500; }
.btn-all-communes:hover { text-decoration: underline; }

/* Infos pratiques */
.commune-infos h2 { font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: 16px; }
.info-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: .93rem; }
.info-list dt { font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.info-list dd { color: var(--text); }

/* ============================================================
   STATS POI (région / département) — icônes SVG modernes
   ============================================================ */
.region-stats-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
    color: var(--text);
}
.poi-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}
.poi-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 22px 14px 18px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    gap: 6px;
}
.poi-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--poi-color, var(--primary));
}

/* Icône POI moderne */
.poi-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--poi-color, var(--primary)) 12%, transparent);
    border: 1.5px solid color-mix(in srgb, var(--poi-color, var(--primary)) 25%, transparent);
    color: var(--poi-color, var(--primary));
    margin-bottom: 4px;
    transition: background var(--transition), transform var(--transition);
    flex-shrink: 0;
}
.poi-stat-icon svg { width: 24px; height: 24px; }
.poi-stat:hover .poi-stat-icon {
    background: color-mix(in srgb, var(--poi-color, var(--primary)) 20%, transparent);
    transform: scale(1.08) rotate(-3deg);
}

/* Fallback navigateurs sans color-mix (Firefox < 113, Safari < 16.2) */
@supports not (background: color-mix(in srgb, red, blue)) {
    .poi-stat-icon { background: rgba(27,67,50,.1); border-color: rgba(27,67,50,.25); color: var(--primary); }
}

.poi-stat-emoji  { font-size: 1.5rem; } /* fallback si pas d'icône SVG */
.poi-stat-num    { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--text); line-height: 1; }
.poi-stat-label  { font-size: .72rem; color: var(--text-muted); font-weight: 500; line-height: 1.3; }
.poi-stat-sub    { font-size: .7rem; color: var(--text-muted); }

[data-theme="dark"] .poi-stat { background: var(--bg-warm); border-color: var(--border); }
[data-theme="dark"] .poi-stat-num { color: var(--text); }

.poi-stat-link {
    display: flex;
    text-decoration: none;
    color: var(--text);
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.poi-stat-link:hover {
    background: rgba(27,67,50,.06);
    box-shadow: 0 4px 12px rgba(27,67,50,.15);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--text);
}

/* ============================================================
   TOP ACTIVITÉS (page région)
   ============================================================ */
.top-activites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.activite-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow var(--transition), transform var(--transition);
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
}
.activite-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    text-decoration: none;
}
.activite-img img { width: 100%; height: 180px; object-fit: cover; display: block; }
.activite-img-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--poi-color, var(--primary)) 10%, var(--bg)),
        color-mix(in srgb, var(--poi-color, var(--primary)) 20%, var(--bg)));
    border-bottom: 1px solid color-mix(in srgb, var(--poi-color, var(--primary)) 20%, transparent);
}
@supports not (background: color-mix(in srgb, red, blue)) {
    .activite-img-placeholder { background: linear-gradient(135deg, rgba(27,67,50,.08), rgba(27,67,50,.16)); }
}
.activite-placeholder-icon {
    opacity: .35;
    transform: scale(2.2);
    display: flex;
    color: var(--poi-color, var(--primary));
}
/* Image cassée → placeholder identique */
.poi-img-broken {
    height: 180px;
    background: linear-gradient(135deg, var(--bg-warm), var(--bg));
    display: flex;
    align-items: center;
    justify-content: center;
}
.poi-img-broken::after {
    content: '';
    width: 40px;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='1.5' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: .4;
}
.activite-body { padding: 14px 16px; flex: 1; }
.activite-cat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.activite-cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--poi-color, var(--primary));
}
.activite-cat-icon svg { width: 16px; height: 16px; }
.activite-body h3 { font-family: var(--font-heading); font-size: 1rem; margin: 6px 0 4px; }
.activite-ville { font-size: .82rem; color: var(--text-muted); margin-bottom: 6px; }
.activite-desc  { font-size: .82rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   TOP COMMUNES (page département)
   ============================================================ */
.top-communes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.top-commune-card {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text);
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.top-commune-card:hover {
    border-color: var(--primary);
    background: rgba(27,67,50,.04);
    transform: translateY(-2px);
}
.tc-nom { font-weight: 600; font-size: .93rem; }
.tc-poi { font-size: .78rem; color: var(--primary); font-weight: 500; margin-top: 2px; }
.tc-pop { font-size: .73rem; color: var(--text-muted); }

/* ============================================================
   MARCHÉS DÉPARTEMENT
   ============================================================ */
.marches-dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}
.marche-dept-item {
    display: flex;
    flex-direction: column;
    background: rgba(233,196,106,.08);
    border: 1px solid rgba(233,196,106,.35);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    text-decoration: none;
    color: var(--text);
    transition: background var(--transition);
    gap: 3px;
}
.marche-dept-item:hover { background: rgba(233,196,106,.16); text-decoration: none; }
.md-ville   { font-size: .73rem; color: var(--text-muted); }
.md-nom     { font-weight: 600; font-size: .9rem; }
.md-adresse { font-size: .76rem; color: var(--text-muted); }

/* ============================================================
   POI SECTIONS (page commune)
   ============================================================ */
.poi-section h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}
.poi-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--poi-color, var(--primary)) 12%, transparent);
    color: var(--poi-color, var(--primary));
    flex-shrink: 0;
}
.poi-section-icon svg { width: 18px; height: 18px; }
@supports not (background: color-mix(in srgb, red, blue)) {
    .poi-section-icon { background: rgba(27,67,50,.1); color: var(--primary); }
}
.poi-count {
    background: var(--primary);
    color: #fff;
    font-size: .73rem;
    font-weight: 700;
    border-radius: 20px;
    padding: 2px 10px;
    margin-left: auto;
    font-family: var(--font-body);
}
.poi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.poi-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.poi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.poi-img img    { width: 100%; height: 180px; object-fit: cover; display: block; }
.poi-body       { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.poi-nom        { font-weight: 600; font-size: 1rem; margin-bottom: 6px; }
.poi-adresse    { font-size: .82rem; color: var(--text-muted); margin-bottom: 6px; }
.poi-desc       { font-size: .85rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; }
.poi-contacts   { display: flex; flex-wrap: wrap; gap: 8px; }
.poi-contact {
    font-size: .78rem;
    color: var(--primary);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px 10px;
    transition: background var(--transition);
}
.poi-contact:hover { background: rgba(27,67,50,.08); }
.poi-dt { background: rgba(27,67,50,.06); border-color: rgba(27,67,50,.25); color: var(--primary-light); }
.poi-dt:hover { background: rgba(27,67,50,.12); }

.poi-card-link {
    display: block;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow var(--transition), transform var(--transition);
}
.poi-card-link:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    text-decoration: none;
    color: var(--text);
}

.poi-date-badge {
    font-size: .78rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    border-radius: 20px;
    padding: 3px 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
    font-family: var(--font-body);
}
.poi-lire-plus {
    display: inline-block;
    margin-top: auto;
    padding-top: 10px;
    font-size: .82rem;
    color: var(--primary);
    font-weight: 600;
}

.region-stats-card h2 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 16px;
}

/* ============================================================
   PAGE POI DETAIL
   ============================================================ */
.page-poi-detail { padding-top: 32px; padding-bottom: 60px; }

.poi-detail-header { margin-bottom: 28px; }
.poi-detail-cat span {
    display: inline-block;
    font-size: .83rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(27,67,50,.08);
    border: 1px solid rgba(27,67,50,.2);
    border-radius: 20px;
    padding: 3px 14px;
    margin-bottom: 10px;
}
.poi-detail-header h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 10px;
    line-height: 1.2;
}
.poi-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    color: var(--text-muted);
    font-size: .9rem;
}

.poi-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}
@media (max-width: 900px) {
    .poi-detail-grid { grid-template-columns: 1fr; }
}

/* Photos */
.poi-photos { margin-bottom: 24px; }
.poi-photo-main img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}
.poi-photo-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.poi-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition);
}
.poi-thumb.active,
.poi-thumb:hover { border-color: var(--primary); }

/* Description */
.poi-full-desc {
    line-height: 1.8;
    font-size: .95rem;
    color: var(--text);
}

/* Aside */
.poi-detail-aside .card h2 {
    font-family: var(--font-heading);
    font-size: .98rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}
.aside-block {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.aside-block:last-child { border-bottom: none; margin-bottom: 0; }
.aside-block h3 {
    font-size: .83rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
    font-family: var(--font-body);
}
.aside-block p { font-size: .9rem; margin-bottom: 4px; }
.aside-block a { font-size: .9rem; }

.btn-map, .btn-dt {
    display: inline-block;
    margin-top: 8px;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-size: .83rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
    font-family: var(--font-body);
}
.btn-map {
    background: rgba(27,67,50,.07);
    color: var(--primary);
    border: 1px solid rgba(27,67,50,.25);
}
.btn-map:hover { background: rgba(27,67,50,.14); text-decoration: none; transform: translateY(-1px); }
.btn-dt {
    background: rgba(233,196,106,.12);
    color: #7a5c10;
    border: 1px solid rgba(233,196,106,.5);
}
.btn-dt:hover { background: rgba(233,196,106,.22); text-decoration: none; transform: translateY(-1px); }
.btn-back {
    display: inline-block;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition);
    font-family: var(--font-body);
}
.btn-back:hover { background: var(--bg-warm); border-color: var(--primary); text-decoration: none; }

/* ============================================================
   PAGE POI LIST (par catégorie / département)
   ============================================================ */
.page-poi-list { padding-top: 32px; padding-bottom: 60px; }

.poi-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.poi-list-card {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow var(--transition), transform var(--transition);
    border: 1px solid var(--border);
}
.poi-list-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    text-decoration: none;
    color: var(--text);
}
.poi-list-card.poi-past { opacity: .75; }

.plc-img {
    width: 120px;
    min-width: 120px;
    flex-shrink: 0;
    overflow: hidden;
}
.plc-img img {
    width: 120px;
    height: 100%;
    min-height: 120px;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.poi-list-card:hover .plc-img img { transform: scale(1.06); }
.plc-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-warm);
    font-size: 2.2rem;
}
.plc-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 0;
}
.plc-date {
    font-size: .78rem;
    font-weight: 700;
    border-radius: 20px;
    padding: 2px 10px;
    display: inline-block;
    width: fit-content;
    font-family: var(--font-body);
}
.plc-date-upcoming { color: var(--primary); background: rgba(27,67,50,.08); }
.plc-date-past     { color: var(--text-muted); background: var(--bg-warm); }
.plc-nom {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.plc-lieu {
    font-size: .8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.plc-desc {
    font-size: .82rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.plc-lire { font-size: .8rem; font-weight: 600; color: var(--primary); margin-top: auto; }

/* ============================================================
   POI CARD — PHOTOS MULTIPLES
   ============================================================ */
.poi-img img { width: 100%; height: 180px; object-fit: cover; display: block; }
.poi-img-multi { position: relative; }
.poi-img-multi .poi-img-main { height: 160px; }
.poi-img-strip {
    display: flex;
    gap: 2px;
    background: #000;
}
.poi-img-strip img {
    flex: 1;
    height: 60px;
    object-fit: cover;
    opacity: .82;
    transition: opacity var(--transition);
}
.poi-img-strip img:hover { opacity: 1; }
.poi-photo-count {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* ============================================================
   BANNIÈRE PAYSAGE (Pixabay)
   ============================================================ */
.landscape-banner {
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    margin-bottom: 32px;
    overflow: hidden;
}
.landscape-banner-commune { height: 300px; }

.landscape-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.08) 0%,
        rgba(13,17,23,.62) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 40px 56px;
}
.landscape-overlay .container { width: 100%; }
.landscape-overlay h1 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
    margin-bottom: 10px;
}
.landscape-overlay p {
    color: rgba(255,255,255,.82);
    font-size: 1rem;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
/* Drapeaux / blasons */
.banner-title-row {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding: 0 0 0 8px;
}
.dept-flag-banner {
    width: 70px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.6));
    flex-shrink: 0;
}
.page-header-row {
    display: flex;
    align-items: center;
    gap: 20px;
}
.dept-flag-header {
    width: 56px;
    height: auto;
    max-height: 70px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,.15));
}

/* Lien région dans le header département */
.dept-region-link {
    color: rgba(255,255,255,.75);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255,255,255,.3);
    transition: color .15s, text-decoration-color .15s;
}
.dept-region-link:hover {
    color: #fff;
    text-decoration-color: rgba(255,255,255,.7);
}
.page-sub .dept-region-link {
    color: var(--primary);
    text-decoration-color: transparent;
}
.page-sub .dept-region-link:hover {
    color: var(--primary-dark, #155e3a);
    text-decoration-color: var(--primary);
}

.dept-badge-hero {
    display: inline-block;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(6px);
    color: #fff;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 1.15rem;
    font-weight: 700;
    margin-right: 8px;
    vertical-align: middle;
}
.badge-light {
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(4px);
    color: #fff;
    border-color: rgba(255,255,255,.3);
}

/* ============================================================
   PIED DE PAGE
   ============================================================ */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,.55);
    padding: 64px 0 28px;
    margin-top: 0;
    border-top: 1px solid rgba(255,255,255,.06);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
    .footer-grid .footer-col:last-child { grid-column: 2 / span 2; } }
@media (max-width: 760px)  { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-grid .footer-col:last-child { grid-column: auto; } }
@media (max-width: 480px)  { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Colonne logo/description */
.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    text-decoration: none;
}
.footer-brand-logo:hover { text-decoration: none; }
.footer-brand-logo .logo-mark { opacity: .9; }
.footer-brand-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: rgba(255,255,255,.9);
}
.footer-brand-logo .logo-text strong { color: var(--gold); }

.footer-desc {
    font-size: .88rem;
    line-height: 1.75;
    color: rgba(255,255,255,.48);
    max-width: 280px;
}
.footer-tagline {
    margin-top: 20px;
    display: inline-block;
    background: rgba(233,196,106,.1);
    border: 1px solid rgba(233,196,106,.25);
    color: var(--gold);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
}

/* Colonnes liens */
.site-footer h4 {
    color: rgba(255,255,255,.85);
    font-family: var(--font-heading);
    font-size: .95rem;
    margin-bottom: 16px;
    font-weight: 600;
}
.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-col a {
    color: rgba(255,255,255,.48);
    font-size: .88rem;
    transition: color var(--transition);
    text-decoration: none;
}
.footer-col a:hover { color: rgba(255,255,255,.9); text-decoration: none; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .8rem;
    color: rgba(255,255,255,.3);
}
.footer-bottom-links {
    display: flex;
    gap: 20px;
}
.footer-bottom-links a {
    color: rgba(255,255,255,.3);
    font-size: .8rem;
    transition: color var(--transition);
    text-decoration: none;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,.7); }

/* Compat ancienne structure footer */
.site-footer h3 { color: rgba(255,255,255,.85); font-size: 1rem; margin-bottom: 12px; font-family: var(--font-heading); }
.site-footer p  { font-size: .88rem; line-height: 1.75; }

/* ============================================================
   TOUCH — désactiver les élévations sur appareils sans hover
   ============================================================ */
@media (hover: none) {
    .region-card:hover,
    .poi-card:hover,
    .poi-card-link:hover,
    .activite-card:hover,
    .popular-card:hover,
    .voisine-card:hover,
    .top-commune-card:hover,
    .feature:hover,
    .poi-stat:hover,
    .poi-stat-link:hover,
    .poi-list-card:hover { transform: none; box-shadow: var(--shadow); }
    .dept-card:hover { transform: none; }
    .region-card-wrap:hover .region-stack-back--1 { transform: rotate(2.5deg) translateY(6px) scale(.97); opacity: .55; }
    .region-card-wrap:hover .region-stack-back--2 { transform: rotate(-2deg) translateY(10px) scale(.94); opacity: .35; }
    .popular-card:hover::before { transform: scaleY(0); }
    .region-card:hover .region-card-img { transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .regions-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
    .landscape-banner { height: 320px; }
}
@media (max-width: 640px) {
    .site-header .container { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 10px; }
    .main-nav { display: none; }
    .search-header { width: 100%; margin-left: 0; }
    .search-form-mini input { width: 100%; }
    .search-form-mini input:focus { width: 100%; }

    .hero h1 { font-size: 2rem; }
    .hero-content { padding: 80px 16px 100px; }
    .search-form-hero { flex-direction: column; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
    .search-hero-wrap { width: 100%; }
    .search-form-hero input { border-radius: var(--radius-sm) var(--radius-sm) 0 0; padding: 15px 44px 15px 20px; }
    .btn-hero-search { border-radius: 0 0 var(--radius-sm) var(--radius-sm); width: 100%; padding: 15px; }

    .regions-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
    .region-card-wrap { height: 210px; }
    .stats-banner { padding: 20px 0; top: 60px; }
    .stats-grid { gap: 0; flex-wrap: wrap; }
    .stat-item { padding: 6px 16px; border-right: 1px solid rgba(255,255,255,.1); }
    .stat-item:nth-child(even):last-child,
    .stat-item:last-child { border-right: none; }
    .stat-num { font-size: 1.4rem; }
    .stat-label { font-size: .68rem; }

    .communes-grid { grid-template-columns: 1fr 1fr; }
    .weather-current { flex-direction: column; }
    .weather-details { margin-left: 0; }

    .landscape-banner { height: 260px; }
    .landscape-banner-commune { height: 200px; }
    .landscape-overlay h1 { font-size: 1.5rem; }

    .poi-list-grid { grid-template-columns: 1fr; }
    .plc-img { width: 90px; min-width: 90px; }
    .poi-detail-header h1 { font-size: 1.4rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   DARK MODE — Variables et overrides
   ============================================================ */
[data-theme="dark"] {
    --primary:        #40916c;
    --primary-light:  #52b788;
    --accent:         #e08a46;
    --gold:           #f3c969;
    --dark:           #060d09;
    --text:           #dce9e2;
    --text-muted:     #7a9e8e;
    --bg:             #0c1510;
    --bg-warm:        #111d15;
    --bg-card:        #162118;
    --border:         #243529;
    --primary-dark:   #2d6a4f;
    --secondary:      #40916c;
    --text-light:     #7a9e8e;
    --bg-light:       #111d15;
    --shadow:         0 1px 4px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.25);
    --shadow-md:      0 4px 16px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.25);
    --shadow-lg:      0 12px 40px rgba(0,0,0,.55), 0 4px 12px rgba(0,0,0,.3);
    --shadow-xl:      0 24px 60px rgba(0,0,0,.65);
    --bg-secondary:   #1a2720;
}

[data-theme="dark"] body { background: var(--bg); color: var(--text); }
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5 { color: var(--text); }
[data-theme="dark"] a { color: var(--primary-light); }

/* Header */
[data-theme="dark"] .site-header {
    background: rgba(12,21,16,.92);
    border-bottom-color: var(--border);
}
[data-theme="dark"] .site-header.header-scrolled {
    background: rgba(12,21,16,.98);
    box-shadow: 0 4px 24px rgba(0,0,0,.5);
}
[data-theme="dark"] .logo-text { color: var(--text); }
[data-theme="dark"] .logo-text strong { color: var(--primary-light); }
[data-theme="dark"] .logo-evasion { color: var(--gold) !important; }
[data-theme="dark"] .main-nav a { color: var(--text-muted); }
[data-theme="dark"] .main-nav a:hover { color: var(--primary-light); background: rgba(64,145,108,.1); }

/* Recherche */
[data-theme="dark"] .search-form-mini input {
    background: var(--bg-warm);
    border-color: var(--border);
    color: var(--text);
}
[data-theme="dark"] .search-form-mini input:focus {
    background: var(--bg-card);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(64,145,108,.2);
}
[data-theme="dark"] .search-form-mini input::placeholder { color: var(--text-muted); }
[data-theme="dark"] .search-dropdown {
    background: var(--bg-card);
    border-color: var(--border);
    box-shadow: var(--shadow-lg);
}
[data-theme="dark"] .search-result-item { color: var(--text); }
[data-theme="dark"] .search-result-item:hover,
[data-theme="dark"] .search-result-item.active { background: rgba(64,145,108,.1); }
[data-theme="dark"] .search-no-result { color: var(--text-muted); }

/* Fil d'Ariane */
[data-theme="dark"] .breadcrumb {
    background: var(--bg-card);
    border-bottom-color: var(--border);
}
[data-theme="dark"] .breadcrumb a { color: var(--primary-light); }
[data-theme="dark"] .breadcrumb li:last-child { color: var(--text-muted); }

/* Cartes génériques */
[data-theme="dark"] .card {
    background: var(--bg-card);
    border-color: var(--border);
}
[data-theme="dark"] .badge {
    background: var(--bg-warm);
    border-color: var(--border);
    color: var(--text-muted);
}

/* Sections homepage */
[data-theme="dark"] .regions-section { background: var(--bg); }
[data-theme="dark"] .popular-section {
    background: var(--bg-warm);
    border-top-color: var(--border);
}
[data-theme="dark"] .popular-card {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text);
}
[data-theme="dark"] .popular-card:hover {
    background: var(--bg-warm);
    border-color: var(--primary);
}
[data-theme="dark"] .popular-name { color: var(--text); }
[data-theme="dark"] .popular-dept { color: var(--text-muted); }
[data-theme="dark"] .features-section {
    background: var(--bg-card);
    border-top-color: var(--border);
}
[data-theme="dark"] .feature {
    background: var(--bg);
    border-color: var(--border);
}
[data-theme="dark"] .feature h3 { color: var(--text); }
[data-theme="dark"] .feature p { color: var(--text-muted); }

/* Hero recherche */
[data-theme="dark"] .search-form-hero input {
    background: var(--bg-card);
    color: var(--text);
}
[data-theme="dark"] .search-form-hero input::placeholder { color: var(--text-muted); }
[data-theme="dark"] .search-dropdown-hero {
    background: var(--bg-card);
    border-color: var(--border);
}

/* Météo */
[data-theme="dark"] .weather-detail {
    background: var(--bg-warm);
    border-color: var(--border);
}
[data-theme="dark"] .wd-label { color: var(--text-muted); }
[data-theme="dark"] .wd-val { color: var(--text); }
[data-theme="dark"] .forecast-day {
    background: var(--bg-warm);
    border-color: var(--border);
}
[data-theme="dark"] .f-date { color: var(--text-muted); }
[data-theme="dark"] .f-desc { color: var(--text-muted); }
[data-theme="dark"] .weather-source { color: var(--text-muted); }

/* Marchés */
[data-theme="dark"] .market-item {
    background: var(--bg-warm);
    border-color: var(--border);
}
[data-theme="dark"] .market-name { color: var(--text); }
[data-theme="dark"] .schedule-days { color: var(--primary-light); }
[data-theme="dark"] .schedule-hours { color: var(--text-muted); }
[data-theme="dark"] .market-desc { color: var(--text-muted); }
[data-theme="dark"] .marche-dept-item {
    background: rgba(243,201,105,.05);
    border-color: rgba(243,201,105,.2);
}
[data-theme="dark"] .marche-dept-item:hover { background: rgba(243,201,105,.1); }
[data-theme="dark"] .md-ville { color: var(--text-muted); }
[data-theme="dark"] .md-nom { color: var(--text); }
[data-theme="dark"] .md-adresse { color: var(--text-muted); }

/* Communes & départements */
[data-theme="dark"] .dept-card {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text);
}
[data-theme="dark"] .dept-card:hover {
    border-color: var(--primary);
    background: rgba(64,145,108,.06);
    color: var(--text);
}
[data-theme="dark"] .dept-info h2 { color: var(--text); }
[data-theme="dark"] .dept-info p { color: var(--text-muted); }
[data-theme="dark"] .dept-region-title {
    color: var(--text);
    border-bottom-color: var(--border);
}
[data-theme="dark"] .dept-region-count {
    background: var(--bg-warm);
    border-color: var(--border);
    color: var(--text-muted);
}
[data-theme="dark"] .dept-region-link { color: var(--text); }
[data-theme="dark"] .dept-region-link:hover { color: var(--primary-light); }
[data-theme="dark"] .commune-item {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text);
}
[data-theme="dark"] .commune-item:hover {
    border-color: var(--primary);
    background: rgba(64,145,108,.06);
}
[data-theme="dark"] .commune-name { color: var(--text); }
[data-theme="dark"] .commune-cp { color: var(--text-muted); }
[data-theme="dark"] .commune-header .meta-chip {
    background: var(--bg-warm);
    border-color: var(--border);
    color: var(--text-muted);
}
[data-theme="dark"] .info-list dt { color: var(--text-muted); }
[data-theme="dark"] .info-list dd { color: var(--text); }

/* POI */
[data-theme="dark"] .poi-card {
    background: var(--bg-card);
    border-color: var(--border);
}
[data-theme="dark"] .poi-card-link { color: var(--text); }
[data-theme="dark"] .poi-card-link:hover { color: var(--text); }
[data-theme="dark"] .poi-body { background: var(--bg-card); }
[data-theme="dark"] .poi-nom { color: var(--text); }
[data-theme="dark"] .poi-adresse { color: var(--text-muted); }
[data-theme="dark"] .poi-desc { color: var(--text-muted); }
[data-theme="dark"] .poi-lire-plus { color: var(--primary-light); }
[data-theme="dark"] .poi-stat {
    background: var(--bg-warm);
    border-color: var(--border);
}
[data-theme="dark"] .poi-stat-num { color: var(--primary-light); }
[data-theme="dark"] .poi-stat-label { color: var(--text-muted); }
[data-theme="dark"] .poi-stat-link { color: var(--text); }
[data-theme="dark"] .poi-stat-link:hover {
    background: rgba(64,145,108,.08);
    color: var(--text);
}
[data-theme="dark"] .activite-card {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text);
}
[data-theme="dark"] .activite-cat { color: var(--primary-light); }
[data-theme="dark"] .activite-body h3 { color: var(--text); }
[data-theme="dark"] .activite-ville { color: var(--text-muted); }
[data-theme="dark"] .activite-desc { color: var(--text-muted); }
[data-theme="dark"] .top-commune-card {
    background: var(--bg-warm);
    border-color: var(--border);
    color: var(--text);
}
[data-theme="dark"] .top-commune-card:hover {
    border-color: var(--primary);
    background: rgba(64,145,108,.06);
}
[data-theme="dark"] .tc-nom { color: var(--text); }
[data-theme="dark"] .tc-poi { color: var(--primary-light); }
[data-theme="dark"] .tc-pop { color: var(--text-muted); }
[data-theme="dark"] .poi-list-card {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text);
}
[data-theme="dark"] .poi-list-card:hover { color: var(--text); }
[data-theme="dark"] .plc-img-placeholder { background: var(--bg-warm); }
[data-theme="dark"] .plc-date-upcoming { color: var(--primary-light); background: rgba(64,145,108,.12); }
[data-theme="dark"] .plc-date-past { color: var(--text-muted); background: var(--bg-warm); }
[data-theme="dark"] .plc-nom { color: var(--text); }
[data-theme="dark"] .plc-lieu { color: var(--text-muted); }
[data-theme="dark"] .plc-desc { color: var(--text-muted); }
[data-theme="dark"] .plc-lire { color: var(--primary-light); }

/* POI Detail */
[data-theme="dark"] .poi-detail-aside .card { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .poi-detail-cat span {
    background: rgba(64,145,108,.1);
    border-color: rgba(64,145,108,.3);
    color: var(--primary-light);
}
[data-theme="dark"] .aside-block { border-bottom-color: var(--border); }
[data-theme="dark"] .aside-block h3 { color: var(--text-muted); }
[data-theme="dark"] .poi-full-desc { color: var(--text); }
[data-theme="dark"] .poi-detail-meta { color: var(--text-muted); }
[data-theme="dark"] .btn-back {
    background: var(--bg-warm);
    border-color: var(--border);
    color: var(--text);
}
[data-theme="dark"] .btn-back:hover {
    background: var(--bg-card);
    border-color: var(--primary);
}
[data-theme="dark"] .btn-map {
    background: rgba(64,145,108,.1);
    border-color: rgba(64,145,108,.3);
    color: var(--primary-light);
}
[data-theme="dark"] .btn-dt {
    background: rgba(243,201,105,.08);
    border-color: rgba(243,201,105,.3);
    color: #c8a840;
}

/* Filtres */
[data-theme="dark"] .alpha-btn {
    border-color: var(--border);
    color: var(--text-muted);
    background: transparent;
}
[data-theme="dark"] .alpha-btn:hover,
[data-theme="dark"] .alpha-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Pagination */
[data-theme="dark"] .page-btn { background: var(--primary); }
[data-theme="dark"] .page-btn:hover { background: var(--primary-light); }
[data-theme="dark"] .page-info { color: var(--text-muted); }

/* Bannière paysage */
[data-theme="dark"] .landscape-banner { filter: brightness(.9); }

/* Sections avec fond blanc hardcodé */
[data-theme="dark"] .weather-card h2,
[data-theme="dark"] .markets-card h2 { border-bottom-color: var(--border); color: var(--text); }
[data-theme="dark"] .poi-section h2 { border-bottom-color: var(--border); color: var(--text); }

/* ============================================================
   DARK MODE TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition);
    flex-shrink: 0;
    padding: 0;
    font-family: inherit;
}
.theme-toggle:hover {
    background: var(--bg-warm);
    border-color: var(--primary);
    color: var(--primary);
}
.theme-toggle svg { width: 18px; height: 18px; pointer-events: none; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle:hover {
    background: rgba(64,145,108,.12);
    border-color: var(--primary);
    color: var(--primary-light);
}

/* ============================================================
   NAVIGATION MOBILE — Hamburger
   ============================================================ */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition);
    padding: 0;
}
.nav-toggle:hover { background: var(--bg-warm); border-color: var(--primary); }
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: all .25s cubic-bezier(.4,0,.2,1);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
[data-theme="dark"] .nav-toggle { border-color: var(--border); }
[data-theme="dark"] .nav-toggle span { background: var(--text-muted); }

@media (max-width: 640px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        padding: 10px 16px 14px;
        flex-direction: column;
        gap: 2px;
        z-index: 199;
        box-shadow: 0 8px 24px rgba(0,0,0,.1);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 10px 14px; border-radius: var(--radius-sm); font-size: .95rem; }
    [data-theme="dark"] .main-nav {
        background: rgba(12,21,16,.98);
        border-bottom-color: var(--border);
    }
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.testimonials-section {
    padding: 80px 0;
    background: var(--bg-warm);
    border-top: 1px solid var(--border);
}
[data-theme="dark"] .testimonials-section {
    background: var(--bg-warm);
    border-top-color: var(--border);
}
.testimonials-section .section-title { text-align: center; }
.testimonials-section .section-sub   { text-align: center; }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    transition: transform var(--transition), box-shadow var(--transition);
    opacity: 0;
    transform: translateY(24px);
}
.testimonial-card.is-visible {
    animation: testimonialFadeIn .55s ease forwards;
}
.testimonial-card:nth-child(1) { animation-delay: 0s; }
.testimonial-card:nth-child(2) { animation-delay: .1s; }
.testimonial-card:nth-child(3) { animation-delay: .2s; }
.testimonial-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-lg);
}
[data-theme="dark"] .testimonial-card {
    background: var(--bg-card);
    border-color: var(--border);
}

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

.testimonial-top { display: flex; flex-direction: column; gap: 14px; }

.testimonial-stars { display: flex; gap: 3px; }
.star-full  { color: #fbbf24; font-size: .95rem; }
.star-empty { color: var(--border); font-size: .95rem; }

.testimonial-quote {
    font-size: .97rem;
    line-height: 1.8;
    color: var(--text);
    font-style: italic;
    position: relative;
    padding-left: 20px;
}
.testimonial-quote::before {
    content: '\201C';
    position: absolute;
    left: 0;
    top: -4px;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary);
    opacity: .4;
    line-height: 1;
    font-style: normal;
}
[data-theme="dark"] .testimonial-quote::before { color: var(--primary-light); }
[data-theme="dark"] .testimonial-quote { color: var(--text); }

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
[data-theme="dark"] .testimonial-author { border-top-color: var(--border); }

.testimonial-avatar-placeholder {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}
.testimonial-name {
    font-weight: 600;
    font-size: .93rem;
    color: var(--text);
    line-height: 1.3;
}
.testimonial-meta {
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: 2px;
}
[data-theme="dark"] .testimonial-name { color: var(--text); }
[data-theme="dark"] .testimonial-meta { color: var(--text-muted); }

@media (max-width: 640px) {
    .testimonials-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ICÔNES MÉTÉO ANIMÉES (CSS — adaptation du composant framer-motion)
   ============================================================ */

/* Keyframes */
@keyframes wxSunRotate  { to { transform: rotate(360deg); } }
@keyframes wxSunPulse   { 0%,100% { opacity: .15; } 50% { opacity: .3; } }
@keyframes wxCloudFloat { 0%,100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
@keyframes wxRainFall   {
    0%   { transform: translateY(0);    opacity: .9; }
    100% { transform: translateY(14px); opacity: 0;  }
}
@keyframes wxHeavyRain  {
    0%   { transform: translateY(0)   skewX(-8deg); opacity: 1;  }
    100% { transform: translateY(16px) skewX(-8deg); opacity: 0; }
}
@keyframes wxSnowFall   {
    0%   { transform: translateY(0)    translateX(0);  opacity: .85; }
    50%  { transform: translateY(7px)  translateX(4px); }
    100% { transform: translateY(14px) translateX(0);  opacity: 0;   }
}
@keyframes wxBolt       {
    0%,82%,100% { opacity: 0; }
    88%,96%     { opacity: 1; }
}
@keyframes wxStarBlink  { 0%,100% { opacity: .15; transform: scale(.8); } 50% { opacity: .9; transform: scale(1.2); } }
@keyframes wxFogDrift   { 0%,100% { opacity: .25; transform: translateX(0); } 50% { opacity: .65; transform: translateX(4px); } }

/* Classes d'animation */
.wx-sun-rays { animation: wxSunRotate 14s linear infinite; transform-origin: 24px 24px; }
.wx-sun-halo { animation: wxSunPulse 3s ease-in-out infinite; transform-origin: 24px 24px; }
.wx-cloud    { animation: wxCloudFloat 6s ease-in-out infinite; }
.wx-drop-1   { animation: wxRainFall .85s ease-in infinite 0s; }
.wx-drop-2   { animation: wxRainFall .85s ease-in infinite .25s; }
.wx-drop-3   { animation: wxRainFall .85s ease-in infinite .5s; }
.wx-drop-4   { animation: wxRainFall .85s ease-in infinite .12s; }
.wx-hdrop-1  { animation: wxHeavyRain .65s ease-in infinite 0s; }
.wx-hdrop-2  { animation: wxHeavyRain .65s ease-in infinite .12s; }
.wx-hdrop-3  { animation: wxHeavyRain .65s ease-in infinite .24s; }
.wx-hdrop-4  { animation: wxHeavyRain .65s ease-in infinite .36s; }
.wx-hdrop-5  { animation: wxHeavyRain .65s ease-in infinite .08s; }
.wx-hdrop-6  { animation: wxHeavyRain .65s ease-in infinite .44s; }
.wx-flake-1  { animation: wxSnowFall 2s ease-in infinite 0s; }
.wx-flake-2  { animation: wxSnowFall 2s ease-in infinite .5s; }
.wx-flake-3  { animation: wxSnowFall 2s ease-in infinite .2s; }
.wx-flake-4  { animation: wxSnowFall 2s ease-in infinite .8s; }
.wx-flake-5  { animation: wxSnowFall 2s ease-in infinite .35s; }
.wx-bolt     { animation: wxBolt 3.2s ease-in-out infinite; }
.wx-star-1   { animation: wxStarBlink 2.2s ease-in-out infinite 0s; }
.wx-star-2   { animation: wxStarBlink 2.2s ease-in-out infinite .6s; }
.wx-star-3   { animation: wxStarBlink 2.2s ease-in-out infinite 1.2s; }
.wx-fog-1    { animation: wxFogDrift 3s ease-in-out infinite 0s; }
.wx-fog-2    { animation: wxFogDrift 3s ease-in-out infinite .55s; }
.wx-fog-3    { animation: wxFogDrift 3s ease-in-out infinite 1.1s; }
.wx-fog-4    { animation: wxFogDrift 3s ease-in-out infinite 1.65s; }

/* Wrapper icône météo */
.wx-icon { display: inline-flex; align-items: center; justify-content: center; }
.wx-icon svg { display: block; overflow: visible; }

/* Adaptation dark mode pour les icônes météo */
[data-theme="dark"] .wx-icon svg .wx-cloud-path { stroke: #64748b; fill-opacity: .08; }
[data-theme="dark"] .wx-icon svg .wx-rain-stroke { stroke: #93c5fd; }
[data-theme="dark"] .wx-icon svg .wx-snow-fill { fill: #e2e8f0; }

/* Bloc météo refonte — icône principale agrandie et centrée */
.weather-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, rgba(27,67,50,.08), rgba(233,196,106,.08));
    border-radius: 20px;
    border: 1px solid var(--border);
    flex-shrink: 0;
    transition: transform var(--transition);
}
.weather-icon-wrap:hover { transform: scale(1.06); }
[data-theme="dark"] .weather-icon-wrap {
    background: linear-gradient(135deg, rgba(64,145,108,.1), rgba(243,201,105,.06));
    border-color: var(--border);
}

/* ============================================================
   SECTION HERO — améliorations mineures
   ============================================================ */
.hero-stats-inline {
    display: flex;
    gap: 28px;
    justify-content: center;
    margin-top: 36px;
    flex-wrap: wrap;
}
.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.hero-stat-num {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.hero-stat-lbl {
    font-size: .68rem;
    color: rgba(255,255,255,.5);
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE — compléments
   ============================================================ */
@media (max-width: 640px) {
    .testimonials-grid { gap: 16px; }
    .testimonial-card { padding: 22px 20px; }
    .weather-icon-wrap { width: 72px; height: 72px; border-radius: 16px; }
}
