/* quetedesens.fr — tricolore clair · mobile-first */

:root {
  --fr-bleu: #002395;
  --fr-blanc: #ffffff;
  --fr-rouge: #ed2939;
  --fr-bleu-light: #e8eef9;
  --fr-rouge-light: #fdecee;
  --bg: #f4f6fb;
  --bg-soft: #ffffff;
  --bg-card: #ffffff;
  --text: #0c1a3d;
  --text-muted: #4a5878;
  --accent: #002395;
  --accent-warm: #c41e2e;
  --border: rgba(0, 35, 149, 0.12);
  --border-strong: rgba(0, 35, 149, 0.22);
  --shadow: 0 8px 32px rgba(0, 35, 149, 0.1);
  --max-width: 44rem;
  --font-serif: "Georgia", "Iowan Old Style", "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, var(--fr-bleu-light) 0%, var(--bg) 35%, var(--bg) 100%);
  color: var(--text);
  font-family: var(--font-serif);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--fr-bleu) 0%,
    var(--fr-bleu) 33.333%,
    var(--fr-blanc) 33.333%,
    var(--fr-blanc) 66.666%,
    var(--fr-rouge) 66.666%,
    var(--fr-rouge) 100%
  );
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

a {
  color: var(--fr-bleu);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

a:hover {
  color: var(--accent-warm);
  border-bottom-color: var(--accent-warm);
}

/* ——— Header ——— */

.site-header {
  position: relative;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  background: var(--fr-blanc);
  border-bottom: 1px solid var(--border);
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--fr-bleu) 0%,
    var(--fr-bleu) 33.333%,
    var(--fr-blanc) 33.333%,
    var(--fr-blanc) 66.666%,
    var(--fr-rouge) 66.666%,
    var(--fr-rouge) 100%
  );
}

.flag-fr {
  display: inline-flex;
  width: 3.25rem;
  height: 2.15rem;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.flag-fr span {
  flex: 1;
  display: block;
}

.flag-fr .bleu {
  background: var(--fr-bleu);
}

.flag-fr .blanc {
  background: var(--fr-blanc);
}

.flag-fr .rouge {
  background: var(--fr-rouge);
}

.site-logo {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fr-bleu);
  text-decoration: none;
  border: none;
}

.site-logo:hover {
  border: none;
  color: var(--fr-rouge);
}

.site-tagline {
  margin: 0.85rem auto 0;
  max-width: 24rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ——— Navigation ——— */

nav.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.6rem;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--fr-bleu);
  border-bottom: 3px solid var(--fr-rouge);
}

nav.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  border: none;
  padding: 0.45rem 0.7rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

nav.site-nav a:hover {
  color: var(--fr-blanc);
  background: rgba(255, 255, 255, 0.15);
  border: none;
}

nav.site-nav a.active {
  color: var(--fr-bleu);
  background: var(--fr-blanc);
}

/* ——— Compteur ——— */

.countdown {
  margin: 1.5rem auto 0;
  max-width: var(--max-width);
  padding: 0 1.25rem 1.75rem;
}

.countdown-inner {
  padding: 1.5rem 1.25rem 1.25rem;
  background: var(--bg-card);
  border: 2px solid var(--fr-bleu);
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.countdown-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--fr-bleu),
    var(--fr-blanc),
    var(--fr-rouge)
  );
}

.countdown-label {
  margin: 0.5rem 0 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fr-bleu);
}

.countdown-date {
  margin: 0 0 1.15rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.countdown-unit {
  padding: 0.75rem 0.35rem;
  background: var(--fr-bleu-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  border-bottom: 3px solid var(--fr-bleu);
}

.countdown-unit:nth-child(2) {
  border-bottom-color: var(--text-muted);
}

.countdown-unit:nth-child(3) {
  border-bottom-color: var(--fr-blanc);
  box-shadow: inset 0 0 0 1px var(--border);
}

.countdown-unit:nth-child(4) {
  background: var(--fr-rouge-light);
  border-bottom-color: var(--fr-rouge);
}

.countdown-unit strong {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--fr-bleu);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.countdown-unit:nth-child(4) strong {
  color: var(--fr-rouge);
}

.countdown-unit span {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.countdown-done {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--fr-rouge);
}

.countdown-note {
  margin: 1rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ——— Contenu ——— */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero {
  margin-bottom: 2.5rem;
  padding: 1.5rem 0 2rem;
  border-bottom: 2px solid var(--border);
}

.hero h1 {
  font-size: clamp(1.85rem, 5.5vw, 2.45rem);
  font-weight: normal;
  line-height: 1.28;
  margin: 0 0 1.15rem;
  color: var(--fr-bleu);
  text-wrap: balance;
}

.hero .lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

article h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--fr-bleu);
  margin: 2.5rem 0 1rem;
}

article h2::before {
  content: "";
  flex-shrink: 0;
  width: 1.5rem;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--fr-bleu),
    var(--fr-blanc),
    var(--fr-rouge)
  );
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--border);
}

article h2:first-of-type {
  margin-top: 0;
}

article p {
  margin: 0 0 1.25rem;
}

article p strong {
  color: var(--fr-bleu);
  font-weight: 700;
}

article blockquote {
  margin: 2rem 0;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(
    135deg,
    var(--fr-bleu-light),
    var(--fr-rouge-light)
  );
  border: 1px solid var(--border);
  border-left: 5px solid var(--fr-rouge);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text);
}

article ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

article li {
  margin-bottom: 0.55rem;
}

article li::marker {
  color: var(--fr-rouge);
}

ol.questions {
  margin: 0 0 1.75rem;
  padding-left: 0;
  list-style: none;
  counter-reset: q;
}

ol.questions li {
  counter-increment: q;
  margin-bottom: 1rem;
  padding: 1rem 1rem 1rem 3rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 35, 149, 0.04);
  position: relative;
}

ol.questions li::before {
  content: counter(q);
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--fr-blanc);
  width: 1.5rem;
  height: 1.5rem;
  line-height: 1.5rem;
  text-align: center;
  border-radius: 50%;
  background: var(--fr-bleu);
}

ul.timeline {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

ul.timeline li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  border-left: 5px solid var(--fr-bleu);
  box-shadow: 0 2px 8px rgba(0, 35, 149, 0.04);
}

ul.timeline li:nth-child(2) {
  border-left-color: var(--fr-rouge);
}

ul.timeline strong {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fr-bleu);
}

ul.timeline span {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ——— CTA ——— */

.cta-block {
  margin-top: 3rem;
  padding: 2rem 1.5rem;
  background: var(--bg-soft);
  border: 2px solid var(--fr-bleu);
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-block p {
  margin: 0 0 1.15rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cta-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.cta-links a {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.65rem 1.1rem;
  border-radius: 6px;
  color: var(--fr-blanc);
  background: var(--fr-bleu);
  border: none;
  transition: background 0.2s, transform 0.15s;
}

.cta-links a:hover {
  background: var(--fr-rouge);
  border: none;
  transform: translateY(-1px);
}

.cta-links a:nth-child(even):hover {
  background: var(--fr-bleu);
}

/* ——— Footer ——— */

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  border-top: 4px solid transparent;
  border-image: linear-gradient(
    90deg,
    var(--fr-bleu),
    var(--fr-blanc),
    var(--fr-rouge)
  ) 1;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  background: var(--fr-blanc);
}

.site-footer p {
  margin: 0.35rem 0;
}

.site-footer a {
  color: var(--fr-bleu);
}

.site-footer a:hover {
  color: var(--fr-rouge);
}

/* ——— Responsive ——— */

@media (min-width: 640px) {
  main {
    padding: 2.5rem 2rem 5rem;
  }

  .countdown {
    padding: 0 2rem 2rem;
  }

  nav.site-nav {
    gap: 0.5rem 0.85rem;
    font-size: 0.74rem;
  }
}

@media (min-width: 900px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}
