/* Tokens repris de `brutal` dans src/theme.ts */
:root {
  --bg: #121212;
  --paper: #fbf6ec;
  --white: #ffffff;
  --ink: #111111;
  --subtext: #5a5a5a;
  --muted-on-dark: #d6d6d6;
  --lime: #d6ff3f;
  --coral: #ff5d4e;
  --blue: #4d6bff;
  --yellow: #ffcb3d;
  --violet: #b18cff;
  --mint: #3ddc97;
  --teal: #2fd9c4;
  --orange: #ff9a3c;
  --pink: #ff8fce;

  --border-thin: 2px;
  --border: 3px;
  --border-thick: 4px;
  --shadow-sm: 4px;
  --shadow-md: 6px;
  --shadow-lg: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.5;
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* ── Primitives brutalistes (équivalents de BrutalBlock / Button / Badge) ── */

.block {
  border: var(--border) solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-md) var(--shadow-md) 0 var(--ink);
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: var(--border) solid var(--ink);
  padding: 0 22px;
  background: var(--coral);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm) var(--shadow-sm) 0 var(--ink);
  font-family: inherit;
  cursor: pointer;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: calc(var(--shadow-sm) + 2px) calc(var(--shadow-sm) + 2px) 0 var(--ink);
}

.button:active {
  transform: translate(var(--shadow-sm), var(--shadow-sm));
  box-shadow: 0 0 0 var(--ink);
}

.button:focus-visible,
.nav-links a:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.button.lime {
  background: var(--lime);
}

.button.ghost {
  background: var(--white);
}

.badge {
  display: inline-block;
  width: fit-content;
  border: var(--border-thin) solid var(--ink);
  padding: 6px 10px;
  background: var(--yellow);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Navbar ── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: var(--border) solid var(--ink);
  background: var(--paper);
}

.nav-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: var(--border) solid var(--ink);
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
}

.brand-mark img {
  width: 38px;
  height: 38px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 30px);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links a {
  border-bottom: 3px solid transparent;
  padding: 4px 0;
}

.nav-links a:hover {
  border-bottom-color: var(--coral);
}

/* ── Hero ── */

.hero {
  border-bottom: var(--border) solid var(--ink);
  padding: clamp(40px, 6vw, 84px) 0 clamp(52px, 7vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}

.hero .badge {
  margin-bottom: 22px;
  background: var(--lime);
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.highlight {
  display: inline;
  padding: 0 0.12em;
  background: var(--coral);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 14px;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  font-weight: 800;
}

.hero-sub {
  max-width: 600px;
  margin-bottom: 30px;
  color: var(--subtext);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Carte "prochain rendez-vous" façon écran d'accueil de l'app */
.preview {
  position: relative;
  padding: 0 var(--shadow-lg) var(--shadow-lg) 0;
}

.preview-card {
  border: var(--border-thick) solid var(--ink);
  padding: clamp(22px, 3vw, 32px);
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-lg) var(--shadow-lg) 0 var(--coral);
}

.preview-eyebrow {
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.preview-title {
  margin: 10px 0 6px;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 900;
  line-height: 1.1;
}

.preview-meta {
  margin-bottom: 22px;
  color: var(--muted-on-dark);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.countdown div {
  border: var(--border) solid var(--white);
  padding: 10px 4px;
  text-align: center;
}

.countdown strong {
  display: block;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown span {
  color: var(--muted-on-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.preview-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: var(--border-thin) solid var(--ink);
  padding: 7px 12px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
}

.sticker {
  position: absolute;
  top: -18px;
  right: -6px;
  transform: rotate(4deg);
  border: var(--border) solid var(--ink);
  padding: 8px 14px;
  background: var(--yellow);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--ink);
}

/* ── Sections ── */

.section {
  padding: clamp(56px, 7vw, 96px) 0;
  border-bottom: var(--border) solid var(--ink);
}

.section.dark {
  background: var(--bg);
  color: var(--white);
}

.section.dark .section-heading p {
  color: var(--muted-on-dark);
}

.section-heading {
  display: grid;
  max-width: 800px;
  gap: 14px;
  margin-bottom: 44px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--subtext);
  font-size: 1.05rem;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Avantages */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.benefit {
  position: relative;
  padding: 26px 22px 24px;
}

.benefit::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 10px;
  content: "";
  border-bottom: var(--border) solid var(--ink);
  background: var(--accent);
}

.benefit-number {
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin: 14px 0 18px;
  place-items: center;
  border: var(--border) solid var(--ink);
  background: var(--accent);
  font-size: 1.1rem;
  font-weight: 900;
}

.benefit p,
.step p {
  margin-bottom: 0;
  color: var(--subtext);
}

/* Fonctionnement */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  counter-reset: step;
}

.step {
  padding: 28px;
  color: var(--ink);
  box-shadow: var(--shadow-md) var(--shadow-md) 0 var(--accent);
}

.step-number {
  display: block;
  margin-bottom: 14px;
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
  -webkit-text-stroke: 2px var(--ink);
  color: var(--accent);
}

/* Tarifs */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.price-card.featured {
  background: var(--lime);
  box-shadow: var(--shadow-lg) var(--shadow-lg) 0 var(--ink);
}

.price-card .badge {
  margin-bottom: 18px;
}

.price-card.featured .badge {
  background: var(--ink);
  color: var(--lime);
}

.price {
  margin: 6px 0 6px;
  font-size: clamp(2.3rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.price small {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.billing {
  min-height: 48px;
  margin-bottom: 0;
  color: var(--subtext);
  font-size: 0.95rem;
}

.price-card.featured .billing {
  color: var(--ink);
}

.features {
  display: grid;
  gap: 12px;
  margin: 24px 0 30px;
  padding: 22px 0 0;
  border-top: var(--border-thin) solid var(--ink);
  list-style: none;
}

.features li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
}

.features li::before {
  display: grid;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  place-items: center;
  content: "✓";
  border: var(--border-thin) solid var(--ink);
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 900;
}

.features li.off {
  color: var(--subtext);
  text-decoration: line-through;
}

.features li.off::before {
  content: "–";
  background: transparent;
}

.price-card .button {
  width: 100%;
  margin-top: auto;
}

.saving {
  position: absolute;
  top: -16px;
  right: 18px;
  transform: rotate(3deg);
  border: var(--border) solid var(--ink);
  padding: 6px 12px;
  background: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--ink);
}

.pricing-note {
  max-width: 780px;
  margin: 40px auto 0;
  color: var(--subtext);
  font-size: 0.92rem;
  text-align: center;
}

/* Témoignages */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.quote {
  display: flex;
  margin: 0;
  flex-direction: column;
  padding: 28px;
  background: var(--accent);
}

.quote::before {
  display: block;
  margin-bottom: 4px;
  content: "“";
  font-size: 4rem;
  font-weight: 900;
  line-height: 0.8;
}

.quote p {
  margin-bottom: 0;
  font-size: 1.04rem;
  font-weight: 700;
}

.quote footer {
  margin-top: auto;
  padding-top: 22px;
  font-size: 0.92rem;
}

.quote strong {
  display: block;
  font-weight: 900;
  text-transform: uppercase;
}

/* CTA final */

.final-cta {
  padding: clamp(56px, 7vw, 96px) 0;
}

.cta-panel {
  position: relative;
  display: grid;
  padding: clamp(40px, 6vw, 72px) clamp(22px, 4vw, 48px);
  place-items: center;
  background: var(--coral);
  box-shadow: var(--shadow-lg) var(--shadow-lg) 0 var(--ink);
  text-align: center;
}

.cta-panel h2 {
  margin-bottom: 14px;
}

.cta-panel p {
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  font-weight: 700;
}

/* Footer */

.site-footer {
  border-top: var(--border) solid var(--ink);
  padding: 34px 0;
  background: var(--bg);
  color: var(--white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-footer .brand-mark {
  border-color: var(--white);
  box-shadow: 3px 3px 0 var(--lime);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 26px;
  color: var(--muted-on-dark);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--lime);
}

/* ── Responsive ── */

@media (max-width: 1080px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .steps,
  .pricing-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    gap: 34px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 76px;
  }

  .shell {
    width: calc(100% - 32px);
  }

  .nav-inner {
    min-height: 66px;
    gap: 12px;
  }

  .brand {
    font-size: 1.05rem;
    gap: 8px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-mark img {
    width: 30px;
    height: 30px;
  }

  .navbar .button {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.74rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .countdown {
    gap: 6px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}

/* ── Page mentions légales ── */

.legal-hero {
  border-bottom: var(--border) solid var(--ink);
  padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px);
}

.legal-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.legal-hero p {
  margin-bottom: 0;
  color: var(--subtext);
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 96px);
}

.legal-toc {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 2px;
  padding: 18px;
}

.legal-toc strong {
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-toc a {
  border-left: 3px solid transparent;
  padding: 5px 0 5px 10px;
  font-size: 0.9rem;
  font-weight: 800;
}

.legal-toc a:hover {
  border-left-color: var(--coral);
}

.legal-content {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.legal-section {
  padding: clamp(22px, 3vw, 32px);
}

.legal-section h2 {
  margin-bottom: 18px;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

.legal-section h3 {
  margin: 22px 0 8px;
  font-size: 1rem;
}

.legal-section p,
.legal-section li {
  color: #2b2b2b;
  font-weight: 600;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.legal-section li + li {
  margin-top: 6px;
}

.legal-section a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.legal-section address {
  font-style: normal;
}

/* Champs à compléter avant mise en ligne : très visibles exprès */
.todo {
  padding: 0 4px;
  background: var(--yellow);
  font-weight: 900;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal-table-wrap {
  overflow-x: auto;
  margin-bottom: 14px;
  border: var(--border-thin) solid var(--ink);
}

.legal-table th,
.legal-table td {
  border-bottom: var(--border-thin) solid var(--ink);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--lime);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 960px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }
}

/* ── Bandeau cookies ── */

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: grid;
  width: min(440px, calc(100% - 32px));
  gap: 14px;
  padding: 20px;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2 {
  font-size: 1.05rem;
}

.cookie-banner p {
  margin: 0;
  color: #2b2b2b;
  font-size: 0.92rem;
}

.cookie-banner p a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.cookie-banner .button {
  min-height: 44px;
  width: 100%;
}

@media (max-width: 640px) {
  .cookie-banner {
    right: 16px;
    bottom: 16px;
  }
}
