/* Impulse Création — impulse-creation.fr
   Mobile first (base = 390px), dark mode auto, zéro framework. */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --bg: #f6f4ee;
  --surface: #fdfcf8;
  --ink: #16161e;
  --muted: #50505c;
  --accent: #2b2bd8;
  --accent-hover: #2020ab;
  --on-accent: #ffffff;
  --accent-soft: rgba(43, 43, 216, 0.07);
  --no: #c23a34;
  --no-soft: rgba(194, 58, 52, 0.12);
  --line: #16161e;
  --line-soft: rgba(22, 22, 30, 0.16);
  --footer-bg: #16161e;
  --footer-ink: #eceae2;
  --footer-muted: #a5a4ae;
  --radius: 8px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 72rem;
  --pad: 1.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131318;
    --surface: #1a1a21;
    --ink: #eceae2;
    --muted: #a8a7b1;
    --accent: #9d9dff;
    --accent-hover: #b8b8ff;
    --on-accent: #10101c;
    --accent-soft: rgba(157, 157, 255, 0.09);
    --no: #ff7069;
    --no-soft: rgba(255, 112, 105, 0.16);
    --line: #eceae2;
    --line-soft: rgba(236, 234, 226, 0.18);
    --footer-bg: #0d0d12;
    --footer-ink: #eceae2;
    --footer-muted: #a5a4ae;
  }
}

/* ---------- Reset ---------- */

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

ul, ol { list-style: none; }

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- Typo ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 8.2vw, 3.9rem); }
h2 { font-size: clamp(1.65rem, 5.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 3.6vw, 1.45rem); line-height: 1.25; }

p { max-width: 90ch; }

strong { font-weight: 650; }

.lead {
  font-size: clamp(1.1rem, 3.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
}

.kicker {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}

.mark {
  box-shadow: inset 0 -0.34em var(--accent-soft), inset 0 -0.38em 0 -0.28em var(--accent);
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(4rem, 11vw, 7.5rem); }

.section + .section { padding-top: 0; }

.sechead {
  border-top: 2px solid var(--line);
  padding-top: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: clamp(1.8rem, 5vw, 3rem);
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  text-align: center;
}

.sechead h2 { max-width: 26ch; }

.sechead .intro { color: var(--muted); max-width: 80ch; }

.sechead .intro:empty { display: none; }

.sechead .kicker, .cta-final .kicker, .teaser .kicker { display: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand .dot {
  width: 0.6rem;
  height: 0.6rem;
  background: var(--accent);
  border-radius: 1px;
  flex: none;
  transform: rotate(45deg);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
}

.nav-toggle .bar {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  position: fixed;
  top: 4rem; /* démarre sous le header : le logo et la croix restent visibles */
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--bg);
  padding: 1rem var(--pad) calc(1.5rem + env(safe-area-inset-bottom));
  overflow-y: auto;
}

.site-nav.open { display: flex; flex-direction: column; }

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1; /* occupe toute la hauteur pour pousser « Commander » tout en bas */
}

.site-nav a {
  display: block;
  padding: 0.85rem 0.25rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.site-nav a[aria-current="page"]:not(.btn) { color: var(--accent); }

.site-nav .nav-cta { margin-top: auto; padding-top: 1rem; }

.site-nav .nav-cta .btn {
  text-align: center;
  width: 100%;
  min-height: 3.25rem;
  font-size: 1.05rem;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn-primary { background: var(--accent); color: var(--on-accent); }

.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-ghost { border-color: var(--line); color: var(--ink); }

.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.btn-note {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(3.5rem, 10vw, 7rem) clamp(3rem, 8vw, 5.5rem); }

.hero .container { display: grid; gap: 1.4rem; }

.hero .kicker { animation: rise 0.6s ease both; }

.hero h1 { max-width: 24ch; animation: rise 0.6s ease 0.08s both; }

.hero .lead { animation: rise 0.6s ease 0.16s both; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.4rem;
  animation: rise 0.6s ease 0.24s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Bande repères */

.statband {
  background: var(--surface);
  border-block: 1px solid var(--line-soft);
}

.statband .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.statband .stat {
  padding: 1.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
}

.statband .stat + .stat { border-left: 1px solid var(--line-soft); }

.statband .stat:nth-child(3) { border-left: 0; border-top: 1px solid var(--line-soft); }
.statband .stat:nth-child(4) { border-top: 1px solid var(--line-soft); }


.statband b {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  font-weight: 650;
  line-height: 1;
  color: var(--accent);
}

.statband span {
  font-size: 0.92rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Liste inclus ---------- */

.inclist { display: grid; gap: 1.7rem; }

.inclist li { display: grid; gap: 0.4rem; align-content: start; }

.inclist b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.25;
  position: relative;
  padding-left: 1.35rem;
}

.inclist b::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 0.58rem;
  height: 0.58rem;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}

.inclist p { color: var(--muted); font-size: 0.98rem; max-width: 68ch; padding-left: 1.35rem; }

/* ---------- Pourquoi 490 ---------- */

.why { display: grid; gap: 1.7rem; }

.why-item { display: grid; gap: 0.4rem; }

.why-item h3 {
  position: relative;
  padding-left: 1.35rem;
}

.why-item h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 0.58rem;
  height: 0.58rem;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}

.why-item p { color: var(--muted); }

/* ---------- Process : timeline ---------- */

.steps { position: relative; display: grid; gap: 1.9rem; }

/* ligne verticale (mobile) */
.steps::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line-soft);
}

.step {
  position: relative;
  padding-left: 2.1rem;
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

/* losange de la marque sur la ligne */
.step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}

.step h3 { margin-top: 0.15rem; }

.step p { color: var(--muted); font-size: 0.98rem; }

.step .stepwhen {
  justify-self: start;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.18rem 0.75rem;
  margin-top: 0.2rem;
}

/* ---------- Tarifs ---------- */

.price-card {
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  display: grid;
  gap: 1.1rem;
}

.price-card .price {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 4.6rem);
  font-weight: 650;
  line-height: 1;
}

.price-card .price small {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.price-card .plist { display: grid; gap: 0.5rem; }

.price-card .plist li {
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.98rem;
}

.price-card .plist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}

.subs { display: grid; margin-top: 1.4rem; }

.sub-row {
  border-top: 1px solid var(--line-soft);
  padding: 1.1rem 0.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1rem;
  align-items: baseline;
}

.sub-row:last-child { border-bottom: 1px solid var(--line-soft); }

.sub-row b { font-weight: 650; }

.sub-row .sub-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 650;
  white-space: nowrap;
}

.sub-row .sub-price small {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
}

.sub-row p { grid-column: 1 / -1; color: var(--muted); font-size: 0.94rem; }

.price-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* ---------- Pour qui ---------- */

.forwho { display: grid; gap: 1.8rem; }

.forwho-col {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.forwho-col h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* badge = un seul élément : cercle + icône centrée dedans */
.forwho-col h3::before {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  /* le glyphe (centre du rond) s'aligne sur l'axe des losanges des puces :
     centre losange = 0.25rem, centre rond = 0.75rem -> décalage -0.5rem */
  margin-left: -0.5rem;
  border-radius: 999px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b2bd8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / 0.85rem;
}

.forwho-col.no h3::before {
  background: var(--no-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c23a34' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") no-repeat center / 0.85rem;
}

@media (prefers-color-scheme: dark) {
  .forwho-col h3::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d9dff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  }
  .forwho-col.no h3::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7069' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
  }
}

.forwho-col ul { display: grid; gap: 0.45rem; }

.forwho-col li { padding-left: 1.3rem; position: relative; }

.forwho-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 1px;
  transform: rotate(45deg);
  background: var(--accent);
}

.forwho-col.no li::before { background: var(--no); }

.forwho-col li, .forwho-col p { color: var(--muted); }

/* le paragraphe de conclusion porte la même puce que les items */
.forwho-col > p { padding-left: 1.3rem; position: relative; }

.forwho-col > p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 1px;
  transform: rotate(45deg);
  background: var(--accent);
}

.forwho-col.no > p::before { background: var(--no); }

.forwho-col li b { color: var(--ink); }

/* ---------- FAQ ---------- */

.faq { display: grid; }

.faq details { border-top: 1px solid var(--line-soft); }

.faq details:last-child { border-bottom: 1px solid var(--line-soft); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 2.2rem 1.05rem 0.25rem;
  font-weight: 600;
  position: relative;
  min-height: 44px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq .faq-body { padding: 0 0.25rem 1.2rem; color: var(--muted); display: grid; gap: 0.6rem; }

/* ---------- CTA final ---------- */

.cta-final {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding-block: clamp(4rem, 11vw, 7rem);
}

.cta-final .container { display: grid; gap: 1.3rem; }

.cta-final h2 { max-width: none; }

.cta-final p { color: var(--footer-muted); }

.cta-final .btn-primary { justify-self: start; }

.cta-final .kicker { color: #9d9dff; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  border-top: 1px solid rgba(236, 234, 226, 0.14);
  padding-block: 2.2rem 1.4rem;
  font-size: 0.92rem;
}

.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1.5rem; }

.footer-brand { display: grid; gap: 0.55rem; align-content: start; grid-column: 1 / -1; }

.footer-brand .brand { color: var(--footer-ink); }

.footer-brand p { color: var(--footer-muted); font-size: 0.9rem; max-width: 34ch; }

.contact-tel:empty { display: none; }

.contact-tel { color: var(--footer-ink); text-decoration: none; }

.footer-col .footer-h {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 650;
  color: var(--footer-ink);
  margin-bottom: 0.7rem;
}

.footer-col ul { display: grid; gap: 0.4rem; }

.footer-col a { color: var(--footer-ink); text-decoration: none; }

.footer-col a:hover { color: var(--accent); text-decoration: underline; }

@media (prefers-color-scheme: light) {
  .footer-col a:hover, .cta-final .num { color: #9d9dff; }
}

.footer-legal {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(236, 234, 226, 0.14);
  color: var(--footer-muted);
  font-size: 0.85rem;
  text-align: left;
}

.footer-legal a { color: var(--footer-muted); }

/* ---------- Pages intérieures ---------- */

.page-head { padding-block: clamp(3rem, 8vw, 5rem) clamp(2rem, 5vw, 3rem); }

.page-head .container { display: grid; gap: 1rem; }

.page-head h1 { max-width: none; }

.page-head + .section { padding-top: 0.5rem; }

/* Colonne éditoriale centrée (pages légales, articles) */
.narrow { max-width: 52rem; margin-inline: auto; }

.narrow h1 { max-width: none; }

.prose { display: grid; gap: 1.05rem; max-width: 52rem; margin-inline: auto; }

.prose h2 {
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  margin-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.2rem;
}

.prose h3 { margin-top: 0.6rem; }

.prose ul, .prose ol { padding-left: 1.4rem; display: grid; gap: 0.4rem; }

.prose li::marker { color: var(--accent); font-weight: 600; }

.prose a { color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }

.prose th, .prose td { border: 1px solid var(--line-soft); padding: 0.6rem 0.8rem; text-align: left; }

.prose th { font-weight: 650; background: var(--accent-soft); }

/* ---------- Formulaire ---------- */

.form { display: grid; gap: 1.1rem; max-width: 34rem; }

.form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }

.form input, .form textarea, .form select {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  min-height: 3rem;
  width: 100%;
}

.form textarea { min-height: 8rem; resize: vertical; }

.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--accent);
}

.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 0.85rem; color: var(--muted); }

/* ---------- Blog ---------- */

.postlist { display: grid; }

.postlist article {
  border-top: 1px solid var(--line-soft);
  padding: 1.5rem 0;
  display: grid;
  gap: 0.45rem;
}

.postlist article:last-child { border-bottom: 1px solid var(--line-soft); }

.postlist .postmeta {
  font-size: 0.9rem;
  color: var(--muted);
}

.postlist h2, .postlist h3 { font-size: clamp(1.25rem, 4vw, 1.6rem); }

.postlist a { text-decoration: none; }

.postlist a:hover .mark, .postlist a:hover { color: var(--accent); }

.postlist p { color: var(--muted); }

.article-body { max-width: 52rem; margin-inline: auto; }

.article-body .prose p { max-width: 90ch; }

.article-foot {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.3rem;
  display: grid;
  gap: 0.9rem;
}

/* ---------- Bandeau réalisations teaser ---------- */

.teaser {
  background: var(--surface);
  padding-block: clamp(2.5rem, 7vw, 4rem);
}

.teaser .container { display: grid; gap: 0.9rem; }

/* ---------- Comparatif ---------- */

.compare { display: grid; gap: 1.25rem; margin-top: 0.5rem; }

.compare-head { display: none; }

.compare-row {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.compare .c-crit {
  display: block;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.1rem;
  padding: 0.85rem 1.1rem;
  background: var(--accent-soft);
  color: var(--ink);
}

.compare-row > span:not(.c-crit) {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 1.1rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.98rem;
}

.compare-row > span[data-c]::before {
  content: attr(data-c);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}

.compare-row > .c-us { background: var(--accent-soft); }
.compare-row > .c-us[data-c]::before { color: var(--accent); }

/* ---------- Reveals au scroll (opt-in JS, fallback visible) ---------- */

html.anim .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--rd, 0s);
}

html.anim .reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Accessibilité mouvement ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.anim .reveal { opacity: 1; transform: none; }
}

/* ---------- ≥ 768px ---------- */

@media (min-width: 768px) {
  :root { --pad: 2rem; }

  .btn { width: auto; }

  .nav-toggle { display: none; }

  .site-nav {
    display: block;
    position: static;
    background: none;
    border: 0;
    padding: 0;
  }

  .site-nav ul {
    display: flex;
    flex-direction: row;
    flex: 0;
    align-items: center;
    gap: 1.4rem;
  }

  .site-nav a { border: 0; padding: 0.4rem 0; font-size: 0.97rem; font-weight: 550; }

  .site-nav .nav-cta { margin: 0; padding: 0; }

  .site-nav .nav-cta .btn { width: auto; min-height: 2.5rem; padding: 0.45rem 1.1rem; font-size: 0.94rem; }

  .statband .container { grid-template-columns: repeat(4, 1fr); }

  .statband .stat { padding: 1.9rem 1.2rem; }

  .statband .stat:nth-child(3) { border-left: 1px solid var(--line-soft); border-top: 0; }
  .statband .stat:nth-child(4) { border-top: 0; }

  .inclist { grid-template-columns: 1fr 1fr; gap: 1.7rem 3rem; }

  .why { grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; }

  /* sections à 3 items : 3 colonnes, pas de bloc orphelin */
  .why:has(> .why-item:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); gap: 1.8rem 2rem; }

  .steps { grid-template-columns: repeat(4, 1fr); gap: 2.4rem; }

  .steps::before {
    left: 6px;
    right: 6px;
    top: 5px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .step { padding-left: 0; padding-top: 1.9rem; }

  .step::before { top: 0; }

  .forwho { grid-template-columns: 1fr 1fr; gap: 3rem; }

  .pricing-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: start;
  }

  .subs { margin-top: 0; }

  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.15fr 1fr; gap: 2rem; }

  .compare {
    gap: 0;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    overflow: hidden;
  }

  .compare-head { display: grid; }

  .compare-row {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr 1fr;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .compare-row + .compare-row { border-top: 1px solid var(--line-soft); }

  .compare-head > span {
    padding: 1.1rem 1.15rem;
    font-family: var(--font-display);
    font-weight: 650;
    font-size: 1.02rem;
    color: var(--ink);
  }

  .compare-head { background: var(--surface); }
  .compare-head .c-us { color: var(--accent); }

  .compare .c-crit {
    background: transparent;
    padding: 1.15rem;
    font-size: 1.02rem;
  }

  .compare-row > span:not(.c-crit) {
    padding: 1.15rem;
    border-top: 0;
  }

  .compare-row > span + span { border-left: 1px solid var(--line-soft); }

  .compare-row > span[data-c]::before { display: none; }

  .compare .c-us { background: var(--accent-soft); }

  .footer-brand { grid-column: auto; }

  .site-footer .container { max-width: 74rem; }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 3rem;
    align-items: center;
  }
}

/* ---------- ≥ 1024px ---------- */

@media (min-width: 1024px) {
  .hero h1 { max-width: 22ch; }
}

/* ---------- Transition entre pages (le clic se VOIT) ---------- */

@view-transition { navigation: auto; }

::view-transition-old(root) { animation: vt-out 0.16s ease both; }
::view-transition-new(root) { animation: vt-in 0.26s ease both; }

@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}
