/* ============================================================
   Élections Municipales 2026 — Design sobre & moderne
   ============================================================ */

:root {
    /* Couleurs officielles de la République française */
    --blue:        #002395;
    --blue-dark:   #001470;
    --blue-dim:    #EBF0FF;
    --blue-mid:    #AABEF5;
    --red:         #ED2939;
    --red-dark:    #B81F2D;
    --red-dim:     #FFF0F1;
    --white:       #FFFFFF;

    --bg:          #F6F7F9;
    --surface:     #FFFFFF;
    --text-1:      #0D1117;
    --text-2:      #4B5563;
    --text-3:      #9CA3AF;
    --border:      #E4E7EC;
    --border-2:    #F3F4F6;
    --sh-xs:       0 1px 3px rgba(0,35,149,.07);
    --sh-sm:       0 2px 8px rgba(0,35,149,.09);
    --sh-md:       0 6px 20px rgba(0,35,149,.11);
    --r-lg:        16px;
    --r-md:        10px;
    --r-sm:        7px;
    --ease:        0.16s ease;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text-1);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Flag stripe ──────────────────────────────────────────── */
.flag-bar {
    display: flex;
    height: 6px;
}
.flag-blue  { flex: 1; background: #002395; }
.flag-white { flex: 1; background: #E8E8E8; }
.flag-red   { flex: 1; background: #ED2939; }

/* ── Header ───────────────────────────────────────────────── */
header {
    background: var(--blue);
    color: #fff;
    padding: 22px 0;
    border-bottom: 3px solid var(--red);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-logo {
    flex-shrink: 0;
    align-self: center;
    width: 54px;
    height: 36px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.30);
    border: 1px solid rgba(255,255,255,0.25);
    line-height: 0;
    text-decoration: none;
    transition: box-shadow var(--ease), transform var(--ease);
}
.header-logo:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.45);
    transform: scale(1.05);
}

.header-text h1 {
    font-size: clamp(18px, 2.6vw, 26px);
    font-weight: 700;
    letter-spacing: -0.4px;
    line-height: 1.2;
    color: #fff;
}

.header-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}

.round-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.90);
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1px;
}

.round-pill--secondary {
    background: rgba(237,41,57,0.22);
    border-color: rgba(237,41,57,0.45);
    color: #FFD0D5;
}

/* ── Search bar ───────────────────────────────────────────── */
.search-section {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
}

.search-wrapper {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    padding: 0 18px;
    gap: 10px;
    transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.search-box:focus-within {
    background: var(--surface);
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26,86,219,.13);
}

.search-icon { color: var(--text-3); flex-shrink: 0; }

#communeSearch {
    flex: 1;
    border: none;
    background: transparent;
    padding: 13px 0;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-1);
    outline: none;
}
#communeSearch::placeholder { color: var(--text-3); }

.clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-3);
    padding: 4px;
    border-radius: 50%;
    transition: background var(--ease), color var(--ease);
}
.clear-btn:hover { background: var(--border); color: var(--text-2); }

/* ── Dropdown ─────────────────────────────────────────────── */
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--sh-md);
    overflow: hidden;
    z-index: 300;
}

.search-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    cursor: pointer;
    transition: background var(--ease);
    border-bottom: 1px solid var(--border-2);
}
.search-option:last-child { border-bottom: none; }
.search-option:hover { background: var(--blue-dim); }

.search-option-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-1);
}
.search-option-name strong { color: var(--blue); font-weight: 700; }
.search-option-dept { font-size: 12px; color: var(--text-3); margin-top: 1px; }

.search-option-badge {
    margin-left: auto;
    background: var(--border-2);
    color: var(--text-2);
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.search-no-result {
    padding: 20px;
    text-align: center;
    color: var(--text-3);
    font-size: 14px;
}

/* ── Commune section ──────────────────────────────────────── */
.commune-section { padding: 36px 0; }

.commune-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.commune-header h2 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-1);
    line-height: 1.15;
}

.commune-meta { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.badge--dept { background: var(--blue-dim); color: var(--blue); }
.badge--code { background: var(--border-2); color: var(--text-3); }

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    font-weight: 500;
    color: var(--text-2);
    transition: all var(--ease);
    white-space: nowrap;
}
.back-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-dim); }

/* Accentuation rouge sur le second tour / éléments secondaires */
.accent-red { color: var(--red); }

/* ── Tabs ─────────────────────────────────────────────────── */
.tabs {
    display: inline-flex;
    gap: 4px;
    background: var(--border-2);
    border-radius: 50px;
    padding: 4px;
    margin-bottom: 28px;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    font-weight: 500;
    color: var(--text-2);
    transition: all var(--ease);
}
.tab-btn:hover { color: var(--text-1); }
.tab-btn.active {
    background: var(--blue);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--sh-xs);
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── Loading ──────────────────────────────────────────────── */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 56px 0;
    color: var(--text-3);
    font-size: 14px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 2.5px solid var(--border);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Candidate lists ──────────────────────────────────────── */
.lists-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}

.lists-header h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.lists-count-badge {
    background: var(--blue-dim);
    color: var(--blue);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

/* List card */
.list-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: box-shadow var(--ease), border-color var(--ease);
}
.list-card:hover {
    box-shadow: var(--sh-sm);
    border-color: var(--blue);
}

.list-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    cursor: pointer;
    user-select: none;
}

.list-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.list-card-info { flex: 1; min-width: 0; }

.list-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-1);
    line-height: 1.35;
    word-break: break-word;
}

.list-head {
    font-size: 12.5px;
    color: var(--text-3);
    margin-top: 3px;
}

.list-nuance {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.list-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background var(--ease);
    flex-shrink: 0;
    color: var(--text-3);
}
.list-toggle:hover { background: var(--border); color: var(--text-2); }
.list-toggle svg { transition: transform var(--ease); }
.list-toggle.open svg { transform: rotate(180deg); }

.list-candidates {
    border-top: 1px solid var(--border-2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
}
.list-candidates.open { max-height: 3000px; }

/* Candidate table */
.candidates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.candidates-table th {
    background: var(--bg);
    padding: 8px 18px;
    text-align: left;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-3);
    font-weight: 600;
    border-bottom: 1px solid var(--border-2);
}
.candidates-table td {
    padding: 9px 18px;
    border-bottom: 1px solid var(--border-2);
    color: var(--text-1);
}
.candidates-table tr:last-child td { border-bottom: none; }
.candidates-table tbody tr:hover td { background: var(--blue-dim); }

.candidate-rank { color: var(--text-3); font-weight: 500; width: 32px; font-variant-numeric: tabular-nums; }

.head-badge {
    display: inline-block;
    background: var(--blue);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 6px;
    letter-spacing: 0.3px;
}

.gender-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}
.gender-badge--f { background: #FDF2F8; color: #9D174D; }
.gender-badge--m { background: var(--blue-dim); color: var(--blue-dark); }

/* ── Results section ──────────────────────────────────────── */
.results-pending {
    text-align: center;
    padding: 56px 24px;
    background: var(--surface);
    border-radius: var(--r-lg);
    border: 1.5px solid var(--border);
}
.results-pending-icon { font-size: 44px; margin-bottom: 14px; }
.results-pending h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.results-pending p { color: var(--text-2); max-width: 460px; margin: 0 auto 20px; font-size: 14px; line-height: 1.65; }

.results-pending-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--blue-dim);
    color: var(--blue);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 9px 20px;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 13.5px;
    font-family: inherit;
    font-weight: 500;
    transition: background var(--ease), box-shadow var(--ease);
}
.refresh-btn:hover { background: var(--blue-dark); box-shadow: var(--sh-sm); }

/* Bouton rouge pour action secondaire */
.btn-red {
    background: var(--red);
}
.btn-red:hover { background: var(--red-dark); }

/* Results data */
.results-header { margin-bottom: 22px; }

.results-round-badge {
    display: inline-block;
    background: var(--blue);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.summary-stat {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 18px 16px;
    text-align: center;
}
.summary-stat-value { font-size: 26px; font-weight: 700; color: var(--blue); line-height: 1; font-variant-numeric: tabular-nums; }
.summary-stat-label { font-size: 11.5px; color: var(--text-3); margin-top: 5px; font-weight: 500; }

.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

.chart-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px 22px;
}
.chart-card h4 {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-3);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.chart-container { position: relative; height: 250px; }

.results-table-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 16px;
}
.results-table-card h4 {
    padding: 14px 20px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.results-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.results-table th {
    padding: 9px 18px;
    background: var(--bg);
    text-align: left;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-3);
    font-weight: 600;
    border-bottom: 1px solid var(--border-2);
}
.results-table td { padding: 12px 18px; border-bottom: 1px solid var(--border-2); }
.results-table tr:last-child td { border-bottom: none; }
.results-table tbody tr:hover td { background: var(--blue-dim); }

.result-bar-cell { width: 120px; }
.result-bar-wrap { background: var(--border-2); border-radius: 4px; height: 6px; overflow: hidden; }
.result-bar { height: 100%; border-radius: 4px; transition: width 0.7s cubic-bezier(.4,0,.2,1); }

.elected-badge {
    display: inline-block;
    background: #D1FAE5;
    color: #065F46;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ── Welcome section ──────────────────────────────────────── */
.welcome-section { padding: 44px 0 64px; }

.countdown-card {
    background: var(--blue);
    color: white;
    border-radius: var(--r-lg);
    padding: 40px 36px;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--red);
}

/* Subtle grain texture */
.countdown-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
}

.countdown-icon { font-size: 36px; margin-bottom: 4px; position: relative; }

.countdown-card h2 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 24px;
    color: rgba(255,255,255,0.60);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    position: relative;
}

.countdown-item {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--r-md);
    padding: 14px 18px;
    min-width: 76px;
    text-align: center;
}

.countdown-value {
    display: block;
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
    color: #fff;
}

.countdown-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.45);
    margin-top: 5px;
    font-weight: 500;
}

.countdown-desc {
    color: rgba(255,255,255,0.60);
    font-size: 14px;
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.65;
    position: relative;
}

.countdown-passed {
    font-size: 17px;
    font-weight: 600;
    padding: 14px 20px;
    background: rgba(255,255,255,0.10);
    border-radius: var(--r-sm);
    display: inline-block;
    margin-bottom: 16px;
    position: relative;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.info-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-top: 3px solid var(--blue);
    border-radius: var(--r-lg);
    padding: 24px;
    transition: box-shadow var(--ease), border-color var(--ease);
}
.info-card:hover { box-shadow: var(--sh-sm); border-color: var(--blue-mid); border-top-color: var(--red); }
.info-card:nth-child(2) { border-top-color: var(--red); }
.info-card:nth-child(2):hover { border-top-color: var(--blue); }
.info-card:nth-child(4) { border-top-color: var(--red); }
.info-card:nth-child(4):hover { border-top-color: var(--blue); }

.info-card-icon { font-size: 24px; margin-bottom: 12px; }

.info-card h3 {
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-1);
    letter-spacing: -0.2px;
}

.info-card p { font-size: 13px; color: var(--text-2); line-height: 1.65; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 20px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

footer p { font-size: 12px; color: var(--text-3); }
footer a { color: var(--text-2); }
footer a:hover { color: var(--blue); }

/* ── Zones publicitaires ──────────────────────────────────── */
.ad-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    min-height: 60px;
    position: relative;
}

.ad-zone--leaderboard {
    /* Bannière horizontale — entre la recherche et le contenu */
}

.ad-zone--rectangle {
    /* Rectangle — sous les résultats/candidats */
    margin-top: 28px;
    border-radius: var(--r-md);
    border: 1.5px solid var(--border);
    min-height: 120px;
}

.ad-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-3);
    font-weight: 500;
    margin-bottom: 6px;
}

.ad-fallback {
    font-size: 12px;
    color: var(--text-3);
    font-style: italic;
    padding: 8px 0;
}

/* ── Modal de consentement cookies ───────────────────────── */
.cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 62, 0.65);
    backdrop-filter: blur(3px);
    z-index: 999;
    animation: fadeIn 0.25s ease;
}

.cookie-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: min(520px, calc(100vw - 32px));
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
    overflow: hidden;
    animation: modalIn 0.3s cubic-bezier(.34,1.56,.64,1);
}

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
    from { opacity: 0; transform: translate(-50%, calc(-50% + 24px)); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* Bandeau tricolore en haut de la modale */
.cookie-modal .cookie-modal-flag {
    display: flex;
    height: 5px;
}
.cookie-modal .flag-blue  { flex: 1; background: #002395; }
.cookie-modal .flag-white { flex: 1; background: #E8E8E8; }
.cookie-modal .flag-red   { flex: 1; background: #ED2939; }

.cookie-modal-body {
    padding: 28px 32px 24px;
    text-align: center;
}

.cookie-modal-icon {
    font-size: 36px;
    margin-bottom: 12px;
    line-height: 1;
}

.cookie-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-1);
    letter-spacing: -0.3px;
    margin-bottom: 10px;
}

.cookie-modal-desc {
    font-size: 13.5px;
    color: var(--text-2);
    line-height: 1.65;
    margin-bottom: 18px;
}

/* Détails des cookies */
.cookie-modal-details {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 16px;
    margin-bottom: 16px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookie-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cookie-detail-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.cookie-detail-item strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 1px;
}

.cookie-detail-item span {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.4;
}

.cookie-modal-rgpd {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.6;
    margin-bottom: 22px;
    text-align: left;
}

/* Boutons */
.cookie-modal-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.cookie-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity var(--ease), transform var(--ease), box-shadow var(--ease);
}
.cookie-btn:hover { transform: translateY(-1px); }

.cookie-btn--refuse {
    background: var(--bg);
    color: var(--text-2);
    border: 1.5px solid var(--border);
}
.cookie-btn--refuse:hover { border-color: var(--text-2); }

.cookie-btn--accept {
    background: var(--blue);
    color: white;
    box-shadow: 0 4px 14px rgba(0,35,149,0.30);
}
.cookie-btn--accept:hover {
    background: var(--blue-dark);
    box-shadow: 0 6px 20px rgba(0,35,149,0.38);
}

.cookie-modal-link {
    font-size: 11.5px;
    color: var(--text-3);
    text-decoration: underline;
    display: inline-block;
}
.cookie-modal-link:hover { color: var(--blue); }

/* Lien footer */
.footer-cookie-link {
    color: var(--text-3);
    font-size: 12px;
}
.footer-cookie-link:hover { color: var(--blue); }

@media (max-width: 480px) {
    .cookie-modal-body { padding: 22px 20px 20px; }
    .cookie-modal-actions { flex-direction: column-reverse; }
    .cookie-modal-title { font-size: 18px; }
}

/* ── Utilities ────────────────────────────────────────────── */
.hidden { display: none !important; }

.error-msg {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #FFF5F5;
    border: 1.5px solid #FED7D7;
    border-radius: var(--r-md);
    padding: 14px 18px;
    color: #C53030;
    font-size: 13.5px;
    line-height: 1.5;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
    .container { padding: 0 16px; }

    .header-logo { display: none; }
    .header-text h1 { font-size: 17px; }
    header { padding: 18px 0; }

    .commune-header { flex-direction: column; }
    .back-btn { align-self: flex-start; }

    .commune-header h2 { font-size: 22px; }

    .lists-grid { grid-template-columns: 1fr; }
    .results-grid { grid-template-columns: 1fr; }

    .countdown-card { padding: 28px 16px; }
    .countdown-item { padding: 12px 14px; min-width: 64px; }
    .countdown-value { font-size: 30px; }

    .info-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
}
