/* ===================================================
   Demandolx - Design CityVille adapte
   Couleurs : Rouge blason #d42027 + Sombre #0a0a1a + Blanc
   Stack : reproduction fidele du template CityVille
   =================================================== */

:root {
    --red: #d42027;
    --red-dark: #b71c1c;
    --red-hover: #ef3a42;
    --dark: #0a0a1a;
    --dark-2: #14142b;
    --dark-3: #1e1e3f;
    --light: #f5f6fa;
    --white: #ffffff;
    --text: #1a1a2e;
    --text-2: #3d3d5c;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --container: 1200px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.10);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 0;
    --radius-sm: 4px;
    --radius-md: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--red); text-decoration: none; transition: all var(--transition); }
a:hover { color: var(--red-dark); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: 'Montserrat', system-ui, sans-serif; line-height: 1.25; color: var(--text); font-weight: 700; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* =====================================================
   TOP BAR (noir)
   ===================================================== */
.topbar {
    background: var(--dark);
    color: rgba(255,255,255,0.85);
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.topbar-info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-info .icon { color: var(--red); font-weight: 700; }
.topbar-social { display: flex; gap: 14px; align-items: center; }
.topbar-social a {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    transition: color var(--transition);
}
.topbar-social a:hover { color: var(--red); }

/* =====================================================
   HEADER (blanc avec logo + nav + CTA)
   ===================================================== */
.header {
    background: var(--white);
    padding: 16px 0;
    box-shadow: 0 1px 0 var(--border);
    position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-blason {
    width: 44px; height: 44px;
    background: var(--red);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 22px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 6px rgba(212, 32, 39, 0.25);
}
.logo-text strong { display: block; font-family: 'Montserrat'; font-size: 22px; font-weight: 800; color: var(--text); line-height: 1; }
.logo-text strong .accent { color: var(--red); }
.logo-text small { display: block; font-size: 10px; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; margin-top: 3px; font-weight: 600; }

.nav { display: flex; gap: 4px; align-items: center; }
.nav > a {
    color: var(--text);
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--transition);
}
.nav > a:hover { color: var(--red); }
.nav > a.active { color: var(--red); }

.cta-btn {
    background: var(--red);
    color: var(--white) !important;
    padding: 11px 22px !important;
    border-radius: var(--radius-sm);
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(212, 32, 39, 0.25);
}
.cta-btn:hover { background: var(--red-dark); color: var(--white) !important; transform: translateY(-1px); }

.menu-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

/* =====================================================
   HERO ACCUEIL (grande image + titre + 2 boutons)
   ===================================================== */
@keyframes heroZoom {
    0%   { transform: scale(1);    }
    100% { transform: scale(1.12); }
}
@keyframes fadeInLeft {
    0%   { opacity: 0; transform: translateX(-60px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInUp {
    0%   { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
.hero {
    position: relative;
    min-height: 600px;
    color: var(--white);
    display: flex; align-items: flex-end; justify-content: flex-start;
    text-align: left;
    padding: 80px 60px;
    overflow: hidden;
    background: transparent;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../images/lac-chaudanne.jpg') center/cover no-repeat;
    transform-origin: center center;
    animation: heroZoom 12s ease-in-out infinite alternate;
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(10,10,26,0.30), rgba(10,10,26,0.58));
}
/* Watermark géant style lf-info.xyz */
.hero::before {
    content: 'DEMANDOLX';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(80px, 14vw, 180px);
    font-weight: 900;
    color: rgba(255,255,255,0.07);
    letter-spacing: 0.08em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}
.hero .container {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 760px;
    margin-left: 0;
}
.hero h1 {
    color: #ffffff !important;
    font-size: 54px;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
    animation: fadeInLeft 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero p {
    color: #ffffff !important;
    font-size: 17px;
    max-width: 580px;
    margin: 0 0 32px;
    opacity: 0.95;
    animation: fadeInLeft 1.2s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
    animation: fadeInUp 1s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* =====================================================
   HERO PAGES SECONDAIRES (plus court)
   ===================================================== */
.hero-page {
    background: linear-gradient(rgba(10,10,26,0.7), rgba(10,10,26,0.7)), url('../images/village.jpg') center/cover;
    color: var(--white);
    padding: 70px 0;
    text-align: center;
}
.hero-page h1 {
    color: var(--white);
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 8px;
}
.breadcrumb { font-size: 13px; opacity: 0.85; }
.breadcrumb a { color: var(--white); }
.breadcrumb .sep { color: var(--red); margin: 0 6px; }

/* =====================================================
   SECTIONS
   ===================================================== */
.section { padding: 90px 0; }
.section.dark { background: var(--light); color: var(--text); }
.section.dark h2, .section.dark h3 { color: var(--text); }
.section.light { background: var(--light); }

.section-header { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.section-header h2 { font-size: 36px; margin-bottom: 14px; font-weight: 800; }
.section-header p { color: var(--text-light); font-size: 15px; }
.section.dark .section-header p { color: var(--text-light); }

/* =====================================================
   BUTTONS (CityVille style : rouge plein ou outline)
   ===================================================== */
.btn {
    display: inline-block;
    padding: 13px 28px;
    background: var(--red);
    color: #ffffff !important;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(212, 32, 39, 0.25);
}
.btn:hover { background: var(--red-dark); color: #ffffff !important; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,32,39,0.35); }

/* .btn-outline par defaut : ROUGE (pour fond blanc) */
.btn-outline {
    background: transparent;
    color: var(--red) !important;
    border: 2px solid var(--red);
    box-shadow: none;
}
.btn-outline:hover { background: var(--red); color: #ffffff !important; border-color: var(--red); }

/* .btn-outline DANS un hero/CTA banner (fond image ou rouge) : BLANC */
.hero .btn-outline,
.lpd-hero-buttons .btn-outline,
.lpd-cta-banner .btn-outline,
.lpd-hero-centered .btn-outline {
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.5) !important;
}
.hero .btn-outline:hover,
.lpd-hero-buttons .btn-outline:hover,
.lpd-cta-banner .btn-outline:hover,
.lpd-hero-centered .btn-outline:hover {
    background: #ffffff !important;
    color: var(--red) !important;
    border-color: #ffffff !important;
}
/* Variantes sur fond rouge (CTA banners) */
.lpd-btn-white { background: #ffffff !important; color: var(--red) !important; }
.lpd-btn-white:hover { background: var(--dark) !important; color: #ffffff !important; }
.lpd-btn-outline-white { background: transparent !important; border-color: rgba(255,255,255,0.5) !important; color: #ffffff !important; }
.lpd-btn-outline-white:hover { background: #ffffff !important; color: var(--red) !important; border-color: #ffffff !important; }
.btn-sm { padding: 9px 18px; font-size: 12px; }

/* =====================================================
   GRID
   ===================================================== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* =====================================================
   "MAJOR VOICE" SECTION (asymetrique gauche/droite)
   ===================================================== */
.voice-section { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.voice-text h2 { font-size: 36px; margin-bottom: 20px; line-height: 1.2; }
.voice-text p { color: var(--text-2); margin-bottom: 18px; line-height: 1.7; }
.voice-text .bullets { margin: 24px 0; }
.voice-text .bullets li {
    list-style: none;
    padding-left: 28px;
    position: relative;
    margin-bottom: 12px;
    color: var(--text-2);
}
.voice-text .bullets li::before {
    content: '✓';
    position: absolute; left: 0;
    color: var(--red);
    font-weight: 800;
}
.voice-signature { margin-top: 32px; display: flex; align-items: center; gap: 16px; }
.voice-signature img { width: 100px; height: auto; }
.voice-signature strong { display: block; font-size: 16px; font-weight: 700; }
.voice-signature span { color: var(--text-light); font-size: 13px; }
.voice-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* =====================================================
   SERVICE CARDS (CityVille : icone rouge + titre + read more)
   ===================================================== */
.service-card {
    background: var(--white);
    padding: 28px 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
    display: block;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.service-card .icon-box,
.service-card-icon {
    flex-shrink: 0;
    width: 52px; height: 52px;
    background: var(--red);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
}
.service-card h3,
.service-card-content h3 { font-size: 18px; margin-bottom: 8px; font-weight: 700; }
.service-card p,
.service-card-content p { color: var(--text-light); font-size: 14px; line-height: 1.65; margin-bottom: 8px; }
.service-card-content .read-more {
    color: var(--red);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex; align-items: center; gap: 4px;
}
.service-card-content .read-more:hover { color: var(--red-dark); }

/* =====================================================
   DEPARTMENTS SECTION (photo gauche + cards droite)
   ===================================================== */
.dept-section { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center; }
.dept-image { position: relative; }
.dept-image img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-sm); }
.dept-image .badge {
    position: absolute;
    bottom: 0; left: 0;
    background: var(--red);
    color: var(--white);
    padding: 24px 28px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}
.dept-image .badge .label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.85; }
.dept-image .badge .phone { font-size: 22px; font-weight: 800; margin-top: 4px; }
.dept-content h2 { font-size: 36px; margin-bottom: 14px; }
.dept-content p { color: var(--text-2); margin-bottom: 24px; }
.dept-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
.dept-card {
    background: var(--white);
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.dept-card:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-2px); }
.dept-card-icon { color: var(--red); font-size: 24px; margin-bottom: 10px; }
.dept-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.dept-card p { font-size: 13px; color: var(--text-light); margin: 0; }
.section.dark .dept-card { background: var(--dark-2); border-color: var(--dark-3); color: var(--white); }
.section.dark .dept-card p { color: rgba(255,255,255,0.65); }

/* =====================================================
   EVENT ITEMS (date + image + texte + bouton)
   ===================================================== */
.events-list { display: flex; flex-direction: column; gap: 16px; }
.event-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    display: grid;
    grid-template-columns: 80px 130px 1fr auto;
    gap: 24px;
    align-items: center;
    transition: all var(--transition);
}
.event-item:hover { box-shadow: var(--shadow); border-color: transparent; }
.event-date { text-align: center; }
.event-date .day { font-family: 'Montserrat'; font-size: 32px; font-weight: 800; color: var(--text); line-height: 1; }
.event-date .month { font-size: 12px; color: var(--text-light); text-transform: uppercase; margin-top: 4px; }
.event-image { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-sm); }
.event-image img { width: 100%; height: 100%; object-fit: cover; }
.event-info h3 { font-size: 17px; margin-bottom: 8px; }
.event-info .meta { font-size: 13px; color: var(--text-light); display: flex; flex-direction: column; gap: 2px; }
.event-info .meta strong { color: var(--text); font-weight: 600; }

/* =====================================================
   STATS (chiffres rouges)
   ===================================================== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 64px 0; }
.stat-item { text-align: center; }
.stat-item .icon { color: var(--red); font-size: 36px; margin-bottom: 12px; }
.stat-item .number { font-family: 'Montserrat'; font-size: 44px; font-weight: 800; color: var(--white); line-height: 1; }
.section.light .stat-item .number { color: var(--text); }
.stat-item .label { font-size: 13px; opacity: 0.7; margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; }

/* =====================================================
   TESTIMONIALS (cards blanches sur fond sombre)
   ===================================================== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius-sm);
    color: var(--text);
    box-shadow: var(--shadow-lg);
}
.testimonial-card p.quote { font-size: 14px; color: var(--text-2); margin-bottom: 20px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { display: block; font-size: 14px; font-weight: 700; }
.testimonial-author span { font-size: 12px; color: var(--text-light); }
.testimonial-author .quote-icon { color: var(--red); font-size: 28px; margin-left: auto; opacity: 0.5; }

/* =====================================================
   COUNCIL MEMBERS (3 cartes avec photo)
   ===================================================== */
.council-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.council-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition);
}
.council-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.council-image { aspect-ratio: 1/1; background: linear-gradient(135deg, #555, #333); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 60px; }
.council-image img { width: 100%; height: 100%; object-fit: cover; }
.council-info { padding: 20px; }
.council-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.council-info .role { font-size: 13px; color: var(--red); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* =====================================================
   HIGHLIGHTS (image avec onglets)
   ===================================================== */
.highlights { background: var(--dark); padding: 80px 0; }
.highlights-tabs {
    display: flex; gap: 0; justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    overflow: hidden;
    max-width: 700px; margin: 0 auto 32px;
}
.highlights-tabs button {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: none;
    padding: 14px 24px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition);
}
.highlights-tabs button.active { background: var(--red); color: var(--white); }
.highlights-image img { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: var(--radius-sm); }

/* =====================================================
   BLOG / NEWS CARDS
   ===================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--border);
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.blog-image { aspect-ratio: 16/10; overflow: hidden; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-image img { transform: scale(1.05); }
.blog-body { padding: 24px; }
.blog-tag {
    display: inline-block;
    background: rgba(212,32,39,0.1);
    color: var(--red);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.blog-card h3 { font-size: 18px; margin-bottom: 10px; line-height: 1.35; }
.blog-card h3 a { color: var(--text); }
.blog-card h3 a:hover { color: var(--red); }
.blog-card .meta { font-size: 12px; color: var(--text-light); display: flex; gap: 16px; }
.blog-card .meta span { display: inline-flex; align-items: center; gap: 4px; }

/* =====================================================
   OVERVIEW SERVICES (3 colonnes : commun, annonces, docs)
   ===================================================== */
.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: var(--radius-sm); overflow: hidden; }
.overview-col { background: var(--white); padding: 36px 28px; border-right: 1px solid var(--border); }
.overview-col:last-child { border-right: none; }
.overview-col.featured { background: var(--dark); color: var(--white); }
.overview-col h3 { font-size: 19px; margin-bottom: 18px; font-weight: 700; line-height: 1.3; }
.overview-col.featured h3 { color: var(--white); }
.overview-col ul { list-style: none; }
.overview-col ul li {
    padding: 10px 0;
    padding-left: 22px;
    position: relative;
    font-size: 14px;
    color: var(--text-2);
}
.overview-col.featured ul li { color: rgba(255,255,255,0.85); }
.overview-col ul li::before {
    content: '▶';
    position: absolute; left: 0;
    color: var(--red);
    font-size: 9px;
    top: 14px;
}
.overview-col ul li.doc-item { padding-left: 38px; }
.overview-col ul li.doc-item::before {
    content: '📄';
    font-size: 14px;
    top: 11px;
}
.overview-col ul li.doc-item span.download {
    display: block;
    color: var(--red);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 2px;
}

/* =====================================================
   CARDS CLASSIQUES (utilitaire)
   ===================================================== */
.card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    height: 100%;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: transparent; }
.card h3 { color: var(--red); font-size: 17px; margin-bottom: 10px; font-weight: 700; }
.card p { color: var(--text-2); font-size: 14px; margin-bottom: 6px; }
.card .meta { color: var(--text-light); font-size: 12px; margin-top: 10px; }
.card .phone { color: var(--red); font-size: 16px; font-weight: 700; }
.section.dark .card { background: var(--dark-2); border-color: var(--dark-3); }
.section.dark .card p { color: rgba(255,255,255,0.85); }

/* =====================================================
   WEATHER WIDGET (custom)
   ===================================================== */
.weather-widget {
    background: linear-gradient(135deg, var(--dark-2), var(--dark-3));
    padding: 28px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--red);
    color: var(--white);
}
.weather-current { display: flex; align-items: center; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.weather-current .icon { font-size: 56px; }
.weather-current .temp { font-family: 'Montserrat'; font-size: 48px; font-weight: 800; color: var(--white); line-height: 1; }
.weather-current .desc { font-size: 13px; opacity: 0.8; margin-top: 6px; }
.weather-forecast { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding-top: 20px; }
.weather-day { text-align: center; font-size: 12px; }
.weather-day .day-label { opacity: 0.7; text-transform: uppercase; }
.weather-day .day-icon { font-size: 22px; margin: 6px 0; }
.weather-day .day-temp { font-weight: 600; }

/* =====================================================
   FAQ / ACCORDIONS
   ===================================================== */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    overflow: hidden;
}
.faq-item summary {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: flex; justify-content: space-between; align-items: center;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--red); font-size: 20px; font-weight: 800; }
.faq-item[open] { background: var(--red); color: var(--white); border-color: var(--red); }
.faq-item[open] summary::after { content: '−'; color: var(--white); }
.faq-item .answer { padding: 0 20px 20px; font-size: 14px; line-height: 1.7; }

/* =====================================================
   CONTACT FORM
   ===================================================== */
.contact-section { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-info h2 { font-size: 32px; margin-bottom: 16px; }
.contact-info p { color: var(--text-2); margin-bottom: 32px; }
.contact-info-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 32px; }
.contact-info-card { display: flex; gap: 12px; align-items: center; }
.contact-info-card .icon {
    width: 56px; height: 56px;
    background: var(--red);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.contact-info-card strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.contact-info-card p { font-size: 13px; color: var(--text-light); margin: 0; }

.contact-form {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 16px;
    transition: border-color var(--transition);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--red);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }

/* =====================================================
   FOOTER (sombre, 4 colonnes, avec logo)
   ===================================================== */
.footer { background: var(--dark); color: rgba(255,255,255,0.85); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 50px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .footer-logo .logo-blason { width: 48px; height: 48px; font-size: 22px; }
.footer-brand .logo-text strong { color: var(--white); }
.footer-brand .logo-text small { color: rgba(255,255,255,0.5); }
.footer-info p { font-size: 14px; margin-bottom: 10px; line-height: 1.6; opacity: 0.85; display: flex; gap: 8px; align-items: flex-start; }
.footer-info p .icon { color: var(--red); flex-shrink: 0; }
.footer h4 { color: var(--white); font-size: 16px; margin-bottom: 22px; font-weight: 700; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: rgba(255,255,255,0.75); font-size: 14px; }
.footer ul li a:hover { color: var(--red); padding-left: 4px; }
.footer ul li a::before { content: '▶ '; color: var(--red); font-size: 8px; margin-right: 6px; }

.newsletter-form { display: flex; gap: 0; margin-top: 8px; }
.newsletter-form input {
    flex: 1;
    padding: 13px 16px;
    border: none;
    border-radius: 0;
    background: var(--white);
    font-size: 14px;
    color: var(--text);
}
.newsletter-form button {
    background: var(--red);
    color: var(--white);
    padding: 13px 22px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--red-dark); }

.footer p.newsletter-desc { font-size: 13px; opacity: 0.65; margin: 12px 0; }
.social-icons { display: flex; gap: 8px; margin-top: 16px; }
.social-icons a {
    width: 38px; height: 38px;
    background: var(--red);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    border-radius: 50%;
    transition: all var(--transition);
}
.social-icons a:hover { background: var(--red-dark); transform: translateY(-2px); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px;
    opacity: 0.6;
    flex-wrap: wrap; gap: 12px;
}

/* =====================================================
   TAGS / BADGES
   ===================================================== */
.tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(212,32,39,0.1);
    color: var(--red);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 6px;
}
.tag.green { background: rgba(46,125,50,0.1); color: #2e7d32; }
.tag.gray { background: rgba(100,116,139,0.1); color: var(--text-light); }

/* =====================================================
   CTA SECTION (rouge plein avec gros titre + bouton)
   ===================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white);
    padding: 64px 32px;
    text-align: center;
    border-radius: var(--radius-sm);
    margin: 40px 0;
}
.cta-section h2 { color: var(--white); font-size: 32px; margin-bottom: 10px; }
.cta-section p { font-size: 17px; opacity: 0.95; margin-bottom: 28px; }
.cta-section .btn { background: var(--white); color: var(--red); }
.cta-section .btn:hover { background: var(--dark); color: var(--white); }

/* =====================================================
   RESPONSIVE - 5 BREAKPOINTS
   1440px très grand / 1280px laptop / 1024px tablette landscape
   768px tablette portrait / 480px mobile / 360px petit mobile
   ===================================================== */

/* Logo : vertical centering après suppression du sous-titre */
.logo-text { display: flex; align-items: center; }
.logo-text strong { display: block; line-height: 1; }

/* reCAPTCHA badge : limiter overflow sur tous les écrans */
.grecaptcha-badge {
    right: 4px !important;
    bottom: 4px !important;
    box-shadow: 0 1px 6px rgba(0,0,0,0.15) !important;
    border-radius: 4px !important;
    z-index: 99 !important;
}

/* LAPTOP : <= 1279px */
@media (max-width: 1279px) {
    .container { padding: 0 24px; }
    .hero h1 { font-size: 48px; }
    .section { padding: 70px 0; }
}

/* TABLET LANDSCAPE : <= 1023px */
@media (max-width: 1023px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .voice-section, .dept-section, .contact-section { grid-template-columns: 1fr; gap: 40px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; padding: 40px 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .testimonials-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .council-grid { grid-template-columns: repeat(3, 1fr); }
    .hero h1 { font-size: 42px; }
    .hero { padding: 60px 32px; }
    .section-header h2 { font-size: 30px; }
    .dept-cards { grid-template-columns: 1fr; }
    .lpd-vp-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .lpd-demar-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* TABLET PORTRAIT : <= 767px */
@media (max-width: 767px) {
    /* Topbar : masqué sur mobile - pas nécessaire */
    .topbar { display: none; }

    /* Header */
    .header { padding: 14px 0; position: sticky; top: 0; z-index: 200; }
    .header-inner { position: relative; gap: 12px; }

    /* Menu toggle */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--red);
        color: var(--white);
        border: none;
        border-radius: var(--radius-sm);
        width: 46px; height: 46px;
        cursor: pointer;
        flex-shrink: 0;
    }
    .menu-toggle svg { stroke: var(--white); }

    /* Nav mobile dropdown */
    .nav {
        position: fixed;
        top: 74px; left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 0;
        border-top: 2px solid var(--red);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
        z-index: 199;
    }
    .nav.open { max-height: 80vh; overflow-y: auto; padding: 8px 0 16px; }
    .nav > a {
        padding: 14px 20px;
        width: 100%;
        border-bottom: 1px solid var(--border);
        font-size: 14px;
    }
    .nav > a:last-child { border-bottom: none; }
    .nav > a.cta-btn {
        margin: 12px 16px 0;
        width: calc(100% - 32px);
        text-align: center;
        border-bottom: none;
        border-radius: var(--radius-sm);
    }

    /* Hero */
    .hero { min-height: 420px; padding: 50px 20px 40px; }
    .hero h1 { font-size: 30px; }
    .hero p { font-size: 15px; }
    .hero::before { font-size: 60px; }
    .hero-buttons { flex-direction: column; width: 100%; gap: 12px; }
    .hero-buttons .btn { width: 100%; text-align: center; }

    /* Hero sous-pages */
    .hero-page { padding: 44px 0 36px; }
    .hero-page h1 { font-size: 26px; }

    /* Sections */
    .section { padding: 48px 0; }
    .section-header { margin-bottom: 32px; }
    .section-header h2 { font-size: 26px; }

    /* Grids → 1 colonne */
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .testimonials-grid, .blog-grid { grid-template-columns: 1fr; }
    .council-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

    /* Events */
    .event-item { grid-template-columns: 64px 1fr; gap: 12px; padding: 14px; }
    .event-image { display: none; }
    .event-item .btn { display: none; }

    /* Overview */
    .overview-grid { grid-template-columns: 1fr; }
    .overview-col { border-right: none; border-bottom: 1px solid var(--border); }
    .overview-col:last-child { border-bottom: none; }
    .faq-grid { grid-template-columns: 1fr; }

    /* Typography */
    .voice-text h2, .dept-content h2 { font-size: 26px; }
    .stat-item .number { font-size: 36px; }
    .cta-section { padding: 40px 16px; }
    .cta-section h2 { font-size: 22px; }

    /* LPD composants */
    .lpd-vp-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
    .lpd-demar-grid { grid-template-columns: 1fr !important; }
    .lpd-vp-card, .lpd-demar-card { padding: 20px 16px !important; }
    .lpd-cta-banner { padding: 40px 20px !important; }
    .lpd-cta-banner h2 { font-size: 22px !important; }
    .lpd-cta-banner .lpd-cta-buttons { flex-direction: column; gap: 12px !important; }
    .lpd-cta-banner .lpd-cta-buttons .btn { width: 100%; text-align: center; }

    /* News */
    .lpd-news-big { grid-template-columns: 1fr !important; }
    .lpd-news-big-img { min-height: 220px !important; }
    .lpd-news-smalls { grid-template-columns: 1fr 1fr !important; }

    /* Service cards */
    .service-card { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; }

    /* Contact */
    .contact-info-row { grid-template-columns: 1fr; }

    /* Docs PDF pages */
    .lpd-doc-year { margin-bottom: 36px; }
    .lpd-doc-year-title { font-size: 22px; }
}

/* MOBILE : <= 479px */
@media (max-width: 479px) {
    .container { padding: 0 14px; }
    .header { padding: 10px 0; }

    /* Logo */
    .logo-text strong { font-size: 18px; }
    .blason img, .logo img { width: 36px !important; height: 36px !important; }

    /* Hero */
    .hero { min-height: 380px; padding: 44px 14px 36px; }
    .hero h1 { font-size: 26px; }
    .hero p { font-size: 14px; }
    .hero::before { display: none; }

    /* Sections */
    .section { padding: 36px 0; }
    .section-header h2 { font-size: 21px; }

    /* Grids */
    .council-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; gap: 20px; }
    .lpd-news-smalls { grid-template-columns: 1fr !important; }

    /* LPD */
    .lpd-vp-grid { grid-template-columns: 1fr !important; }
    .lpd-vp-card .lpd-vp-icon { width: 44px !important; height: 44px !important; }
    .lpd-hero-centered h1 { font-size: 30px !important; }
    .lpd-hero-centered p { font-size: 14px !important; }
    .lpd-anchor-tabs { flex-wrap: wrap; gap: 8px !important; }
    .lpd-anchor-tab { font-size: 12px !important; padding: 8px 14px !important; }

    /* Service card */
    .service-card { padding: 18px 14px; }
    .service-card-icon { width: 46px !important; height: 46px !important; font-size: 20px !important; }

    /* Forms CF7 */
    .contact-form { padding: 20px 16px; }
    .cf7-row { grid-template-columns: 1fr !important; }
    .wpcf7 input, .wpcf7 textarea, .wpcf7 select { font-size: 14px; }

    /* Footer */
    .footer { padding: 40px 0 20px; }
    .footer-brand .logo-text strong { font-size: 16px; }

    /* Docs PDF */
    .lpd-doc-year-title { font-size: 20px; }
}

/* PETIT MOBILE : <= 360px */
@media (max-width: 360px) {
    .container { padding: 0 12px; }
    .logo-text strong { font-size: 16px; }
    .hero h1 { font-size: 22px; }
    .hero-page h1 { font-size: 20px; }
    .section-header h2 { font-size: 19px; }
    .menu-toggle { width: 40px; height: 40px; }
    .nav { top: 66px; }
    .lpd-anchor-tab { font-size: 11px !important; padding: 7px 10px !important; }
}

/* =====================================================
   v2.0 - NOUVEAUX COMPOSANTS DYNAMIQUES LCM
   ===================================================== */

/* Label avec tiret rouge avant le texte (correction du chevauchement) */
.title-accent .label,
.lpd-label-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--red);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    padding: 0;
    margin-bottom: 8px;
}
.title-accent .label::before,
.lpd-label-inline::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 2px;
    background: var(--red);
    flex-shrink: 0;
}

/* Conseil municipal (grille dynamique) */
.lpd-conseil-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.lpd-conseil-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all .3s;
}
.lpd-conseil-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.lpd-conseil-card .lpd-conseil-photo {
    aspect-ratio: 1/1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2d2d44, #14142b);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lpd-conseil-card .lpd-conseil-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lpd-conseil-card .lpd-conseil-info {
    padding: 20px 16px;
    text-align: center;
}
.lpd-conseil-card .lpd-conseil-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--text);
}
.lpd-conseil-card .lpd-conseil-info .role {
    font-size: 12px;
    color: var(--red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Personnel communal */
.lpd-personnel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}
.lpd-personnel-card {
    background: #fff;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.lpd-personnel-icon {
    width: 64px;
    height: 64px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.lpd-personnel-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}
.lpd-personnel-role {
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.lpd-personnel-desc {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

/* Liens utiles (page demarches) */
.lpd-liens-utiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.lpd-lien-utile {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 18px;
    text-decoration: none;
    color: var(--text);
    transition: all .25s;
}
.lpd-lien-utile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212,32,39,.12);
    border-color: var(--red);
    color: var(--text);
}
.lpd-lien-badge {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.lpd-lien-info {
    flex: 1;
    line-height: 1.3;
}
.lpd-lien-info strong {
    display: block;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 2px;
}
.lpd-lien-info small {
    font-size: 12px;
    color: var(--text-light);
}
.lpd-lien-arrow {
    color: var(--red);
    font-size: 22px;
    font-weight: 800;
    flex-shrink: 0;
}

/* Horaires tableau */
.lpd-horaires-tableau {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.lpd-horaire-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.lpd-horaire-row:last-child {
    border-bottom: none;
}
.lpd-horaire-row.lpd-horaire-ouvert {
    background: #fff;
}
.lpd-horaire-row.lpd-horaire-ferme {
    background: #fafafa;
    color: var(--text-light);
}
.lpd-horaire-jour {
    font-weight: 600;
    text-transform: capitalize;
}
.lpd-horaire-heures {
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.lpd-horaire-heures.lpd-ferme {
    color: var(--text-light);
    font-style: italic;
}

/* Documents info (phrase mairie sous documents officiels) */
.lpd-docs-info {
    margin-top: 32px;
    padding: 16px 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: var(--text);
    box-shadow: var(--shadow-sm);
}
.lpd-docs-info-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =====================================================
   RESPONSIVE 4 BREAKPOINTS - REFINEMENT
   Desktop : > 1280px (par defaut)
   Tablette paysage : 1024-1279px
   Tablette portrait : 768-1023px
   Mobile : <= 767px
   ===================================================== */

/* Tablette paysage : 1024-1279px */
@media (max-width: 1279px) {
    .lpd-conseil-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
    .lpd-liens-utiles-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablette portrait : 768-1023px */
@media (max-width: 1023px) {
    .lpd-conseil-grid { grid-template-columns: repeat(3, 1fr); }
    .lpd-personnel-grid { grid-template-columns: repeat(2, 1fr); }
    .lpd-liens-utiles-grid { grid-template-columns: repeat(2, 1fr); }
    .lpd-service-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .lpd-news-layout { grid-template-columns: 1fr !important; }
    .lpd-sidebar { position: static !important; }
}

/* Mobile : 480-767px */
@media (max-width: 767px) {
    .lpd-conseil-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .lpd-personnel-grid { grid-template-columns: 1fr; }
    .lpd-liens-utiles-grid { grid-template-columns: 1fr; }
    .lpd-service-grid { grid-template-columns: 1fr !important; }
    .lpd-horaire-row { padding: 12px 16px; font-size: 13px; }
    .lpd-docs-info { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; }
}

/* Mobile small : <= 479px */
@media (max-width: 479px) {
    .lpd-conseil-grid { grid-template-columns: 1fr; }
    .lpd-conseil-card { max-width: 280px; margin: 0 auto; }
    .lpd-personnel-card { padding: 24px; }
    .lpd-lien-utile { padding: 12px 14px; }
    .lpd-lien-badge { width: 36px; height: 36px; font-size: 10px; }
    .title-accent .label::before,
    .lpd-label-inline::before { width: 20px; }
}

/* =====================================================
   v2.0.2 - WIDGET METEO (source : demo)
   ===================================================== */
.meteo-demandolx { display: block; width: 100%; }
.meteo-demandolx, .meteo-demandolx * { box-sizing: border-box; font-family: 'Inter', system-ui, sans-serif; }

.meteo-demandolx .meteo-card {
  --accent: #d42027;
  display: grid; gap: 14px; width: 100%;
  background: linear-gradient(135deg, #1a3a5c, #0d2440);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; padding: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.meteo-demandolx .meteo-header {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px;
}
.meteo-demandolx .meteo-place { font-weight: 800; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
.meteo-demandolx .meteo-updated { font-size: 11px; color: rgba(255,255,255,0.65); }

.meteo-demandolx .meteo-current {
  display: grid; grid-template-columns: auto 1fr;
  grid-template-areas: "icon temp" "icon desc" "icon wind";
  align-items: center; gap: 4px 14px;
}
.meteo-demandolx .meteo-icon { grid-area: icon; font-size: 2.4rem; line-height: 1; }
.meteo-demandolx .meteo-temp { grid-area: temp; font-family: 'Montserrat', sans-serif; font-size: 2.8rem; font-weight: 900; letter-spacing: -1px; color: #fff; line-height: 1; }
.meteo-demandolx .meteo-desc { grid-area: desc; color: rgba(255,255,255,0.65); font-size: 13px; font-weight: 600; }
.meteo-demandolx .meteo-wind { grid-area: wind; color: rgba(255,255,255,0.65); font-size: 12px; }

.meteo-demandolx .meteo-forecast {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
}
.meteo-demandolx .day {
  background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px; padding: 8px 4px;
  display: grid; gap: 4px; text-align: center;
}
.meteo-demandolx .day .d-label { font-size: 10px; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.5px; }
.meteo-demandolx .day .d-ico { font-size: 1.2rem; line-height: 1; }
.meteo-demandolx .day .d-temps { font-size: 11px; font-weight: 700; color: #fff; }
.meteo-demandolx .day .d-temps small { font-weight: 500; color: rgba(255,255,255,0.65); }

@media (max-width: 480px) {
  .meteo-demandolx .meteo-forecast { display: none; }
  .meteo-demandolx .meteo-desc, .meteo-demandolx .meteo-wind { display: none; }
  .meteo-demandolx .meteo-current { grid-template-areas: "icon temp"; }
}

/* Theme clair pour la carte flottante de l'accueil */
.meteo-light-context .meteo-demandolx .meteo-card {
  background: #fff !important; color: #222 !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
}
.meteo-light-context .meteo-place { color: #d42027 !important; }
.meteo-light-context .meteo-updated { color: #aaa !important; }
.meteo-light-context .meteo-header { border-bottom-color: #f0f0f0 !important; }
.meteo-light-context .meteo-temp { color: #d42027 !important; }
.meteo-light-context .meteo-desc { color: #555 !important; }
.meteo-light-context .meteo-wind { color: #888 !important; }
.meteo-light-context .day { background: #f8f9fa !important; border-color: #eee !important; }
.meteo-light-context .d-label { color: #888 !important; }
.meteo-light-context .d-temps { color: #222 !important; }
.meteo-light-context .d-temps small { color: #888 !important; }

/* =====================================================
   v2.0.4 - QUICK-GRID (manquant) - section "Tous les services en un clic"
   ===================================================== */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.quick-card {
    background: var(--white);
    padding: 32px 20px;
    text-align: center;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}
.quick-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(212, 32, 39, 0.15);
    border-color: transparent;
}
.quick-card .icon-wrap {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(212, 32, 39, 0.25);
}
.quick-card:hover .icon-wrap { transform: rotate(-6deg) scale(1.05); }
.quick-card h3 { font-size: 18px; margin-bottom: 8px; font-weight: 700; }
.quick-card p { font-size: 13px; color: var(--text-light); line-height: 1.5; }
.quick-card .arrow {
    color: var(--red);
    font-weight: 800;
    margin-top: 16px;
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s;
}
.quick-card:hover .arrow { transform: translateX(4px); }

/* Responsive quick-grid */
@media (max-width: 1023px) {
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .quick-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .quick-card { padding: 24px 16px; }
}
@media (max-width: 479px) {
    .quick-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   v2.1.0 - HEROS ENRICHIS (badge + CTAs + centrage)
   ===================================================== */

/* Hero centré (override le hero gauche par défaut) */
.lpd-hero-centered {
    text-align: center !important;
    align-items: center !important;
}
.lpd-hero-centered .container {
    text-align: center !important;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.lpd-hero-centered h1 {
    text-align: center !important;
}
.lpd-hero-centered p {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    max-width: 600px;
}

/* Hero dark variant (Démarches gradient noir, sans image) */
.lpd-hero-dark .hero-bg { display: none; }
.lpd-hero-deco-circle {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 400px;
    height: 400px;
    background: rgba(212, 32, 39, 0.08);
    border-radius: 50%;
    z-index: 1;
}

/* Badge hero (pill avec icône + texte) */
.lpd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 6px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.lpd-hero-badge svg {
    flex-shrink: 0;
}

/* Boutons hero (centrés) */
.lpd-hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 32px;
}
.lpd-hero-centered .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
}

/* Tabs Démarches (style boutons rectangulaires) */
.lpd-hero-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 32px;
}
.lpd-hero-tabs a {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.lpd-hero-tabs a:hover {
    background: var(--red);
    border-color: var(--red);
}

/* Bandeau stats Tourisme (en bas du hero) */
.lpd-hero-stats-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.85);
    padding: 20px 0;
    z-index: 3;
}
.lpd-hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.lpd-hero-stats-grid .num {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
}
.lpd-hero-stats-grid .lbl {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

/* Bandeau info Démarches (sous le hero) */
.lpd-info-bar {
    background: #fff1f2;
    border-bottom: 1px solid #fecaca;
    padding: 14px 0;
}
.lpd-info-bar-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.lpd-info-bar p {
    margin: 0;
    font-size: 14px;
    color: var(--text);
    flex: 1;
}

/* Responsive heros */
@media (max-width: 767px) {
    .lpd-hero-centered .container { padding-left: 20px; padding-right: 20px; }
    .lpd-hero-badge { font-size: 11px; padding: 5px 12px; }
    .lpd-hero-buttons { flex-direction: column; align-items: stretch; }
    .lpd-hero-buttons .btn { text-align: center; }
    .lpd-hero-tabs { gap: 8px; }
    .lpd-hero-tabs a { font-size: 12px; padding: 8px 14px; }
    .lpd-hero-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .lpd-hero-stats-grid .num { font-size: 22px; }
    .lpd-info-bar p { font-size: 13px; }
    /* Fix superposition hero a bandeau stats (Tourisme) : empiler au lieu de superposer sur mobile */
    .lpd-hero-with-stats { display: block !important; min-height: 0 !important; }
    .lpd-hero-with-stats .container { padding-top: 80px !important; padding-bottom: 32px !important; }
    .lpd-hero-stats-bar { position: static !important; }
}

/* =====================================================
   v2.2.0 - PAGE TOURISME (contenu riche style demo)
   ===================================================== */

.lpd-section-eyebrow {
    color: var(--red);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    display: block;
    margin-bottom: 12px;
}

/* Lac feature (image + texte) */
.lpd-lac-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.lpd-lac-reverse .lpd-lac-img { order: 2; }
.lpd-lac-img {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #222;
}
.lpd-lac-img img { width: 100%; height: 100%; object-fit: cover; }
.lpd-lac-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(212, 32, 39, 0.92);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.lpd-lac-stat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
}
.lpd-lac-stat .num {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--red);
}
.lpd-lac-stat .lbl {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}
.lpd-lac-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.lpd-lac-tags span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 32, 39, 0.08);
    border: 1px solid rgba(212, 32, 39, 0.2);
    color: var(--red);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.lpd-lac-tags span svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Randonnees cards */
.lpd-rando-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.lpd-rando-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.lpd-rando-img {
    height: 200px;
    overflow: hidden;
}
.lpd-rando-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lpd-rando-body { padding: 24px; }
.lpd-rando-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.lpd-rando-body p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 14px;
}
.lpd-rando-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.lpd-rando-tags span {
    background: rgba(212, 32, 39, 0.08);
    color: var(--red);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* Itineraire Ferme Brulee */
.lpd-rando-itineraire {
    margin-top: 40px;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.lpd-itin-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: start;
    margin-bottom: 24px;
}
.lpd-itin-header h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.lpd-itin-header p { color: var(--text-light); font-size: 14px; line-height: 1.7; }
.lpd-itin-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    min-width: 140px;
}
.lpd-itin-stat {
    background: rgba(212, 32, 39, 0.08);
    border-radius: 8px;
    padding: 12px 20px;
    border: 1px solid rgba(212, 32, 39, 0.15);
    text-align: center;
}
.lpd-itin-stat .num { font-size: 22px; font-weight: 800; color: var(--red); }
.lpd-itin-stat .lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-top: 2px;
}
.lpd-itin-easy {
    background: #16a34a !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
}
.lpd-itin-steps {
    background: var(--light);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--border);
}
.lpd-itin-steps h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}
.lpd-itin-steps ol {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    color: var(--text);
    line-height: 1.9;
}

/* Activites locales */
.lpd-loisir-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.lpd-loisir-header {
    padding: 28px;
    color: #fff;
}
.lpd-loisir-header h3 {
    font-size: 20px;
    font-weight: 700 !important;
    margin-bottom: 8px;
    color: #fff !important;
}
.lpd-loisir-header p {
    opacity: 0.8;
    font-size: 14px;
    color: #fff;
}
.lpd-loisir-body { padding: 24px; }
.lpd-loisir-body p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}
.lpd-loisir-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.lpd-loisir-tags span {
    background: rgba(212, 32, 39, 0.08);
    color: var(--red);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(212, 32, 39, 0.2);
}

/* Patrimoine + Fetes (layout 2 col) */
.lpd-patrim-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.lpd-patrim-card {
    background: #fff;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.lpd-patrim-img-wrap {
    height: 260px;
    overflow: hidden;
}
.lpd-patrim-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lpd-patrim-body { padding: 24px; }
.lpd-patrim-cat {
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.lpd-patrim-body h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.lpd-patrim-body p { color: var(--text-light); font-size: 14px; line-height: 1.65; }

/* Events list (Fetes & traditions) */
.lpd-events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.lpd-event-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
    align-items: start;
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.lpd-event-date {
    background: var(--red);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 12px 8px;
    text-align: center;
}
.lpd-event-date .day {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    color: #fff;
}
.lpd-event-date .month {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    font-weight: 700;
    color: #fff;
}
.lpd-event-cat {
    color: var(--red);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.lpd-event-row h4 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.lpd-event-row p { font-size: 13px; color: var(--text-light); line-height: 1.5; }

/* Galerie evenements */
.lpd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 12px;
}
.lpd-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
}
.lpd-gallery-large {
    grid-row: span 2;
    grid-column: span 2;
}
.lpd-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lpd-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 26, 0.8));
    z-index: 1;
}
.lpd-gallery-label {
    position: absolute;
    bottom: 12px;
    left: 14px;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    z-index: 2;
}

/* Hebergements */
.lpd-heberg-card {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.lpd-heberg-cat {
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.lpd-heberg-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.lpd-heberg-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; margin-bottom: 16px; }
.lpd-heberg-card a { color: var(--red); font-size: 13px; font-weight: 700; }

/* Marches */
.lpd-marche-col {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.lpd-marche-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.lpd-marche-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: var(--text);
    line-height: 2;
}

/* Responsive Tourisme */
@media (max-width: 1023px) {
    .lpd-lac-feature { grid-template-columns: 1fr; gap: 32px; }
    .lpd-lac-reverse .lpd-lac-img { order: 0; }
    .lpd-rando-grid { grid-template-columns: 1fr !important; }
    .lpd-loisir-grid { grid-template-columns: 1fr !important; }
    .lpd-patrim-layout { grid-template-columns: 1fr; gap: 32px; }
    .lpd-marches-grid { grid-template-columns: 1fr !important; }
    .lpd-heberg-grid { grid-template-columns: 1fr !important; }
    .lpd-itin-header { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .lpd-gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
    .lpd-gallery-large { grid-column: span 1; grid-row: span 1; }
    .lpd-event-row { grid-template-columns: 70px 1fr; gap: 14px; padding: 16px; }
}

/* =====================================================
   v2.3.0 - PAGE ACCUEIL (style demo)
   ===================================================== */

/* News card moderne avec image grande */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
}
.news-card-big, .news-card-small {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--dark);
    aspect-ratio: 4/3;
    transition: all var(--transition);
    display: block;
    text-decoration: none;
}
.news-card-big { aspect-ratio: 4/5; grid-row: span 2; }
.news-card-big img, .news-card-small img {
    width: 100%; height: 100%; object-fit: contain; background: #fff;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.news-card-big:hover img, .news-card-small:hover img { transform: none; }
.news-card-big::before, .news-card-small::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(10,10,26,0.85) 100%);
    z-index: 1;
}
.news-card-big .content, .news-card-small .content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px;
    color: var(--white);
    z-index: 2;
}
.news-card-big h3 { color: #fff; font-size: 24px; line-height: 1.2; margin-bottom: 10px; font-weight: 800; }
.news-card-small h3 { color: #fff; font-size: 15px; line-height: 1.3; font-weight: 700; }
.news-card-big p { color: rgba(255,255,255,0.9); font-size: 14px; line-height: 1.5; margin-bottom: 12px; }
.news-card-big .meta, .news-card-small .meta {
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}

/* Events list avec date geante */
.events-list-modern { display: grid; gap: 20px; }
.event-modern {
    display: grid;
    grid-template-columns: 110px 200px 1fr auto;
    gap: 28px;
    align-items: center;
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.event-modern:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateX(4px); }
.event-modern .date-box {
    text-align: center;
    background: var(--red);
    color: #fff;
    padding: 18px 12px;
    border-radius: var(--radius-sm);
}
.event-modern .date-box .day {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    color: #fff;
}
.event-modern .date-box .month {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
    font-weight: 700;
    color: #fff;
}
.event-modern .image {
    aspect-ratio: 4/3;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.event-modern .image img { width: 100%; height: 100%; object-fit: cover; }
.event-modern .info h3 { font-size: 20px; margin-bottom: 8px; font-weight: 700; }
.event-modern .info .meta {
    display: flex; gap: 16px; flex-wrap: wrap;
    font-size: 13px; color: var(--text-light);
}
.event-modern .info .meta strong { color: var(--text); margin-right: 4px; }

/* Galerie photo grid - masonry style */
.gallery-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: #222;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10,10,26,0.65) 100%);
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 1;
}
.gallery-item:hover::before { opacity: 1; }
.gallery-item .label {
    position: absolute;
    bottom: 16px; left: 16px; right: 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition);
}
.gallery-item:hover .label { transform: translateY(0); opacity: 1; }

/* Stats avec chiffres geants */
.stats-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: linear-gradient(135deg, #0a0a1a, #1a1a2e);
    padding: 60px 40px;
    border-radius: var(--radius-sm);
    color: #fff;
}
.stat-modern { text-align: center; padding: 0 20px; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-modern:last-child { border-right: none; }
.stat-modern .num {
    font-family: 'Montserrat', sans-serif;
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--red), #ff5757);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}
.stat-modern .lbl { font-size: 13px; opacity: 0.8; margin-top: 8px; text-transform: uppercase; letter-spacing: 1.5px; color: #fff; }

/* Council members modernes */
.council-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.council-modern-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid var(--border);
}
.council-modern-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    border-color: transparent;
}
.council-modern-card .photo {
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, #2d2d44, #14142b);
    position: relative;
    overflow: hidden;
}
.council-modern-card .photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, transparent 30%, rgba(212,32,39,0.15));
}
.council-modern-card .photo svg { position: absolute; inset: 0; margin: auto; opacity: 0.4; }
.council-modern-card .info { padding: 24px 16px; }
.council-modern-card h3 { font-size: 17px; margin-bottom: 4px; font-weight: 700; }
.council-modern-card .role { color: var(--red); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }

/* Section .light et .dark */
.section { padding: 90px 0; }
.section.light { background: var(--light); }
.section.dark { background: var(--light); }

/* CTA banner avec image de fond rouge */
.cta-banner {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(212,32,39,0.95), rgba(183,28,28,0.95));
    color: #fff;
    text-align: center;
}
.cta-banner h2 { color: #fff !important; font-size: 48px; line-height: 1.15; margin-bottom: 16px; font-weight: 800; }
.cta-banner p { color: #fff !important; font-size: 18px; opacity: 0.95; max-width: 600px; margin: 0 auto 32px; }
.cta-banner .btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-banner .btn { background: #fff; color: var(--red) !important; }
.cta-banner .btn:hover { background: var(--dark); color: #fff !important; }
.cta-banner .btn-outline { background: transparent; border-color: rgba(255,255,255,0.5) !important; color: #fff !important; }
.cta-banner .btn-outline:hover { background: #fff !important; color: var(--red) !important; border-color: #fff !important; }

/* Responsive Accueil */
@media (max-width: 1023px) {
    .news-grid { grid-template-columns: 1fr 1fr; }
    .news-card-big { grid-row: span 1; aspect-ratio: 4/3; }
    .events-list-modern .event-modern { grid-template-columns: 80px 1fr; }
    .events-list-modern .event-modern .image,
    .events-list-modern .event-modern > a.btn { display: none; }
    .gallery-modern { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.wide { grid-column: span 1; }
    .stats-modern { grid-template-columns: repeat(2, 1fr); gap: 40px; padding: 40px 20px; }
    .stat-modern { border-right: none; }
    .council-modern { grid-template-columns: repeat(2, 1fr); }
    .news-with-sidebar { grid-template-columns: 1fr !important; }
    .sticky-sidebar { position: static !important; }
    .cta-banner h2 { font-size: 34px; }
}
@media (max-width: 767px) {
    .news-grid { grid-template-columns: 1fr; }
    .gallery-modern { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
    .gallery-item.tall { grid-row: span 1; }
    .stats-modern { grid-template-columns: 1fr; gap: 30px; }
    .council-modern { grid-template-columns: 1fr 1fr; gap: 16px; }
    .cta-banner { padding: 60px 0; }
    .cta-banner h2 { font-size: 26px; }
}
@media (max-width: 479px) {
    .council-modern { grid-template-columns: 1fr; }
}


/* ===================================================
   Contact Form 7 - Styles Demandolx
   =================================================== */

/* Wrapper CF7 */
.wpcf7 {
    font-family: 'Open Sans', sans-serif;
}

/* Layout 2 colonnes nom/prénom */
.cf7-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* Champ individuel */
.cf7-field {
    margin-bottom: 16px;
}

/* Labels */
.wpcf7 label,
.cf7-row label,
.cf7-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Inputs et textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    background: white;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--red);
}

.wpcf7 textarea {
    min-height: 130px;
    resize: vertical;
}

/* Checkbox RGPD */
.cf7-rgpd {
    margin-bottom: 20px;
}

.cf7-rgpd .wpcf7-list-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
}

.cf7-rgpd input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    accent-color: var(--red);
    flex-shrink: 0;
}

.cf7-rgpd .wpcf7-list-item-label {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    text-transform: none;
    letter-spacing: normal;
    font-weight: normal;
    font-family: 'Open Sans', sans-serif;
}

/* Bouton submit */
.wpcf7 input[type="submit"] {
    width: 100%;
    background: var(--red);
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.wpcf7 input[type="submit"]:hover {
    background: var(--red-dark);
}

/* Messages de validation */
.wpcf7-not-valid-tip {
    color: var(--red);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.wpcf7-form .wpcf7-not-valid input,
.wpcf7-form .wpcf7-not-valid textarea {
    border-color: var(--red);
}

/* Message de réponse (succès/erreur) */
.wpcf7-response-output {
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    border: none !important;
}

.wpcf7-form.sent .wpcf7-response-output {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32 !important;
}

.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output {
    background: #fff3e0;
    color: #e65100;
    border-left: 4px solid var(--red) !important;
}

/* Spinner loading */
.wpcf7 .wpcf7-spinner {
    display: inline-block;
    margin-left: 8px;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .cf7-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}


/* =====================================================
   v2.4.7 - FIX : btn-outline blanc dans toutes sections hero (has .hero-bg)
   ===================================================== */

/* Sections avec photo de fond (hero-bg) : btn-outline = BLANC */
section:has(.hero-bg) .btn-outline {
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.5) !important;
}
section:has(.hero-bg) .btn-outline:hover {
    background: #ffffff !important;
    color: var(--red) !important;
    border-color: #ffffff !important;
}

/* =====================================================
   v2.4.0 - METEO OVERFLOW FIX + MISC MOBILE PATCHES
   ===================================================== */

/* Widget météo : éviter tout débordement */
.meteo-demandolx { max-width: 100%; overflow: hidden; }
.meteo-demandolx .meteo-card { max-width: 100%; overflow: hidden; }
.meteo-demandolx .meteo-temp { font-size: clamp(1.6rem, 6vw, 2.8rem); }
.meteo-demandolx .meteo-forecast { min-width: 0; }
.meteo-demandolx .day { min-width: 0; overflow: hidden; }

/* Sections inline styles : éviter overflow horizontal */
[style*=overflow:hidden], section, .container { max-width: 100%; }
img { max-width: 100%; height: auto; }

/* LP Doc rows : responsive sur mobile */
@media (max-width: 767px) {
    .meteo-demandolx .meteo-temp { font-size: clamp(1.4rem, 5vw, 2rem); }
    /* LP Service quick-grid */
    .quick-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px; }
    .quick-card { padding: 20px 16px; }
    /* LP News */
    .lpd-news-big-img { min-height: 200px !important; }
    /* LP Docs row links */
    .lpd-doc-year a[style*=display:flex] { padding: 12px 14px !important; gap: 10px !important; }
    /* Footer meteo */
    .footer .meteo-demandolx .meteo-card { border-radius: 4px; }
}

@media (max-width: 479px) {
    .quick-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
    .quick-card { padding: 16px 12px; }
    .quick-card h3 { font-size: 14px; }
    .quick-card p { font-size: 12px; }
}

/* =====================================================
   v2.4.1 - OVERFLOW FIXES MOBILES (après audit)
   ===================================================== */

/* Section "La Ville à votre service" — grille inline override mobile */
@media (max-width: 767px) {
    /* Override de la grille inline 1.1fr 1fr du bloc hero-flottant Accueil */
    section [style*="grid-template-columns:1.1fr"],
    section [style*="grid-template-columns: 1.1fr"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        padding: 24px 20px 32px !important;
        margin-top: -32px !important;
    }
    /* reCAPTCHA badge : réduire sur mobile sans le masquer */
    .grecaptcha-badge {
        transform: scale(0.75) !important;
        transform-origin: bottom right !important;
        right: 0 !important;
        bottom: 0 !important;
    }
    /* Météo widget dans contexte light */
    .meteo-light-context { width: 100%; overflow: hidden; }
    /* Éviter tout overflow horizontal global */
    body { overflow-x: hidden; }
    .container, section, .header, .topbar, footer { max-width: 100%; overflow-x: hidden; }
}

@media (max-width: 479px) {
    section [style*="grid-template-columns:1.1fr"],
    section [style*="grid-template-columns: 1.1fr"] {
        padding: 20px 16px 28px !important;
        margin-top: -24px !important;
    }
    .grecaptcha-badge {
        transform: scale(0.65) !important;
        transform-origin: bottom right !important;
    }
}

/* =====================================================
   v2.4.2 - FIXES HAMBURGER + RECAPTCHA + GRILLES
   ===================================================== */

/* reCAPTCHA : masquer badge (notice texte dans footer) */
.grecaptcha-badge { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }

/* Hamburger : traits rouges sur fond blanc - pas de carre rouge */
@media (max-width: 767px) {
    .menu-toggle {
        background: transparent !important;
        border: 2px solid var(--border) !important;
        border-radius: 6px !important;
        width: 40px !important;
        height: 40px !important;
        padding: 8px !important;
    }
    .menu-toggle svg { stroke: var(--red) !important; width: 20px !important; height: 20px !important; }

    /* Nav : position corrigee selon presence WP admin bar */
    body.admin-bar .nav { top: 106px !important; }
    body:not(.admin-bar) .nav { top: 74px !important; }

    /* 6-cartes services */
    .quick-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }

    /* Footer */
    footer { padding: 40px 0 24px !important; }
    footer .lpd-footer-grid li { margin-bottom: 4px !important; }
}

@media (max-width: 360px) {
    .quick-grid { grid-template-columns: 1fr !important; }
}

/* =====================================================
   v2.4.4 - FIX #31 : Adaptation images hero mobile
   Problemes : min-height trop grand (640/600/500px),
   h1 inline 54px trop large, overlay trop leger,
   background-position centre → visages en plein ecran.
   ===================================================== */

/* TABLETTE (768-1023px) : réduire hauteurs hero inline */
@media (max-width: 1023px) {
    /* La Mairie : 640px → 380px */
    .hero[style*="min-height:640px"] { min-height: 380px !important; }
    /* Tourisme : 600px → 360px */
    .hero[style*="min-height:600px"] { min-height: 360px !important; }
    /* Vie Pratique : 500px → 340px */
    section[style*="min-height:500px"] { min-height: 340px !important; }
    /* Mes Démarches : 440px → 300px */
    section[style*="min-height:440px"] { min-height: 300px !important; }
    /* Contact : 420px → 300px */
    section[style*="min-height:420px"]:not(.hero) { min-height: 300px !important; }
    /* Containers hero inline : padding réduit */
    .hero .container[style*="padding-top:60px"],
    section[style*="display:flex"] > .container[style*="padding-top:60px"] {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}

/* MOBILE (≤767px) : fixes supplémentaires */
@media (max-width: 767px) {
    /* Overlay renforcé : meilleure lisibilité du texte sur photo */
    .hero-bg::after {
        background: linear-gradient(
            to bottom,
            rgba(10,10,26,0.40) 0%,
            rgba(10,10,26,0.68) 100%
        ) !important;
    }

    /* Recadrage photo : montrer le haut (évite gros plan visages) */
    .hero-bg {
        background-position: center 22% !important;
    }

    /* Hauteurs hero réduits pour mobile */
    .hero[style*="min-height:640px"] { min-height: 280px !important; }
    .hero[style*="min-height:600px"] { min-height: 290px !important; }
    section[style*="min-height:500px"] { min-height: 260px !important; }
    section[style*="min-height:440px"] { min-height: 240px !important; }
    section[style*="min-height:420px"]:not(.hero) { min-height: 240px !important; }

    /* H1 inline font-size:54px : trop grand sur mobile */
    section h1[style*="font-size:54px"] {
        font-size: 28px !important;
        line-height: 1.15 !important;
        margin-bottom: 12px !important;
    }
    /* Sous-titre inline */
    section p[style*="font-size:17px"] {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
    }
    /* Containers hero inline : padding réduit mobile */
    .hero .container[style*="padding-top:60px"],
    section[style*="display:flex"] > .container[style*="padding-top:60px"] {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }
}

@media (max-width: 479px) {
    section h1[style*="font-size:54px"] { font-size: 24px !important; }
}

/* =====================================================
   v2.4.3 - FIX #30 : Hamburger nav etendu a 1023px
   A 768-1023px (tablette portrait/paysage), la nav
   full desktop depasse le viewport → on affiche
   le hamburger dropdown pour toute tablette.
   ===================================================== */
@media (max-width: 1023px) {
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: transparent !important;
        border: 2px solid var(--border) !important;
        border-radius: var(--radius-sm) !important;
        width: 40px !important;
        height: 40px !important;
        padding: 8px !important;
        cursor: pointer;
        flex-shrink: 0;
    }
    .menu-toggle svg { stroke: var(--red) !important; width: 20px !important; height: 20px !important; }

    .nav {
        position: fixed !important;
        top: 74px;
        left: 0; right: 0;
        background: var(--white);
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
        border-top: 2px solid var(--red);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
        z-index: 199;
    }
    .nav.open { max-height: 80vh !important; overflow-y: auto !important; padding: 8px 0 16px !important; }

    .nav > a {
        padding: 14px 20px !important;
        width: 100% !important;
        border-bottom: 1px solid var(--border) !important;
        font-size: 14px !important;
    }
    .nav > a:last-child { border-bottom: none !important; }
    .nav > a.cta-btn {
        margin: 12px 16px 0 !important;
        width: calc(100% - 32px) !important;
        text-align: center !important;
        border-bottom: none !important;
        border-radius: var(--radius-sm) !important;
    }

    body.admin-bar .nav { top: 106px !important; }
    body:not(.admin-bar) .nav { top: 74px !important; }

    /* FIX : supprimer la ligne rouge fixe quand nav est fermée */
    /* border-top est visible meme si max-height:0 (ignore overflow:hidden) */
    .nav:not(.open) { border-top: none !important; box-shadow: none !important; }
    .nav.open { border-top: 2px solid var(--red) !important; }
}

/* =====================================================
   v2.6.6 — Responsive mobile (corrections 29/06, Livada)
   1) air sous le hero accueil
   2) sections plus compactes en mobile (option globale validee)
   3) blocs 2/4-colonnes en styles inline -> empiles (anti-coupure)
   4) bandeau chiffres-cles (La Mairie) : fin, en 2x2
   Tout est scope mobile (<=767 / <=479) + .livada-fullpage :
   le DESKTOP et la TABLETTE (>=768) restent INCHANGES.
   ===================================================== */
@media (max-width: 767px) {
    /* 1) Air sous le hero de l'accueil (le hero perd son padding-bottom en mobile) */
    .hero + section { margin-top: 32px; }

    /* 2) Sections moins hautes en mobile */
    .livada-fullpage .section { padding-top: 32px !important; padding-bottom: 32px !important; }

    /* 3) Blocs colonnes en styles inline -> empiles (sinon colonne droite coupee) */
    [style*="grid-template-columns:repeat(4"] { grid-template-columns: 1fr 1fr !important; }
    [style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr 1fr !important; }
    [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; gap: 20px !important; }
    .livada-fullpage section[style*="display:flex"] { flex-direction: column !important; }
    .livada-fullpage img { max-width: 100%; height: auto; }

    /* 4) Bandeau chiffres-cles (La Mairie) : fin, 2x2 */
    .livada-fullpage .stats-modern { grid-template-columns: 1fr 1fr !important; gap: 8px 14px !important; padding: 16px 14px !important; }
    .livada-fullpage .stat-modern { padding: 0 8px !important; }
    .livada-fullpage .stat-modern .num { font-size: 28px !important; line-height: 1.05 !important; margin-bottom: 2px !important; }
    .livada-fullpage .stat-modern .lbl { font-size: 9.5px !important; letter-spacing: .5px !important; }
}

@media (max-width: 479px) {
    .livada-fullpage .section { padding-top: 22px !important; padding-bottom: 22px !important; }
    .livada-fullpage .stats-modern { grid-template-columns: 1fr 1fr !important; gap: 6px 12px !important; padding: 14px 10px !important; }
    .livada-fullpage .stat-modern .num { font-size: 25px !important; }
    .livada-fullpage .stat-modern .lbl { font-size: 9px !important; }
}
