/* assurance-taxi-pas-cher.fr — v2 « clean fintech assurance » (inspiration Orus × Insify)
   Blanc · ivoire #F6F1E7 · encre #111014 · jaune taxi raffiné #FFC531 */
:root {
  --white: #FFFFFF;
  --ivory: #F6F1E7;
  --ivory-deep: #EDE5D4;
  --ink: #111014;
  --ink-soft: #55524B;
  --yellow: #FFC531;
  --yellow-deep: #EBAD0F;
  --line: #E7E1D2;
  --radius: 20px;
  --display: "Schibsted Grotesk", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  font-family: var(--body);
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(17, 16, 20, 0.18); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-small { font-size: 0.88rem; padding: 0.6rem 1.2rem; }

/* ── Header ──────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-in {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); }

.brand-mark {
  width: 26px; height: 26px; flex: none;
  background: var(--ink);
  border-radius: 7px;
  position: relative;
}
.brand-mark i {
  position: absolute; width: 8px; height: 8px; border-radius: 2px; background: var(--yellow);
}
.brand-mark i:first-child { top: 5px; left: 5px; }
.brand-mark i:last-child { bottom: 5px; right: 5px; }

.brand-txt { font-family: var(--display); font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; }
.brand-txt .tld { color: var(--yellow-deep); }

.site-nav { display: flex; gap: 0.1rem; margin-left: auto; flex-wrap: wrap; }

.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
}
.site-nav a:hover { background: var(--ivory); color: var(--ink); }
.site-nav a.active { background: var(--ink); color: var(--white); }

.header-cta {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.header-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(235, 173, 15, 0.4); }

/* ── Hero home ───────────────────────────────────── */
.hero-card {
  margin: 1.6rem 0 0.6rem;
  background: var(--ivory);
  border-radius: calc(var(--radius) + 8px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 3rem;
  overflow: hidden;
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.2rem;
  color: var(--ink-soft);
}

.hero-card h1, .page-head h1 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.06;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
}

.hero-sub {
  margin-top: 1.1rem;
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions { margin-top: 1.7rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.hero-hint { font-size: 0.86rem; color: var(--ink-soft); }

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(17, 16, 20, 0.22);
}

/* ── Head pages internes ─────────────────────────── */
.page-head { padding: 2.4rem 0 0.6rem; max-width: 780px; }

.crumb { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 0.9rem; }
.crumb a { color: var(--ink-soft); text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.crumb span { margin: 0 0.35rem; color: var(--yellow-deep); }

/* ── Layout article + sommaire ───────────────────── */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 300px;
  gap: 3.4rem;
  justify-content: start;
  padding-top: 1.6rem;
  padding-bottom: 2rem;
}

.prose { min-width: 0; }

.prose h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  line-height: 1.2;
  margin: 2.6rem 0 0.9rem;
  scroll-margin-top: 90px;
}

.prose h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
  margin: 1.8rem 0 0.55rem;
}

.prose p { margin: 0 0 1.1rem; }

.prose a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2.5px;
  text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: var(--ink); }

.prose ul, .prose ol { margin: 0 0 1.25rem 1.35rem; }
.prose li { margin-bottom: 0.5rem; padding-left: 0.2rem; }
.prose ul li::marker { color: var(--yellow-deep); }
.prose ol li::marker { font-weight: 700; color: var(--yellow-deep); }

/* ── Tableaux ────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table { width: 100%; border-collapse: collapse; font-size: 0.96rem; background: var(--white); }

thead th {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: left;
  background: var(--ivory);
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
}

tbody td { padding: 0.75rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr:first-child td { border-top: none; }
tbody td:not(:first-child) { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }

/* ── Sommaire sticky ─────────────────────────────── */
.toc { position: sticky; top: 92px; align-self: start; }

.toc-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
}

.toc ol { list-style: none; border-left: 2px solid var(--line); }

.toc li a {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.32rem 0 0.32rem 0.9rem;
  margin-left: -2px;
  border-left: 2px solid transparent;
  line-height: 1.4;
}
.toc li a:hover { color: var(--ink); border-left-color: var(--yellow); }

.toc-cta {
  margin-top: 1.4rem;
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.toc-cta p { font-size: 0.9rem; font-weight: 500; margin-bottom: 0.7rem; }

/* ── Carte CTA ───────────────────────────────────── */
.cta-card {
  margin: 2.8rem 0 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem 2.2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.6rem;
  align-items: center;
}

.cta-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}

.cta-txt { font-size: 0.98rem; color: #C9C5BC; }

.cta-action { text-align: left; }

.cta-note { margin-top: 0.75rem; font-size: 0.76rem; color: #8D897F; line-height: 1.45; }

/* ── Footer ──────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--ivory); margin-top: 2.5rem; }

.footer-in {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 2.2rem;
  padding-bottom: 2.6rem;
}

.footer-brand { font-family: var(--display); font-weight: 800; margin-bottom: 0.4rem; }
.footer-note { font-size: 0.85rem; color: var(--ink-soft); max-width: 46ch; }

.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { font-size: 0.9rem; color: var(--ink-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1020px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}

@media (max-width: 860px) {
  .hero-card { grid-template-columns: 1fr; padding: 2rem 1.5rem; gap: 1.6rem; }
  .hero-media { order: -1; }
  .cta-card { grid-template-columns: 1fr; padding: 1.7rem 1.5rem; }
  .site-nav { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .header-in { gap: 0.8rem; }
  .brand-txt { font-size: 0.92rem; }
}

/* ── Animations (v3) ─────────────────────────────── */
.scroll-prog {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 60;
  pointer-events: none;
}

.split-w { display: inline-block; }

.hero-stats {
  display: flex;
  gap: 1.4rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1 1 0;
  min-width: 8.5rem;
}

.hero-stat b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.hero-stat > span { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.35; }

.toc li a.is-active {
  color: var(--ink);
  font-weight: 600;
  border-left-color: var(--yellow);
}

.btn, .header-cta { will-change: transform; }

@media (max-width: 860px) {
  .hero-stats { gap: 1.2rem; }
  .hero-stat b { font-size: 1.25rem; }
}

/* ── v4 : pictos H2 ─────────────────────────────── */
.prose h2 { display: flex; align-items: center; gap: 0.65rem; }
.h2-ico-wrap {
  flex: none;
  width: 2.2rem; height: 2.2rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ivory);
  border-radius: 10px;
}
.h2-ico { width: 1.15rem; height: 1.15rem; color: var(--yellow-deep); }

/* ── v4 : callouts ──────────────────────────────── */
.callout {
  display: flex;
  gap: 0.9rem;
  background: #FFFDF4;
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  margin: 1.5rem 0 1.7rem;
}
.callout--attention { border-left-color: var(--ink); background: var(--ivory); }
.callout-ico { flex: none; width: 1.4rem; height: 1.4rem; color: var(--yellow-deep); margin-top: 0.15rem; }
.callout--attention .callout-ico { color: var(--ink); }
.callout-label { display: block; font-family: var(--display); font-weight: 800; font-size: 0.92rem; margin-bottom: 0.25rem; }
.callout-body p { margin: 0 0 0.5rem; font-size: 0.98rem; }
.callout-body p:last-child { margin-bottom: 0; }

/* ── v4 : cartes chiffres clés ──────────────────── */
.keyfigs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
  margin: 1.6rem 0 1.8rem;
}
.keyfig {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}
.keyfig b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.keyfig > span { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.4; display: block; margin-top: 0.2rem; }

/* ── v4 : FAQ accordéon ─────────────────────────── */
.faq { margin: 1.2rem 0 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--white);
  border: 0;
  font: inherit;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  text-align: left;
  color: var(--ink);
  padding: 1rem 1.15rem;
  cursor: pointer;
}
.faq-q:hover { background: #FFFDF4; }
.faq-chev { flex: none; width: 1.1rem; height: 1.1rem; color: var(--yellow-deep); transition: transform 0.3s ease; }
.faq-q[aria-expanded="true"] .faq-chev { transform: rotate(180deg); }
.faq-a { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 1.15rem 1.05rem; color: var(--ink-soft); font-size: 0.98rem; }

/* ── v4 : hover tableaux ────────────────────────── */
tbody tr { transition: background 0.18s ease; }
tbody tr:hover { background: #FFF6DC; }

/* ── v4 : images d'en-tête ──────────────────────── */
.page-head--img {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2.2rem;
  align-items: center;
  max-width: none;
}
.page-head--img .page-head-copy { max-width: 780px; }
.page-head-img {
  width: 100%; height: auto;
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(17, 16, 20, 0.18);
}
@media (max-width: 860px) {
  .page-head--img { grid-template-columns: 1fr; gap: 1.2rem; }
  .page-head-img { max-width: 420px; }
}

/* ── v4 : diagramme RC ──────────────────────────── */
.rcflow {
  display: grid;
  grid-template-columns: 1fr 90px 1.25fr;
  align-items: center;
  gap: 0.4rem;
  background: var(--ivory);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.6rem 1.4rem;
  margin: 1.7rem 0 2rem;
}
.rcflow-core {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem 1.1rem;
  text-align: center;
}
.rcflow-core b { font-family: var(--display); font-size: 1.02rem; display: block; margin-top: 0.5rem; }
.rcflow-core-sub { font-size: 0.78rem; color: #C9C5BC; display: block; margin-top: 0.3rem; }
.rcflow-core-ico { display: inline-flex; width: 2.4rem; height: 2.4rem; align-items: center; justify-content: center; background: var(--yellow); border-radius: 12px; }
.rcflow-ico { width: 1.3rem; height: 1.3rem; color: var(--ink); }
.rcflow-links svg { width: 100%; height: 220px; display: block; }
.rcflow-path {
  fill: none;
  stroke: var(--yellow-deep);
  stroke-width: 2.5;
  stroke-dasharray: 240;
  stroke-dashoffset: 0;
}
.anim-ready .rcflow-path { stroke-dashoffset: 240; }
.rcflow-branches { display: flex; flex-direction: column; gap: 0.9rem; }
.rcflow-node {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.rcflow-node b { font-family: var(--display); font-size: 1.02rem; display: block; }
.rcflow-when { font-size: 0.8rem; color: var(--ink-soft); display: block; margin-bottom: 0.5rem; }
.rcflow-node ul { margin: 0 0 0 1.1rem; }
.rcflow-node li { font-size: 0.88rem; margin-bottom: 0.25rem; }
.rcflow-badge {
  float: right;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
}
.rcflow-badge--yellow { background: var(--yellow); color: var(--ink); }
.rcflow-badge--dark { background: var(--ink); color: var(--white); }
@media (max-width: 720px) {
  .rcflow { grid-template-columns: 1fr; }
  .rcflow-links { display: none; }
}

/* ── v4 : timeline ──────────────────────────────── */
.tl-wrap { position: relative; margin: 1.6rem 0 1.9rem; padding-left: 0.4rem; }
.tl-line {
  position: absolute;
  left: 1.28rem; top: 0.6rem; bottom: 0.6rem;
  width: 3px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.tl-line i {
  position: absolute; inset: 0;
  background: var(--yellow);
  transform-origin: 0 0;
  transform: scaleY(0);
}
.tl { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 1.3rem; }
.tl-step { display: flex; gap: 1rem; align-items: flex-start; }
.tl-dot {
  flex: none;
  width: 1.9rem; height: 1.9rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}
.tl-body b { font-family: var(--display); font-size: 1.02rem; }
.tl-body p { margin: 0.15rem 0 0; font-size: 0.95rem; color: var(--ink-soft); }

/* ── v4 : simulateur ────────────────────────────── */
.sim {
  background: var(--ivory);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.7rem 1.6rem;
  margin: 1.8rem 0 2rem;
}
.sim-head { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 1.3rem; }
.sim-ico { flex: none; width: 1.6rem; height: 1.6rem; color: var(--yellow-deep); margin-top: 0.2rem; }
.sim-head b { font-family: var(--display); font-weight: 800; font-size: 1.25rem; display: block; }
.sim-head span { font-size: 0.85rem; color: var(--ink-soft); }
.sim-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.sim-field { border: 0; padding: 0; }
.sim-field legend {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}
.sim-field label {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.sim-field label:hover { border-color: var(--yellow-deep); }
.sim-field input { accent-color: var(--yellow-deep); }
.sim-field label:has(input:checked) { border-color: var(--ink); background: #FFF6DC; }
.sim-result {
  margin-top: 1.3rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.4rem;
}
.sim-result-label { font-size: 0.82rem; color: #C9C5BC; flex-basis: 100%; }
.sim-result b {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--yellow);
}
.sim-note { flex-basis: 100%; font-size: 0.74rem; color: #8D897F; }
