/* TheoRoute — identité « la route jaune » : papier chaud, encre, bleu roi, ruban jaune. */
@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit-latin-800-normal.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --bg: #faf8f2; --surface: #fff; --ink: #1e2530; --muted: #5d6472;
  --line: #e9e4d6; --accent: #1d4ed8; --accent-dark: #1a3fae; --accent-soft: #e8effd;
  --yellow: #f7c600; --yellow-soft: #fdf3cc; --ok: #1a7f37;
  --asphalt: #242a38; --radius: 14px;
  --display: 'Outfit', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; }
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }

header.site { background: rgba(250, 248, 242, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
header.site .wrap { display: flex; align-items: center; gap: 1rem; padding-top: 0.65rem; padding-bottom: 0.65rem; }
.brand { display: flex; align-items: center; gap: 0.55rem; font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
nav.main { margin-left: auto; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
nav.main a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
nav.main a:hover { color: var(--accent); }
.pill { background: var(--accent); color: #fff !important; padding: 0.5rem 1.05rem; border-radius: 999px; font-family: var(--display); transition: transform 0.15s, background 0.15s; }
.pill:hover { background: var(--accent-dark); transform: translateY(-1px); }
.langlink { border: 1.5px solid var(--line); border-radius: 8px; padding: 0.3rem 0.6rem; font-size: 0.85rem !important; background: var(--surface); }

/* ---------- hero ---------- */
.hero { padding: 3.5rem 0 3rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.08; margin: 0 0 1.1rem; }
.hero h1 mark { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); color: inherit; padding: 0 0.1em; }
.hero .sub { color: var(--muted); font-size: 1.1rem; max-width: 54ch; margin: 0 0 1.75rem; }
.herobtns { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.btn { display: inline-block; font-family: var(--display); font-weight: 700; text-decoration: none; padding: 0.85rem 1.7rem; border-radius: 14px; font-size: 1.02rem; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 5px 16px rgba(29, 78, 216, 0.28); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { color: var(--accent-dark); border: 1.5px solid var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
.trust { display: flex; gap: 1.25rem 1.5rem; flex-wrap: wrap; margin-top: 1.6rem; color: var(--muted); font-size: 0.9rem; }
.trust span::before { content: '✓ '; color: var(--ok); font-weight: 800; }
.hero-art { margin: 0; }
.hero-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 12px 28px rgba(30, 37, 48, 0.16)); }
.roadline { animation: roaddash 5s linear infinite; }
@keyframes roaddash { to { stroke-dashoffset: -104; } }
@media (prefers-reduced-motion: reduce) { .roadline { animation: none; } }

/* ---------- sections ---------- */
section.block { padding: 3rem 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2.title { font-size: 1.8rem; text-align: center; margin: 0 0 0.5rem; }
h2.title::before {
  content: ''; display: block; width: 128px; height: 4px; margin: 0 auto 1.1rem;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 18px, transparent 18px 30px);
  border-radius: 2px;
}
p.subtitle { text-align: center; color: var(--muted); margin: 0 auto 2.25rem; max-width: 60ch; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.feature {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.4rem;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--yellow); box-shadow: 0 10px 24px rgba(30, 37, 48, 0.08); }
section.alt .feature { background: var(--bg); }
.feature h3 { margin: 0.65rem 0 0.4rem; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.fico {
  width: 46px; height: 46px; border-radius: 13px; background: var(--yellow-soft);
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
}

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.step { position: relative; padding: 1.2rem 1.2rem 1.2rem 3.4rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1rem; top: 1.1rem;
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--yellow); color: #4a3b00; font-family: var(--display); font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

table.bareme { border-collapse: collapse; margin: 0 auto; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(30,37,48,.07); }
table.bareme th, table.bareme td { padding: 0.7rem 1.2rem; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.95rem; }
table.bareme th { background: var(--accent); color: #fff; font-family: var(--display); }
table.bareme tr:last-child td { border-bottom: none; }

.pricebox {
  position: relative; max-width: 470px; margin: 0 auto; background: var(--surface);
  border: 2px solid var(--accent); border-radius: 18px; padding: 2rem; text-align: center; overflow: hidden;
}
.pricebox::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 7px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 22px, var(--asphalt) 22px 34px);
}
.pricenow { display: inline-block; background: #e6f4ea; color: var(--ok); font-weight: 800; font-family: var(--display); border-radius: 999px; padding: 0.3rem 0.95rem; font-size: 0.9rem; }
.price { font-family: var(--display); font-size: 2.7rem; font-weight: 800; margin: 0.7rem 0 0.15rem; letter-spacing: -0.02em; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.guarantee { background: var(--yellow-soft); border-radius: 10px; padding: 0.75rem 1rem; font-size: 0.92rem; margin-top: 1rem; }
.pricebox ul { text-align: left; padding-left: 1.2rem; color: var(--muted); font-size: 0.94rem; }

details.faq { background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 0.9rem 1.2rem; margin-bottom: 0.6rem; }
details.faq[open] { border-color: var(--yellow); }
details.faq summary { font-weight: 700; cursor: pointer; font-family: var(--display); }
details.faq p { color: var(--muted); font-size: 0.95rem; }

/* ---------- pied de page « asphalte » ---------- */
footer.site {
  background: var(--asphalt); color: #cdd3df; padding: 2.5rem 0 2.75rem; margin-top: 3.5rem;
  border-top: 7px solid transparent;
  border-image: repeating-linear-gradient(90deg, var(--yellow) 0 22px, var(--asphalt) 22px 34px) 7;
}
footer.site .cols { display: flex; gap: 2.5rem; flex-wrap: wrap; justify-content: space-between; }
footer.site h4 { margin: 0 0 0.6rem; font-size: 0.95rem; color: #fff; }
footer.site a { display: block; color: #aab3c5; text-decoration: none; font-size: 0.88rem; margin-bottom: 0.35rem; }
footer.site a:hover { color: var(--yellow); }
.disclaimer { color: #8b93a5; font-size: 0.8rem; max-width: 75ch; margin: 2rem auto 0; text-align: center; }

/* ---------- pages articles (guides, légal) ---------- */
main.article { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 2.25rem; margin: 2rem auto 3rem; }
main.article h1 { font-size: 1.8rem; margin-top: 0; }
main.article h2 { font-size: 1.25rem; margin-top: 2rem; color: var(--accent-dark); }
main.article p, main.article li { font-size: 0.98rem; }
main.article .updated { color: var(--muted); font-size: 0.85rem; }
.notice { background: var(--yellow-soft); border-radius: 10px; padding: 0.9rem 1.1rem; font-size: 0.93rem; }
.back { display: inline-block; margin: 1.25rem 0 0; font-weight: 600; text-decoration: none; }

@media (max-width: 820px) {
  .hero { padding: 2.25rem 0 2rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-art { max-width: 380px; margin: 0 auto; }
  main.article { padding: 1.4rem; }
}
