:root {
  --navy: #10243f;
  --navy-deep: #0b1a2e;
  --red: #b42318;
  --red-deep: #8c1d14;
  --cream: #f3efe7;
  --paper: #fffcf8;
  --ink: #1a2332;
  --muted: #4e5968;
  --line: #e4dcd0;
  --focus: #0c6b66;
  --shadow: 0 20px 50px rgba(16, 36, 63, 0.1);
  --font: "Outfit", "Segoe UI", sans-serif;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 1.0625rem;
}

img, svg { max-width: 100%; }

a { color: inherit; }

p { margin: 0 0 1rem; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 80;
  border-radius: 8px;
}

.skip:focus { top: 1rem; }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.topbar {
  background: var(--navy-deep);
  color: #d7e0ea;
  font-size: 0.92rem;
  text-align: center;
  padding: 0.5rem 1rem;
}

.topbar a { color: #fff; font-weight: 650; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 4.25rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 252, 248, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--navy);
  display: grid;
  place-items: center;
  flex: none;
}

.logo-mark svg { width: 22px; height: 22px; fill: #fff; }

.logo span:last-child { min-width: 0; }

.logo strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.logo small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav { display: none; }

.nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  inset: 100% 0 auto;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 1rem 1rem;
  box-shadow: var(--shadow);
}

.nav a {
  text-decoration: none;
  padding: 0.8rem 0.45rem;
  border-radius: 10px;
  font-weight: 600;
  min-height: 44px;
}

.nav a[aria-current="page"],
.nav a:hover { background: var(--cream); }

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  display: grid;
  gap: 5px;
  place-content: center;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
}

.btn-call {
  background: var(--red);
  color: #fff;
  white-space: nowrap;
}

.btn-call:hover { background: var(--red-deep); }

.btn-primary { background: var(--navy); color: #fff; }

.btn-primary:hover { background: var(--navy-deep); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--navy);
}

.header-call {
  min-height: 44px;
  padding-inline: 0.9rem;
}

.header-call .short { display: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero {
  display: grid;
  gap: 1.4rem;
  padding: 1.4rem 0 1rem;
}

.eyebrow {
  color: var(--red-deep);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 0.7rem;
}

h1 {
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(2.15rem, 7vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 0.9rem;
}

h2 {
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 0.7rem;
}

h3 { margin: 0.35rem 0 0.45rem; font-size: 1.35rem; letter-spacing: -0.02em; }

.lede {
  font-size: 1.12rem;
  max-width: 38rem;
  color: #243041;
}

.hero-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.08), transparent 42%),
    var(--navy);
  color: #fff;
  border-radius: 28px;
  padding: 1.35rem 1.35rem 0.4rem;
  box-shadow: var(--shadow);
}

.hero-card p { margin: 0; color: #d5deea; }

.hero-phone {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 3.1rem);
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.03em;
  display: block;
  line-height: 1.1;
  margin: 0.35rem 0 0.8rem;
}

.hero-card ul { margin: 0.4rem 0 0; padding: 0; list-style: none; }

.hero-card li {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.urgence {
  background: #fdecea;
  color: #6f1d16;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin: 1rem 0 0;
}

.facts, .cards, .steps, .split { display: grid; gap: 0.85rem; }

.facts, .steps { list-style: none; margin: 0; padding: 0; }

.fact, .card, .step, .panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.fact, .card, .panel { padding: 1.15rem 1.2rem; }

.fact strong { display: block; font-size: 1.05rem; }

.fact span, .muted { color: var(--muted); }

.card { text-decoration: none; display: block; height: 100%; }

.card:hover { border-color: #c9bfb0; }

.mark {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 3px;
  display: inline-block;
}

.mark-red { background: var(--red); }
.mark-navy { background: var(--navy); }

section { padding: 2.4rem 0; }

.section-head { max-width: 40rem; margin-bottom: 1.2rem; }

.steps { counter-reset: step; }

.step {
  padding: 1.1rem 1.1rem 1.1rem 4.3rem;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.step h3 { margin-top: 0; }

.table-scroll { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }

table { width: 100%; border-collapse: collapse; background: var(--paper); min-width: 34rem; }

th, td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th { background: var(--navy); color: #fff; font-weight: 600; }

tr:last-child td { border-bottom: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; list-style: none; }

.chips a, .chips span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  text-decoration: none;
}

.cta-band {
  background: var(--navy);
  color: #fff;
  border-radius: 28px;
  padding: 1.5rem;
}

.cta-band .btn-call { background: #fff; color: var(--navy); }
.cta-band .btn-call:hover { background: var(--cream); }
.cta-band p { color: #d7e1ec; max-width: 36rem; }

.note {
  background: #fff6e8;
  border: 1px solid #efd7a6;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  color: #5a4214;
}

.breadcrumb { font-size: 0.92rem; color: var(--muted); margin: 1rem 0 0; }

.breadcrumb a { color: var(--navy); }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
}

.faq summary { font-weight: 650; cursor: pointer; min-height: 44px; display: flex; align-items: center; }

.faq details p:last-child { margin-bottom: 0; }

form { display: grid; gap: 0.85rem; }

label { display: grid; gap: 0.35rem; font-weight: 650; }

input, select, textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #d5cec3;
  background: #fff;
  color: var(--ink);
  width: 100%;
  min-height: 48px;
}

textarea { min-height: 8rem; resize: vertical; }

.form-row { display: grid; gap: 0.85rem; }

.form-status {
  background: #e8f6f1;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: #0d4f45;
}

.prose { max-width: 42rem; }

.prose h2 { margin-top: 2rem; }

.site-footer {
  background: var(--navy-deep);
  color: #d5dee8;
  padding: 2.5rem 0 6.5rem;
}

.site-footer a { color: #fff; }

.foot-grid { display: grid; gap: 1.5rem; }

.site-footer h2 {
  font-family: var(--font);
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.55rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }

.site-footer li { margin: 0.4rem 0; }

.legal { font-size: 0.85rem; color: #9aabbc; margin-top: 1.6rem; }

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  background: rgba(255, 252, 248, 0.96);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.5rem;
  z-index: 35;
}

.dock .btn { width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 420px) {
  .header-call .full { display: none; }
  .header-call .short { display: inline; }
  .logo small { display: none; }
  .logo-mark { width: 36px; height: 36px; }
  .logo strong { font-size: 0.78rem; white-space: nowrap; }
}

@media (min-width: 800px) {
  .nav-toggle, .dock { display: none; }

  .nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    position: static;
    background: none;
    border: 0;
    padding: 0;
    box-shadow: none;
  }

  .nav a { padding: 0.45rem 0.7rem; }

  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 2.5rem;
    padding: 3.2rem 0 1.5rem;
  }

  .facts, .steps { grid-template-columns: repeat(3, 1fr); }
  .cards.two, .split, .form-row { grid-template-columns: 1fr 1fr; }
  .cards.three { grid-template-columns: 1fr 1fr; }
  .nav a { padding: 0.45rem 0.5rem; font-size: 0.92rem; }
  .foot-grid { grid-template-columns: 1.4fr 0.8fr 0.8fr; }
  .site-footer { padding-bottom: 2.6rem; }

  body {
    background:
      linear-gradient(#9d2c22, #9d2c22) left top / 8px 10px no-repeat,
      linear-gradient(var(--navy), var(--navy)) left 10px / 8px 100% no-repeat,
      var(--cream);
  }
}

@media (min-width: 1100px) {
  .site-header, .topbar { padding-left: 1.6rem; padding-right: 1.6rem; }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Illustrations ---------- */

.illus {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-visual { position: relative; }

.hero-visual .hero-card,
.hero-visual .panel {
  position: relative;
  margin: -1.1rem 0.9rem 0;
  z-index: 1;
}

.wrap.prose { max-width: none; }
.wrap.prose > * { max-width: 42rem; }

.card .illus {
  border-radius: 14px;
  box-shadow: none;
  margin-bottom: 0.9rem;
  aspect-ratio: 52 / 36;
  background: #e6edf5;
}

.ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e6edf5;
  color: var(--navy);
  margin-bottom: 0.7rem;
}

.ico svg { width: 24px; height: 24px; fill: currentColor; }

.fact:nth-child(2) .ico { background: #fdecea; color: var(--red); }
.fact:nth-child(3) .ico { background: #e3f3ee; color: var(--focus); }

/* ---------- Mouvement ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes ringout {
  0% { transform: scale(0.96); opacity: 0.75; }
  100% { transform: scale(1.3); opacity: 0; }
}

@keyframes floaty {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-6%, 8%) scale(1.08); }
}

@keyframes pop {
  0% { transform: scale(0.4); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes slide {
  to { background-position: 80px 80px; }
}

main { overflow-x: clip; }

.hero { position: relative; isolation: isolate; }

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  animation: floaty 14s ease-in-out infinite alternate;
}

.hero::before {
  width: min(70vw, 560px);
  aspect-ratio: 1;
  right: -18vw;
  top: -6rem;
  background: radial-gradient(closest-side, rgba(180, 35, 24, 0.12), transparent);
}

.hero::after {
  width: min(60vw, 480px);
  aspect-ratio: 1;
  left: -28vw;
  bottom: -10rem;
  background: radial-gradient(closest-side, rgba(16, 36, 63, 0.07), transparent);
  animation-duration: 18s;
  animation-direction: alternate-reverse;
}

.hero > div:first-child > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero > div:first-child > :nth-child(2) { animation-delay: 0.08s; }
.hero > div:first-child > :nth-child(3) { animation-delay: 0.16s; }
.hero > div:first-child > :nth-child(4) { animation-delay: 0.24s; }
.hero > div:first-child > :nth-child(5) { animation-delay: 0.32s; }
.hero > div:first-child > :nth-child(6) { animation-delay: 0.4s; }
.hero-visual, .hero > aside, .hero > form { animation: rise 0.8s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

.hero .btn-call { position: relative; }

.hero .btn-call::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid var(--red);
  animation: ringout 2.4s ease-out infinite;
  pointer-events: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.in { opacity: 1; transform: none; }

.step::before { transform: scale(1); }
.js .step.reveal.in::before { animation: pop 0.55s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1.2) both; }

.card, .fact, .panel, .step {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover, .fact:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.btn { transition: transform 0.15s ease, background-color 0.2s ease; }
.btn:active { transform: scale(0.97); }

.logo-mark svg { transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1.4); }
.logo:hover .logo-mark svg { transform: scale(1.18); }

.faq details[open] > *:not(summary) { animation: rise 0.35s ease both; }

.cta-band { position: relative; overflow: hidden; }

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M17 8h6v9h9v6h-9v9h-6v-9H8v-6h9z' fill='%23fff'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  opacity: 0.07;
  animation: slide 40s linear infinite;
  pointer-events: none;
}

.cta-band > * { position: relative; }

.site-footer { position: relative; overflow: hidden; }

.site-footer::before {
  content: "";
  position: absolute;
  right: -6rem;
  top: -6rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(180, 35, 24, 0.28), transparent);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
