/* ==========================================================================
   Mantara V3 — gabarit « page service » (6 pages) et vue d'ensemble des services
   Introduction · vous vous reconnaissez ? · ce que nous faisons · bloc spécifique ·
   comment ça se passe · tarifs · réalisations liées · questions fréquentes · appel final
   ========================================================================== */

/* ---------- 2. Vous vous reconnaissez ? : les constats, en liste (.pains, dans components.css) ---------- */

/* ---------- 3. Ce que nous faisons : cartes (card-grid), avec « vous obtenez » au besoin ---------- */
.card .card__out { margin-top: 4px; padding-top: 12px; border-top: 1px dashed var(--line-strong); color: var(--ink); }
.card .card__out b { display: block; margin-bottom: 4px; font: 500 var(--t-label)/1.35 var(--f-mono); color: var(--signal-ink); }
.card-note { margin: 18px 7px 0; max-width: 72ch; font-size: 0.875rem; color: var(--ink-2); }
.card-note i { font-style: italic; color: var(--ink); }

/* Liste cochée numérotée : des principes dans un ordre voulu (comment nous concevons un agent) */
.checklist--num { counter-reset: ck; }
.checklist--num li { counter-increment: ck; }
.checklist--num li::before { content: counter(ck, decimal-leading-zero); font-weight: 500; }

/* ---------- Bloc spécifique : texte et figure côte à côte ---------- */
.duo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gap); align-items: start; }
.duo__text { grid-column: 1 / span 6; display: grid; gap: 20px; }
.duo__text > p { margin: 0; color: var(--ink-2); }
.duo__text > p.lead { color: var(--ink); }
.duo__side { grid-column: 8 / span 5; display: grid; gap: 20px; }
.duo__side > .label { margin: 0; }
.duo__fig { margin: 7px; padding: 16px 16px 12px; background: var(--white); }
.duo__fig svg { width: 100%; height: auto; overflow: visible; }
.duo__fig figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
@media (max-width: 960px) { .duo__text, .duo__side { grid-column: 1 / -1; } }

/* Une phrase qui porte la page (indépendance, doctrine…) */
.statement { max-width: 22ch; margin: 0; font-weight: 450; font-size: clamp(2.25rem, 1rem + 4vw, 5rem); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.statement .char { font-variation-settings: "wdth" var(--w, 100); }

/* ---------- 5. Comment ça se passe : un rail qui se remplit, chaque étape s'allume ---------- */
.steps { position: relative; }
.steps + .steps { margin-top: clamp(40px, 7vh, 72px); }
.steps__t { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 18px; color: var(--signal-ink); }
.steps__rail { position: relative; height: 1px; margin-bottom: 30px; background: var(--line-strong); }
.steps__rail i { position: absolute; inset: 0; background: var(--signal); transform: scaleX(var(--f, 0)); transform-origin: left; }
.steps__list { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0 var(--gap); margin: 0; padding: 0; list-style: none; counter-reset: step; }
/* Sous-grille : numéros, titres, textes et « ce que vous obtenez » tombent sur les mêmes lignes d'une étape à l'autre */
.step { position: relative; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 10px; align-content: start; counter-increment: step; }
.step::before { content: ""; position: absolute; left: 0; top: -35px; width: 9px; height: 9px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); transition: background-color 0.4s, box-shadow 0.4s; }
.step::after { content: "0" counter(step); order: -1; font: 200 clamp(2.5rem, 1.5rem + 2vw, 3.75rem)/0.85 var(--f-sans); font-variation-settings: "wdth" 62; letter-spacing: -0.04em; color: var(--ink-3); transition: color 0.5s; }
.step.is-on::before { background: var(--signal); box-shadow: 0 0 0 3px rgba(0, 150, 186, 0.18); }
.step.is-on::after { color: var(--signal-ink); }
.step__t { margin: 0; font: 600 1.125rem/1.25 var(--f-sans); letter-spacing: -0.01em; }
.step p { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }
.step .step__out { padding-top: 10px; border-top: 1px dashed var(--line-strong); font: 500 0.75rem/1.45 var(--f-mono); color: var(--ink); }
.step__out span { display: block; color: var(--ink-3); }
@media (max-width: 1099px) {
  .steps__body { position: relative; padding-left: 30px; }
  .steps__rail { position: absolute; left: 4px; top: 6px; bottom: 0; width: 1px; height: auto; margin: 0; }
  .steps__rail i { transform: scaleY(var(--f, 0)); transform-origin: top; }
  .steps__list { grid-template-columns: 1fr; gap: 32px; }
  .step { grid-row: auto; grid-template-rows: none; max-width: 38rem; }
  .step::before { left: -30px; top: 6px; }
  .step::after { font-size: 2.25rem; }
}

/* ---------- 6. Tarifs : la nomenclature d'Approche, sans repère ---------- */
.nomen__table--norep .nomen__name { width: 32%; }
.nomen__inc { font-size: 0.875rem; color: var(--ink-2); }
/* Quatre colonnes (offre, pour qui, inclus, prix) : présence en ligne */
.nomen__table--4 .nomen__name { width: 18%; }
.nomen__table--4 .nomen__for { width: 24%; }
.nomen__table--4 .nomen__price { width: 20%; }
.prices__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 18px; }
.prices__foot p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) {
  .nomen__table--norep tr { grid-template-columns: 1fr; }
  /* Les largeurs de colonnes ci-dessus sont plus précises que la remise à zéro de components.css : on les relâche ici */
  .nomen__table--norep .nomen__name, .nomen__table--4 .nomen__for, .nomen__table--4 .nomen__price { width: auto; }
}

/* ---------- 7. Réalisations liées : les cartes de l'index, avec le texte propre à la page ---------- */
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.related--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related--1 { grid-template-columns: minmax(0, 1fr); }
.related--1 .work-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px 28px; align-content: start; max-width: 1040px; }
.related--1 .work-card__fig { grid-row: 1 / span 4; margin: 0; }
.related--1 .work-card > :not(.work-card__fig) { grid-column: 2; }
@media (max-width: 960px) {
  .related, .related--2 { grid-template-columns: 1fr; }
  .related--1 .work-card { display: flex; }
}

/* ---------- Vue d'ensemble : trois besoins, six services ---------- */
.sgroups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(56px, 9vh, 96px) 28px; }
.sgroup { display: grid; gap: 22px; align-content: start; }
.sgroup--a { grid-column: 1 / -1; }
.sgroup--c { grid-column: span 2; }
.sgroup__head { display: grid; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.sgroup__head .label { display: flex; justify-content: space-between; gap: 12px; margin: 0; color: var(--signal-ink); }
.sgroup__t { margin: 0; font-weight: 600; font-size: clamp(1.625rem, 1rem + 1.6vw, 2.5rem); line-height: 1.05; letter-spacing: -0.025em; }
.sgroup__head p:last-child { margin: 0; color: var(--ink-2); }
.sgroup__cards { display: grid; grid-template-columns: repeat(var(--c, 3), minmax(0, 1fr)); gap: 28px; }
.svc-card { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 22px; background: var(--white); border: 1px solid var(--ink); transition: transform 0.5s var(--ease-snap), box-shadow 0.5s var(--ease-snap); }
.svc-card:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--signal); }
.svc-card > .label { display: flex; justify-content: space-between; gap: 8px; margin: 0; }
.svc-card > .label span:last-child { color: var(--signal-ink); }
.svc-card .h3 { font-size: clamp(1.25rem, 1rem + 0.7vw, 1.625rem); }
.svc-card__tag { margin: 0; font-weight: 600; }
.svc-card ul { flex: 1; display: grid; align-content: start; gap: 6px; margin: 0; padding: 12px 0 0; list-style: none; border-top: 1px dashed var(--line-strong); font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.svc-card li { display: grid; grid-template-columns: 18px minmax(0, 1fr); }
.svc-card li::before { content: "—"; color: var(--ink-3); }
@media (max-width: 960px) {
  .sgroups { grid-template-columns: 1fr; }
  .sgroup--c { grid-column: auto; }
  .sgroup__cards { grid-template-columns: 1fr; gap: 20px; }
}

/* Par où commencer : le tableau d'orientation */
.orient { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.orient th { padding: 10px 12px; border-bottom: 1px solid var(--ink); font: 500 0.6875rem/1.3 var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; text-align: left; color: var(--ink-2); }
.orient td { padding: 0 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.orient tbody tr { transition: background-color 0.3s; }
.orient tbody tr:hover { background: var(--white); }
.orient__q { width: 55%; padding-block: 18px !important; font-size: 1.0625rem; line-height: 1.45; }
.orient__go { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; color: var(--ink-2); }
.orient__go b { font-weight: 600; color: var(--ink); }
.orient__go svg { flex: none; width: 16px; height: 16px; color: var(--signal-ink); transition: transform 0.6s var(--ease-snap); }
.orient tbody tr:hover .orient__go svg { transform: translateX(6px); }
.orient tbody tr:hover .orient__go b { color: var(--signal-ink); }
.orient__end { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px var(--gap); margin-top: 28px; align-items: start; }
.orient__end > p { grid-column: 1 / span 6; margin: 0; font-size: var(--t-lead); line-height: 1.55; }
.orient__end .callout { grid-column: 8 / span 5; }
.orient__end .callout .link-arrow { margin-top: 8px; }
@media (max-width: 760px) {
  .orient thead { display: none; }
  .orient, .orient tbody, .orient tr, .orient td { display: block; width: auto; }
  .orient tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .orient td { padding: 0; border: 0; }
  .orient__q { width: auto; padding-block: 0 6px !important; }
  .orient__go { padding: 0; }
}
@media (max-width: 960px) { .orient__end > p, .orient__end .callout { grid-column: 1 / -1; } }

/* ---------- Automatisation : avant, après (épinglé sur grand écran) ---------- */
.ba__stage { padding-block: var(--section); }
.ba__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px var(--gap); align-items: end; margin-bottom: clamp(20px, 3.5vh, 36px); }
.ba__head .sec-head__rule { grid-column: 1 / -1; margin-bottom: 0; }
.ba__head .h2 { grid-column: 1 / span 8; }
.ba__count { grid-column: 10 / span 3; justify-self: end; display: flex; align-items: flex-end; gap: 14px; margin: 0; }
.ba__count .label { text-align: right; }
.ba__count b { font: 700 clamp(2.5rem, 1.5rem + 2.5vw, 4rem)/0.9 var(--f-sans); font-stretch: 75%; font-variant-numeric: tabular-nums; color: var(--signal-ink); }
.ba__count b small { font-size: 0.45em; color: var(--ink-3); }
.ba__rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.ba__row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 64px minmax(0, 1fr); gap: 0 var(--gap); align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; line-height: 1.45; }
.ba__row--head { padding: 8px 0; border-bottom-color: var(--ink); font: 500 0.6875rem/1.3 var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.ba__n { font: 500 0.75rem var(--f-mono); color: var(--ink-3); }
.ba__before, .ba__after { margin: 0; }
.ba__before span { color: var(--ink); background: linear-gradient(var(--friction), var(--friction)) no-repeat 0 58% / 0% 1.5px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 0.6s var(--ease-snap), color 0.6s; }
.ba__after { transition: opacity 0.6s var(--ease-out) 0.15s, transform 0.8s var(--ease-out) 0.15s; }
.ba__after b { font-weight: 600; background: linear-gradient(var(--signal), var(--signal)) no-repeat 0 100% / 0% 2px; transition: background-size 0.7s var(--ease-snap) 0.4s; }
.ba__sw { justify-self: center; position: relative; width: 44px; height: 24px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--ink); background: var(--white); transition: background-color 0.4s; }
.ba__sw::after { content: ""; position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--friction); transition: transform 0.5s var(--ease-snap), background-color 0.4s; }
.ba__row.is-done .ba__before span { color: var(--ink-3); background-size: 100% 1.5px; }
.ba__row.is-done .ba__after b { background-size: 100% 2px; }
.ba__row.is-done .ba__sw { background: color-mix(in srgb, var(--signal) 14%, var(--white)); }
.ba__row.is-done .ba__sw::after { transform: translateX(20px); background: var(--signal); }
/* Scène active (posée par automatisation.js) : l'« après » n'apparaît qu'une fois la ligne basculée */
.ba.is-live .ba__row:not(.is-done) .ba__after { opacity: 0; transform: translateX(-10px); }
@media (min-width: 1100px) and (min-height: 740px) {
  .ba__stage { display: flex; flex-direction: column; justify-content: center; height: 100vh; height: 100svh; padding-block: calc(var(--nav-h) + 16px) 24px; }
}
@media (max-width: 860px) {
  .ba__head .h2 { grid-column: 1 / -1; }
  .ba__count { grid-column: 1 / -1; justify-self: start; }
  .ba__row--head { display: none; }
  .ba__row { grid-template-columns: 36px minmax(0, 1fr) 52px; gap: 8px 12px; padding: 16px 0; }
  .ba__before { grid-column: 2; grid-row: 1; }
  .ba__sw { grid-column: 3; grid-row: 1; align-self: start; }
  .ba__after { grid-column: 2 / -1; }
}

/* ---------- Réseaux sociaux : les trois formules et leur comparatif ---------- */
.formules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 7px; list-style: none; }
.formule { position: relative; display: grid; grid-template-rows: auto auto auto auto 1fr auto; gap: 12px; padding: 20px 22px 24px; background: var(--white); }
.formule--pick { box-shadow: inset 0 0 0 2px var(--signal); }
.formule--pick .tag--pick { position: absolute; top: -13px; right: 16px; }
.formule .label { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0; }
.formule .label span:first-child { color: var(--signal-ink); }
.formule__name { margin: 0; font: 600 clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem)/1.05 var(--f-sans); letter-spacing: -0.025em; }
.formule__pitch { margin: 0; color: var(--ink-2); }
.formule__price { display: grid; gap: 2px; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.formule__price b { font: 650 clamp(1.875rem, 1.3rem + 1.5vw, 2.625rem)/1 var(--f-sans); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.formule__price span { font-size: 0.875rem; color: var(--ink-2); }
.formule .checklist { align-content: start; }
.formule .checklist li { padding: 11px 0; font-size: 0.9375rem; line-height: 1.45; }
.formule .btn { justify-self: start; margin-top: 4px; }
.tag--pick { color: var(--signal-ink); border-color: var(--signal); }
@media (max-width: 960px) { .formules { grid-template-columns: 1fr; gap: 20px; } }

.compare { margin-top: 28px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.compare summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; font: 600 1.0625rem/1.3 var(--f-sans); letter-spacing: -0.01em; transition: color 0.3s; }
.compare summary:hover { color: var(--signal-ink); }
.compare summary::-webkit-details-marker { display: none; }
.compare summary i { flex: none; font: 500 0.875rem var(--f-mono); font-style: normal; color: var(--signal-ink); }
.compare summary i::before { content: "[+]"; }
.compare[open] summary i::before { content: "[−]"; }
.compare__scroll { overflow-x: auto; padding-bottom: 18px; }
.cmp { width: 100%; table-layout: fixed; border-collapse: collapse; border: 1px solid var(--ink); background: var(--white); }
.cmp th, .cmp td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp thead th { border-bottom: 1px solid var(--ink); background: var(--paper); font: 500 0.625rem/1.3 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.cmp thead th b { display: block; margin-top: 2px; font: 600 0.9375rem/1.2 var(--f-sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.cmp tbody th { font-weight: 600; color: var(--ink); width: 34%; }
.cmp td { color: var(--ink-2); }
.cmp td.y { color: var(--signal-ink); font-weight: 600; }
.cmp td.n { color: var(--ink-3); }
.cmp tfoot th, .cmp tfoot td { border-bottom: 0; border-top: 1px solid var(--ink); font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .cmp th, .cmp td { padding: 9px 8px; font-size: 0.8125rem; line-height: 1.35; }
  .cmp thead th b { font-size: 0.8125rem; }
  .cmp tbody th, .cmp tfoot th { width: 28%; }
}
