:root {
  --bg: #fbfaf7;
  --ink: #1b1f2a;
  --muted: #5b6273;
  --line: #e6e2d8;
  --card: #ffffff;
  --blue: #1d4ed8;
  --blue-d: #1e3a8a;
  --blue-l: #eef2ff;
  --yellow: #fde68a;
  --green: #15803d;
  --red: #b91c1c;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--blue); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
section { padding: 72px 0; }
.sub { color: var(--muted); margin-top: -.3em; }

/* Boutons */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 10px;
  border: 2px solid var(--blue);
  cursor: pointer;
  font-size: 1rem;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--blue-d); border-color: var(--blue-d); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue-l); color: var(--blue-d); }
.btn-small { padding: 8px 14px; font-size: .92rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }

/* En-tête */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 250, 247, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.08rem; white-space: nowrap; }
.logo-pi {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--blue); color: #fff;
  font-family: Georgia, serif; margin-right: 6px;
}
nav { display: flex; align-items: center; gap: 22px; }
nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .96rem; }
nav a:not(.btn):hover { color: var(--blue); }

/* Accroche */
.hero { padding: 64px 0 80px; }
.hero-in { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.kicker { color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.lead { font-size: 1.15rem; color: #333a4a; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checks li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 10px; }

.hero-card { transform: rotate(1.5deg); }
.board {
  background: #213a2f;
  color: #f4f1e8;
  border: 10px solid #8a6a43;
  border-radius: 10px;
  padding: 26px 28px;
  font-family: "Comic Sans MS", "Chalkboard SE", "Segoe Print", cursive;
  font-size: 1.2rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}
.board p { margin: 0 0 .5em; }
.board-res { color: var(--yellow); margin-top: .8em !important; }
.hero-card-note { text-align: center; margin-top: 18px; font-style: italic; }
.hero-card-note span { color: var(--muted); font-size: .9rem; font-style: normal; }

/* Niveaux */
.levels { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 860px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; color: #3b4252; }

/* Déroulé */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-l); color: var(--blue);
  display: grid; place-items: center; font-weight: 700;
}

/* Tarifs */
.pricing { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  background: var(--bg);
  display: flex; flex-direction: column;
}
.price-hl { border: 2px solid var(--blue); background: var(--blue-l); }
.badge {
  position: absolute; top: -13px; left: 24px;
  background: var(--blue); color: #fff;
  font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px;
}
.amount { font-size: 2.6rem; font-weight: 800; margin: 0 0 .3em; letter-spacing: -.02em; }
.amount span { font-size: 1rem; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.price ul { padding-left: 1.1em; margin: 0 0 24px; flex: 1; }
.price li { margin-bottom: 6px; }
.price .btn { text-align: center; }

/* Duo */
.duo-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.duo-calc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 10px 30px rgba(0, 0, 0, .05); }
.duo-calc-t { color: var(--muted); font-size: .92rem; }
.duo-calc .row { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); font-size: 1.1rem; }
.duo-calc .row.hl strong { color: var(--green); }
.duo-calc-n { margin: 12px 0 0; font-weight: 600; color: var(--green); }

/* FAQ */
.faq { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 30px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 1.4rem; color: var(--blue); }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; color: #3b4252; }

/* Formulaire */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
input, select, textarea {
  font: inherit; font-weight: 400;
  padding: 11px 12px;
  border: 1px solid #cfcabe; border-radius: 9px;
  background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px 14px; margin: 0; display: grid; gap: 8px; }
legend { font-weight: 600; font-size: .95rem; padding: 0 6px; }
.radio { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.radio input { width: auto; }
.opt { color: var(--muted); font-weight: 400; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; font-weight: 600; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: var(--red); }
.small { font-size: .85rem; color: var(--muted); margin: 0; }

/* Pied de page */
.foot { padding: 28px 0; color: var(--muted); font-size: .92rem; }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.foot p { margin: 0; }
.foot a { color: var(--muted); }

/* Page texte (mentions légales) */
.page { padding: 48px 0 72px; }
.page h2 { font-size: 1.25rem; margin-top: 1.6em; }

/* Mobile */
@media (max-width: 860px) {
  section { padding: 56px 0; }
  .hero-in, .duo-in { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { max-width: 420px; }
  .grid3, .grid2, .steps { grid-template-columns: 1fr; }
  nav a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .f2 { grid-template-columns: 1fr; }
  .form { padding: 20px; }
  .logo { font-size: 1rem; }
}
