/* ================================================================
   SondajAyiti — Design System (Public)
   Style classique minimaliste — Stripe / Linear / Notion-inspired.
   Espace généreux, palette épurée, typographie raffinée.
   ================================================================ */

:root {
    /* Palette principale — neutre, élégante, professionnelle */
    --bg: #fafaf9;
    --bg-soft: #f5f5f4;
    --card: #ffffff;

    --ink: #0a0a0a;
    --ink-soft: #262626;
    --text: #404040;
    --muted: #737373;
    --light: #a3a3a3;

    --border: #e5e5e5;
    --border-soft: #f5f5f5;
    --border-strong: #d4d4d4;

    /* Accents — bleu profond + or doux */
    --primary: #1e3a8a;        /* deep blue */
    --primary-hover: #1e40af;
    --primary-soft: #eff6ff;
    --primary-text: #1e3a8a;

    --accent: #c2410c;          /* terracotta */
    --accent-soft: #fff7ed;

    --success: #15803d;
    --success-soft: #f0fdf4;
    --warning: #b45309;
    --warning-soft: #fffbeb;
    --danger: #b91c1c;
    --danger-soft: #fef2f2;

    /* Ombres très subtiles, "Stripe-style" */
    --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg: 0 12px 24px rgba(0,0,0,.06), 0 4px 8px rgba(0,0,0,.04);

    /* Rayons */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 24px;

    /* Typo */
    --serif: 'Fraunces', 'Instrument Serif', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

/* Reset & base */
*,*::before,*::after { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-x: clip;
}
body {
    margin: 0;
    font-family: var(--sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-x: clip;
    letter-spacing: -0.01em;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
button { font-family: inherit; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

/* Conteneurs */
.wrap        { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 720px;  margin: 0 auto; padding: 0 24px; }
.wrap-wide   { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ----- TYPOGRAPHIE ----- */
h1, h2, h3, h4 {
    color: var(--ink);
    margin: 0 0 .5em;
    letter-spacing: -0.025em;
    line-height: 1.15;
    font-weight: 600;
}
h1 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.05;
}
h2 {
    font-family: var(--serif);
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    font-weight: 500;
    letter-spacing: -0.03em;
}
h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.3;
}
h4 { font-size: 1rem; line-height: 1.4; }

.lead {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    color: var(--ink-soft);
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.015em;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 0;
    text-transform: none;
    border: 0;
}
.kicker::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.mono { font-family: var(--mono); letter-spacing: 0; }

/* ----- ALERT STRIP (top bar) ----- */
.alert-strip {
    background: var(--ink);
    color: #fff;
    font-size: 0.78rem;
    padding: 8px 0;
    text-align: center;
    letter-spacing: 0.01em;
    font-weight: 400;
}
.alert-strip .wrap {
    display: flex; gap: 14px; align-items: center;
    justify-content: center; flex-wrap: wrap;
}
.alert-strip .dot {
    width: 6px; height: 6px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,100% { opacity: 1; }
    50% { opacity: .4; }
}

/* ----- HEADER / NAV ----- */
.masthead {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(180%) blur(20px);
    background-color: rgba(250, 250, 249, 0.85);
}
.masthead-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 24px;
}
.brand {
    display: flex; align-items: center; gap: 10px;
}
.brand-mark {
    width: 32px; height: 32px;
    background: var(--ink); color: #fff;
    display: grid; place-items: center;
    font-family: var(--serif);
    font-weight: 600; font-size: 1rem;
    border-radius: 8px;
    position: relative;
}
.brand-mark::after { display: none; }
.brand-name { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.brand-tag { display: none; }

.nav {
    display: flex; gap: 2px;
    align-items: center;
    flex: 1;
    justify-content: center;
}
.nav a {
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 6px;
    transition: all .12s;
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a.is-active { color: var(--ink); font-weight: 600; }

.nav-cta { display: flex; gap: 8px; align-items: center; }

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    flex-direction: column;
    gap: 4px;
}
.menu-toggle span {
    display: block;
    width: 18px; height: 1.5px;
    background: var(--ink);
    transition: .25s;
}

/* ----- BUTTONS ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 8px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fff;
    transition: all .15s;
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    letter-spacing: -0.005em;
}
.btn:hover {
    color: #fff;
    background: var(--ink-soft);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--border-strong);
}
.btn-outline:hover {
    background: var(--bg-soft);
    color: var(--ink);
    border-color: var(--ink);
}
.btn-red, .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.btn-red:hover, .btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}
.btn-gold, .btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn-gold:hover { background: #9a3412; border-color: #9a3412; color: #fff; }
.btn-ghost {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: var(--ink);
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); transform: none; box-shadow: none; }

.btn-sm { padding: 6px 12px; font-size: 0.82rem; }
.btn-lg { padding: 12px 22px; font-size: 1rem; }
.btn-block { display: flex; justify-content: center; width: 100%; }

/* ----- HERO ----- */
.hero {
    padding: clamp(60px, 10vw, 120px) 0 clamp(60px, 8vw, 100px);
    position: relative;
    overflow: hidden;
}
.hero-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.hero h1 { margin-top: 18px; margin-bottom: 24px; }
.hero h1 em {
    font-style: italic;
    color: var(--primary);
    font-weight: 500;
}
.hero .lead { max-width: 600px; margin: 0 auto 36px; }
.hero-actions {
    display: flex; gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Stats bar sous hero — discret et élégant */
.hero-stats {
    margin-top: 80px;
    padding: 32px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.hero-stat-num {
    font-family: var(--serif);
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.025em;
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 8px;
    letter-spacing: 0.01em;
}

/* ----- SECTIONS ----- */
.section {
    padding: clamp(60px, 8vw, 100px) 0;
}
.section-soft { background: var(--bg-soft); }
.section-tight { padding: clamp(40px, 6vw, 60px) 0; }

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(40px, 6vw, 60px);
}
.section-head p { color: var(--muted); margin-top: 12px; }

/* ----- CARDS ----- */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px;
    transition: all .2s;
    box-shadow: var(--shadow-xs);
}
.card:hover {
    transform: none;
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}
.card-soft {
    border-color: var(--border-soft);
    background: var(--bg-soft);
}

/* Poll card — sobre et élégant */
.poll-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
    transition: all .2s;
    box-shadow: var(--shadow-xs);
    height: 100%;
}
.poll-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
}
.poll-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--muted);
}
.poll-card .meta .tag {
    background: var(--bg-soft);
    color: var(--ink);
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.72rem;
}
.poll-card h3 {
    font-family: var(--sans);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.015em;
}
.poll-card .question {
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.55;
    flex: 1;
}
.poll-card .stats {
    display: flex; gap: 16px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-soft);
    font-size: 0.78rem;
    color: var(--muted);
}
.poll-card .stats b {
    color: var(--ink);
    font-weight: 600;
}

/* ----- POLL RESULT BARS ----- */
.bar { margin: 14px 0 20px; }
.bar-row {
    display: flex; justify-content: space-between;
    align-items: baseline;
    font-size: 0.92rem;
    margin-bottom: 8px;
}
.bar-row b {
    font-weight: 600;
    color: var(--ink);
    font-size: 1rem;
}
.bar-track {
    height: 8px;
    background: var(--bg-soft);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}
.bar-fill {
    height: 100%;
    background: var(--ink);
    border-radius: 999px;
    transition: width .6s cubic-bezier(.4,0,.2,1);
}
.bar-fill.is-leading { background: var(--primary); }

/* ----- BADGES ----- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 500;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--ink);
    letter-spacing: 0;
    text-transform: none;
    border: 1px solid var(--border);
}
.badge-red   { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge-gold  { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.badge-blue  { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.badge-leaf  { background: var(--success-soft); color: var(--success); border-color: transparent; }
.badge-outline { background: transparent; }

.quality-best  { color: var(--success); }
.quality-high  { color: #16a34a; }
.quality-mid   { color: var(--warning); }
.quality-low   { color: #ea580c; }
.quality-worst { color: var(--danger); }

/* ----- GRIDS ----- */
.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); }
.grid-asym { grid-template-columns: 1.4fr 1fr; }

/* ----- FORMS ----- */
.field { margin-bottom: 16px; }
.field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}
.input, .select, .textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--card);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    color: var(--ink);
    transition: all .15s;
    box-shadow: var(--shadow-xs);
}
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.input::placeholder, .textarea::placeholder { color: var(--light); }
.textarea { min-height: 110px; resize: vertical; }
.help { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.checkbox {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 0.9rem;
    cursor: pointer;
}
.checkbox input {
    margin-top: 3px;
    accent-color: var(--primary);
    width: 16px; height: 16px;
}

/* ----- FEATURE BLOCKS (4-col features) ----- */
.feature {
    text-align: center;
    padding: 8px;
}
.feature-icon {
    width: 48px; height: 48px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 12px;
    display: grid; place-items: center;
    margin: 0 auto 18px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.feature p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ----- HAITI MAP ----- */
.map-wrap { position: relative; }
.map-svg { width: 100%; height: auto; }
.map-svg .dept {
    fill: var(--bg-soft);
    stroke: var(--ink);
    stroke-width: 1;
    transition: fill .15s;
    cursor: pointer;
}
.map-svg .dept:hover { fill: var(--warning-soft); stroke: var(--warning); }
.map-svg .dept.is-active { fill: var(--primary-soft); stroke: var(--primary); }
.map-legend {
    display: flex; gap: 18px;
    flex-wrap: wrap; margin-top: 16px;
    font-size: 0.82rem; color: var(--muted);
}

/* ----- DISCLAIMER ----- */
.disclaim {
    background: var(--warning-soft);
    border-top: 1px solid #fcd34d;
    border-bottom: 1px solid #fcd34d;
    padding: 14px 0;
    font-size: 0.88rem;
    color: var(--warning);
}
.disclaim .wrap {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* ----- VOTE INTERFACE ----- */
.vote-options {
    display: grid;
    gap: 8px;
    margin: 24px 0;
}
.vote-opt {
    border: 1px solid var(--border-strong);
    background: var(--card);
    padding: 14px 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all .15s;
    font-weight: 500;
    font-size: 0.95rem;
}
.vote-opt:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    transform: none;
    box-shadow: var(--shadow-sm);
}
.vote-opt input { display: none; }
.vote-opt .radio {
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--border-strong);
    display: inline-block;
    margin-right: 14px;
    flex-shrink: 0;
    position: relative;
    transition: all .15s;
}
.vote-opt input:checked + .radio {
    background: var(--primary);
    border-color: var(--primary);
}
.vote-opt input:checked + .radio::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #fff;
}
.vote-opt.is-disabled { pointer-events: none; opacity: 0.6; }

/* ----- TABLES ----- */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    font-size: 0.92rem;
}
.table th, .table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
}
.table th {
    font-size: 0.78rem;
    color: var(--muted);
    background: var(--bg-soft);
    font-weight: 600;
}
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--bg-soft); }

/* ----- FLASH ----- */
.flash {
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 8px;
    font-size: 0.9rem;
    box-shadow: var(--shadow-xs);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.flash-success { background: var(--success-soft); border-color: #86efac; color: var(--success); }
.flash-error   { background: var(--danger-soft);  border-color: #fca5a5; color: var(--danger); }
.flash-info    { background: var(--primary-soft); border-color: #93c5fd; color: var(--primary); }
.flash-warning { background: var(--warning-soft); border-color: #fcd34d; color: var(--warning); }
.flash-close { background: transparent; border: 0; font-size: 1.2rem; color: inherit; }

/* ----- PAGINATION ----- */
.pagination {
    display: flex; gap: 4px;
    justify-content: center;
    align-items: center;
    margin: 48px 0;
}
.pg-btn {
    min-width: 36px; height: 36px;
    padding: 0 10px;
    display: grid; place-items: center;
    border: 1px solid var(--border-strong);
    background: var(--card);
    font-size: 0.85rem;
    border-radius: 6px;
    color: var(--text);
    box-shadow: var(--shadow-xs);
    transition: all .15s;
}
.pg-btn:hover { background: var(--bg-soft); color: var(--ink); }
.pg-btn.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.pg-dot { color: var(--muted); padding: 0 4px; }

/* ----- FOOTER ----- */
.footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 32px;
}
.footer h4 {
    color: #fff;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
    gap: 48px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer a {
    color: rgba(255, 255, 255, 0.65);
    display: block;
    padding: 5px 0;
    font-size: 0.9rem;
    transition: color .12s;
}
.footer a:hover { color: #fff; }
.footer .brand-name { color: #fff; }
.footer .brand-mark { background: #fff; color: var(--ink); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 28px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
    gap: 16px;
}
.footer-news {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.footer-news input {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.88rem;
}
.footer-news input::placeholder { color: rgba(255, 255, 255, 0.4); }
.footer-news button {
    background: #fff;
    color: var(--ink);
    border: 0;
    padding: 0 18px;
    font-weight: 500;
    font-size: 0.88rem;
    border-radius: 6px;
    cursor: pointer;
}
.footer-news button:hover { background: var(--bg-soft); }

/* ----- UTILITIES ----- */
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { justify-content: space-between; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.text-sm { font-size: 0.88rem; }
.text-xs { font-size: 0.78rem; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; } .mb-6 { margin-bottom: 48px; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.hidden { display: none !important; }
.fill { width: 100%; }
.divider { height: 1px; background: var(--border); margin: 48px 0; }
.serif-em { font-family: var(--serif); font-style: italic; font-weight: 500; }

/* ----- MODAL ----- */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9000;
    display: grid; place-items: center;
    padding: 20px;
    animation: fadeIn .2s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop {
    from { transform: translateY(8px) scale(.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
.modal {
    background: var(--card);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    padding: 28px;
    position: relative;
    animation: pop .25s ease-out;
}
.modal-kicker {
    display: inline-flex;
    align-items: center; gap: 6px;
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--primary);
    padding: 3px 10px;
    background: var(--primary-soft);
    border-radius: 999px;
    margin-bottom: 14px;
}
.modal-kicker.is-info { color: var(--primary); background: var(--primary-soft); }
.modal-kicker.is-warn { color: var(--warning); background: var(--warning-soft); }
.modal h3 {
    font-family: var(--sans);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.3;
}
.modal p { color: var(--text); margin: 0 0 18px; font-size: 0.92rem; line-height: 1.55; }
.modal-actions {
    display: flex; gap: 8px;
    justify-content: flex-end; flex-wrap: wrap;
    margin-top: 20px; padding-top: 18px;
    border-top: 1px solid var(--border);
}
.modal-actions .btn { min-width: 100px; justify-content: center; }
.modal-close {
    position: absolute; top: 14px; right: 14px;
    background: transparent; border: 0;
    font-size: 1.3rem; line-height: 1;
    color: var(--muted);
    padding: 6px 10px; cursor: pointer;
    border-radius: 6px;
}
.modal-close:hover { color: var(--ink); background: var(--bg-soft); }

/* ----- PASSWORD REVEAL ----- */
.pwd-wrap { position: relative; }
.pwd-wrap .input { padding-right: 44px; }
.pwd-toggle {
    position: absolute; right: 6px;
    top: 50%; transform: translateY(-50%);
    background: transparent; border: 0;
    width: 32px; height: 32px;
    display: grid; place-items: center;
    color: var(--muted);
    border-radius: 6px;
    cursor: pointer;
}
.pwd-toggle:hover { color: var(--ink); background: var(--bg-soft); }
.pwd-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pwd-toggle .icon-on { display: block; }
.pwd-toggle .icon-off { display: none; }
.pwd-toggle.is-on .icon-on { display: none; }
.pwd-toggle.is-on .icon-off { display: block; }

/* ----- 404 ----- */
.error-page {
    padding: 100px 0 80px;
    text-align: center;
}
.error-num {
    font-family: var(--serif);
    font-size: clamp(6rem, 12vw, 10rem);
    font-weight: 500;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.04em;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 1024px) {
    .grid-asym, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 720px) {
    body { font-size: 15px; }
    .wrap, .wrap-narrow, .wrap-wide { padding: 0 18px; }

    /* Nav mobile */
    .nav {
        display: none;
        position: fixed;
        top: 72px; left: 0; right: 0;
        flex-direction: column;
        background: var(--card);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        padding: 12px;
        z-index: 60;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }
    .nav.is-open { display: flex; }
    .nav a {
        padding: 12px 14px;
        font-size: 1rem;
        border-radius: 8px;
        border-bottom: 0;
    }
    .menu-toggle { display: inline-flex; }

    .masthead-inner { padding: 12px 0; gap: 12px; }
    .nav-cta .btn { padding: 7px 12px; font-size: 0.82rem; }

    /* Grids */
    .grid-3, .grid-2, .grid-4, .grid-asym { grid-template-columns: 1fr; gap: 16px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; padding: 24px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }

    /* Hero */
    .hero { padding: 48px 0 60px; }
    .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-actions { flex-direction: column; }

    /* Sections */
    .section { padding: 48px 0; }
    .section-tight { padding: 32px 0; }

    /* Cartes */
    .card, .poll-card { padding: 20px; }

    /* Inputs touch-friendly */
    .input, .select, .textarea { font-size: 16px; padding: 11px 14px; }

    /* Tables responsives */
    .table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Disclaimer flex column */
    .disclaim .wrap { flex-direction: column; align-items: flex-start; gap: 4px; }

    /* Footer */
    .footer { padding: 50px 0 24px; }
    .footer-news { flex-direction: column; }
    .footer-news button { width: 100%; padding: 10px; }
}

@media (max-width: 420px) {
    .brand-name { font-size: 0.95rem; }
    .nav-cta .btn { font-size: 0.78rem; padding: 6px 10px; }
}
