/* akwito — vitrine. Chargée après app.css sur les pages qui posent
   pageMeta.Site (accueil, tarifs, pages de feature, développeurs), quelle que
   soit la session. Les jetons de design (:root), les boutons, badges, la
   feuille d'attestation (.sheet, .seal) et les offres (.plans) restent dans
   app.css : des pages sous session s'en servent aussi. */

/* ------------------------------------------------------------------ *
 * Héro
 * ------------------------------------------------------------------ */
.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: var(--sp-8);
        align-items: center; padding: var(--sp-8) 0 var(--sp-7); }
.hero h1 { font-size: clamp(2.5rem, 4.4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em;
           margin-bottom: var(--sp-5); font-weight: 700; text-wrap: balance; }
.hero .lead { font-size: 1.15rem; max-width: 52ch; }
.hero-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin: var(--sp-5) 0 var(--sp-3); }
.hero-note { color: var(--muted); font-size: 0.925rem; }

/* Sources : une ligne sobre, ce sont des institutions, pas des logos. */
/* Sources par pays : un tableau court — drapeau, autorité qui valide,
   registre qui nomme. Le drapeau est un emoji : ni image, ni style en ligne. */
.sources { padding: var(--site-gap) 0 0; font-size: 0.85rem; max-width: 52rem; }
.sources h2 { font-size: 1.5rem; margin: 0; }
.sources-wrap { margin-top: var(--sp-3); background: transparent; border: 0; border-radius: 0; }
.sources-table th, .sources-table td { padding: 6px 10px 6px 0; }
.sources-table thead th { background: transparent; font-size: 0.75rem; }
.sources-table th[scope="row"] { font-weight: 500; white-space: nowrap; color: var(--text); }
.sources-table th[scope="row"] small, .sources-table td small { color: var(--muted); font-weight: 400; }
.sources-table .flag { font-size: 1.05em; margin-right: 0.15em; }
.sources-table tbody tr:hover td, .sources-table tbody tr:hover th { background: transparent; }
.sources-note { color: var(--muted); font-size: 0.85rem; max-width: 62ch; margin: var(--sp-3) 0 0; }

/* Sections de la vitrine */
.site-section { padding: var(--site-gap) 0 0; }
.site-section > h2 { margin-top: 0; font-size: clamp(1.75rem, 3vw, 2.4rem); letter-spacing: -0.015em;
                     max-width: 24ch; text-wrap: balance; }
.site-section > .lead { margin-bottom: var(--sp-6); }

.specimen { background: var(--sheet); color: var(--sheet-ink); border: 1px solid var(--border); border-top: 2px solid var(--ink);
            border-radius: 2px; box-shadow: 0 1px 2px rgba(20, 22, 28, 0.06), 0 12px 24px -16px rgba(20, 22, 28, 0.3);
            padding: var(--sp-3) var(--sp-4); font-size: 0.8125rem; margin-top: var(--sp-4); }
.specimen dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px var(--sp-3); margin: 0; }
.specimen dt { font-family: var(--mono); color: var(--muted); }
.specimen dd { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.specimen .badge { font-size: 0.75rem; }
/* Bloc de code développeurs : requête et réponse (page développeurs). */
.dev-code { display: grid; gap: var(--sp-3); min-width: 0; }
.dev-code figure { margin: 0; min-width: 0; }
.dev-code figcaption { font-size: 0.75rem; color: var(--ink-muted); margin-bottom: 6px; font-family: var(--mono); }
.dev-code pre { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); color: #e8e9ee;
                border-radius: var(--radius); margin: 0; font-size: 0.78rem; line-height: 1.5; }
.dev-code pre code { color: inherit; font-size: inherit; }
.dev-code .k { color: #9aa8ff; }
.dev-code .s { color: #8ed1a8; }
.dev-code .n { color: #f0b64a; }

/* Tarifs : un tableau comparatif. Les offres en tête de colonne avec leur prix
   et leur bouton, une ligne par caractéristique, des sections. Starter est la
   colonne mise en avant ; Entreprise, sur papier, ferme le tableau. Sur un
   écran étroit la première colonne reste collée à gauche et le reste défile. */
.pricing-wrap { margin-top: var(--sp-6); }
.table-wrap table.pricing-table { min-width: 64rem; }
.pricing-table th, .pricing-table td { vertical-align: middle; }
.pricing-table thead th, .pricing-table thead td { background: var(--surface); border-bottom: 1px solid var(--border-strong);
  border-top: 3px solid transparent; white-space: normal; color: var(--text); padding: var(--sp-4) 14px; vertical-align: top; }
.pricing-table thead th { width: 16%; }
.pricing-table .pt-corner { width: 20%; }
.pricing-table .pt-name { display: block; font-size: 0.95rem; font-weight: 600; margin-bottom: var(--sp-2); }
.pricing-table thead .btn { width: 100%; }
.pricing-table tbody th[scope="row"] { font-weight: 400; color: var(--text); font-size: 0.95rem; }
.pricing-table tbody td { font-size: 0.925rem; }
.pricing-table tr.pt-section th { background: var(--surface-alt); font-family: var(--font); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: var(--sp-2) 14px; position: static; }
.pricing-table tbody th[scope="row"], .pricing-table tbody td { padding: 12px 14px; }
.pricing-table tbody tr:hover td, .pricing-table tbody tr:hover th { background: color-mix(in srgb, var(--surface-alt) 55%, transparent); }
.pricing-table .is-highlight { background: var(--accent-soft); }
.pricing-table tbody tr:hover td.is-highlight { background: color-mix(in srgb, var(--accent-soft) 80%, var(--surface-alt)); }
.pricing-table thead th.is-highlight { border-top: 3px solid var(--accent); }
.pricing-table .is-enterprise { background: var(--surface-alt); }
.pricing-table tbody tr:hover td.is-enterprise { background: color-mix(in srgb, var(--surface-alt) 85%, var(--border)); }
.pt-yes { display: inline-block; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok);
          transform: rotate(-45deg); margin: 0 0 3px 2px; }
.pt-no { color: var(--border-strong); }
.pricing-table tbody th[scope="row"], .pricing-table thead .pt-corner { position: sticky; left: 0; z-index: 1; background: var(--surface); }

/* Deux grilles : Entreprise, Cabinet. Un sélecteur à deux liens, pas de script. */
.pricing-switch { display: inline-flex; gap: 2px; margin: var(--sp-5) 0 0; padding: 3px; border: 1px solid var(--border);
                  border-radius: 999px; background: var(--surface); }
.pricing-switch a { padding: 6px 16px; border-radius: 999px; font-size: 0.925rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.pricing-switch a.is-active { background: var(--ink); color: var(--on-ink); }
.plans-firm { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.plans-firm .plan-detail { color: var(--muted); margin: 0 0 var(--sp-3); font-size: 0.925rem; }
.plans-firm .plan-highlight .plan-detail { color: var(--ink-muted); }
.simulator { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin-top: var(--sp-4); padding: var(--sp-4) var(--sp-5);
             border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.simulator label { font-weight: 500; }
.simulator input { width: 6ch; padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: 6px; font: inherit; }
.simulator-result { flex-basis: 100%; margin: 0; }
.pricing-table-firm thead th { width: 36%; }
.pricing-table-firm .pt-corner { width: 28%; }
.table-wrap table.pricing-table.pricing-table-firm { min-width: 40rem; }
@media (max-width: 640px) { .plans-firm { grid-template-columns: minmax(0, 1fr); } }

/* Tarifs, horodatage : deux cartes, l'inclus et l'option, sur la même ligne. */
.stamping .card h2 { margin-bottom: var(--sp-2); }
.stamping .card h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 var(--sp-3); }
.stamping .card p:last-child { margin-bottom: 0; }
.stamping-grid { margin-top: var(--sp-5); }

/* FAQ : question à gauche, réponse à droite. */
.faq dl { margin: var(--sp-6) 0 0; }
.faq-item { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--sp-4) var(--sp-7);
            padding: var(--sp-5) 0; border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item dt { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; margin: 0; }
.faq-item dd { margin: 0; color: var(--muted); max-width: 60ch; }

/* Bandeau final */
.cta-band { margin: var(--sp-9) 0 0; background: var(--accent); color: var(--on-accent);
            border-radius: var(--radius-lg); padding: var(--sp-8) var(--sp-6); display: grid;
            grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-5); align-items: center; }
.cta-band h2 { margin: 0; color: inherit; font-size: clamp(1.6rem, 2.8vw, 2.2rem); max-width: 22ch; text-wrap: balance; }
.cta-band p { margin: 0; }
.cta-band .btn { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); font-weight: 600; }
.cta-band .btn:hover { background: var(--surface); border-color: var(--surface); color: var(--accent-strong); }

/* Écran étroit */
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .faq-item, .cta-band { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: var(--sp-6); gap: var(--sp-6); }
  .hero h1 { font-size: clamp(2.1rem, 8vw, 2.8rem); }
  .site-section { padding-top: var(--sp-8); }
}

@media (max-width: 640px) {
  .cta-band { padding: var(--sp-6) var(--sp-5); }
}

/* ------------------------------------------------------------------ *
 * Refonte du 6 octobre 2026 : le produit montré. Un héro par page, des
 * sections de feature qui alternent texte et capture, un cadre de
 * navigateur qui reprend la matière de la feuille (blanc, ombre portée),
 * trois moments animés et rien d'autre qui bouge.
 * ------------------------------------------------------------------ */

/* Surtitre : une courte ligne en encre, en bas de casse, jamais en capitales. */
.site-kicker { margin: 0 0 var(--sp-3); color: var(--accent); font-weight: 700; font-size: 0.95rem; }

/* Héro commun : texte à gauche, visuel à droite ; .is-solo sans visuel. */
.site-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--sp-8);
             align-items: center; padding: var(--sp-8) 0 var(--sp-7); }
.site-hero.is-solo { grid-template-columns: minmax(0, 1fr); padding-bottom: var(--sp-5); }
.site-hero.is-solo h1 { max-width: 26ch; }
/* Pas de mot seul en fin de paragraphe sur la vitrine (navigateurs qui le savent). */
.layout-site p, .layout-site li, .layout-site dd { text-wrap: pretty; }
.site-hero h1 { font-size: clamp(2.4rem, 4.2vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em;
                margin: 0 0 var(--sp-5); font-weight: 700; text-wrap: balance; max-width: 20ch; }
.site-hero .lead { font-size: 1.15rem; max-width: 50ch; }
.site-hero-visual { min-width: 0; }
.site-hero-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; margin: var(--sp-5) 0 0; }
.site-hero-actions a:not(.btn) { font-weight: 600; text-decoration: none; }
.site-hero-actions a:not(.btn):hover { text-decoration: underline; }
/* La grande capture sous le héro d'une page de feature. */
.site-showcase { margin: var(--sp-4) 0 0; }

/* Section de feature : texte et visuel, le visuel change de côté avec .is-flip. */
/* Rythme : toutes les sections d'une page de vitrine sont séparées du même
   espace (--site-gap), 96 px sur ordinateur, 64 px sous 860 px. */
.layout-site { --site-gap: var(--sp-9); }
.site-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--sp-8);
                align-items: center; padding: var(--site-gap) 0 0; }
.site-feature.is-flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.site-feature.is-flip > .feature-text { order: 2; }
.feature-text h2 { margin: 0 0 var(--sp-4); font-size: clamp(1.75rem, 3vw, 2.4rem); letter-spacing: -0.015em;
                   max-width: 22ch; text-wrap: balance; }
.feature-text > p { max-width: 48ch; }
.feature-facts { list-style: none; padding: 0; margin: var(--sp-5) 0; display: grid; gap: var(--sp-3); }
.feature-facts li { position: relative; padding-left: 22px; color: var(--muted); max-width: 52ch; }
.feature-facts li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px;
                            border-radius: 50%; background: var(--accent); }
.feature-facts strong { color: var(--text); font-weight: 600; }
.feature-actions { display: flex; gap: var(--sp-4); align-items: center; flex-wrap: wrap; margin: 0; }
.feature-actions a:not(.btn) { font-weight: 600; text-decoration: none; }
.feature-actions a:not(.btn):hover { text-decoration: underline; }
.feature-visual { min-width: 0; }

/* Cadre de navigateur : la capture dans un cadre blanc, la même ombre que
   la feuille d'attestation, sans barre d'adresse. Incliné seulement sur
   l'accueil (.is-tilt), jamais sur une page de feature. */
.browser-frame { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
                 box-shadow: var(--shadow-sheet); overflow: hidden; }
.browser-frame img { display: block; width: 100%; height: auto; }
.browser-frame.is-tilt { transform: rotate(-1.4deg); }
.browser-frame.is-tilt-r { transform: rotate(1.1deg); }
.site-shot { display: block; margin: 0; }

/* Film de présentation : entre le hero et le parcours en trois temps, dans la
   matière de la feuille (blanc, ombre portée). Il entre dans l'écran un peu
   plus petit que la colonne et s'élargit au-delà d'elle quand il démarre
   (.is-playing, posé par app.js) ; un seul bouton, le son. */
.film { padding: var(--site-gap) 0 0; }
.film-stage { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
              box-shadow: var(--shadow-sheet); overflow: hidden; transform: scale(0.94);
              transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.film-stage.is-playing { transform: scale(1.03); }
.film-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--surface-alt); }
.js .film-video:not([controls]) { cursor: pointer; }
.film-sound { position: absolute; right: var(--sp-4); bottom: var(--sp-4); font: inherit; font-size: 0.85rem; font-weight: 600;
              color: var(--text); background: rgba(255, 255, 255, 0.92); border: 1px solid var(--border); border-radius: 999px;
              padding: 6px 14px; cursor: pointer; box-shadow: 0 1px 2px rgba(20, 22, 28, 0.08); }
.film-sound:hover { background: #ffffff; }
.film-sound[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #ffffff; }
@media (max-width: 640px) {
  .film-stage.is-playing { transform: scale(1); }
  .film-sound { right: var(--sp-3); bottom: var(--sp-3); }
}
/* Après le film : de l'air, puis un mot d'ordre centré qui se révèle au
   défilement (même mécanique que le compteur) et mène aux fonctionnalités. */
.film-next { margin: calc(var(--site-gap) * 1.25) 0 0; text-align: center; font-size: clamp(1.25rem, 2.2vw, 1.6rem);
             font-weight: 600; letter-spacing: -0.01em; }
.film-next a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: var(--sp-3); }
.film-next a:hover { color: var(--accent); }
.film-next span { display: inline-block; color: var(--accent); transition: transform 300ms ease-out; }
.film-next a:hover span { transform: translateY(4px); }
.film-next[data-reveal] { opacity: 0; transform: translateY(12px); }
.film-next.is-seen { animation: counter-in 700ms ease-out both; }
html:not(.js) .film-next[data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .film-stage, .film-stage.is-playing { transform: none; } }

/* Le parcours en trois temps (accueil) : trois colonnes sous un filet
   d'encre, un titre court, une phrase. Pas de visuel : le film vient de
   montrer le produit. */
.steps { padding: calc(var(--site-gap) * 0.75) 0 0; scroll-margin-top: var(--sp-8); }
.steps h2, .feature-tabs h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.4rem); letter-spacing: -0.015em; }
.steps-row { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
.steps-row li { border-top: 2px solid var(--text); padding-top: var(--sp-4); }
.steps-row h3 { margin: 0 0 var(--sp-2); font-size: 1.2rem; }
.steps-row p { margin: 0; color: var(--muted); max-width: 34ch; }
@media (max-width: 640px) { .steps-row { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); } }

/* Les fonctionnalités (accueil) : des onglets. La liste à
   gauche (le nom, la phrase de bénéfice, un trait d'accent sur l'onglet
   choisi), la capture à droite. Sans script, la liste disparaît et les
   panneaux s'empilent avec leur titre. */
.feature-tabs { padding: var(--site-gap) 0 0; }
.ftabs { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: var(--sp-7); margin-top: var(--sp-6); align-items: start; }
.ftabs-list { display: grid; border-top: 1px solid var(--border); }
.ftab { appearance: none; background: none; border: 0; border-bottom: 1px solid var(--border); margin: 0; text-align: left; font: inherit;
        color: var(--muted); cursor: pointer; position: relative; display: grid; gap: 4px; padding: var(--sp-4) var(--sp-3) var(--sp-4) var(--sp-5); }
.ftab::before { content: ""; position: absolute; left: 0; top: var(--sp-4); bottom: var(--sp-4); width: 3px; border-radius: 2px;
                background: transparent; transition: background 200ms ease-out; }
.ftab-name { font-weight: 700; font-size: 0.85rem; }
.ftab-title { font-size: 1.05rem; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.ftab:hover { color: var(--text); }
.ftab[aria-selected="true"] { color: var(--text); }
.ftab[aria-selected="true"] .ftab-name { color: var(--accent); }
.ftab[aria-selected="true"]::before { background: var(--accent); }
.ftab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 4px; }
.ftab-panel-name { margin: 0 0 var(--sp-2); color: var(--accent); font-weight: 700; font-size: 0.9rem; }
.ftab-panel-title { margin: 0 0 var(--sp-4); font-size: 1.3rem; }
.ftab-panel-text { margin: var(--sp-4) 0 0; color: var(--muted); max-width: 60ch; }
.ftab-panel-text a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.ftab-panel-text a::after { content: " →"; }
.ftab-panel-text a:hover { text-decoration: underline; }
.js .ftab-panel[data-hidden] { display: none; }
.js .ftab-panel-name, .js .ftab-panel-title { display: none; }
.js .ftab-panel.is-in { animation: ftab-in 220ms ease-out both; }
@keyframes ftab-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .ftab-panel.is-in { animation: none; } }
html:not(.js) .ftabs-list { display: none; }
html:not(.js) .ftabs { grid-template-columns: minmax(0, 1fr); }
html:not(.js) .ftabs-panels { display: grid; gap: var(--sp-7); }
@media (max-width: 860px) {
  .ftabs { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
  .ftabs-list { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; border-top: 0; border-bottom: 1px solid var(--border);
                scrollbar-width: none; margin: 0 calc(-1 * var(--sp-4)); padding: 0 var(--sp-4); }
  .ftab { border-bottom: 0; padding: var(--sp-3) var(--sp-3); }
  .ftab::before { top: auto; bottom: -1px; left: var(--sp-3); right: var(--sp-3); width: auto; height: 3px; }
  .ftab-title { display: none; }
  .ftab-name { font-size: 0.95rem; }
  .js .ftab-panel-title { display: block; font-size: 1.15rem; }
}

/* L'assistant IA, une ligne sous le bouton de la bande API. */
.dev-band-ai { margin: var(--sp-5) 0 0; padding-top: var(--sp-4); border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.9rem; max-width: 46ch; }
.dev-band-ai strong { color: #ffffff; }
.dev-band-ai a { color: #9aa8ff; font-weight: 600; text-decoration: none; }
.dev-band-ai a:hover { text-decoration: underline; }
.dev-band .site-kicker { color: #9aa8ff; }
/* Ce qui garantit la preuve : deux colonnes de faits, les tiers techniques
   avec le compteur d'ancrages, les sources institutionnelles. */
.guarantors { padding: calc(var(--site-gap) * 1.25) 0 0; }
.guarantors-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); margin-top: var(--sp-4); }
/* Deux blocs distincts, chacun dans son cadre : titre, logos en gris à la
   même hauteur avec une légende, faits, liens. */
.guarantor { display: flex; flex-direction: column; padding: var(--sp-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.guarantor h2 { margin: 0; font-size: clamp(1.4rem, 2.2vw, 1.75rem); letter-spacing: -0.015em; }
.guarantor-logos { list-style: none; margin: var(--sp-4) 0 0; padding: var(--sp-4) 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
                   gap: var(--sp-4); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.guarantor-logos li { display: grid; grid-template-rows: 40px auto; gap: 6px; justify-items: center; align-items: center; text-align: center; }
.guarantor-logos img { display: block; height: 28px; width: auto; filter: grayscale(1); opacity: 0.8; }
.guarantor-mark { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; color: var(--text); opacity: 0.75; max-width: 12ch; text-wrap: balance; }
.guarantor-logos span { font-size: 0.8rem; color: var(--muted); }
.guarantor .feature-facts { margin-top: var(--sp-4); }
.guarantor .feature-actions { margin-top: auto; padding-top: var(--sp-4); }
@media (max-width: 860px) { .guarantors-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); } }
@media (max-width: 640px) { .guarantor { padding: var(--sp-5); } .guarantor-logos { gap: var(--sp-3); } .guarantor-mark { font-size: 0.95rem; } }
.dev-band .site-kicker { color: #9aa8ff; }

/* Pourquoi : trois colonnes sous un filet, un badge de verdict pour tout
   ornement, une phrase. */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); margin: var(--site-gap) 0 0;
       padding: 0; list-style: none; }
.why li { border-top: 1px solid var(--text); padding-top: var(--sp-4); }
.why .badge { margin-bottom: var(--sp-3); }
.why p { margin: 0; font-size: 1.05rem; line-height: 1.45; max-width: 30ch; }

/* Sources, en une ligne : drapeaux, registres, un lien. */
.sources-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4);
                margin: var(--site-gap) 0 0; padding: var(--sp-4) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
                color: var(--muted); font-size: 0.925rem; }
.sources-line .flags { font-size: 1.2rem; letter-spacing: 0.1em; }
.sources-line a { margin-left: auto; font-weight: 600; text-decoration: none; }
.sources-line a:hover { text-decoration: underline; }

/* Développeurs : la seule bande d'encre de l'accueil, courte. */
.dev-band { background: var(--ink); color: var(--on-ink); border-radius: var(--radius-lg); padding: var(--sp-6);
            margin: var(--site-gap) 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-6); align-items: center; }
.dev-band h2 { color: #ffffff; margin: 0 0 var(--sp-3); font-size: clamp(1.4rem, 2.2vw, 1.75rem); letter-spacing: -0.015em; }
.dev-band p { color: var(--ink-muted); max-width: 40ch; }
.dev-band pre { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); color: #e8e9ee;
                border-radius: var(--radius); margin: 0; font-size: 0.8rem; line-height: 1.5; overflow-x: auto; min-width: 0; }
.dev-band pre code { color: inherit; font-size: inherit; }
.dev-band .k { color: #9aa8ff; }
.dev-band .s { color: #8ed1a8; }
.dev-band .n { color: #f0b64a; }

/* Compteur d'ancrages : le chiffre réel est dans le HTML, l'animation
   n'est qu'une entrée. */
.counter { margin: var(--sp-5) 0 var(--sp-4); }
.counter strong { display: block; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em;
                  line-height: 1; font-variant-numeric: tabular-nums; }
.counter span { display: block; color: var(--muted); margin-top: 6px; max-width: 30ch; }

/* Rapprochement sur l'accueil : cinq factures sur papier, dont les verdicts
   se révèlent à l'entrée dans l'écran (moment animé 2). */
.recon-demo { background: var(--sheet); color: var(--sheet-ink); border-radius: 2px; box-shadow: var(--shadow-sheet);
              padding: var(--sp-5); font-size: 0.875rem; }
.recon-demo-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3);
                   padding-bottom: var(--sp-3); border-bottom: 1px solid var(--sheet-ink); margin-bottom: var(--sp-3); }
.recon-demo-head strong { font-size: 1rem; }
.recon-demo-head span { color: var(--muted); font-size: 0.8rem; }
.recon-demo-bar { display: block; width: 100%; height: 10px; border-radius: 999px; margin: 0 0 var(--sp-4); }
.recon-demo table { width: 100%; border-collapse: collapse; }
.recon-demo td { padding: 8px 12px 8px 0; border-top: 1px dashed var(--border); border-bottom: 0; vertical-align: middle; }
.recon-demo td:last-child { padding-right: 0; }
.recon-demo tr:first-child td { border-top: 0; }
.recon-demo .mono { font-size: 0.8rem; white-space: nowrap; }
.recon-demo .recon-date { color: var(--muted); }
.recon-demo td:last-child { text-align: right; }
.recon-demo .rd-verdict { position: relative; display: inline-grid; }
.recon-demo .rd-verdict > .badge { grid-area: 1 / 1; justify-self: end; }
.recon-demo .verdict-final { opacity: 0; }
.recon-demo.is-seen .verdict-final { animation: verdict-in 260ms ease-out both; }
.recon-demo.is-seen .verdict-initial { animation: verdict-out 260ms ease-out both; }
.recon-demo tr:nth-child(1) .badge { animation-delay: 200ms; }
.recon-demo tr:nth-child(2) .badge { animation-delay: 500ms; }
.recon-demo tr:nth-child(3) .badge { animation-delay: 800ms; }
.recon-demo tr:nth-child(4) .badge { animation-delay: 1100ms; }
.recon-demo tr:nth-child(5) .badge { animation-delay: 1500ms; }
.recon-demo .rec-seg-ok { transform: scaleX(0); transform-origin: left; }
.recon-demo.is-seen .rec-seg-ok { animation: bar-in 1400ms cubic-bezier(0.2, 0.7, 0.2, 1) 300ms both; }
/* Sans script ni observateur, ou si l'animation ne joue pas : l'état final. */
html:not(.js) .recon-demo .verdict-final { opacity: 1; }
html:not(.js) .recon-demo .verdict-initial { opacity: 0; }
html:not(.js) .recon-demo .rec-seg-ok { transform: none; }
@keyframes verdict-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes verdict-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* Moment animé 3 : le compteur entre par un fondu, le chiffre ne défile pas. */
.counter[data-reveal] { opacity: 0; transform: translateY(8px); }
.counter.is-seen { animation: counter-in 600ms ease-out both; }
html:not(.js) .counter[data-reveal] { opacity: 1; transform: none; }
@keyframes counter-in { to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .site-hero, .site-feature, .site-feature.is-flip, .dev-band { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  .site-hero { padding-top: var(--sp-6); }
  .site-hero h1 { font-size: clamp(2.1rem, 8vw, 2.8rem); }
  .layout-site { --site-gap: var(--sp-8); }
  .site-feature { padding-top: var(--site-gap); }
  .dev-band, .sources-line, .why { margin-top: var(--site-gap); }
  .site-feature.is-flip > .feature-text { order: 0; }
  .browser-frame.is-tilt, .browser-frame.is-tilt-r { transform: none; }
  .why { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
  .sources-line a { margin-left: 0; }
}
@media (max-width: 600px) {
  .recon-demo td:nth-child(3) { display: none; }
  .recon-demo { padding: var(--sp-4); }
}

/* ------------------------------------------------------------------ *
 * Pages de feature et développeurs
 * ------------------------------------------------------------------ */
/* Le visuel d'un héro sans capture : le bloc d'encre seul, sans marge. */
.dev-band.is-code { margin: 0; padding: var(--sp-4); grid-template-columns: minmax(0, 1fr); }
.dev-band.is-code .dev-code { gap: var(--sp-3); }
.dev-band.is-code pre { font-size: 0.78rem; overflow-x: auto; }
.dev-code pre { overflow-x: auto; }
/* Quatre faits en colonnes (développeurs). */
.why.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); }
/* Un spécimen plus large, seul dans sa colonne. */
.specimen.specimen-lg { margin-top: 0; font-size: 0.95rem; padding: var(--sp-5); }
.specimen.specimen-lg dl { gap: 10px var(--sp-4); }
/* Les cinq verdicts du rapprochement : badge à gauche, une phrase. */
.verdicts { width: 100%; border-collapse: collapse; }
.verdicts th, .verdicts td { border-bottom: 1px solid var(--border); padding: 12px 0; vertical-align: middle; text-align: left; }
.verdicts tr:first-child th, .verdicts tr:first-child td { border-top: 1px solid var(--text); }
.verdicts th { width: 9rem; padding-right: var(--sp-4); }
.verdicts td { color: var(--muted); }
/* Un cadre en portrait (le sélecteur de dossier) : étroit, centré. */
.browser-frame.is-portrait { max-width: 290px; margin: 0 auto; }
/* Les trois couches d'horodatage : trois feuilles empilées en décalé, une
   par couche, dans la matière de l'attestation. La troisième, qualifiée, est
   teintée d'encre claire. */
.layers { list-style: none; margin: 0; padding: 0 var(--sp-6) var(--sp-3) 0; display: grid; }
.layer { background: var(--sheet); border-radius: 2px; box-shadow: var(--shadow-sheet); padding: var(--sp-4) var(--sp-5);
         display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 2px var(--sp-4); align-items: baseline; position: relative; }
.layer + .layer { margin-top: -4px; }
.layer:nth-child(2) { margin-left: var(--sp-4); margin-right: calc(-1 * var(--sp-4)); }
.layer:nth-child(3) { margin-left: var(--sp-6); margin-right: calc(-1 * var(--sp-6)); }
.layer-when { color: var(--muted); font-style: italic; font-size: 0.9rem; }
.layer strong { font-size: 1.05rem; font-weight: 600; display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.layer strong.mono { font-weight: 500; letter-spacing: 0.02em; }
.layer-by { grid-column: 2; color: var(--muted); font-size: 0.85rem; }
.layer .badge { font-family: var(--font); font-weight: 500; letter-spacing: 0; }
.layer.is-qualified { background: var(--accent-soft); }
/* L'échange avec un assistant (MCP) : trois lignes, un outil appelé au milieu. */
.mcp-demo { display: grid; gap: var(--sp-3); }
.mcp-demo p { margin: 0; padding: 12px 16px; border-radius: var(--radius-lg); max-width: 85%; line-height: 1.45; }
.mcp-user { background: var(--accent); color: var(--on-accent); justify-self: end; border-bottom-right-radius: 4px; }
.mcp-tool { background: var(--surface-alt); color: var(--muted); font-size: 0.85rem; padding: 6px 12px !important; justify-self: start; border-radius: 999px !important; }
.mcp-assistant { background: var(--surface); border: 1px solid var(--border); justify-self: start; border-bottom-left-radius: 4px; }
.mcp-assistant code { font-size: 0.8rem; }
@media (max-width: 860px) {
  .why.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .verdicts th { width: auto; }
  .layers { padding-right: 0; }
  .layer:nth-child(2), .layer:nth-child(3) { margin-left: 0; margin-right: 0; }
  .layer { grid-template-columns: minmax(0, 1fr); }
  .layer-by { grid-column: 1; }
}

/* L'offre Cabinet en une ligne sous les cartes Entreprise (accueil, tarifs) :
   la même matière que la ligne des sources, un filet au-dessus et au-dessous,
   pas de carte de plus dans la rangée. */
.cabinet-band { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2) var(--sp-4);
                margin: var(--sp-5) 0 0; padding: var(--sp-4) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
                color: var(--muted); font-size: 0.925rem; }
.cabinet-band strong { color: var(--text); font-weight: 600; }
.cabinet-band a { margin-left: auto; font-weight: 600; text-decoration: none; }
.cabinet-band a:hover { text-decoration: underline; }
@media (max-width: 640px) { .cabinet-band a { margin-left: 0; } }
