:root {
  --primary: #1e3a5f;
  --primary-dark: #0f2d4f;
  --secondary: #00b4d8;
  --bg: #f8fafc;
  --bg-alt: #eef2f6;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --border-radius: 12px;
}

* { box-sizing: border-box; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}
h1, h2, h3 { color: var(--primary); line-height: 1.25; }
a { color: var(--secondary); }

/* ─── Nav ─────────────────────────────────────────────────────────────── */
.site-nav { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.site-nav-inner { max-width: 1120px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); font-weight: 700; font-size: 17px; }
.brand img { border-radius: 8px; }
.site-nav-links { display: flex; gap: 28px; flex-wrap: wrap; }
.site-nav-links a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav-links a:hover { color: var(--secondary); }
.btn-nav { padding: 10px 22px !important; font-size: 14px !important; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; border: none; background: transparent; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle-bar { display: block; width: 100%; height: 2px; background: var(--primary); border-radius: 2px; }
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav-links { display: none; flex-direction: column; width: 100%; gap: 4px; padding: 12px 0 4px; order: 3; }
  .site-nav-links.is-open { display: flex; }
}

/* ─── Buttons / pills ────────────────────────────────────────────────── */
.btn { display: inline-block; text-decoration: none; font-weight: 700; border-radius: var(--border-radius); padding: 14px 28px; border: none; cursor: pointer; transition: transform .15s; }
.btn:hover { transform: scale(1.02); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; }
.btn-secondary { background: linear-gradient(135deg, var(--secondary), #0090ad); color: white; }
.btn-lg { font-size: 18px; padding: 18px 40px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.15); color: inherit; border-radius: 999px; padding: 6px 16px; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.pill-outline { background: rgba(0,180,216,.1); color: var(--secondary); }
.tag-pill { background: rgba(0,180,216,.12); color: var(--secondary); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 12px; border-radius: 999px; }
.tag-pill-inverse { background: rgba(255,255,255,.15); color: white; }

/* ─── Layout helpers ─────────────────────────────────────────────────── */
.section { padding: 72px 20px; }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-inner.narrow { max-width: 760px; }
.section-dark { background: var(--primary); color: white; }
.section-dark h2 { color: white; }
.section-alt { background: var(--bg-alt); }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.section-lead { color: var(--muted); font-size: 18px; max-width: 640px; margin: 12px auto 0; }


/* ─── Stats bar ──────────────────────────────────────────────────────── */
.stats-bar { background: white; padding: 48px 20px; }
.stats-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 32px; text-align: center; }
@media (min-width: 700px) { .stats-inner { grid-template-columns: repeat(3, 1fr); } }
.stat-emoji { font-size: 32px; margin-bottom: 8px; }
.stat-value { font-size: 30px; font-weight: 800; color: var(--primary); }
.stat-label { color: var(--muted); font-weight: 500; }
.stat-source { font-size: 11px; color: #94a3b8; margin-top: 2px; }

/* ─── Card grids ─────────────────────────────────────────────────────── */
.cards-3, .cards-2 { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
@media (min-width: 700px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } .cards-2 { grid-template-columns: 1fr 1fr; } }
.card { background: white; border-radius: var(--border-radius); padding: 28px; box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.card-icon { font-size: 30px; margin-bottom: 14px; }
.step { position: relative; padding-top: 8px; }
.step h3 { color: white; }
.step-num { font-size: 44px; font-weight: 900; color: rgba(255,255,255,.25); position: absolute; top: -20px; left: 0; }
.step p { color: rgba(255,255,255,.85); }

/* ─── Author block ───────────────────────────────────────────────────── */
.author-block { display: flex; gap: 20px; background: white; border-radius: var(--border-radius); padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,.05); }
.author-avatar { font-size: 36px; flex-shrink: 0; }
.author-avatar-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-name { font-weight: 700; margin: 0; }
.author-title { color: var(--muted); font-size: 13px; margin: 0 0 10px; }

.disclaimer-block { background: white; border-radius: var(--border-radius); padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,.05); margin-top: 24px; }
.disclaimer-block p { color: var(--muted); font-size: 14px; margin: 0; }

/* ─── FAQ ─────────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.faq-item { background: white; border-radius: var(--border-radius); padding: 4px 24px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.faq-item summary { padding: 18px 0; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--secondary); font-weight: 900; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--muted); padding-bottom: 18px; margin: 0; }
.cta-emoji { font-size: 48px; margin-bottom: 12px; }

/* ─── Blog ───────────────────────────────────────────────────────────── */
.blog-list { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 700px) { .blog-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .blog-list { grid-template-columns: repeat(3, 1fr); } }
.blog-list .blog-card { display: flex; flex-direction: column; }
.blog-card { background: white; border-radius: var(--border-radius); padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,.06); text-decoration: none; color: inherit; display: block; overflow: hidden; }
.blog-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.1); }
.blog-card-image { width: calc(100% + 48px); margin: -24px -24px 20px; max-width: none; height: 220px; object-fit: cover; display: block; }
.blog-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.blog-card h2, .blog-card h3 { margin: 0 0 8px; }
.blog-card p { color: var(--muted); margin: 0; }
.blog-card-link { display: inline-block; margin-top: 12px; color: var(--secondary); font-weight: 600; font-size: 14px; }
.article-hero-image { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--border-radius); margin-bottom: 28px; }
.article-excerpt { font-size: 18px; color: var(--muted); border-left: 4px solid var(--secondary); padding-left: 18px; font-style: italic; margin-bottom: 32px; }
.article-source { font-size: 12px; color: #94a3b8; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 32px; }
.prose-blog h2 { font-size: 24px; margin-top: 36px; }
.prose-blog h3 { font-size: 19px; margin-top: 28px; }
.prose-blog p { color: var(--text); line-height: 1.7; margin-bottom: 16px; }
.prose-blog ul, .prose-blog ol { padding-left: 22px; margin-bottom: 20px; }
.prose-blog li { margin-bottom: 8px; }
.prose-blog strong { color: var(--primary); }
.prose-blog blockquote { border-left: 4px solid var(--secondary); padding-left: 16px; font-style: italic; color: var(--muted); margin: 24px 0; }
.prose-blog img { max-width: 100%; height: auto; display: block; border-radius: var(--border-radius); margin: 24px 0; }

/* ─── Footer ─────────────────────────────────────────────────────────── */
.site-footer { background: var(--bg-alt); padding: 48px 24px; margin-top: 40px; }
.site-footer-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 700px) { .site-footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-brand { color: var(--primary); font-weight: 700; text-decoration: none; display: block; margin-bottom: 8px; }
.site-footer p { color: var(--muted); font-size: 13px; margin: 4px 0; }
.footer-note { max-width: 420px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 700px) { .footer-links { align-items: flex-end; } }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 500; }
.footer-links a:hover { color: var(--primary); }

/* ─── Pages statiques (contact, mentions, etc.) ──────────────────────── */
.page-wrap { max-width: 720px; margin: 0 auto; padding: 48px 20px; }

.contact-form { display: flex; flex-direction: column; gap: 6px; margin: 24px 0; }
.contact-form label { font-weight: 600; font-size: 14px; margin-top: 10px; }
.contact-form input, .contact-form textarea {
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--border-radius);
  font-family: inherit; font-size: 15px; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--secondary); }
.contact-form button { align-self: flex-start; margin-top: 8px; }
.form-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; border-radius: var(--border-radius); padding: 16px 20px; }
.form-error { color: #dc2626; font-size: 14px; margin: 4px 0 0; }

/* === BEGIN thème généré (Codex, --apply-theme) === */
.hero {
  max-width: 1920px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  padding: 22px 42px 30px;
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--secondary) 14%, white) 0%, transparent 34%),
    radial-gradient(circle at 80% 24%, color-mix(in srgb, var(--secondary) 20%, white) 0%, transparent 30%),
    linear-gradient(180deg, color-mix(in srgb, var(--secondary) 8%, white) 0%, white 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 10px 12px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--secondary) 35%, white), transparent);
  opacity: 0.9;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 120px;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--secondary) 70%, white);
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--secondary) 20%, white);
}

.hero,
.hero * {
  box-sizing: border-box;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: 24px;
  padding: 48px 50px;
  border: 1px solid color-mix(in srgb, var(--secondary) 18%, white);
  border-radius: calc(var(--border-radius) * 2);
  background:
    radial-gradient(circle at 28% 40%, color-mix(in srgb, var(--secondary) 10%, white) 0%, transparent 42%),
    linear-gradient(135deg, color-mix(in srgb, var(--secondary) 8%, white) 0%, white 58%, color-mix(in srgb, var(--secondary) 6%, white) 100%);
  box-shadow:
    0 24px 70px color-mix(in srgb, var(--primary) 10%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 690px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.hero-copy::before {
  content: "Palette trending 3";
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--secondary) 26%, white);
  background: color-mix(in srgb, var(--secondary) 10%, white);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(2.55rem, 3.9vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 800;
  text-wrap: balance;
  max-width: 12ch;
}

.hero-copy .btn {
  min-width: 248px;
}

.hero-copy .btn.btn-secondary.btn-lg {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 26px;
  border: 0;
  border-radius: calc(var(--border-radius) + 4px);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--secondary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  box-shadow:
    0 16px 36px color-mix(in srgb, var(--primary) 20%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.hero-copy .btn.btn-secondary.btn-lg::after {
  content: "→";
  font-size: 1.5rem;
  line-height: 1;
  transform: translateY(-1px);
}

.hero-copy .btn.btn-secondary.btn-lg:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 42px color-mix(in srgb, var(--primary) 26%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  filter: saturate(1.05);
}

.hero-visual {
  position: relative;
  min-height: 100%;
  align-self: stretch;
  border-radius: calc(var(--border-radius) * 1.5);
  overflow: hidden;
  background:
    radial-gradient(circle at 67% 28%, color-mix(in srgb, var(--secondary) 68%, white) 0 17%, transparent 18%),
    radial-gradient(circle at 22% 68%, color-mix(in srgb, var(--secondary) 34%, white) 0 10%, transparent 11%),
    linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--secondary) 10%, white) 100%);
}

.hero-art {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}

.hero-art::before,
.hero-art::after,
.hero-brush,
.hero-brush-thin,
.hero-sun,
.hero-etch,
.hero-lines,
.hero-arc {
  position: absolute;
  pointer-events: none;
}

.hero-art::before {
  content: "";
  width: 92%;
  height: 120px;
  right: -14%;
  top: 37%;
  border-radius: 999px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 18%, white), color-mix(in srgb, var(--primary) 4%, white)),
    repeating-linear-gradient(100deg, transparent 0 10px, rgba(255,255,255,0.06) 10px 13px);
  transform: rotate(-16deg);
  opacity: 0.98;
  box-shadow: 0 24px 36px color-mix(in srgb, var(--primary) 8%, transparent);
}

.hero-art::after {
  content: "";
  width: 28%;
  height: 58%;
  left: 42%;
  top: 12%;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 86%, white), color-mix(in srgb, var(--primary-dark) 100%, white));
  clip-path: polygon(18% 0%, 86% 0%, 100% 94%, 8% 100%, 0% 14%);
  box-shadow: 14px 16px 26px color-mix(in srgb, var(--primary) 12%, transparent);
  opacity: 0.96;
}

.hero-brush {
  content: "";
  width: 62%;
  height: 80px;
  left: 6%;
  bottom: 20%;
  border-radius: 999px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 12%, white), color-mix(in srgb, var(--primary) 4%, white));
  transform: rotate(-9deg);
  opacity: 0.88;
}

.hero-brush-thin {
  width: 52%;
  height: 3px;
  left: 23%;
  top: 56%;
  background: color-mix(in srgb, var(--primary) 55%, white);
  transform: rotate(-20deg);
  opacity: 0.65;
}

.hero-sun {
  width: 36%;
  aspect-ratio: 1;
  right: 8%;
  top: -2%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--secondary) 68%, white) 0%, color-mix(in srgb, var(--secondary) 50%, white) 70%, transparent 71%);
  opacity: 0.78;
}

.hero-etch {
  width: 42%;
  height: 46%;
  left: 46%;
  bottom: 2%;
  background:
    repeating-linear-gradient(83deg, color-mix(in srgb, var(--primary) 56%, transparent) 0 2px, transparent 2px 8px),
    repeating-linear-gradient(170deg, color-mix(in srgb, var(--secondary) 42%, transparent) 0 1px, transparent 1px 11px);
  opacity: 0.55;
  transform: rotate(-8deg);
}

.hero-lines {
  width: 38%;
  height: 28%;
  right: 0;
  top: 0;
  background:
    repeating-linear-gradient(168deg, color-mix(in srgb, var(--primary) 24%, transparent) 0 2px, transparent 2px 7px);
  opacity: 0.34;
  transform: rotate(8deg);
}

.hero-arc {
  width: 180px;
  height: 180px;
  right: 6%;
  bottom: 10%;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--secondary) 72%, transparent);
  border-left-color: transparent;
  border-bottom-color: transparent;
  opacity: 0.5;
  transform: rotate(8deg);
}

@media (max-width: 980px) {
  .hero {
    padding-inline: 20px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 18px;
    padding: 32px 28px 24px;
  }

  .hero-copy h1 {
    max-width: 14ch;
  }

  .hero-visual {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 14px 14px 20px;
  }

  .hero::before {
    inset: 6px 8px auto;
  }

  .hero-inner {
    padding: 22px 18px 18px;
    border-radius: calc(var(--border-radius) + 10px);
    gap: 20px;
  }

  .hero-copy {
    gap: 20px;
  }

  .hero-copy::before {
    padding: 8px 12px;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.08;
    max-width: none;
  }

  .hero-copy .btn.btn-secondary.btn-lg {
    width: 100%;
    min-width: 0;
    padding: 16px 20px;
    font-size: 1rem;
  }

  .hero-visual {
    min-height: 220px;
    order: 2;
  }

  .hero-art::before {
    width: 118%;
    height: 72px;
    right: -28%;
    top: 45%;
  }

  .hero-art::after {
    width: 34%;
    height: 52%;
    left: 48%;
    top: 14%;
  }

  .hero-sun {
    width: 34%;
    right: 10%;
    top: 2%;
  }

  .hero-etch {
    width: 46%;
    height: 40%;
    left: 48%;
    bottom: 5%;
  }

  .hero-arc {
    width: 110px;
    height: 110px;
    right: 8%;
    bottom: 12%;
  }
}
/* === END thème généré (Codex) === */

/* ─── CTA capture email (fin d'article, cta_variants.py type="email_capture") ────────── */
.cta-email-form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 24px auto 0; max-width: 480px; }
.cta-email-form input[type="email"] {
  flex: 1 1 220px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--border-radius);
  font-family: inherit; font-size: 15px;
}
.cta-email-form input[type="email"]:focus { outline: none; border-color: var(--secondary); }
