/* PrimoZayn — feuille de style
   Direction : bandeaux bleu nuit pleine largeur (en-tête, accroche, pied de page),
   titres en serif élégant, corps en Atkinson Hyperlegible, filet doré en accent.
   Contrastes vérifiés AA : texte ≥ 4,5:1 dans les deux thèmes et sur les bandeaux sombres. */
:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --fg: #101934;
  --muted: #4a536d;
  --line: #dcdfe6;
  --brand: #0e1a3a;
  --brand-fg: #ffffff;
  --link: #1f3f8f;
  --accent: #8a6418;
  --focus: #ffc928;
  --ok: #1d6b45;
  --err: #a1261b;
  --night: #0e1a3a;
  --hero-bg: #eef2fb;
  --night-2: #17254b;
  --display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --s1: .875rem; --s3: 1.25rem; --s4: clamp(2rem, 4vw, 2.75rem); --s5: clamp(2.75rem, 7vw, 5rem);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1020; --surface: #131a30; --fg: #eef1f8; --muted: #b3bcd2; --line: #283253;
    --brand: #e8edf9; --brand-fg: #0e1a3a; --link: #b9caff; --accent: #e8c77a; --focus: #ffd75e;
    --ok: #6fd3a0; --err: #ff9a8f; --night: #0e1730; --night-2: #172243; --hero-bg: #111a33;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1020; --surface: #131a30; --fg: #eef1f8; --muted: #b3bcd2; --line: #283253;
  --brand: #e8edf9; --brand-fg: #0e1a3a; --link: #b9caff; --accent: #e8c77a; --focus: #ffd75e;
  --ok: #6fd3a0; --err: #ff9a8f; --night: #0e1730; --night-2: #172243; --hero-bg: #111a33;
  color-scheme: dark;
}
/* Bandeaux sombres : les couleurs sont redéfinies localement, le focus reste visible */
.on-dark {
  --fg: #f4f6fb; --muted: #c2cbe2; --line: #4b5b86; --link: #c9d6ff; --accent: #e8c77a;
  --brand: #f4f6fb; --brand-fg: #0e1a3a; --surface: var(--night-2);
  background: var(--night); color: var(--fg);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 1.0625rem; line-height: 1.7; }
img { max-width: 100%; height: auto; }

a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: .07em; }
a:hover { text-decoration-thickness: .15em; }
:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; box-shadow: 0 0 0 7px var(--focus); border-radius: 4px; }

.wrap { width: 100%; max-width: 74rem; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.prose { max-width: 42rem; }

.hp { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 20; background: var(--focus); color: #101934; padding: .7rem 1rem; border-radius: 6px; font-weight: 700; }
.skip:focus { top: 1rem; }

h1, h2, h3 { line-height: 1.12; text-wrap: balance; margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; }
h1 { font-size: var(--s5); }
h1 em, h2 em { color: var(--accent); }
h2 { font-size: var(--s4); }
h3 { font-size: var(--s3); font-weight: 700; }
p { margin: 0; }
/* Césure automatique en français, limitée aux mots longs (10 lettres et plus) pour un bord droit plus régulier.
   Pas de césure sur les titres, boutons, libellés et coordonnées. */
main p, main li, .faq details > div p { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 4 4; }
.label, .btn, .badge, .direct dd, .price, h1, h2, h3, summary, label { -webkit-hyphens: manual; hyphens: manual; }
.label { font-family: var(--mono); font-size: var(--s1); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* En-tête */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.25rem; }
.site-header { border-bottom: 1px solid var(--line); }
.brand { text-transform: uppercase; font-weight: 800; font-size: 1.2rem; letter-spacing: .14em; color: var(--fg); text-decoration: none; }
.brand span { color: var(--accent); }
.site-header nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; margin: 0; padding: 0; }
.site-header nav a { color: var(--fg); font-weight: 700; text-decoration: none; padding-block: .4rem; display: inline-block; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .75rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid var(--brand); cursor: pointer; font-family: inherit; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-fg); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.actions.spaced { margin-top: 2.5rem; }

/* Sections */
section { padding-block: clamp(4rem, 10vw, 7rem); }
main > section + section:not(.on-dark) { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: .9rem; margin-bottom: 3rem; max-width: 44rem; }
.section-head > p:not(.label) { color: var(--muted); font-size: 1.125rem; }

/* Accroche */
/* Variante A : accroche claire et lumineuse, carte de garanties posée dessus */
.hero { background: var(--hero-bg); padding-block: clamp(3.5rem, 9vw, 7rem) clamp(4rem, 10vw, 7.5rem); }
.site-header { background: var(--surface); }
.hero .label { font-size: .8rem; letter-spacing: .06em; }
@media (min-width: 1000px) { .hero .label { white-space: nowrap; } }
.hero .checklist { box-shadow: 0 24px 48px -28px rgba(14, 26, 58, .35); }
.badge { justify-self: start; display: inline-flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .45rem 1rem .45rem .45rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--accent); color: var(--fg); font-weight: 700; font-size: .95rem; text-decoration: none; }
.badge:hover { border-color: var(--fg); }
.badge-tag { background: var(--accent); color: var(--bg); border-radius: 999px; padding: .15rem .65rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
/* Carte claire posée sur le dégradé : même rendu dans les deux thèmes */
.hero .checklist { --fg: #101934; --muted: #4a536d; --accent: #8a6418; --line: #dcdfe6;
  background: #ffffff; color: var(--fg); border-color: transparent;
  box-shadow: 0 30px 60px -30px rgba(5, 12, 35, .6); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.hero-text { display: grid; gap: 1.6rem; }
.hero-text > p:not(.label) { font-size: var(--s3); color: var(--muted); max-width: 36rem; }
.checklist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; display: grid; gap: 1.1rem; }
.checklist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.checklist li { display: grid; grid-template-columns: 1.75rem 1fr; gap: .6rem; align-items: start; }
.checklist li::before { content: "✓"; content: "✓" / ""; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-size: .85rem; font-weight: 800; margin-top: .1rem; }
.checklist .ref { font-family: var(--mono); font-size: var(--s1); color: var(--muted); display: block; }

/* Grilles */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.point { display: grid; gap: .7rem; align-content: start; padding-top: 1.25rem; border-top: 1px solid var(--accent); }
.point p { color: var(--muted); }

.offers { align-items: stretch; }
.offers-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 760px) { .offers-2 { grid-template-columns: 1fr; } }
.offer-group { font-family: var(--mono); font-size: var(--s1); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.25rem; }
.offers + .offer-group { margin-top: 3.5rem; }
.offer h4 { font-size: var(--s3); line-height: 1.2; margin: 0; text-wrap: balance; }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: grid; gap: 1.1rem; grid-template-rows: auto auto 1fr auto; }
.offer.on-dark { border-color: var(--night); box-shadow: 0 24px 48px -24px rgba(14, 26, 58, .45); }
.price { font-family: var(--display); font-size: 2.4rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--font); font-size: var(--s1); color: var(--muted); display: block; margin-top: .4rem; line-height: 1.5; }
.offer ul { margin: 0; padding: 1rem 0 0; list-style: none; display: grid; gap: .5rem; border-top: 1px solid var(--line); }
.offer li { padding-left: 1.2rem; position: relative; }
.offer li::before { content: ""; position: absolute; left: 0; top: .7em; width: .45rem; height: 1px; background: var(--accent); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: .6rem; align-content: start; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--accent); }
.steps p { color: var(--muted); }

.testimonial { display: grid; gap: 1.5rem; max-width: 52rem; }
blockquote { margin: 0; display: grid; gap: 1.25rem; }
blockquote p { font-family: var(--display); font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.25; }
blockquote p::before { content: "« "; color: var(--accent); } blockquote p::after { content: " »"; color: var(--accent); }
blockquote footer { font-size: 1rem; color: var(--muted); }

.faq { display: grid; max-width: 50rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.25rem 0; font-weight: 700; font-size: 1.125rem; list-style-position: outside; }
.faq details > div { padding: 0 0 1.4rem; display: grid; gap: .6rem; color: var(--muted); max-width: 42rem; }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); }
form { display: grid; gap: 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.25rem); }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; }
.hint { font-size: var(--s1); color: var(--muted); }
input, select, textarea { font: inherit; color: var(--fg); background: var(--bg); border: 2px solid var(--muted); border-radius: 10px; padding: .75rem .9rem; width: 100%; min-height: 50px; }
textarea { min-height: 9rem; resize: vertical; }
[aria-invalid="true"] { border-color: var(--err); }
.error { color: var(--err); font-weight: 700; font-size: var(--s1); }
.status { padding: 1rem; border-radius: 10px; border: 2px solid currentColor; font-weight: 700; }
.status.ok { color: var(--ok); } .status.ko { color: var(--err); }
.direct { display: grid; gap: 1.5rem; align-content: start; }
.direct h3 { font-family: var(--display); font-weight: 400; font-size: 1.9rem; }
.direct dl { margin: 0; display: grid; gap: 1.25rem; }
.direct dl > div { padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.direct dt { font-family: var(--mono); font-size: var(--s1); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 700; }
.direct dd { margin: 0; font-size: var(--s3); font-weight: 700; overflow-wrap: anywhere; }

/* Pied de page */
.site-footer .wrap { padding-block: 2.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }

/* Pages légales */
.legal { padding-block: 3.5rem 6rem; }
.legal .prose { display: grid; gap: 1.1rem; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.legal h2 { margin-top: 1.75rem; font-size: 1.9rem; }
.legal ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.todo { background: var(--focus); color: #101934; padding: 0 .25rem; border-radius: 3px; }

@media (max-width: 860px) {
  .hero .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ===== Affichage sur téléphone ===== */
.menu-btn { display: none; }
@media (max-width: 700px) {
  .js-menu .menu-btn { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1.1rem; border: 2px solid var(--fg); border-radius: 999px; background: transparent; color: var(--fg); font: 700 1rem var(--font); cursor: pointer; }
  .js-menu .site-header nav { flex-basis: 100%; }
  .js-menu .site-header nav ul:not(.is-open) { display: none; }
  .js-menu .site-header nav ul.is-open { flex-direction: column; gap: 0; border-top: 1px solid var(--line); padding-top: .5rem; }
  .js-menu .site-header nav ul.is-open a { display: block; padding-block: .75rem; font-size: 1.125rem; border-bottom: 0; }
  .site-header .wrap { padding-block: .9rem; }

  body { font-size: 1rem; }
  section { padding-block: 3rem; }
  .section-head { margin-bottom: 2rem; gap: .7rem; }
  .section-head > p:not(.label) { font-size: 1rem; }
  .label, .offer-group { font-size: .75rem; letter-spacing: .08em; }

  .hero { padding-block: 2rem 3rem; }
  .hero-text { gap: 1.2rem; }
  .hero h1 { font-size: 2.6rem; }
  .hero-text > p:not(.label) { font-size: 1.0625rem; }
  .badge { flex-direction: column; align-items: flex-start; border-radius: 14px; font-size: .95rem; padding: .7rem .9rem; gap: .4rem; }
  .badge > span[aria-hidden] { display: none; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }
  .hero .wrap { gap: 2rem; }
  .checklist { padding: 1.25rem; }
  .checklist .ref { display: none; }
  .checklist li { align-items: center; }

  .grid-3, .offers-2 { gap: 1.25rem; }
  .point { padding-top: 1rem; }
  .offer { padding: 1.4rem; gap: .9rem; }
  .price { font-size: 2rem; }
  .offers + .offer-group { margin-top: 2.5rem; }

  .steps { gap: 1.5rem; }
  .steps li { grid-template-columns: 3rem 1fr; column-gap: 1rem; row-gap: .3rem; }
  .steps li::before { grid-row: span 2; font-size: 2.4rem; }

  .faq summary { font-size: 1rem; padding: 1rem 0; }
  .contact .wrap { gap: 2.5rem; }
  .direct h3 { font-size: 1.6rem; }
  .direct dd { font-size: 1.05rem; }
  .site-footer ul { flex-direction: column; gap: .6rem; }
}
