/*
Theme Name: Parfait Ngoa Voundi
Theme URI: https://parfaitngoavoundi.com/
Author: CSM
Description: Site de campagne bilingue (EN/FR) de Parfait Ngoa Voundi, candidat aux élections législatives, Nyong et Mfoumou. Page d'accueil unique.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: pnv
*/

:root{color-scheme:light}body{margin:0}img{max-width:100%}[hidden]{display:none!important}

/* Concept : affiche électorale. Grand aplat bleu profond, nom en très gros, disque bleu clair derrière le portrait, fond blanc légèrement bleuté, section de don sur fond bleu. */
:root {
  --bg: #F5F9FF;
  --fg: #0B1F3A;
  --muted: #4A5E78;
  --brand: #0A3D91;
  --brand-ink: #FFFFFF;
  --accent: #9CCBFF;
  --accent-ink: #0B1F3A;
  --line: #D5E2F3;
  --panel: #FFFFFF;
  --font-display: "Bricolage Grotesque", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1424;
    --fg: #E8F0FB;
    --muted: #9DB2CC;
    --brand: #0E2F6B;
    --brand-ink: #F3F8FF;
    --accent: #9CCBFF;
    --accent-ink: #0B1F3A;
    --line: #1F3354;
    --panel: #10203A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1424;
  --fg: #E8F0FB;
  --muted: #9DB2CC;
  --brand: #0E2F6B;
  --brand-ink: #F3F8FF;
  --accent: #9CCBFF;
  --accent-ink: #0B1F3A;
  --line: #1F3354;
  --panel: #10203A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: 1.05; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: 1100px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* En-tête */
.top { background: var(--brand); color: var(--brand-ink); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 12px; flex-wrap: wrap; }
.mark { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.01em; text-decoration: none; }
.top-right { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.nav { display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: 0.95rem; font-weight: 500; }
.nav a { text-decoration: none; opacity: 0.88; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.lang-switch { display: inline-flex; border: 2px solid var(--accent); border-radius: 4px; overflow: hidden; }
.lang-btn { font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; color: var(--brand-ink); background: transparent; border: 0; padding: 6px 14px; min-height: 40px; cursor: pointer; }
.lang-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* Hero */
.hero { background: var(--brand); color: var(--brand-ink); position: relative; overflow: hidden; }
.hero .wrap { position: relative; padding-top: clamp(40px, 8vw, 88px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; align-items: end; }
.hero-copy { position: relative; z-index: 1; min-width: 0; padding-bottom: clamp(48px, 9vw, 100px); }
.hero .eyebrow { color: var(--accent); }
.hero h1 { font-weight: 800; font-size: clamp(2.8rem, 8.6vw, 6.2rem); letter-spacing: -0.02em; margin-top: 14px; }
.role { margin-top: 14px; font-weight: 600; font-size: 1.05rem; }
.slogan { font-size: clamp(1.1rem, 2.4vw, 1.45rem); max-width: 30ch; margin-top: 18px; font-weight: 500; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 14px 24px; border-radius: 4px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; min-height: 48px;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--brand-ink); color: var(--brand-ink); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.portrait-wrap { position: relative; z-index: 1; align-self: end; justify-self: center; width: 100%; max-width: 440px; min-width: 0; }
.portrait-wrap::before {
  content: ""; position: absolute; left: 50%; top: 4%; width: 112%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: var(--accent);
}
.portrait-wrap img { position: relative; display: block; width: 100%; height: auto; max-width: 100%; }

/* Sections */
section { padding-block: clamp(48px, 8vw, 88px); }
.section-head { display: grid; gap: 10px; margin-bottom: 36px; max-width: 60ch; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -0.015em; }
.section-head p { color: var(--muted); }

.letter-sec { background: var(--panel); border-bottom: 1px solid var(--line); }
.letter { max-width: 66ch; display: grid; gap: 18px; }
.letter[hidden] { display: none; }
.letter .eyebrow { margin-bottom: 4px; }
.letter h2 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -0.015em; margin-bottom: 10px; }
.letter .salut { font-weight: 600; }
.letter .lead { font-size: 1.15rem; }
.letter p { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.letter .salut, .letter .eyebrow { text-align: left; hyphens: none; }
.letter .sign { margin-top: 10px; padding-top: 18px; border-top: 4px solid var(--brand); }
.letter .sign b { display: block; font-family: var(--font-display); font-size: 1.5rem; }
.letter .sign span { color: var(--muted); display: block; overflow-wrap: anywhere; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.fact { background: var(--panel); border: 1px solid var(--line); padding: 18px; min-width: 0; }
.fact b { display: block; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; margin-bottom: 6px; }
.fact span { color: var(--muted); font-size: 0.92rem; }

.priorities { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px 28px; }
.priority { border-top: 4px solid var(--brand); padding-top: 16px; min-width: 0; }
.priority h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 10px; }
.priority p { color: var(--muted); font-size: 0.98rem; }

.gallery { columns: 3 260px; column-gap: 16px; }
.gallery figure { margin: 0 0 16px; break-inside: avoid; background: var(--bg); border: 1px solid var(--line); }
.gallery img { display: block; width: 100%; height: auto; max-width: 100%; background: var(--line); }
.gallery figcaption { padding: 10px 12px 12px; font-size: 0.9rem; color: var(--muted); }

/* Don */
.give { background: var(--brand); color: var(--brand-ink); }
.give .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.give h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -0.015em; }
.give .eyebrow { color: var(--accent); }
.give-copy { display: grid; gap: 18px; min-width: 0; }
.give-copy p { max-width: 46ch; }
.transparency { font-size: 0.9rem; opacity: 0.85; border-left: 3px solid var(--accent); padding-left: 14px; }
.panel { background: var(--panel); color: var(--fg); padding: 28px; display: grid; gap: 20px; min-width: 0; }
.panel h3 { font-size: 1.3rem; font-weight: 800; }
.amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.amount {
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--fg);
  background: transparent; border: 2px solid var(--line); border-radius: 4px;
  padding: 12px 8px; min-height: 48px; cursor: pointer;
}
.amount:hover { border-color: var(--brand); }
.amount[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.field input {
  font: inherit; color: var(--fg); background: var(--bg);
  border: 2px solid var(--line); border-radius: 4px; padding: 12px; min-height: 48px; width: 100%;
}
.field input:focus { border-color: var(--brand); outline: none; }
.panel .btn { width: 100%; font-size: 1.05rem; }
.btn-brand { background: var(--brand); color: var(--brand-ink); }
.btn-brand:hover { filter: brightness(1.15); }
.option { display: grid; gap: 8px; padding: 18px; border: 2px solid var(--line); min-width: 0; }
.option b { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; }
.option span { color: var(--muted); font-size: 0.95rem; }
.note { font-size: 0.85rem; color: var(--muted); }
.setup-note { font-size: 0.85rem; padding: 10px 12px; border: 1px dashed var(--muted); color: var(--muted); }

footer { border-top: 1px solid var(--line); padding-block: 32px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .hero .wrap, .give .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 8px; }
  .portrait-wrap { max-width: 320px; }
  .portrait-wrap::before { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: filter 0.15s, background 0.15s; }
  .amount { transition: border-color 0.15s, background 0.15s; }
}
