/* Feuille de style autonome des guides SEO. Volontairement séparée du bundle de l'application : ces
   pages sont des fichiers statiques servis directement par Cloudflare Pages, elles ne peuvent pas
   charger le CSS hashé produit par Vite. Les valeurs reprennent celles de src/styles/theme.css et
   src/components/landing/landing.css pour que le rendu reste à la charte. */

:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --surface-3: #eef0f6;
  --border: #e6e8ef;
  --border-strong: #d1d5e0;
  --text: #0c1430;
  --text-muted: #6b7390;
  --text-soft: #94a0bd;
  --accent: #2a55d6;
  --accent-soft: #eef4ff;
  --accent-fg: #ffffff;
  --warn: #c9821a;
  --warn-soft: #fdf3df;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 31, 77, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 31, 77, 0.12), 0 2px 6px rgba(15, 31, 77, 0.06);
  --measure: 720px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 20px; }

/* — En-tête — */
.guide-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.guide-header .wrap {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.guide-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.guide-brand:hover { text-decoration: none; }
.guide-brand img { width: 28px; height: 28px; border-radius: 8px; }
.guide-brand strong { font-weight: 800; }
.guide-header-cta {
  background: var(--accent);
  color: var(--accent-fg);
  padding: 9px 16px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.guide-header-cta:hover { text-decoration: none; filter: brightness(1.06); }

/* — Fil d'ariane — */
.breadcrumb { font-size: 14px; color: var(--text-soft); padding: 20px 0 0; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb span { padding: 0 6px; }

/* — Titre — */
.guide-title { padding: 18px 0 8px; }
.guide-title h1 { font-size: 34px; line-height: 1.2; margin: 0 0 14px; letter-spacing: -0.02em; }
.guide-lead { font-size: 19px; color: var(--text-muted); margin: 0; }
.guide-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}
.guide-meta img { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; background: var(--surface); }
.pill {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 600;
  font-size: 13px;
}

/* — Sections — */
main { padding-bottom: 56px; }
section { margin: 40px 0; }
h2 { font-size: 24px; line-height: 1.3; margin: 0 0 14px; letter-spacing: -0.01em; }
h3 { font-size: 18px; margin: 0 0 8px; }
p { margin: 0 0 14px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.card > :last-child { margin-bottom: 0; }

.card-warn { background: var(--warn-soft); border-color: #f0dcae; }
.card-warn h2 { color: #8a5a08; }

ul.checks, ul.gaps { list-style: none; padding: 0; margin: 0; }
ul.checks li, ul.gaps li {
  position: relative;
  padding: 8px 0 8px 30px;
  border-bottom: 1px solid var(--border);
}
ul.checks li:last-child, ul.gaps li:last-child { border-bottom: 0; }
ul.checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
}
ul.gaps li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 21px;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--border-strong);
}

/* — Vidéo — */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-3);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { font-size: 14px; color: var(--text-soft); margin: 10px 0 0; }

/* — Appel à l'action — */
.cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--text-muted); }
.cta-button {
  display: inline-block;
  margin-top: 6px;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 700;
  font-size: 17px;
  padding: 14px 26px;
  border-radius: var(--r-md);
  box-shadow: 0 8px 24px rgba(42, 85, 214, 0.2);
}
.cta-button:hover { text-decoration: none; filter: brightness(1.06); }
.cta-trust { font-size: 14px; color: var(--text-soft); margin: 14px 0 0; }

/* — Questions — */
.qa { border-top: 1px solid var(--border); padding: 16px 0; }
.qa:last-of-type { border-bottom: 1px solid var(--border); }
.qa h3 { margin-bottom: 6px; }
.qa p { color: var(--text-muted); margin: 0; }

/* — Autres guides — */
.bank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.bank-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  transition: border-color .16s, transform .16s;
}
.bank-card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.bank-card img { width: 30px; height: 30px; object-fit: contain; border-radius: 7px; }
.bank-card small { display: block; color: var(--text-soft); font-weight: 400; font-size: 13px; }

/* — Pied de page — */
.guide-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.guide-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; justify-content: space-between; }
.guide-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .guide-title h1 { font-size: 27px; }
  h2 { font-size: 21px; }
  .guide-lead { font-size: 17px; }
  .card, .cta { padding: 20px 18px; }
  .guide-header-cta { padding: 8px 13px; font-size: 14px; }
  /* Sans cette contrainte le nom de marque passe sur deux lignes dès que le bouton occupe la
     largeur restante, et l'en-tête grandit de 20 px sur toutes les pages. */
  .guide-brand { font-size: 15px; }
  .guide-brand span { white-space: nowrap; }
  .guide-brand img { width: 24px; height: 24px; }
}
