/* assets/css/village.css */

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.vd-main {
    background: var(--bg-soft, #f5f7fa);
    min-height: 100vh;
}

.vd-hero {
position: relative;
    background: linear-gradient(135deg, #071c12 0%, #0a1f0e 45%, #071a0a 100%);
    padding: 72px 0 96px;
    overflow: hidden;
}

/* Image de fond */
.vd-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .45;
    transition: transform 10s ease;
    transform: scale(1.04);
}

.vd-hero:hover .vd-hero-img {
    transform: scale(1.0);
}

/* Overlays */
.vd-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(7, 28, 18, .12) 0%,
        rgba(7, 28, 18, .35) 40%,
        rgba(7, 28, 18, .88) 80%,
        rgba(7, 28, 18, .98) 100%
    );
}

/* Orbs décoratifs */
.vd-hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: .18;
}

.vd-hero-orb--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--tc, #10b981), transparent 70%);
    top: -200px;
    right: -100px;
    animation: vdOrb1 16s ease-in-out infinite alternate;
}

.vd-hero-orb--2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #059669, transparent 70%);
    bottom: -100px;
    left: -80px;
    animation: vdOrb2 20s ease-in-out infinite alternate;
}

@keyframes vdOrb1 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-40px, 40px) scale(1.12); }
}

@keyframes vdOrb2 {
    from { transform: translate(0, 0); }
    to   { transform: translate(40px, -30px) scale(1.08); }
}

/* Inner content */
.vd-hero-inner {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 60px;
}

/* Breadcrumb */
.vd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .76rem;
    color: rgba(255,255,255,.45);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.vd-breadcrumb a {
    color: rgba(255,255,255,.6) !important;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: color .2s;
}

.vd-breadcrumb a:hover { color: #fff !important; }

.vd-breadcrumb .fa-chevron-right {
    font-size: .52rem;
    opacity: .35;
}

/* Badges */
.vd-hero-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.vd-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 16px;
    border-radius: 30px;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #fff;
}

.vd-type--ville     { background: rgba(59,130,246,.88); }
.vd-type--village   { background: rgba(16,185,129,.88); }
.vd-type--campement { background: rgba(139,92,246,.88); }

.vd-region-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: .77rem;
    color: rgba(255,255,255,.8);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(4px);
}

/* Hero title */
.vd-hero-title {
    font-family: var(--font-display, 'Sora', sans-serif);
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.08;
    letter-spacing: -.035em;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.vd-hero-dept {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    color: rgba(255,255,255,.65);
    font-weight: 500;
    margin-bottom: 24px;
}

.vd-hero-dept i { color: var(--tc, #10b981); font-size: .8rem; }

/* Mini stats dans le hero */
.vd-hero-mini-stats {
    display: flex;
    gap: 0;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    overflow: hidden;
    max-width: 680px;
    backdrop-filter: blur(8px);
}

.vd-mini-stat {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-right: 1px solid rgba(255,255,255,.07);
    font-size: .8rem;
    color: rgba(255,255,255,.6);
    transition: background .2s;
}

.vd-mini-stat:last-child { border-right: none; }
.vd-mini-stat:hover { background: rgba(255,255,255,.06); }

.vd-mini-stat i {
    color: var(--tc, #10b981);
    font-size: .82rem;
    flex-shrink: 0;
}

.vd-mini-stat strong {
    color: #fff;
    font-size: .95rem;
    font-family: var(--font-display, 'Sora', sans-serif);
    font-weight: 700;
}

/* Wave */
.vd-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 4;
    line-height: 0;
}

.vd-hero-wave svg {
    display: block;
    width: 100%;
    height: 72px;
}

/* ═══════════════════════════════════════════════════════════
   CORPS PRINCIPAL
═══════════════════════════════════════════════════════════ */
.vd-body {
    padding: 52px 0 110px;
}

.vd-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 44px;
    align-items: start;
}

/* ── Info cards ── */
.vd-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.vd-info-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--bg, #fff);
    border-radius: 14px;
    border: 1px solid var(--border-light, #e2e8f0);
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.vd-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
    border-color: var(--ic, #10b981);
}

.vd-info-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.05rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--ic, #10b981), color-mix(in srgb, var(--ic, #10b981) 80%, black));
    box-shadow: 0 6px 16px color-mix(in srgb, var(--ic, #10b981) 35%, transparent);
}

.vd-info-label {
    font-size: .63rem;
    text-transform: uppercase;
    letter-spacing: .11em;
    color: var(--text-light, #94a3b8);
    font-weight: 700;
    margin-bottom: 3px;
}

.vd-info-value {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text, #1a202c);
    line-height: 1.3;
}

/* ── Section card ── */
.vd-section {
    margin-bottom: 32px;
}

.vd-section-card {
    background: var(--bg, #fff);
    border-radius: 18px;
    padding: 36px 40px;
    border: 1px solid var(--border-light, #e2e8f0);
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
}

/* Section head */
.vd-section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.vd-section-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.vd-section-head-row .vd-section-head {
    margin-bottom: 0;
}

.vd-section-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0,0,0,.15);
}

.vd-section-title {
    font-family: var(--font-display, 'Sora', sans-serif);
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--text, #1a202c);
    margin: 0;
    line-height: 1.3;
}

.vd-see-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #10b981 !important;
    font-weight: 600;
    font-size: .8rem;
    text-decoration: none;
    transition: gap .2s;
    white-space: nowrap;
}

.vd-see-all i { font-size: .7rem; transition: transform .2s; }
.vd-see-all:hover { gap: 11px; }
.vd-see-all:hover i { transform: translateX(3px); }

/* Description */
.vd-description {
    font-size: 1.02rem;
    line-height: 1.9;
    color: var(--text, #1a202c);
    font-weight: 400;
}

/* Map */
.vd-map {
    width: 100%;
    height: 360px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light, #e2e8f0);
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
    margin-bottom: 12px;
}

.vd-coords {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .76rem;
    color: var(--text-muted, #6b7280);
    font-family: monospace;
}

.vd-coords i { color: #3b82f6; }

/* ── Articles grid ── */
.vd-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.vd-article-card {
    background: var(--bg-soft, #f5f7fa);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light, #e2e8f0);
    text-decoration: none;
    display: block;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.vd-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0,0,0,.1);
    border-color: #10b981;
}

.vd-art-img {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: var(--bg-muted, #e5e7eb);
}

.vd-art-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.vd-article-card:hover .vd-art-img img {
    transform: scale(1.07);
}

.vd-art-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--border, #e2e8f0);
}

.vd-art-cat {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #fff;
}

.vd-art-body {
    padding: 14px 16px 16px;
}

.vd-art-title {
    font-family: var(--font-display, 'Sora', sans-serif);
    font-size: .9rem;
    font-weight: 700;
    color: var(--text, #1a202c);
    margin: 0 0 10px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}

.vd-article-card:hover .vd-art-title {
    color: #10b981;
}

.vd-art-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .72rem;
    color: var(--text-muted, #6b7280);
}

.vd-art-meta i {
    color: #10b981;
    margin-right: 3px;
}

/* ── Events list ── */
.vd-events-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vd-event-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: var(--bg-soft, #f5f7fa);
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all .22s;
}

.vd-event-item:hover {
    background: var(--bg, #fff);
    border-color: #ec4899;
    box-shadow: 0 6px 20px rgba(236,72,153,.1);
    transform: translateX(4px);
}

.vd-evt-cal {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ec4899, #db2777);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(236,72,153,.3);
}

.vd-evt-day {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
}

.vd-evt-mon {
    font-size: .52rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .9;
}

.vd-evt-body {
    flex: 1;
    min-width: 0;
}

.vd-evt-type {
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #ec4899;
    display: block;
    margin-bottom: 3px;
}

.vd-evt-title {
    font-family: var(--font-display, 'Sora', sans-serif);
    font-size: .9rem;
    font-weight: 700;
    color: var(--text, #1a202c);
    margin: 0 0 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}

.vd-event-item:hover .vd-evt-title { color: #ec4899; }

.vd-evt-lieu {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
    color: var(--text-muted, #6b7280);
}

.vd-evt-lieu i { color: var(--primary, #ff6b35); font-size: .65rem; }

.vd-evt-arrow {
    color: var(--text-light, #94a3b8);
    font-size: .65rem;
    flex-shrink: 0;
    transition: transform .2s;
}

.vd-event-item:hover .vd-evt-arrow { transform: translateX(3px); color: #ec4899; }

/* ── Autres localités ── */
.vd-autres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

.vd-autre-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-soft, #f5f7fa);
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all .22s;
}

.vd-autre-card:hover {
    background: var(--bg, #fff);
    border-color: var(--ac, #10b981);
    box-shadow: 0 6px 18px rgba(0,0,0,.07);
    transform: translateX(3px);
}

.vd-autre-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    flex-shrink: 0;
    color: var(--ac, #10b981);
    background: color-mix(in srgb, var(--ac, #10b981) 12%, transparent);
    transition: background .2s;
}

.vd-autre-card:hover .vd-autre-icon {
    background: color-mix(in srgb, var(--ac, #10b981) 20%, transparent);
}

.vd-autre-body { flex: 1; min-width: 0; }

.vd-autre-nom {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text, #1a202c);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .2s;
}

.vd-autre-card:hover .vd-autre-nom { color: var(--ac, #10b981); }

.vd-autre-type {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-muted, #6b7280);
}

.vd-autre-pop {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .68rem;
    color: var(--ac, #10b981);
    margin-top: 2px;
}

.vd-autre-pop i { font-size: .62rem; }

.vd-autre-arrow {
    color: var(--text-light, #94a3b8);
    font-size: .6rem;
    flex-shrink: 0;
    transition: transform .2s, color .2s;
}

.vd-autre-card:hover .vd-autre-arrow {
    transform: translateX(3px);
    color: var(--ac, #10b981);
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════ */
.vd-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vd-widget {
    background: var(--bg, #fff);
    border-radius: 16px;
    border: 1px solid var(--border-light, #e2e8f0);
    box-shadow: 0 4px 18px rgba(0,0,0,.05);
    overflow: hidden;
}

.vd-widget-header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 16px 20px 14px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-muted, #6b7280);
    border-bottom: 1px solid var(--border-light, #e2e8f0);
    background: var(--bg-soft, #f5f7fa);
}

.vd-widget-header i { color: #10b981; font-size: .85rem; }

/* Fiche rapide */
.vd-facts {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.vd-fact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light, #e2e8f0);
    font-size: .82rem;
}

.vd-fact:last-child { border-bottom: none; }

.vd-fact > i {
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    font-size: .8rem;
}

.vd-fact-label {
    color: var(--text-muted, #6b7280);
    flex: 1;
}

.vd-fact-value {
    font-weight: 700;
    color: var(--text, #1a202c);
    text-align: right;
}

.vd-fact-coords {
    font-family: monospace;
    font-size: .72rem;
}

/* Explorer nav */
.vd-nav-links {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vd-nav-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 10px;
    font-size: .84rem;
    font-weight: 500;
    color: var(--text-muted, #6b7280) !important;
    text-decoration: none;
    transition: all .18s;
    border: 1px solid transparent;
}

.vd-nav-links a:hover {
    background: rgba(16,185,129,.07);
    color: #10b981 !important;
    border-color: rgba(16,185,129,.15);
}

.vd-nav-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft, #f5f7fa);
    color: #10b981;
    font-size: .78rem;
    flex-shrink: 0;
    transition: background .18s;
}

.vd-nav-links a:hover .vd-nav-icon {
    background: rgba(16,185,129,.12);
}

.vd-nav-text { flex: 1; }

.vd-nav-arrow {
    color: var(--text-light, #94a3b8);
    font-size: .6rem;
    transition: transform .18s;
}

.vd-nav-links a:hover .vd-nav-arrow {
    transform: translateX(3px);
    color: #10b981;
}

/* Share */
.vd-share-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 20px;
}

.vd-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: .78rem;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .22s;
}

.vd-share-btn:hover { transform: translateY(-3px); filter: brightness(1.1); }

.vd-share--fb { background: #1877f2; }
.vd-share--tw { background: #1da1f2; }
.vd-share--wa { background: #25d366; }
.vd-share--cp { background: var(--text-muted, #6b7280); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
    .vd-layout { grid-template-columns: 1fr 290px; gap: 32px; }
    .vd-section-card { padding: 30px 34px; }
}

@media (max-width: 991px) {
    .vd-layout { grid-template-columns: 1fr; }
    .vd-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
    .vd-hero { height: 460px; }
    .vd-hero-mini-stats { max-width: none; flex-wrap: wrap; }
    .vd-mini-stat { flex: 1 1 40%; }
}

@media (max-width: 768px) {
    .vd-hero { height: 380px; }
    .vd-body { padding: 36px 0 80px; }
    .vd-section-card { padding: 22px 18px; }
    .vd-articles-grid { grid-template-columns: 1fr; }
    .vd-info-cards { grid-template-columns: repeat(2, 1fr); }
    .vd-autres-grid { grid-template-columns: 1fr; }
    .vd-sidebar { grid-template-columns: 1fr; }
    .vd-hero-mini-stats { flex-wrap: wrap; }
    .vd-mini-stat { border-bottom: 1px solid rgba(255,255,255,.07); }
}

@media (max-width: 576px) {
    .vd-hero { height: 300px; }
    .vd-hero-title { font-size: 2rem; }
    .vd-section-card { padding: 18px 14px; }
    .vd-info-cards { grid-template-columns: 1fr; gap: 10px; }
    .vd-share-grid { grid-template-columns: 1fr 1fr; }
}
