/* ==========================================================================
   Polices auto-hébergées (sous-ensemble latin, polices variables, SIL OFL :
   voir assets/fonts/OFL-*.txt). Aucune requête vers un service tiers.
   Les polices de secours sont recalées sur les métriques d'Inter et de
   Space Grotesk pour que la bascule ne décale pas la mise en page.
   ========================================================================== */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter fallback";
  src: local("Arial"), local("Helvetica"), local("Roboto");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Space Grotesk fallback";
  src: local("Arial"), local("Helvetica"), local("Roboto");
  size-adjust: 104%;
  ascent-override: 94%;
  descent-override: 28%;
  line-gap-override: 0%;
}

/* ==========================================================================
   WebIA — Design tokens
   ========================================================================== */
:root {
  --bg: #0a0e14;
  --bg-alt: #0d131b;
  --surface: #12181f;
  --surface-2: #171e27;
  --border: rgba(244, 246, 248, 0.08);
  --border-strong: rgba(244, 246, 248, 0.16);
  --text: #f4f6f8;
  --text-muted: #8a91a0;
  --accent: #00ff9c;
  --accent-dark: #00c97a;
  --accent-rgb: 0, 255, 156;
  --accent-2: #ff5c38;
  --accent-2-rgb: 255, 92, 56;

  --font-head: "Space Grotesk", "Space Grotesk fallback", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Inter fallback", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 56px;
  --tabbar-h: 60px;
}
@media (min-width: 768px) { :root { --header-h: 64px; } }

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Un mot trop long pour la largeur passe à la ligne au lieu de déborder. */
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
/* L'attribut hidden doit toujours l'emporter : sans cette règle, un
   .btn ou un .sim (display: flex/grid) masqué reste affiché. */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}
input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; -webkit-hyphens: auto; hyphens: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  /* Sections hors écran : mise en page et rendu calculés à l'approche seulement. */
  content-visibility: auto;
  contain-intrinsic-size: auto 1100px;
}
/* La première section d'une page est visible dès l'ouverture : elle est
   rendue normalement (sinon son contenu n'est pas retenu comme LCP). */
.section:first-of-type { content-visibility: visible; }
.section--alt { background: var(--bg-alt); }
.section__lead { max-width: 60ch; color: var(--text-muted); font-size: 1.05rem; margin-top: 0.75rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); max-width: 22ch; }

.grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }

.accent-text { color: var(--accent); }

/* ==========================================================================
   Accessibility utilities
   ========================================================================== */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  background: var(--accent);
  color: #04140c;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Progress bar + custom cursor
   ========================================================================== */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 9999;
  transition: width 0.1s linear;
}

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: none;
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  transition: width 0.2s var(--ease), height 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.cursor-ring.is-active { width: 54px; height: 54px; background: rgba(var(--accent-rgb), 0.08); border-color: var(--accent); }

@media (hover: hover) and (pointer: fine) {
  .has-custom-cursor .cursor-dot,
  .has-custom-cursor .cursor-ring { display: block; }
  .has-custom-cursor, .has-custom-cursor a, .has-custom-cursor button { cursor: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), height 0.3s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 14, 20, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header.is-scrolled { border-color: var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; }

.logo {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: -0.02em;
}
.logo__mark { color: var(--accent); }
.logo__cursor { color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.nav { display: none; align-items: center; gap: 1.5rem; }
.nav__list { display: flex; align-items: center; gap: 1.5rem; }
.nav__link {
  position: relative;
  display: inline-block;
  padding-block: 0.4rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }
@media (min-width: 768px) { .nav { display: flex; } }

/* Mobile : le logo et un bouton d'appel ; la navigation est en bas. */
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.header-call svg { color: var(--accent); }
@media (min-width: 768px) { .header-call { display: none; } }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  /* Sur un écran étroit, un libellé long passe sur deux lignes plutôt que de déborder. */
  text-align: center;
}
.nav__cta { white-space: nowrap; }
.btn--primary {
  background: var(--accent);
  color: #04140c;
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.4);
}
.btn--primary:hover { box-shadow: 0 0 32px rgba(var(--accent-rgb), 0.45); transform: translateY(-2px); }
.btn--ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--outline {
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 100%;
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb), 0.06); }
.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.btn--full { width: 100%; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 4rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%), rgba(var(--accent-rgb), 0.12), transparent 60%),
    repeating-linear-gradient(0deg, rgba(244,246,248,0.03) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(244,246,248,0.03) 0 1px, transparent 1px 48px);
  z-index: 0;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
}
.hero__inner > * { min-width: 0; }
.hero__title { font-size: clamp(2.1rem, 6vw, 3.6rem); display: flex; flex-direction: column; gap: 0.2rem; }
/* Animation du titre : le texte final reste en place (et réserve sa hauteur,
   à toutes les largeurs) ; la version brouillée s'affiche en calque par-dessus. */
.scramble-line { position: relative; display: block; }
.scramble-line.is-scrambling { color: transparent; }
.scramble-fx { position: absolute; inset: 0; pointer-events: none; }
.hero__subtitle { margin-top: 1.25rem; max-width: 52ch; color: var(--text-muted); font-size: 1.05rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }

.badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  color: var(--text-muted);
}

@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; }
}

.hero__terminal { display: none; }
@media (min-width: 1024px) { .hero__terminal { display: block; } }

.terminal {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--red { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green { background: #28c840; }
.terminal__title { margin-left: 0.75rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }
.terminal__body {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 1.5rem;
  min-height: 220px;
  color: var(--accent);
  white-space: pre-wrap;
}
.terminal__body .line-ok { color: var(--accent); }
.terminal__body .line-muted { color: var(--text-muted); }
.terminal__cursor { display: inline-block; width: 8px; background: var(--accent); animation: blink 1s step-end infinite; }

/* ==========================================================================
   Stats (Preuve)
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
  margin-top: 3rem;
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat { text-align: center; }
.stat__number, .stat__prefix, .stat__suffix {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--accent);
}
.stat__suffix { font-size: clamp(1rem, 2.5vw, 1.4rem); color: var(--text-muted); margin-left: 2px; }
.stat__prefix { font-size: clamp(1.2rem, 3vw, 1.8rem); }
.stat__label { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.4rem; }


/* ==========================================================================
   Showcase cards (Nos modèles / Démos)
   ========================================================================== */
.grid--showcase { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--showcase { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--showcase { grid-template-columns: repeat(3, 1fr); } }

.showcase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.showcase-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-accent);
}
.showcase-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-accent);
  box-shadow: 0 24px 60px -24px rgba(var(--card-accent-rgb), 0.35);
}

.showcase-card--onglerie   { --card-accent: #e8a9d8; --card-accent-rgb: 232, 169, 216; }
.showcase-card--pizza      { --card-accent: #ff5c38; --card-accent-rgb: 255, 92, 56; }
.showcase-card--restaurant { --card-accent: #d4af37; --card-accent-rgb: 212, 175, 55; }
.showcase-card--coiffeur   { --card-accent: #4fd1c5; --card-accent-rgb: 79, 209, 197; }
.showcase-card--garage     { --card-accent: #b026ff; --card-accent-rgb: 176, 38, 255; }

.showcase-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(var(--card-accent-rgb), 0.16);
  color: var(--card-accent);
}
.showcase-card__icon svg { width: 22px; height: 22px; }

.showcase-card__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--card-accent);
}

.showcase-card__title { font-size: 1.1rem; }
.showcase-card__desc { color: var(--text-muted); font-size: 0.9rem; flex-grow: 1; }

.showcase-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.showcase-card__features li {
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}

.showcase-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 0.5rem;
  transition: color 0.25s var(--ease);
}
.showcase-card__cta svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.showcase-card:hover .showcase-card__cta { color: var(--card-accent); }
.showcase-card:hover .showcase-card__cta svg { transform: translateX(4px); }

/* ==========================================================================
   Méthode : frise verticale
   ========================================================================== */
.timeline { position: relative; display: grid; gap: 1.25rem; margin-top: 1.5rem; padding-left: 2.75rem; max-width: 640px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0.95rem; top: 0.5rem; bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb), 0.12));
}
.timeline__step { position: relative; }
.timeline__n {
  position: absolute;
  left: -2.75rem; top: -0.1rem;
  display: grid; place-items: center;
  width: 1.95rem; height: 1.95rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
}
.timeline__step h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.timeline__step p { color: var(--text-muted); font-size: 0.92rem; }

/* ==========================================================================
   FAQ (<details> natif : fonctionne au clavier et sans JS)
   ========================================================================== */
.faq { max-width: 760px; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding: 0.85rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__icon {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] .faq-item__icon { transform: rotate(45deg); }
.faq-item__a { padding: 0 1.2rem 1.1rem; color: var(--text-muted); font-size: 0.92rem; }

/* ==========================================================================
   Contact
   ========================================================================== */


.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field label { font-size: 0.85rem; color: var(--text-muted); }
.form-field input, .form-field textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s var(--ease);
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); }
.form-status { font-size: 0.85rem; color: var(--accent); min-height: 1.2em; }

/* ==========================================================================
   Footer compact
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); padding-block: 1.5rem; font-size: 0.82rem; color: var(--text-muted); }
.site-footer__inner { display: grid; gap: 0.6rem; }
.site-footer__brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.logo--footer { font-size: 1rem; color: var(--text); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
.site-footer__links a, .site-footer__contact a { display: inline-block; padding-block: 0.3rem; transition: color 0.2s var(--ease); }
.site-footer__links a:hover { color: var(--accent); }
.site-footer__contact { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.site-footer__contact a { color: var(--accent); font-family: var(--font-mono); }
.site-footer__copy { font-size: 0.75rem; }

/* ==========================================================================
   Refonte 2026-09 — composants de la page d'accueil
   ========================================================================== */

/* ---- Téléphone générique en CSS ---------------------------------------- */
.phone { margin: 0; }
.phone__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 390 / 844;
  padding: 3.4%;
  border-radius: 14% / 6.5%;
  background: linear-gradient(150deg, #2c333d 0%, #141920 52%, #20262e 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 30px 60px -22px rgba(0, 0, 0, 0.85);
}
.phone__frame::before {                 /* objectif photo */
  content: "";
  position: absolute;
  top: 2.3%; left: 50%;
  z-index: 2;
  width: 3.4%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #05070a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.phone__frame::after {                  /* bouton latéral */
  content: "";
  position: absolute;
  right: -1.3%; top: 23%;
  width: 1.3%; height: 9%;
  border-radius: 0 3px 3px 0;
  background: #262c35;
}
.phone__screen {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  border-radius: 11% / 5%;
  background: #0b0f15;
}
.phone__screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone__cap {
  margin-top: 0.6rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Repli élégant tant que la capture n'est pas fournie. */
.phone__ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 5%;
  padding: 16% 9% 9%;
  background:
    radial-gradient(120% 55% at 50% 0%, rgba(var(--accent-rgb), 0.2), transparent 62%),
    linear-gradient(180deg, #151c26, #0b0f15);
}
.phone__ph-bar { height: 2.4%; width: 38%; border-radius: 99px; background: rgba(255, 255, 255, 0.16); }
.phone__ph-title { font-family: var(--font-head); font-weight: 600; font-size: clamp(0.8rem, 1.5vw, 1.02rem); }
.phone__ph-line { height: 2%; border-radius: 99px; background: rgba(255, 255, 255, 0.1); }
.phone__ph-line--short { width: 62%; }
.phone__ph-block { flex: 1; border-radius: 9% / 14%; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07); }
.phone__ph-cta { height: 7%; border-radius: 99px; background: rgba(var(--accent-rgb), 0.85); }

/* ---- Études de cas ----------------------------------------------------- */
.case {
  --pad: clamp(1.4rem, 4vw, 2.6rem);
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: var(--pad);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.06), transparent 42%), var(--surface);
}
.case__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.case__title { font-size: clamp(1.4rem, 3.6vw, 1.95rem); margin: 0.35rem 0 1.1rem; }
.case__facts { display: grid; gap: 0.9rem; }
.case__facts dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}
.case__facts dd { font-size: 0.95rem; }
.case__features { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.2rem 0 1.4rem; }
.case__features li {
  font-size: 0.78rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-muted);
}

/* Mobile : carrousel horizontal aimanté. */
.case__stage {
  position: relative;
  display: flex;
  gap: 1rem;
  margin-inline: calc(-1 * var(--pad));
  padding: 0.25rem var(--pad) 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  scrollbar-width: none;
}
.case__stage::-webkit-scrollbar { display: none; }
.case__stage .phone { flex: 0 0 min(56%, 220px); scroll-snap-align: start; }

/* Desktop : scène de 3 téléphones décalés en profondeur. */
@media (min-width: 980px) {
  .case { grid-template-columns: 1fr 1.05fr; }
  .case--flip .case__text { order: 2; }
  .case__link { width: auto; }
  .case__stage {
    --px: 0; --py: 0;
    position: relative;
    display: block;
    height: clamp(430px, 40vw, 520px);
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .case__stage .phone {
    position: absolute;
    top: 50%; left: 50%;
    width: 37%;
    max-width: 225px;
    transform:
      translate3d(calc(var(--x) + var(--px) * var(--d) * 1px), calc(var(--y) + var(--py) * var(--d) * 1px), 0)
      scale(var(--s));
    transition: transform .6s var(--ease);
  }
  .case__stage .phone:nth-child(1) { --x: -138%; --y: -46%; --s: 0.84; --d: 7;  z-index: 1; }
  .case__stage .phone:nth-child(2) { --x: -50%;  --y: -52%; --s: 1;    --d: 16; z-index: 3; }
  .case__stage .phone:nth-child(3) { --x: 38%;   --y: -44%; --s: 0.84; --d: 7;  z-index: 2; }
  .case__stage .phone:nth-child(n+4) { display: none; }
  .case__stage .phone:not(:nth-child(2)) .phone__screen::after {
    content: ""; position: absolute; inset: 0; background: rgba(5, 8, 12, 0.28);
  }
  .case__stage .phone__cap { display: none; }
  .case__stage .phone__frame { animation: phoneFloat 7s ease-in-out infinite; }
  .case__stage .phone:nth-child(2) .phone__frame { animation-delay: -2.3s; }
  .case__stage .phone:nth-child(3) .phone__frame { animation-delay: -4.6s; }
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---- Idées d'applications (filtre 100 % CSS via :has) ------------------- */
.ideas__filters { position: relative; display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.6rem 0 1.2rem; border: 0; padding: 0; }
.ideas__filters input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ideas__filters label {
  display: inline-flex; align-items: center;
  min-height: 40px;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.ideas__filters label:hover { color: var(--text); border-color: var(--accent); }
.ideas__filters input:checked + label { background: var(--accent); border-color: var(--accent); color: #04140c; font-weight: 600; }
.ideas__filters input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

/* position: relative est indispensable : sans ancêtre positionné, les textes
   .visually-hidden (position absolue) des cartes échappent au rognage du
   carrousel mobile et élargissent toute la page à ~1500 px. */
.ideas__grid { position: relative; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.idea {
  position: relative;
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.idea__badge {
  align-self: flex-start;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(var(--accent-2-rgb), 0.45);
  border-radius: 999px;
  background: rgba(var(--accent-2-rgb), 0.12);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: #ff9a80;
}
.idea__name { font-size: 1.02rem; }
.idea__row { font-size: 0.86rem; }
.idea__k {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.idea__tags { font-size: 0.74rem; color: var(--text-muted); }
.idea__price { margin-top: auto; padding-top: 0.3rem; font-family: var(--font-mono); font-size: 0.84rem; color: var(--accent); }
.idea__cta { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; font-weight: 600; font-size: 0.9rem; }
.idea__cta:hover { color: var(--accent); }

@media (max-width: 640px) {
  .ideas__grid {
    display: flex;
    gap: 0.75rem;
    margin-inline: -1.25rem;
    padding: 0 1.25rem 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1.25rem;
    scrollbar-width: none;
  }
  .ideas__grid::-webkit-scrollbar { display: none; }
  .idea { flex: 0 0 82%; scroll-snap-align: start; }
}

/* ---- Forfait mensuel : le bloc dominant de la page ---------------------- */
.forfait {
  position: relative;
  padding: clamp(1.6rem, 5vw, 3.2rem);
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 60% at 0% 0%, rgba(var(--accent-rgb), 0.14), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 40px 100px -40px rgba(var(--accent-rgb), 0.35);
}
.forfait__head h2 { max-width: 20ch; font-size: clamp(1.8rem, 4.6vw, 2.8rem); }
.forfait__lead { max-width: 60ch; margin-top: 0.75rem; color: var(--text-muted); }
.launch-tag {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(var(--accent-2-rgb), 0.9);
  color: #200800;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
}

.billing {
  display: inline-flex;
  gap: 2px;
  margin: 1.6rem 0;
  padding: 4px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}
.billing input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.billing label {
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 40px;
  padding: 0.35rem 1.05rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
}
.billing input:checked + label { background: var(--accent); color: #04140c; font-weight: 600; }
.billing input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.billing__gift {
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  background: var(--accent-2);
  color: #200800;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
}

.forfait__included { display: grid; gap: 0.7rem 1.5rem; }
@media (min-width: 700px) { .forfait__included { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .forfait__included { grid-template-columns: repeat(4, 1fr); } }
.forfait__included li { position: relative; padding-left: 1.55rem; }
.forfait__included li::before {
  content: "";
  position: absolute; left: 0; top: 0.3em;
  width: 0.95rem; height: 0.95rem;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2300ff9c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4'/%3E%3C/svg%3E") center / 72% no-repeat;
}
.forfait__included strong { display: block; font-size: 0.92rem; }
.forfait__included span { display: block; font-size: 0.8rem; color: var(--text-muted); }

.modes { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 760px) { .modes { grid-template-columns: repeat(2, 1fr); } }
.mode {
  display: flex; flex-direction: column; gap: 0.45rem;
  padding: 1.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(10, 14, 20, 0.55);
}
.mode--main { border-color: var(--accent); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.35); }
.mode__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}
.mode__name { font-size: 1.3rem; }
.mode__price { color: var(--text-muted); font-size: 0.95rem; }
.mode__price strong { font-family: var(--font-head); font-size: 2rem; color: var(--text); }
.per-year { display: none; }
.forfait:has(#bill-annuel:checked) .per-month { display: none; }
.forfait:has(#bill-annuel:checked) .per-year { display: inline; }
.mode__extra { font-size: 0.8rem; color: var(--text-muted); }
.mode__desc { font-size: 0.9rem; }
.mode__cta { margin-top: auto; }

.forfait__terms {
  display: grid; gap: 0.35rem;
  margin-top: 1.75rem; padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.forfait__terms strong { color: var(--text); }

/* ---- Simulateur --------------------------------------------------------- */
.sim { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin-top: 1.75rem; }
.sim > *, .choices > *, .checks > *, .check label, .choice label { min-width: 0; }
@media (min-width: 980px) {
  .sim { grid-template-columns: minmax(0, 1fr) 290px; align-items: start; column-gap: 2rem; }
  .sim__progress, .sim__main, .sim > noscript { grid-column: 1; }
  .sim__dock { grid-column: 2; grid-row: 1 / span 3; }
}
.sim__noscript { padding: 0.9rem 1rem; border-radius: var(--radius-sm); background: var(--surface); font-size: 0.9rem; }

.sim__count { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.sim__bar { height: 4px; border-radius: 99px; background: var(--border-strong); overflow: hidden; }
.sim__bar span { display: block; height: 100%; width: var(--p, 0%); background: var(--accent); transition: width .4s var(--ease); }

.sim__step { border: 0; padding: 0; margin: 0 0 1.75rem; min-width: 0; }
.sim.is-js .sim__step { margin-bottom: 0; }
.sim.is-js .sim__step:not(.is-current) { display: none; }
.sim__legend { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; margin-bottom: 1rem; padding: 0; }
.sim__hint { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 1rem; }
.sim__hint strong { color: var(--text); }
.sim__info { margin-top: 1rem; font-size: 0.8rem; color: var(--text-muted); }

.choices { display: grid; gap: 0.7rem; }
@media (min-width: 640px) {
  .choices--3 { grid-template-columns: repeat(3, 1fr); }
  .choices--2 { grid-template-columns: repeat(2, 1fr); }
}
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: flex; flex-direction: column; gap: 0.2rem;
  min-height: 74px; height: 100%;
  padding: 0.95rem 3.1rem 0.95rem 1.05rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.choice label:hover { border-color: rgba(var(--accent-rgb), 0.6); }
.choice input:checked + label {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  box-shadow: inset 3px 0 0 var(--accent);
}
.choice input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice__name { font-family: var(--font-head); font-weight: 600; }
.choice__sub { font-size: 0.82rem; color: var(--text-muted); }
.choice__price { margin-top: 0.15rem; font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent); }
.choice__badge, .check__proof, .check__req {
  align-self: flex-start;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-2);
  color: #200800;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
}
.choice .tip { position: absolute; top: 0.55rem; right: 0.55rem; }

.checks { display: grid; gap: 0.5rem; }
@media (min-width: 760px) { .checks { grid-template-columns: repeat(2, 1fr); } }
.check {
  position: relative;
  display: flex; align-items: center; gap: 0.6rem;
  min-height: 58px;
  padding: 0.45rem 0.55rem 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.check:has(input:checked), .check.is-on { border-color: rgba(var(--accent-rgb), 0.7); background: rgba(var(--accent-rgb), 0.06); }
.check input[type="checkbox"] { width: 22px; height: 22px; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
.check label { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 0.1rem; min-height: 44px; cursor: pointer; }
.check__name { font-size: 0.9rem; font-weight: 500; line-height: 1.3; }
.check__price { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); }
.check__proof { background: rgba(var(--accent-2-rgb), 0.16); color: #ff9a80; border: 1px solid rgba(var(--accent-2-rgb), 0.4); }
.check__req { background: transparent; color: var(--text-muted); border: 1px solid var(--border-strong); font-weight: 500; }
.check.is-disabled { opacity: 0.5; }
.check.is-disabled label { cursor: not-allowed; }
.check.is-included .check__price { color: var(--text-muted); }

.qty { display: inline-flex; align-items: center; gap: 0.25rem; flex-shrink: 0; }
.qty input {
  width: 3rem; height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  text-align: center;
  font-family: var(--font-mono);
  -moz-appearance: textfield;
}
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty__btn {
  width: 40px; height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 1.15rem;
  line-height: 1;
}
.qty__btn:hover { border-color: var(--accent); color: var(--accent); }

.packs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin-bottom: 1rem; }
.packs__label { font-size: 0.82rem; color: var(--text-muted); }
.pack {
  min-height: 40px;
  padding: 0.35rem 0.9rem;
  border: 1px dashed rgba(var(--accent-rgb), 0.55);
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--accent);
}
.pack:hover, .pack[aria-pressed="true"] { background: rgba(var(--accent-rgb), 0.12); border-style: solid; }

/* Infobulle « à quoi ça sert » : <details> natif, accessible au clavier. */
.tip { position: relative; flex-shrink: 0; }
.tip summary {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  list-style: none;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
}
.tip summary::-webkit-details-marker { display: none; }
.tip summary:hover, .tip[open] summary { border-color: var(--accent); color: var(--accent); }
.tip__body {
  position: absolute;
  right: 0; top: calc(100% + 6px);
  z-index: 30;
  width: min(270px, 78vw);
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #1b232d;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.75);
  font-size: 0.84rem;
  line-height: 1.45;
}

.recap { margin-bottom: 1.25rem; }
.recap__list { border-top: 1px solid var(--border); }
.recap__list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.recap__amount { font-family: var(--font-mono); font-size: 0.82rem; text-align: right; white-space: nowrap; }
.recap__note { grid-column: 1 / -1; font-size: 0.76rem; color: var(--text-muted); }
.recap__share { margin-top: 0.8rem; font-size: 0.8rem; }
.recap__share button { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; min-height: 36px; }

.sim__contact { display: grid; gap: 0.6rem; margin-bottom: 1rem; }
.form-row { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }
.sim__rgpd { font-size: 0.76rem; color: var(--text-muted); }
.sim__rgpd a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sim__submit { min-height: 52px; }
.sim__error { margin-top: 0.75rem; font-size: 0.86rem; color: #ff9a80; }

/* Barre de total : collée en bas sur mobile, panneau latéral sur desktop. */
.sim__dock {
  position: sticky;
  bottom: 0;
  z-index: 40;
  margin-inline: -1.25rem;
  padding: 0.65rem 1.25rem calc(0.65rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-strong);
  background: rgba(10, 14, 20, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.totals__note { display: none; margin-top: 0.8rem; font-size: 0.74rem; color: var(--text-muted); }
.sim__nav { display: flex; gap: 0.5rem; margin-top: 0.55rem; }
.sim__nav .btn { flex: 1; min-height: 46px; padding: 0.55rem 1rem; }
@media (min-width: 980px) {
  .sim__dock {
    top: calc(var(--header-h) + 1rem);
    bottom: auto;
    margin: 0;
    padding: 1.4rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface);
  }
  .totals__note { display: block; }
  .sim__nav { margin-top: 1.1rem; }
}
@keyframes bump { 40% { color: var(--accent); transform: translateY(-2px); } }

.sim-done {
  max-width: 620px;
  margin: 2rem auto 0;
  padding: clamp(1.6rem, 5vw, 2.6rem);
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}
.sim-done:focus { outline: none; }
.sim-done__mark {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 1rem;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  border-radius: 50%;
  font-family: var(--font-mono);
  color: var(--accent);
}
.sim-done__title { font-size: 1.3rem; }
#doneId { white-space: nowrap; }
.sim-done__lead { margin: 0.6rem 0 1.4rem; color: var(--text-muted); }
.sim-done__ctas { display: grid; gap: 0.6rem; }
.sim-done__ctas .btn { width: 100%; white-space: normal; min-height: 52px; }
.sim-done__back { margin-top: 1rem; min-height: 44px; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Contact ------------------------------------------------------------ */
.contact__ways { display: grid; gap: 0.6rem; margin-top: 1.5rem; }
.contact__way {
  display: flex; flex-direction: column;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 1rem;
  transition: border-color .2s var(--ease);
}
.contact__way:hover { border-color: var(--accent); }
.contact__way--wa { border-color: rgba(var(--accent-rgb), 0.5); color: var(--accent); }
.contact__k { font-family: var(--font-body); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.contact-form__intro { font-size: 0.82rem; color: var(--text-muted); }

/* ---- Header : téléphone ------------------------------------------------- */
.nav__phone { display: none; font-family: var(--font-mono); font-size: 0.84rem; color: var(--text-muted); white-space: nowrap; }
.nav__phone:hover { color: var(--accent); }
@media (min-width: 768px) and (max-width: 1023px) { .nav__list { gap: 1rem; } .nav { gap: 1rem; } }
@media (min-width: 1200px) { .nav__phone { display: inline-flex; } }

@media (prefers-reduced-motion: reduce) {
  .case__stage .phone__frame { animation: none; }
  .sim__total-line strong.is-bump { animation: none; }
}


/* ---- Mentions légales ------------------------------------------------------ */
.legal { max-width: 760px; padding-bottom: 3rem; }
.legal h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; max-width: none; }
.legal h3 { font-size: 1rem; margin: 1.5rem 0 0.4rem; color: var(--accent); }
.legal p { color: var(--text-muted); margin-bottom: 0.6rem; }
.legal p strong { color: var(--text); }
.legal a:not(.btn) { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }


/* ---- Mobile : défilement horizontal aimanté plutôt qu'une pile de cartes --
   Les modèles et les métiers passent en carrousel sous 640 px : la page
   perd plus de 2 500 px de hauteur, et la carte suivante reste visible
   (82 % de largeur) pour signaler qu'on peut faire glisser. position:
   relative évite qu'un élément positionné n'échappe au rognage. */
@media (max-width: 639px) {
  .grid--showcase {
    position: relative;
    display: flex;
    gap: 0.75rem;
    margin-inline: -1.25rem;
    padding: 0.25rem 1.25rem 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1.25rem;
    scrollbar-width: none;
  }
  .grid--showcase::-webkit-scrollbar { display: none; }
  .grid--showcase > * { flex: 0 0 82%; scroll-snap-align: start; }
  .forfait__included { gap: 0.6rem; }
  .forfait__included span { font-size: 0.78rem; }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Grain overlay
   ========================================================================== */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Hero — couche 3D ambiante
   --------------------------------------------------------------------------
   Ne s'affiche qu'a partir de 1024px, exactement comme .hero__terminal :
   sous ce seuil (et c'est la que Lighthouse mesure par defaut) la page ne
   telecharge pas un octet de Three.js.
   ========================================================================== */
.hero__fx {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  color: var(--accent);
  contain: strict;
}
@media (min-width: 1024px) {
  .hero__fx { display: block; }
}

/* Etat statique : SVG inline, aucune requete reseau, aucun JS requis.
   Positionne dans la bande libre au-dessus de la carte terminal, exactement
   la ou le mark ">_" apparait en version animee : le repli est un echo
   statique de l'objet, pas un decor cache derriere la carte. */
.hero__fx-static {
  position: absolute;
  top: 23%;
  left: 72%;
  width: clamp(130px, min(23vh, 17vw), 240px);
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  filter: drop-shadow(0 0 24px rgba(var(--accent-rgb), 0.28));
  transition: opacity 0.7s var(--ease);
}
.hero__fx-mark {
  font-family: var(--font-mono);
  font-size: 54px;
  font-weight: 700;
  fill: var(--accent);
  opacity: 0.75;
}

/* Canvas WebGL : invisible tant que la premiere frame n'est pas rendue. */
.hero__fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.75s var(--ease);
}
.hero__fx[data-fx="live"] .hero__fx-canvas { opacity: 1; }
.hero__fx[data-fx="live"] .hero__fx-static { opacity: 0; }

/* Au-dela de 300 ms sans 3D ("waiting") ou en repli definitif ("fallback"),
   le statique respire doucement : il se lit comme un choix, pas comme un
   canvas plante. Neutralise par le bloc prefers-reduced-motion global. */
.hero__fx[data-fx="waiting"] .hero__fx-static,
.hero__fx[data-fx="fallback"] .hero__fx-static {
  animation: fxBreathe 5s ease-in-out infinite;
}
@keyframes fxBreathe {
  0%, 100% { opacity: 0.42; }
  50%      { opacity: 0.62; }
}

/* Quand la 3D tourne, la carte terminal devient tres legerement translucide
   pour laisser deviner la structure derriere elle. 0.88 sur un fond quasi
   identique : le contraste du texte du terminal est inchange. */
@media (min-width: 1024px) {
  .hero__fx[data-fx="live"] ~ .container .terminal {
    background: color-mix(in srgb, var(--surface) 88%, transparent);
  }
}

/* ==========================================================================
   Tilt 3D des cards de demo — 100% CSS transform, zero WebGL, zero dependance
   --------------------------------------------------------------------------
   Le JS ne fait que publier la position du pointeur dans --tx / --ty ;
   toute la transformation vit ici. Specificite (0,3,0) volontaire : elle doit
   battre .reveal.is-visible qui pose transform: translateY(0).
   ========================================================================== */
.showcase-card[data-tilt] {
  --tx: 0;
  --ty: 0;
  transform-origin: center;
}
.showcase-card[data-tilt]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    260px circle at calc(50% + var(--tx) * 50%) calc(50% + var(--ty) * 50%),
    rgba(var(--card-accent-rgb), 0.12),
    transparent 68%
  );
  transition: opacity 0.35s var(--ease);
}
.showcase-card[data-tilt]:hover {
  transform:
    perspective(900px)
    rotateX(calc(var(--ty) * -4.5deg))
    rotateY(calc(var(--tx) * 6deg))
    translate3d(0, -6px, 0);
  transition-duration: 0.14s, 0.35s, 0.35s;
}
.showcase-card[data-tilt]:hover::after { opacity: 1; }

/* Tactile / pointeur grossier : pas de tilt, seulement l'etat de base. */
@media (hover: none), (pointer: coarse) {
  .showcase-card[data-tilt]:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-card[data-tilt]:hover { transform: none; }
  .showcase-card[data-tilt]:hover::after { opacity: 0; }
}

/* ==========================================================================
   Site multi-page (2026-09) : navigation « application »
   ========================================================================== */

/* ---- Transitions entre pages (amélioration progressive, sans routeur) ---- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; }
.site-header { view-transition-name: site-header; }
.tabbar { view-transition-name: tabbar; }

/* ---- Fil d'Ariane --------------------------------------------------------- */
.crumbs { padding-top: calc(var(--header-h) + 0.75rem); font-size: 0.78rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.crumbs li + li::before { content: "›"; margin-right: 0.35rem; color: var(--text-muted); }
.crumbs a { display: inline-block; padding-block: 0.2rem; color: var(--text-muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs a[aria-current="page"] { color: var(--text); }

/* ---- Haut de page : question, titre, phrase -------------------------------- */
.page-head { padding: 0.5rem 0 1.1rem; }
.page-head__q {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}
.page-head__title { font-size: clamp(1.55rem, 5.4vw, 2.6rem); max-width: 24ch; }
.page-head__lead { max-width: 60ch; margin-top: 0.6rem; color: var(--text-muted); font-size: 0.98rem; }

/* ---- Mini-sommaire collant --------------------------------------------------
   Enfant direct de <main> : il reste collé sous l'en-tête sur toute la page. */
.toc {
  position: sticky;
  top: var(--header-h);
  z-index: 60;
  border-block: 1px solid var(--border);
  background: rgba(10, 14, 20, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.toc__inner { display: flex; align-items: center; gap: 0.6rem; }
.toc__k { flex-shrink: 0; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.toc__list {
  display: flex;
  gap: 0.4rem;
  padding-block: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.toc__list::-webkit-scrollbar { display: none; }
.toc__link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.25rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.toc__link:hover { border-color: var(--accent); }
.toc__link[aria-current="true"] { background: rgba(var(--accent-rgb), 0.14); border-color: var(--accent); color: var(--accent); }
/* Les ancres ne passent jamais sous l'en-tête et le mini-sommaire. */
html:has(.toc) { scroll-padding-top: calc(var(--header-h) + 3.5rem); }

/* ---- Sections plus compactes ------------------------------------------------ */
.section--tight { padding-block: clamp(1.9rem, 5vw, 4rem); }
.section--tight h2 { font-size: clamp(1.35rem, 4.4vw, 2.2rem); max-width: 26ch; }
.section__more { margin-top: 1rem; }
.section__cta { margin-top: 1.25rem; width: 100%; }
@media (min-width: 560px) { .section__cta { width: auto; } }
.link-arrow { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; font-weight: 600; color: var(--accent); }
.price-line { margin-top: 1rem; font-family: var(--font-mono); font-size: 0.88rem; color: var(--text-muted); }
.price-line strong { color: var(--accent); }

/* ---- « Voir le détail » : <details> natif ------------------------------------ */
.more { margin-top: 0.35rem; }
.more > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.05rem; transition: transform 0.25s var(--ease); }
.more[open] > summary::after { transform: rotate(45deg); }
.more > :not(summary) { font-size: 0.9rem; color: var(--text-muted); }
.more > p + p { margin-top: 0.5rem; }
.more--block {
  margin-top: 1rem;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.more--block[open] { padding-bottom: 1rem; }
.more--block > summary { display: flex; width: 100%; justify-content: space-between; }
.more summary h3 { display: inline; margin: 0; font-size: 0.98rem; color: var(--text); }
.more .forfait__included, .more .contact-form { margin-top: 0.5rem; }
.more .contact-form { padding: 0; border: 0; background: none; }

/* ---- Accueil-sommaire --------------------------------------------------------- */
.hero--home { min-height: auto; align-items: flex-start; padding-top: calc(var(--header-h) + 1.5rem); padding-bottom: 1.25rem; }
.hero--home .hero__title { font-size: clamp(1.45rem, 6.3vw, 3.4rem); }
.hero--home .hero__subtitle { margin-top: 0.8rem; font-size: 0.98rem; }
.hero--home .hero__badges { gap: 0.4rem; margin-top: 1rem; }
.hero--home .badge { font-size: 0.72rem; padding: 0.3rem 0.7rem; }
@media (min-width: 1024px) {
  .hero--home { min-height: 520px; align-items: center; padding-bottom: 2.5rem; }
}

.tiles-section { position: relative; padding-bottom: 1.75rem; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  min-height: 168px;
  padding: 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile__q { font-size: clamp(1rem, 4.2vw, 1.25rem); line-height: 1.2; }
.tile__a { font-size: 0.82rem; line-height: 1.4; color: var(--text-muted); }
.tile__visual { margin-top: auto; color: var(--accent); }
.tile__visual--phone .phone { width: 38px; }
.tile__visual--phone .phone__frame { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.tile__visual--phone .phone__ph { padding: 18% 12% 10%; gap: 8%; }
.tile__visual--phone .phone__ph-title { display: none; }
.tile__visual--chip {
  align-self: flex-start;
  padding: 0.18rem 0.6rem;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}
.tile--main {
  border-color: var(--accent);
  background: var(--accent);
  color: #04140c;
  box-shadow: 0 18px 50px -20px rgba(var(--accent-rgb), 0.6);
}
.tile--main:hover { box-shadow: 0 0 36px rgba(var(--accent-rgb), 0.5); }
.tile--main .tile__a { color: #04140c; font-size: 0.9rem; }
.tile__cta { margin-top: auto; font-weight: 700; font-size: 0.86rem; }
.tile:focus-visible { outline-offset: 3px; }

.opt-list { display: grid; gap: 0.75rem; margin-top: 0.5rem; }
.opt-list li { display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 1rem; }
.opt-list__name { color: var(--text); font-weight: 600; font-size: 0.9rem; }
.opt-list__price { font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent); text-align: right; }
.opt-list__help { grid-column: 1 / -1; font-size: 0.82rem; }

.ticks { display: grid; gap: 0.5rem; margin-top: 1.1rem; }
.ticks li { position: relative; padding-left: 1.55rem; font-size: 0.95rem; }
.ticks li::before, .forfait__included--short li::before {
  content: "";
  position: absolute; left: 0; top: 0.28em;
  width: 0.95rem; height: 0.95rem;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2300ff9c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4'/%3E%3C/svg%3E") center / 72% no-repeat;
}
.ticks--small li { font-size: 0.86rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.chip--link { min-height: 40px; color: var(--text); transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.chip--link:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Forfait : liste courte, le détail est replié ------------------------------ */
.forfait__included--short { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1rem; }
@media (min-width: 1080px) { .forfait__included--short { grid-template-columns: repeat(4, 1fr); } }
.forfait__included--short strong { font-size: 0.86rem; font-weight: 600; }
.forfait .modes { margin-top: 1.25rem; }
.forfait__terms { margin-top: 1rem; padding-top: 0; border-top: 0; }
.mode { padding: 1.2rem; gap: 0.3rem; }
.mode__price strong { font-size: 1.7rem; }

/* ---- Cas clients -------------------------------------------------------------- */
.case .more { margin-bottom: 0.8rem; }
.case .case__features { margin: 0.4rem 0 0; }
.case__facts { gap: 0.7rem; }

/* ---- Question suivante --------------------------------------------------------- */
.next-step { padding: 1.5rem 0 2rem; }
.next-step__card {
  position: relative;
  display: grid;
  gap: 0.25rem;
  padding: 1.2rem 4rem 1.2rem 1.25rem;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), transparent 60%), var(--surface);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.next-step__card:hover { border-color: var(--accent); transform: translateY(-2px); }
.next-step__k {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.next-step__q { font-family: var(--font-head); font-size: clamp(1.2rem, 4.4vw, 1.6rem); font-weight: 600; line-height: 1.2; }
.next-step__t { font-size: 0.88rem; color: var(--text-muted); }
.next-step__go {
  position: absolute;
  right: 1.1rem; top: 50%;
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--accent);
  color: #04140c;
  font-weight: 700;
}
.section--contact .next-step__k { display: block; margin-bottom: 0.4rem; }

/* ---- Contact ------------------------------------------------------------------- */
.contact__main { width: 100%; margin-top: 1.25rem; }
@media (min-width: 560px) { .contact__main { width: auto; } }
.contact__ways { margin-top: 1rem; max-width: 520px; }

/* ---- Barre d'onglets (mobile) -------------------------------------------------- */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 450;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--border-strong);
  background: rgba(10, 14, 20, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease), visibility 0.3s;
}
.tabbar__list { display: grid; grid-template-columns: repeat(4, 1fr); height: var(--tabbar-h); }
.tabbar__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
}
.tabbar__icon { display: grid; place-items: center; width: 44px; height: 28px; border-radius: 999px; transition: background 0.2s var(--ease); }
.tabbar__link[aria-current="page"] { color: var(--accent); }
.tabbar__link[aria-current="page"] .tabbar__label { font-weight: 700; }
.tabbar__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 26px; height: 2px;
  transform: translateX(-50%);
  border-radius: 0 0 2px 2px;
  background: var(--accent);
}
/* « Tarifs » : l'onglet de conversion, en pastille accent. */
.tabbar__link--main { color: var(--text); }
.tabbar__link--main .tabbar__icon { background: var(--accent); color: #04140c; box-shadow: 0 6px 18px -6px rgba(var(--accent-rgb), 0.7); }
.tabbar__link--main[aria-current="page"] .tabbar__icon { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.3); }
.tabbar__link:focus-visible { outline-offset: -3px; }
@media (min-width: 768px) { .tabbar { display: none; } }
@media (max-width: 767px) {
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  /* Sans JS, la barre de total du simulateur se colle au-dessus des onglets. */
  .sim__dock { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  /* Avec JS : quand le simulateur est à l'écran, la barre de total prend la place. */
  .has-dock-swap .sim__dock { bottom: 0; }
  .sim-docked .tabbar { transform: translateY(105%); visibility: hidden; }
}

/* ==========================================================================
   Synthèse du contenu (2026-09) : moins de texte, un chiffre par carte
   ========================================================================== */
/* Un seul badge de mesure sur l'accueil, discret ; le détail est dans « La preuve ». */
.badge--discreet { display: inline-flex; align-items: center; min-height: 28px; font-size: 0.72rem; opacity: 0.85; transition: border-color .2s var(--ease), color .2s var(--ease); }
.badge--discreet:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }
.tile__a--price { font-size: 0.95rem; }
.tile--main .tile__cta { font-size: 1.1rem; }

/* Option vitrine « prise de rendez-vous » : une ligne, un prix, un bouton. */
.addon {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.9rem 1.25rem;
  margin-top: 1rem; padding: 1.1rem 1.2rem;
  border: 1px dashed rgba(var(--accent-rgb), 0.55);
  border-radius: var(--radius);
  background: rgba(var(--accent-rgb), 0.05);
}
.addon__text { display: grid; gap: 0.3rem; min-width: 0; flex: 1 1 16rem; }
.addon__title { font-size: 1.05rem; }
.addon__desc { font-size: 0.88rem; color: var(--text-muted); }
.addon__price { font-family: var(--font-mono); font-size: 0.9rem; color: var(--accent); }
.addon__cta { width: auto; flex: 0 0 auto; }
.included-line { margin-top: 1rem; font-size: 0.88rem; color: var(--text-muted); }

.case__lead { margin: 0.6rem 0 0.2rem; font-size: 1rem; }
.case .idea__badge { margin-top: 0.2rem; }
.case .case__facts { margin-top: 0.6rem; }
.faq__more { margin-top: 0.4rem; }
.faq__more > .faq { margin-top: 0.6rem; }
.forfait__terms { margin-top: 1rem; }

/* ==========================================================================
   Modèle « site + fonctions + options » (2026-09) : simulateur en 4 étapes
   ========================================================================== */
/* État initial préparé par le serveur quand le JS est disponible : seule
   l'étape de départ est visible, rien ne bouge à l'arrivée de simulateur.js. */
.js .sim__step { margin-bottom: 0; }
.js .sim__step:not(.is-current) { display: none; }
.js .sim:not(.is-js) .sim__detail { display: none; }
html:not(.js) .sim__progress, html:not(.js) .sim__nav, html:not(.js) .sim__total,
html:not(.js) .suggs, html:not(.js) .qty__btn { display: none; }
.sim__opt { font-family: var(--font-body); font-size: 0.85rem; font-weight: 400; color: var(--text-muted); }

/* Avantages de l'abonnement : 3 lignes au-dessus du simulateur. */
.perks { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; }
.perks li { position: relative; padding-left: 1.3rem; font-size: 0.88rem; }
.perks li::before {
  content: ""; position: absolute; left: 0; top: 0.3em;
  width: 0.85rem; height: 0.85rem; border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.18);
  box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 10px var(--accent);
}
.perks__more { margin-top: 0.5rem; }
.perks__more .forfait__included { margin-top: 0.6rem; }
.perks__launch { margin-top: 0.6rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); }
.sim__nav .btn[hidden] { display: none; }
.perks__terms { margin-top: 0.8rem; font-size: 0.85rem; }
.perks__terms a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.section--sim .sim { margin-top: 0.2rem; }
.section--sim { padding-top: 0.4rem; }
@media (max-width: 639px) { .perks li { font-size: 0.84rem; } .perks { gap: 0.2rem 1rem; } }

/* Étape 1 : deux grandes cartes. */
.choices--big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices--big .choice label { min-height: 118px; padding: 0.85rem 0.85rem 0.9rem; }
/* Le « ? » est en haut à droite : seule la première ligne lui laisse la place. */
.choices--big .choice__name, .choices--big .choice__badge { margin-right: 2.3rem; }
.choices--big .choice__badge + .choice__name { margin-right: 0; }
.choices--big .choice__name { font-size: 1.1rem; }
.choices--big .choice__price { font-size: 0.8rem; }
.sim__pages { margin-top: 0.8rem; }

/* Interrupteur (case à cocher native, stylée) : 44 × 26 px. */
.switch {
  -webkit-appearance: none; appearance: none;
  position: relative; flex-shrink: 0;
  width: 44px; height: 26px; margin: 0;
  border-radius: 999px;
  background: var(--border-strong);
  cursor: pointer;
  transition: background .2s var(--ease);
}
.switch::before {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--text);
  transition: transform .2s var(--ease);
}
.switch:checked { background: var(--accent); }
.switch:checked::before { transform: translateX(18px); background: #04140c; }
.switch:disabled { opacity: 0.4; cursor: not-allowed; }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Étape 2 : suggestions, familles repliables, une fonction par ligne. */
.suggs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-bottom: 0.9rem; }
.suggs__k { font-size: 0.82rem; color: var(--text-muted); }
.sugg {
  min-height: 40px; padding: 0.3rem 0.9rem;
  border: 1px dashed rgba(var(--accent-rgb), 0.55); border-radius: 999px;
  font-size: 0.86rem; color: var(--accent);
}
.sugg[aria-pressed="true"] { background: rgba(var(--accent-rgb), 0.14); border-style: solid; }
.fam { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.fam + .fam { margin-top: 0.5rem; }
.fam > summary {
  display: flex; align-items: center; gap: 0.8rem;
  min-height: 52px; padding: 0.4rem 1rem; cursor: pointer; list-style: none;
  font-weight: 600;
}
.fam > summary::-webkit-details-marker { display: none; }
.fam > summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); font-size: 1.15rem; transition: transform .25s var(--ease); }
.fam[open] > summary::after { transform: rotate(45deg); }
.fam__count { margin-left: auto; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; color: var(--accent); }
.fns { padding: 0 0.6rem 0.4rem; }
.fn { position: relative; display: flex; align-items: center; gap: 0.3rem; border-top: 1px solid var(--border); }
.fn__row { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.75rem; min-height: 60px; padding: 0.45rem 0.2rem; cursor: pointer; }
.fn__txt { flex: 1; min-width: 0; display: grid; gap: 0.1rem; }
.fn__name { font-weight: 600; font-size: 0.92rem; line-height: 1.3; }
.fn__desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.35; }
.fn__price { flex-shrink: 0; font-family: var(--font-mono); font-size: 0.76rem; color: var(--accent); white-space: nowrap; }
.fn--sub { padding-left: 1.2rem; }
.fn--sub.is-disabled .fn__row { cursor: not-allowed; }
.fn--sub.is-disabled .fn__txt, .fn--sub.is-disabled .fn__price { opacity: 0.55; }
@media (max-width: 374px) { .fn__row { gap: 0.55rem; } .fn__price { font-size: 0.7rem; } }

/* Étape 3 : deux cartes avec interrupteur. */
.opts { display: grid; gap: 0.6rem; }
.opts > *, .fns > *, .suggs > * { min-width: 0; }
.fn__price--line { margin-top: 0.1rem; white-space: normal; }
.fn__name .check__proof { white-space: nowrap; vertical-align: 0.1em; }
.sim__legend:focus { outline: none; }
.opt { position: relative; display: flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.5rem 0.2rem 0.6rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); }
.opt:has(.switch:checked) { border-color: rgba(var(--accent-rgb), 0.7); background: rgba(var(--accent-rgb), 0.06); }
.opt__row { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.75rem; min-height: 72px; padding: 0.5rem 0.2rem; cursor: pointer; }
.opts + .more { margin-top: 0.9rem; }

/* Étape 4 : récapitulatif et boutons. */
.sim__ctas { display: grid; gap: 0.6rem; margin-top: 1rem; }
.sim__ctas .btn { width: 100%; min-height: 52px; white-space: normal; }

/* Barre de total : une ligne lisible dès 320 px ; un appui ouvre le détail. */
.sim__total {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  width: 100%; min-height: 44px; padding: 0.1rem 0;
  text-align: left; color: var(--text);
}
.sim__total-line { font-size: 0.95rem; color: var(--text-muted); white-space: nowrap; }
.sim__total-line strong { display: inline-block; font-family: var(--font-mono); font-size: 1.08rem; color: var(--text); font-variant-numeric: tabular-nums; }
.sim__total-line strong.is-bump { animation: bump .45s var(--ease); }
.sim__total-chev { width: 0.55rem; height: 0.55rem; margin-right: 0.3rem; border-right: 2px solid var(--accent); border-top: 2px solid var(--accent); transform: rotate(-45deg); transition: transform .2s var(--ease); flex-shrink: 0; }
.sim__total[aria-expanded="true"] .sim__total-chev { transform: rotate(135deg); }
.sim__detail { max-height: 42vh; overflow-y: auto; padding: 0.4rem 0 0.2rem; }
.sim__detail .recap__list li { font-size: 0.82rem; }
.sim__detail .totals__note { display: block; margin-top: 0.5rem; }
@media (max-width: 359px) { .sim__total-line { font-size: 0.86rem; } .sim__total-line strong { font-size: 0.98rem; } }
@media (min-width: 980px) {
  /* Ordinateur : le détail reste visible dans le panneau latéral. */
  .sim.is-js .sim__detail[hidden] { display: block !important; }
  .sim__total { pointer-events: none; }
  .sim__total-line { white-space: normal; font-size: 1rem; }
  .sim__total-line strong { font-size: 1.5rem; color: var(--accent); }
  .sim__total-chev { display: none; }
  .sim__detail { max-height: none; margin-top: 0.6rem; padding-top: 0.8rem; border-top: 1px solid var(--border); }
}

/* ==========================================================================
   « Vous faites quoi ? » en 3 briques, pages métiers, guides
   ========================================================================== */
.brick__n {
  display: inline-grid; place-items: center;
  width: 2rem; height: 2rem; margin-bottom: 0.6rem;
  border: 2px solid var(--accent); border-radius: 50%;
  font-family: var(--font-mono); font-weight: 600; color: var(--accent);
}
.fam-grid { display: grid; gap: 0.7rem; margin-top: 1.1rem; }
@media (min-width: 640px) { .fam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .fam-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fam-card { padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.fam-card__name { font-size: 1rem; margin-bottom: 0.5rem; }
.fam-card__list { display: grid; gap: 0.3rem; font-size: 0.88rem; color: var(--text-muted); }
.metier-links { display: grid; gap: 0.2rem; margin-top: 0.8rem; }
.ticks--rich li { font-size: 0.93rem; }
.ticks--rich strong { color: var(--text); }

.prose { max-width: 760px; }
.prose p + p { margin-top: 0.8rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose strong { color: var(--text); }
.prose a:not(.btn):not(.link-arrow) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { display: grid; gap: 0.45rem; margin: 0.8rem 0; padding-left: 1.1rem; list-style: disc; }
.prose__more { margin-top: 1rem; color: var(--text-muted); }
.links-row { display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; margin-top: 0.8rem; }
.case__more { margin-top: 0.6rem; }
.price-box {
  display: grid; gap: 0.45rem; justify-items: start;
  margin-top: 1.4rem; padding: 1.2rem;
  border: 1px solid rgba(var(--accent-rgb), 0.5); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), transparent 60%), var(--surface);
}
.price-box__k { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.price-box__main { font-size: 1.02rem; color: var(--text); }
.price-box__main strong { font-family: var(--font-mono); color: var(--accent); }
.price-box__sub { font-size: 0.86rem; color: var(--text-muted); }
.price-box .btn { margin-top: 0.4rem; white-space: normal; }

.guide__meta { margin-top: 0.5rem; font-size: 0.8rem; color: var(--text-muted); }
.guide__answer { color: var(--text); }
.guide__toc { margin: 0.4rem 0 1.4rem; padding: 1rem 1.2rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.guide__toc-k { font-size: 0.9rem; margin-bottom: 0.4rem; }
.guide__toc ol { display: grid; gap: 0.1rem; padding-left: 1.2rem; list-style: decimal; }
.guide__toc li { color: var(--text-muted); }
.prose .guide__toc a:not(.btn):not(.link-arrow), .guide__toc a { display: block; padding-block: 0.3rem; color: var(--text-muted); text-decoration: none; }
.prose .guide__toc a:not(.btn):not(.link-arrow):hover, .guide__toc a:hover { color: var(--accent); }
.guide__section { padding-block: 1rem; }
.guide__section h2 { font-size: clamp(1.2rem, 4vw, 1.6rem); margin-bottom: 0.6rem; }
.guide__sources { padding-block: 1rem; font-size: 0.86rem; }
.guide__sources h2 { font-size: 1rem; margin-bottom: 0.4rem; }
.guide__sources a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.guide__more { display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; margin: 0.5rem 0 1rem; }
.guide-list { display: grid; gap: 0.8rem; max-width: 820px; }
.guide-card__link {
  display: grid; gap: 0.35rem; padding: 1.1rem 1.2rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  transition: border-color .2s var(--ease);
}
.guide-card__link:hover { border-color: var(--accent); }
.guide-card__title { font-size: 1.08rem; color: var(--text); }
.guide-card__desc { font-size: 0.88rem; color: var(--text-muted); }
.guide-card__meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); }
.site-footer__links--metiers { margin-top: 0.4rem; font-size: 0.8rem; }
/* Paiement dans l'étape 4 : pleine largeur, libellés sur une ligne dès 320 px. */
.sim__step .billing { display: flex; width: 100%; margin: 0 0 1rem; }
.sim__step .billing label { flex: 1 1 auto; justify-content: center; white-space: nowrap; padding: 0.35rem 0.7rem; }
@media (max-width: 400px) {
  .sim__step .billing label { gap: 0.3rem; padding: 0.35rem 0.45rem; font-size: 0.86rem; }
  .sim__step .billing__gift { padding: 0.06rem 0.35rem; font-size: 0.6rem; }
}
/* Avantages de l'abonnement, sous le simulateur : le simulateur démarre
   juste sous la phrase d'introduction, même sur un petit écran. */
.sim-perks { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }

/* Étape 1 : paliers de prix selon le nombre de pages (un appui = un palier). */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-bottom: 0.8rem; }
.tier {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem;
  min-width: 0; min-height: 88px; padding: 0.75rem 0.7rem;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); text-align: left; color: var(--text);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.tier:hover { border-color: rgba(var(--accent-rgb), 0.6); }
.tier[aria-pressed="true"] { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.08); box-shadow: inset 0 3px 0 var(--accent); }
.tier__name { font-size: 0.84rem; font-weight: 600; line-height: 1.25; }
.tier__price { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 600; color: var(--accent); }
.tier__sub { font-size: 0.7rem; line-height: 1.3; color: var(--text-muted); }
.sim__pages .check__name { font-weight: 600; }
.sim__pages .check__price { white-space: nowrap; }
.sim__monthly { margin-top: 0.8rem; font-size: 0.86rem; }
.sim__monthly strong { color: var(--text); font-family: var(--font-mono); }
.billing__saving { margin: -0.4rem 0 1rem; font-size: 0.86rem; color: var(--text-muted); }
@media (max-width: 374px) { .tier { padding: 0.65rem 0.5rem; } .tier__name { font-size: 0.78rem; } }
/* Même grille de paliers, en lecture seule (« Vous faites quoi ? »). */
.tiers--static { max-width: 640px; margin-top: 1rem; }
.tiers--static .tier:hover { border-color: var(--border-strong); }
