:root {
  --bleu-fonce: #0339B9;
  --bleu-clair: #016FED;
  --orange: #FF9500;
  --ink: #0b1437;
  --muted: #5b6478;
  --bg: #f4f7ff;
  --surface: #ffffff;
  --line: #d8e2f5;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(3, 57, 185, 0.08);
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  background: var(--bleu-fonce);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 50;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--bleu-fonce);
}
.brand-mark .dot { color: var(--orange); }
.badge-faso {
  font-size: 11px;
  font-weight: 500;
  color: var(--bleu-clair);
  background: #e8f0ff;
  border: 1px solid #cfe0ff;
  padding: 4px 10px;
  border-radius: 999px;
  text-align: right;
}

main { max-width: 720px; margin: 0 auto; padding: 0 16px 40px; }

/* Hero */
.hero {
  text-align: center;
  padding: 32px 8px 16px;
  /* Le canvas de l'effet flammes dépasse de la carte sur les côtés :
     sans ce rognage horizontal, la page deviendrait scrollable vers la
     droite sur mobile. */
  overflow-x: hidden;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  color: var(--bleu-clair);
  font-weight: 600;
  margin: 0 0 8px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 7vw, 38px);
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--bleu-fonce);
}
.hero h1 .accent { color: var(--orange); }
.hero-sub {
  color: var(--muted);
  font-size: 16px;
  margin: 0 auto 24px;
  max-width: 520px;
}

/* Countdown */
.countdown {
  position: relative; /* repère pour le canvas de l'effet flammes */
  background: linear-gradient(180deg, #eaf1ff, #ffffff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 14px;
  box-shadow: var(--shadow);
  max-width: 460px;
  margin: 0 auto 24px;
}
/* Ceinture bretelles : coupe tout débordement horizontal résiduel. */
body { overflow-x: clip; }
.flame-canvas { display: block; }
.voter .countdown-rappel { margin: 22px auto 24px; }
.countdown-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--bleu-clair);
  text-transform: uppercase;
}
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.cd-unit {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cd-num {
  font-family: var(--font-display);
  font-size: clamp(22px, 7vw, 30px);
  font-weight: 700;
  color: var(--bleu-fonce);
  line-height: 1;
}
.cd-cap {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.countdown-date {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.06s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
.btn-primary { background: var(--bleu-fonce); color: #fff; }
.btn-primary:hover { background: var(--bleu-clair); }
.btn-support { background: var(--orange); color: #fff; }
.btn-support:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; color: var(--bleu-fonce); border-color: var(--bleu-fonce); }
.btn-ghost:hover { background: #eaf1ff; }
.btn-vote { background: var(--orange); color: #fff; font-size: 16px; padding: 15px 20px; margin-top: 18px; }
.btn-vote:hover { filter: brightness(1.05); }
.btn-vote-sm { background: var(--orange); color: #fff; font-size: 14px; padding: 11px 16px; margin-top: 14px; display: inline-flex; }
.btn-vote-sm:hover { filter: brightness(1.05); }
.vote-note { color: var(--muted); font-size: 13px; margin-top: 16px; text-align: center; }
.btn-wa { background: #25D366; color: #fff; }
.btn-fb { background: #1877F2; color: #fff; }

.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { padding: 28px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }
h2 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--bleu-fonce);
  margin: 0 0 8px;
}
.section-sub { color: var(--muted); margin: 0 0 18px; }

/* Form */
.support-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field input[type="text"],
.field input[type="tel"] {
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
  color: var(--ink);
}
.field input:focus {
  outline: 2px solid var(--bleu-clair);
  outline-offset: 1px;
  border-color: var(--bleu-clair);
}
.hint { color: var(--muted); font-size: 12px; }
.field.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  color: var(--muted);
}
.field.checkbox input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--bleu-fonce); }
.field.checkbox label { font-weight: 400; line-height: 1.5; }
.form-status { margin: 0; font-size: 14px; min-height: 20px; }
.form-status.ok { color: #0f7a3d; font-weight: 500; }
.form-status.err { color: #c0341d; font-weight: 500; }

/* Solutions */
.solutions-grid { display: grid; gap: 16px; }
.solution-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.solution-flyer {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e9f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bleu-clair);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  object-fit: cover;
}
.solution-flyer.placeholder { background: repeating-linear-gradient(45deg, #e9f0ff, #e9f0ff 14px, #dde9ff 14px, #dde9ff 28px); }
.solution-body { padding: 16px; }
.solution-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  background: var(--bleu-clair);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.solution-body h3 { font-family: var(--font-display); font-size: 19px; margin: 0 0 6px; color: var(--bleu-fonce); }
.solution-body p { margin: 0; color: var(--muted); font-size: 14px; }

/* Video */
.video {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0b1437;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-triangle {
  width: 0; height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--bleu-fonce);
  margin-left: 4px;
}
.video-note { color: #cdd6ee; font-size: 13px; margin: 0; text-align: center; }

/* Share */
.share-row { display: grid; gap: 12px; }

/* Footer */
.site-footer {
  background: var(--bleu-fonce);
  color: #dce6ff;
  text-align: center;
  padding: 26px 18px;
  font-size: 13px;
}
.site-footer p { margin: 0 0 8px; }
.footer-partner { color: #ffffff; font-weight: 600; }
.footer-legal { color: rgba(255, 255, 255, 0.85); max-width: 620px; margin: 8px auto; text-align: center; }
.footer-copy { color: rgba(255, 255, 255, 0.75); }

@media (min-width: 600px) {
  .solutions-grid { grid-template-columns: repeat(3, 1fr); }
  .share-row { grid-template-columns: 1fr 1fr; }
}

/* Logo Digital Driver + contact footer */
.brand-logo { height: 44px; width: auto; display: block; }
.footer-contact { margin: 10px auto; text-align: center; }
.footer-contact-title { margin: 0 0 4px; font-weight: 600; color: #ffffff; letter-spacing: 0.4px; }
.footer-contact-line { display: block; color: #ffffff; text-decoration: none; font-weight: 500; letter-spacing: 0.6px; }
.footer-contact-line:hover { text-decoration: underline; }
.footer-contact a { color: #ffffff; text-decoration: none; }
