/* =========================================================
   Nodly · feuille de style du site
   Mise en page : hero sombre (encre) avec un aperçu de la semaine de l'agence,
   puis sections claires sur papier, pied de page sombre.
   ========================================================= */

:root {
  /* Couleurs de la marque (voir identite.html) */
  --ink: #0B0D12;          /* encre : textes, fonds sombres */
  --ink-2: #151922;        /* surfaces sur fond sombre */
  --ink-3: #232836;        /* traits sur fond sombre */
  --blue: #2F5BFF;         /* bleu Nodly : le point, les boutons */
  --blue-hover: #1F47E6;
  --blue-on-dark: #7C95FF; /* bleu lisible sur fond sombre */
  --paper: #F6F7F9;        /* fond clair */
  --white: #FFFFFF;
  --text: #0B0D12;
  --muted: #5A6170;        /* textes secondaires */
  --muted-on-dark: #A3ABBC;
  --line: #E3E6EC;

  /* Polices */
  --f-display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* Échelle typographique */
  --t-xs: 0.8125rem;   /* 13 */
  --t-sm: 0.9375rem;   /* 15 */
  --t-md: 1.0625rem;   /* 17 */
  --t-lg: 1.25rem;     /* 20 */
  --t-xl: clamp(1.75rem, 3.2vw, 2.5rem);
  --t-hero: clamp(2.5rem, 6.4vw, 4.75rem);

  /* Espacements */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-6: 48px; --s-8: 64px; --s-12: 96px;
  --radius: 14px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --maxw: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
section[id] { scroll-margin-top: 80px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

.eyebrow {
  font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.section { padding-block: var(--s-12); }
.section-head { display: grid; gap: var(--s-2); max-width: 720px; margin-bottom: var(--s-6); }
.section-head h2 { font-size: var(--t-xl); font-weight: 700; }
.section-head p { color: var(--muted); font-size: var(--t-md); max-width: 62ch; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 0;
  font-family: var(--f-display); font-weight: 600; font-size: var(--t-sm);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 6px 20px -8px rgba(47, 91, 255, .7); }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: rgba(127, 127, 127, .12); }
.btn svg { width: 18px; height: 18px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 18, .96);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header.scrolled { border-bottom-color: var(--ink-3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 72px; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--s-4); }
.nav ul { display: flex; gap: var(--s-3); list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { color: var(--muted-on-dark); text-decoration: none; font-size: var(--t-sm); transition: color .2s ease; }
.nav a:not(.btn):hover { color: var(--white); }
.nav .btn { min-height: 42px; padding: 0 18px; }
.menu-toggle {
  display: none; background: none; border: 0; color: var(--white); cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px;
}
.menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); border-bottom: 1px solid var(--ink-3);
    flex-direction: column; align-items: stretch; gap: var(--s-3);
    padding: var(--s-2) var(--gutter-r) var(--s-4) var(--gutter);
    display: none;
  }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 12px 0; font-size: var(--t-md); }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink); color: var(--white);
  position: relative; overflow: hidden;
  padding-block: var(--s-8) var(--s-12);
}
/* trame de points : le réseau de « nœuds » */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.09) 1px, transparent 0);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -200px;
  background: radial-gradient(closest-side, rgba(47, 91, 255, .28), transparent);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s-8); align-items: center; }
.hero-copy { display: grid; gap: var(--s-3); min-width: 0; }
.hero .eyebrow { color: var(--muted-on-dark); display: inline-flex; align-items: center; gap: 10px; }
.hero .eyebrow::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-on-dark); box-shadow: 0 0 0 4px rgba(124,149,255,.18); }
.hero h1 { font-size: var(--t-hero); font-weight: 700; letter-spacing: -0.04em; }
/* la petite ligne au-dessus du slogan fait partie du h1 (référencement) mais garde son style */
.hero h1 .eyebrow { display: flex; width: fit-content; max-width: 100%; margin-bottom: var(--s-3); font-weight: 400; line-height: 1.5; letter-spacing: 0.08em; }
.hero h1 .h1-main { display: block; }
.site-footer .zones { font-size: 13px; opacity: .75; margin-top: 10px; max-width: 34ch; }
.hero h1 .dot { display: inline-block; width: .17em; height: .17em; margin-left: .05em; border-radius: 50%; background: var(--blue-on-dark); vertical-align: baseline; }
.hero .lead { font-size: var(--t-lg); color: #C9CFDB; max-width: 36ch; line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin-top: var(--s-1); }
.hero-cta .btn-ghost { color: var(--white); }
.hero-note { font-size: var(--t-xs); color: var(--muted-on-dark); font-family: var(--f-mono); }

/* Aperçu : la semaine de l'agence */
.week {
  background: linear-gradient(180deg, var(--ink-2), #10131A);
  border: 1px solid var(--ink-3); border-radius: 18px;
  padding: var(--s-3); display: grid; gap: var(--s-2);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8);
  min-width: 0;
}
.week-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); flex-wrap: wrap; }
.week-head b { font-family: var(--f-display); font-weight: 600; font-size: var(--t-sm); }
.week-head span { font-family: var(--f-mono); font-size: 12px; color: var(--muted-on-dark); }
.week ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.task {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: start;
  padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--ink-3);
  animation: taskIn .6s cubic-bezier(.2,.8,.2,1) both;
}
.task:nth-child(2) { animation-delay: .15s; } .task:nth-child(3) { animation-delay: .3s; } .task:nth-child(4) { animation-delay: .45s; }
.task svg { width: 20px; height: 20px; margin-top: 2px; }
.task .t { font-size: var(--t-sm); font-weight: 500; color: var(--white); line-height: 1.35; }
.task .d { font-size: 13px; color: var(--muted-on-dark); line-height: 1.4; }
.pill { font-family: var(--f-mono); font-size: 11px; padding: 3px 8px; border-radius: 999px; white-space: nowrap; align-self: center; }
.pill.ok { background: rgba(31,157,97,.16); color: #5BD69B; }
.pill.wait { background: rgba(183,121,31,.18); color: #F2B65A; }
.pill.next { background: rgba(124,149,255,.16); color: var(--blue-on-dark); }
.week-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); padding-top: var(--s-2); border-top: 1px dashed var(--ink-3); flex-wrap: wrap; }
.week-foot span { font-size: 13px; color: var(--muted-on-dark); }
.week-foot b { font-family: var(--f-display); font-size: var(--t-lg); color: var(--white); font-variant-numeric: tabular-nums; }
.example-tag { font-family: var(--f-mono); font-size: 11px; color: var(--muted-on-dark); }

@keyframes taskIn { from { opacity: .001; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-6); }
}
@media (max-width: 480px) {
  .task { grid-template-columns: 22px minmax(0, 1fr); }
  .task .pill { grid-column: 2; justify-self: start; }
}

/* Bandeau de repères */
.strip { background: var(--white); border-bottom: 1px solid var(--line); }
.strip ul { list-style: none; margin: 0 auto; padding-block: var(--s-3); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); justify-content: space-between; }
.strip li { display: flex; align-items: center; gap: 10px; font-size: var(--t-sm); color: var(--muted); }
.strip svg { width: 18px; height: 18px; color: var(--blue); flex: none; }

/* ---------- Problème ---------- */
.pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pain { background: var(--white); padding: var(--s-4); display: grid; gap: 10px; align-content: start; }
.pain .when { font-family: var(--f-mono); font-size: 12px; color: var(--blue); letter-spacing: .04em; }
.pain h3 { font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.015em; }
.pain p { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 720px) { .pains { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services { background: var(--white); border-block: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4) var(--s-3);
  display: grid; gap: 12px; align-content: start; background: var(--white);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: #C9D3FF; transform: translateY(-2px); box-shadow: 0 18px 40px -28px rgba(47,91,255,.45); }
.card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--white); display: grid; place-items: center; position: relative; }
.card .ic::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); border: 2px solid var(--white); }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.015em; }
.card p { color: var(--muted); font-size: var(--t-sm); }
.card .get { font-family: var(--f-mono); font-size: 12px; color: var(--text); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.card .get span { color: var(--muted); }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Tarifs : 3 packs, puis les automatisations seules */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: var(--s-4);
}
.plan h3 { font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.015em; }
.plan-for { color: var(--muted); font-size: var(--t-sm); }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.plan-price b { font-family: var(--f-display); font-size: clamp(2rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan-price span { color: var(--muted); font-size: var(--t-sm); }
.plan-setup { font-family: var(--f-mono); font-size: 12px; color: var(--muted); padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.plan ul { list-style: none; margin: 6px 0 var(--s-3); padding: 0; display: grid; gap: 10px; font-size: var(--t-sm); }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.plan li::before {
  content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: #E8EDFF no-repeat center/11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F5BFF' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E");
}
.plan .btn { margin-top: auto; justify-content: center; }
.plan.featured { background: var(--ink); color: var(--white); border-color: var(--ink); box-shadow: 0 40px 80px -50px rgba(47, 91, 255, .7); }
.plan.featured .plan-for, .plan.featured .plan-price span, .plan.featured .plan-setup { color: var(--muted-on-dark); }
.plan.featured .plan-setup { border-color: #2A2F3B; }
.plan.featured li::before { background-color: rgba(124, 149, 255, .18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C95FF' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E"); }
.plan-badge {
  position: absolute; top: -12px; left: var(--s-4);
  font: 500 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  background: var(--blue); color: var(--white); padding: 5px 10px; border-radius: 99px;
}
.solo { margin-top: var(--s-6); display: grid; gap: var(--s-2); }
.solo h3 { font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.015em; }
.solo-table { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.solo-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px 110px; gap: var(--s-2); padding: 14px 20px; border-top: 1px solid var(--line); font-size: var(--t-sm); align-items: center; }
.solo-row:first-child { border-top: 0; }
.solo-row span:not(:first-child) { text-align: right; font-family: var(--f-display); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.solo-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.solo-headrow { background: #FAFBFC; font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.solo-headrow span:not(:first-child) { font-family: var(--f-mono); font-weight: 400; }
.support { margin-top: var(--s-4); background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 16px; padding: var(--s-3) var(--s-4); display: grid; gap: 12px; }
.support h3 { font-size: var(--t-md); font-weight: 600; }
.support ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: var(--t-sm); color: var(--muted); }
.support li b { color: var(--text); font-weight: 600; }
.pricing-note { font-size: var(--t-sm); color: var(--muted); }
.pricing-note b { color: var(--text); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; } .plan.featured { order: -1; } }
@media (max-width: 520px) {
  .solo-row { grid-template-columns: minmax(0, 1fr) 76px 64px; padding: 12px 14px; gap: 10px; font-size: 14px; }
  .solo-headrow { font-size: 11px; line-height: 1.3; }
  .solo-headrow span:not(:first-child) { white-space: normal; }
}
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Méthode ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); counter-reset: step; }
.step { display: grid; gap: 10px; align-content: start; padding-top: var(--s-3); border-top: 2px solid var(--ink); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--f-mono); font-size: 12px; color: var(--blue); letter-spacing: .06em;
}
.step h3 { font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.015em; }
.step p { color: var(--muted); font-size: var(--t-sm); }
.step .when { font-family: var(--f-mono); font-size: 12px; color: var(--text); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-6); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Contrôle + bilan ---------- */
.control { background: var(--ink); color: var(--white); }
.control .section-head p, .control .eyebrow { color: var(--muted-on-dark); }
.control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: start; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.promises li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-2); align-items: start; }
.promises .ic { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--ink-3); background: var(--ink-2); display: grid; place-items: center; color: var(--blue-on-dark); }
.promises .ic svg { width: 20px; height: 20px; }
.promises b { display: block; font-family: var(--f-display); font-weight: 600; font-size: var(--t-md); margin-bottom: 2px; }
.promises p { color: var(--muted-on-dark); font-size: var(--t-sm); }

.report { background: var(--white); color: var(--text); border-radius: 18px; padding: var(--s-4); display: grid; gap: var(--s-3); min-width: 0; }
.report-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.report-head b { font-family: var(--f-display); font-size: var(--t-lg); font-weight: 600; }
.report-head span { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.kpi { background: var(--white); padding: var(--s-2) var(--s-3); display: grid; gap: 2px; }
.kpi .v { font-family: var(--f-display); font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: var(--t-sm); color: var(--muted); font-weight: 600; }
.kpi .l { font-size: 13px; color: var(--muted); }
.kpi.main { grid-column: 1 / -1; background: #F2F5FF; }
.kpi.main .v { color: var(--blue); font-size: 2.5rem; }
.bars { display: grid; gap: 8px; }
.bars-title { font-size: 13px; font-weight: 500; }
.bar { display: grid; grid-template-columns: minmax(0, 156px) minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.bar .track { background: #EEF1F6; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--blue), #8FA4FF); }
.bar b { font-family: var(--f-mono); font-weight: 500; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.report .note { font-size: 12px; color: var(--muted); font-family: var(--f-mono); }
@media (max-width: 900px) { .control-grid { grid-template-columns: 1fr; } }

/* ---------- À propos ---------- */
.about-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--s-6); align-items: center; }
.photo {
  aspect-ratio: 4 / 5; max-width: 100%; border-radius: 18px; background: #E9ECF2;
  border: 1.5px dashed #C3C9D4; display: grid; place-items: center; align-content: center; text-align: center;
  color: var(--muted); font-size: var(--t-sm); padding: var(--s-3);
}
.photo svg { width: 40px; height: 40px; margin: 0 auto 8px; color: #9AA2B1; }
.about-copy { display: grid; gap: var(--s-2); max-width: 62ch; }
.about-copy h2 { font-size: var(--t-xl); font-weight: 700; }
.about-copy p { color: var(--muted); }
.about-copy p strong { color: var(--text); font-weight: 600; }
.signature { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-1); font-family: var(--f-mono); font-size: 13px; color: var(--text); }
.signature span { display: inline-flex; align-items: center; gap: 8px; }
.signature svg { width: 16px; height: 16px; color: var(--blue); }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } .photo { width: 240px; } }

/* ---------- FAQ ---------- */
.faq { background: var(--white); border-block: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--s-6); align-items: start; }
.faq-grid .section-head { margin-bottom: 0; align-content: start; }
.faq-list { display: grid; border-top: 1px solid var(--line); align-content: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: var(--s-2);
  font-family: var(--f-display); font-weight: 600; font-size: var(--t-md); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px;
  background: no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F5BFF' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; max-width: 64ch; font-size: var(--t-sm); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: var(--s-4); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: start; }
.book {
  background: var(--ink); color: var(--white); border-radius: 18px; padding: var(--s-6) var(--s-4);
  display: grid; gap: var(--s-3); position: relative; overflow: hidden;
}
.book::after { content: ""; position: absolute; width: 360px; height: 360px; right: -140px; bottom: -160px; background: radial-gradient(closest-side, rgba(47,91,255,.35), transparent); pointer-events: none; }
.book > * { position: relative; z-index: 1; }
.book h2 { font-size: var(--t-xl); font-weight: 700; }
.book p { color: #C9CFDB; }
.book ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.book li { display: flex; gap: 10px; align-items: center; font-size: var(--t-sm); color: #DDE2EC; }
.book li svg { width: 18px; height: 18px; color: var(--blue-on-dark); flex: none; }
.book .btn { justify-self: start; }

.form { display: grid; gap: var(--s-2); }
.form h3 { font-size: var(--t-lg); font-weight: 600; }
.form > p { color: var(--muted); font-size: var(--t-sm); }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: var(--t-sm); font-weight: 500; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--text); background: var(--white);
  border: 1.5px solid #D5DAE3; border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,91,255,.15); }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: #C53030; }
.field .err { font-size: 13px; color: #C53030; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.form .legal { font-size: 13px; color: var(--muted); }
.form .btn { justify-self: start; }
.form-status { font-size: var(--t-sm); padding: 12px 14px; border-radius: 10px; }
.form-status.ok { background: #E8F7EF; color: #12643C; }
.form-status.err { background: #FDECEC; color: #9B2C2C; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: var(--muted-on-dark); padding-block: var(--s-8) calc(var(--s-4) + env(safe-area-inset-bottom, 0px)); font-size: var(--t-sm); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-4); padding-bottom: var(--s-6); border-bottom: 1px solid var(--ink-3); }
.footer-grid img { height: 24px; width: auto; margin-bottom: var(--s-2); }
.footer-grid h4 { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--white); margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-2); padding-top: var(--s-3); font-size: var(--t-xs); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Pages légales ---------- */
.legal-page { padding-block: var(--s-8) var(--s-12); }
.legal-page .wrap { max-width: 780px; }
.legal-page h1 { font-size: var(--t-xl); margin-bottom: var(--s-2); }
.legal-page h2 { font-size: var(--t-lg); margin-top: var(--s-6); margin-bottom: var(--s-1); letter-spacing: -0.01em; }
.legal-page p, .legal-page li { color: #303644; font-size: var(--t-sm); }
.legal-page p + p { margin-top: 12px; }
.legal-page ul { padding-left: 20px; display: grid; gap: 6px; }
.legal-page .updated { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.todo { background: #FFF6E0; color: #7A4B00; padding: 0 4px; border-radius: 4px; font-family: var(--f-mono); font-size: .9em; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   Démo interactive
   ========================================================= */
.demo { background: var(--paper); }
.demo-app {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 50px 100px -60px rgba(11, 13, 18, .45);
}
.demo-bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap;
  padding: 12px 16px; background: var(--ink); color: var(--white);
}
.demo-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: var(--t-sm); }
.demo-brand img { width: 22px; height: 22px; border-radius: 6px; }
.demo-tabs { display: flex; gap: 4px; background: var(--ink-2); border: 1px solid var(--ink-3); padding: 4px; border-radius: 12px; overflow-x: auto; max-width: 100%; }
.demo-tabs button {
  font: 600 var(--t-xs)/1 var(--f-display); color: var(--muted-on-dark); background: transparent; border: 0;
  padding: 10px 14px; min-height: 40px; border-radius: 9px; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.demo-tabs button:hover { color: var(--white); }
.demo-tabs button[aria-selected="true"] { background: var(--blue); color: var(--white); }

.demo-body { display: grid; grid-template-columns: minmax(0, 1fr) 210px minmax(0, 1.25fr); gap: 0; min-height: 460px; }
.demo-col { padding: var(--s-3); display: grid; gap: var(--s-2); align-content: start; min-width: 0; }
.demo-in { background: #FAFBFC; border-right: 1px solid var(--line); }
.demo-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.demo-label span { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.demo-label small { font-size: 12px; color: var(--muted); }
.notes {
  margin: 0; font-family: var(--f-mono); font-size: 13px; line-height: 1.7; color: #2B3140;
  white-space: pre-wrap; word-break: break-word;
  background: #FFFDF5; border: 1px solid #EFE6C8; border-radius: 12px; padding: 16px;
  background-image: repeating-linear-gradient(transparent 0 21.1px, #F1E9CF 21.1px 22.1px);
  background-position: 0 15px;
}
.demo-run { justify-self: start; }
.demo-run svg { width: 16px; height: 16px; }

.demo-steps {
  list-style: none; margin: 0; padding: var(--s-3) var(--s-2); display: grid; gap: 14px; align-content: center;
  border-right: 1px solid var(--line); counter-reset: ds; position: relative;
  background: linear-gradient(180deg, #F7F9FF, #FFFFFF);
}
.demo-steps li {
  display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center;
  font-size: 13px; color: #9AA2B1; line-height: 1.3; transition: color .25s ease;
}
.demo-steps li::before {
  counter-increment: ds; content: counter(ds);
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font: 500 12px var(--f-mono); border: 1.5px solid #D5DAE3; color: #9AA2B1; background: var(--white);
  transition: all .25s ease;
}
.demo-steps li.active { color: var(--text); }
.demo-steps li.active::before { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 5px rgba(47, 91, 255, .14); animation: pulse 1s ease-in-out infinite; }
.demo-steps li.done { color: var(--text); }
.demo-steps li.done::before {
  content: ""; background: var(--blue) no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E");
  border-color: var(--blue);
}
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(47, 91, 255, .06); } }

.demo-out { position: relative; }
.langs { display: inline-flex; gap: 4px; justify-self: start; background: #EEF1F6; padding: 4px; border-radius: 10px; }
.langs button { font: 600 12px var(--f-mono); border: 0; background: transparent; color: var(--muted); padding: 8px 12px; min-height: 36px; border-radius: 7px; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--white); color: var(--blue); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.doc {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; min-height: 280px; max-height: 360px; overflow-y: auto;
  display: grid; gap: 10px; align-content: start; font-size: 14.5px; line-height: 1.55; color: #262B36; background: var(--white);
}
.doc p, .doc h4 { margin: 0; }
.doc h4 { font-family: var(--f-display); font-size: 14px; font-weight: 600; margin-top: 4px; letter-spacing: -0.01em; }
.doc-empty { color: #9AA2B1; font-size: 14px; margin: auto 0; text-align: center; padding: 40px 0; }
.doc-meta { font-family: var(--f-mono); font-size: 12px; color: var(--muted); padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.doc-title { font-size: 17px !important; line-height: 1.3; }
.doc-price { font-family: var(--f-display); font-weight: 600; color: var(--blue); }
.doc-li { padding-left: 16px; position: relative; }
.doc-li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.doc-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 8px; background: #F7F8FA; font-size: 13.5px; }
.doc-row .ok, .doc-row .todo { font: 500 11px var(--f-mono); padding: 3px 8px; border-radius: 99px; white-space: nowrap; align-self: center; }
.doc-row .ok { background: #E3F5EC; color: #12643C; }
.doc-row .wait { font: 500 11px var(--f-mono); padding: 3px 8px; border-radius: 99px; white-space: nowrap; align-self: center; background: #FFF1DC; color: #8A4B00; }
.doc-row .num { font: 600 13px var(--f-display); color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; align-self: center; }
/* Messages (SMS, WhatsApp) : envoyé à droite en bleu, reçu à gauche en gris */
.doc-msg { max-width: 86%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.doc-msg-out { justify-self: end; background: var(--blue); color: var(--white); border-bottom-right-radius: 5px; }
.doc-msg-in { justify-self: start; background: #EEF1F6; color: #262B36; border-bottom-left-radius: 5px; }
.doc-msg-out .you { background: rgba(255, 255, 255, .2); border-radius: 4px; padding: 0 4px; }
.doc .you { font-weight: 600; }
.doc-quote { border-left: 3px solid #F2B65A; padding: 2px 0 2px 12px; color: #3A4152; font-style: italic; }
.doc .todo { background: #FFF1C7; color: #7A4B00; border-radius: 4px; padding: 1px 4px; }
.running .doc span:last-child::after { content: ""; display: inline-block; width: 2px; height: 1em; background: var(--blue); margin-left: 2px; vertical-align: -2px; animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.demo-result { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; animation: taskIn .4s ease both; }
.demo-time { display: grid; }
.demo-time b { font-family: var(--f-display); font-size: var(--t-lg); color: var(--blue); font-variant-numeric: tabular-nums; }
.demo-time.muted b { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.demo-time span { font-size: 12px; color: var(--muted); }
.demo-send { margin-left: auto; color: var(--text); min-height: 42px; }
.demo-status { font-size: 13px; color: var(--muted); min-height: 1.2em; }
.demo-foot { margin: 0; padding: 12px 20px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); background: #FAFBFC; font-family: var(--f-mono); }

@media (max-width: 960px) {
  .demo-body { grid-template-columns: 1fr; }
  .demo-in { border-right: 0; border-bottom: 1px solid var(--line); }
  .demo-steps { border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: repeat(2, minmax(0, 1fr)); padding: var(--s-2) var(--s-3); }
}
@media (max-width: 520px) {
  .demo-steps { grid-template-columns: 1fr; gap: 10px; }
  .demo-col { padding: var(--s-2); }
  .demo-send { margin-left: 0; }
}

/* =========================================================
   Calculateur
   ========================================================= */
.calc { background: var(--white); border-top: 1px solid var(--line); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.calc .section-head { margin-bottom: 0; }
.calc-inputs { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.range { display: grid; gap: 10px; }
.range label { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t-sm); font-weight: 500; }
.range output { font: 600 var(--t-md) var(--f-display); color: var(--blue); font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.range input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
.range input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: #E3E7EF; }
.range input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: #E3E7EF; }
.range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue); box-shadow: 0 2px 8px rgba(47,91,255,.35); }
.range input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue); }
.range input[type="range"]:focus-visible { outline: none; }
.range input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(47,91,255,.25); }

.calc-result {
  background: var(--ink); color: var(--white); border-radius: 20px; padding: var(--s-6) var(--s-4);
  display: grid; gap: var(--s-2); position: relative; overflow: hidden; min-width: 0;
}
.calc-result::after { content: ""; position: absolute; width: 380px; height: 380px; right: -150px; top: -170px; background: radial-gradient(closest-side, rgba(47,91,255,.35), transparent); pointer-events: none; }
.calc-result > * { position: relative; z-index: 1; }
.calc-result .eyebrow { color: var(--muted-on-dark); }
.calc-big { font-family: var(--f-display); font-size: var(--t-lg); color: #C9CFDB; }
.calc-big b { display: block; font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: 1; color: var(--white); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.calc-sub { color: var(--blue-on-dark); font-size: var(--t-sm); }
.calc-bars { display: grid; gap: 10px; margin-block: var(--s-2); }
.cbar { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 52px; gap: 10px; align-items: center; font-size: 13px; color: var(--muted-on-dark); }
.cbar .track { background: var(--ink-3); border-radius: 99px; overflow: hidden; height: 8px; }
.cbar i { display: block; height: 8px; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--blue-on-dark)); transition: width .35s cubic-bezier(.2,.8,.2,1); }
.cbar b { font: 500 13px var(--f-mono); color: var(--white); text-align: right; font-variant-numeric: tabular-nums; }
.calc-result .btn { justify-self: start; }
.calc-note { font-size: 12px; color: var(--muted-on-dark); line-height: 1.55; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; gap: var(--s-6); } }

/* =========================================================
   Animations : hero et apparitions au défilement
   ========================================================= */
.pill.busy { background: rgba(255,255,255,.06); color: var(--muted-on-dark); }
.pill.busy::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; vertical-align: -1px; animation: spin .8s linear infinite; }
.pill.pop { animation: pop .35s cubic-bezier(.2,1.4,.4,1); }
.task { transition: border-color .4s ease, background-color .4s ease; }
.task.done { border-color: #2C3550; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(.85); } to { transform: none; } }

.js-reveal [data-reveal], .js-reveal .pain, .js-reveal .card, .js-reveal .step, .js-reveal .promises li, .js-reveal .faq details {
  opacity: 0; transform: translateY(14px);
  transition: opacity .4s ease-out, transform .4s cubic-bezier(.2,.8,.2,1);
}
.js-reveal .in { opacity: 1 !important; transform: none !important; }
.js-reveal .card.in:hover { transform: translateY(-2px) !important; }

/* =========================================================
   Animations liées au contenu
   ========================================================= */
/* Réseau de nœuds dans le hero */
.hero-net {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 45%, #000 35%, transparent 85%);
          mask-image: radial-gradient(ellipse 70% 80% at 72% 45%, #000 35%, transparent 85%);
}

/* Temps perdu sur chaque problème */
.pain .cost {
  justify-self: start; margin-top: 4px; display: inline-flex; align-items: baseline; gap: 6px;
  font-size: 13px; color: #8A3B12; background: #FFF1E8; border: 1px solid #FBD9C4; border-radius: 999px; padding: 4px 12px;
}
.pain .cost b { font-family: var(--f-display); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }

/* Méthode : ligne de progression */
.steps.tracked { position: relative; }
.steps.tracked .step { border-top-color: #D5DAE3; transition: opacity .4s ease; }
.steps.tracked .step:not(.lit) { opacity: .55; }
.steps.tracked::before {
  content: ""; position: absolute; top: 0; left: 0; height: 2px; z-index: 1;
  width: calc(var(--p, 0) * 100%); background: var(--blue); border-radius: 2px;
}
.steps.tracked::after {
  content: ""; position: absolute; top: -5px; z-index: 2; width: 12px; height: 12px; border-radius: 50%;
  left: calc(var(--p, 0) * 100% - 6px); background: var(--blue); box-shadow: 0 0 0 5px rgba(47, 91, 255, .18);
}
@media (max-width: 960px) {
  .steps.tracked::before, .steps.tracked::after { display: none; }
  .steps.tracked .step.lit { border-top-color: var(--blue); }
}

/* Bilan : barres qui se remplissent */
.report .bar i { transition: width .9s cubic-bezier(.2, .8, .2, 1); }

/* Services : le point bleu réagit au survol */
.card .ic::before {
  content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue); opacity: 0;
}
.card:hover .ic::before { animation: ring 1.1s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(3.4); opacity: 0; } }

/* Le point du titre « sonne » */
.hero h1 .dot { position: relative; }
.hero h1 .dot.ping::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--blue-on-dark);
  animation: ring 1.3s ease-out 2;
}

/* Flèches des boutons */
.btn svg { transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }

/* Bandeau de repères : 4 colonnes, puis 2, puis 1 */
.strip ul { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; }
@media (max-width: 1080px) { .strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .strip ul { grid-template-columns: 1fr; } }
