/* Chipset : feuille de style du site vitrine. Aucune dépendance externe, polices système. */

:root {
  --fond: #f5f2ea;
  --fond-2: #ece7db;
  --surface: #ffffff;
  --encre: #14171f;
  --encre-2: #3a3f4a;
  --discret: #5a606b;
  --trait: #ddd6c8;
  --trait-fort: #c9c0ae;
  --cuivre: #9b5418;
  --cuivre-doux: #f3e3d0;
  --vert: #1d5a4c;
  --vert-doux: #dcebe4;
  --nuit: #12151c;
  --nuit-2: #1b1f29;
  --nuit-encre: #ece8df;
  --nuit-discret: #a7abb4;
  --ombre: 0 1px 2px rgb(20 23 31 / .06), 0 12px 32px -12px rgb(20 23 31 / .18);
  --rayon: 14px;
  --serif: "New York", ui-serif, "Iowan Old Style", "Charter", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --largeur: 1160px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0f1117;
    --fond-2: #151821;
    --surface: #1a1e28;
    --encre: #ece8df;
    --encre-2: #cdc9c0;
    --discret: #a3a7b0;
    --trait: #2a2f3b;
    --trait-fort: #3a4050;
    --cuivre: #e3a462;
    --cuivre-doux: #3a2a1b;
    --vert: #74c7ab;
    --vert-doux: #17322b;
    --nuit: #0a0c11;
    --nuit-2: #141821;
    --ombre: 0 1px 2px rgb(0 0 0 / .4), 0 16px 40px -16px rgb(0 0 0 / .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 17px/1.6 var(--sans);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.28rem; letter-spacing: -.005em; }
em { font-style: italic; color: var(--cuivre); }
:focus-visible { outline: 3px solid var(--cuivre); outline-offset: 3px; border-radius: 6px; }

.evitement { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--encre); color: var(--fond); padding: .6em 1em; border-radius: 8px; }
.evitement:focus { left: 8px; }
.conteneur { width: min(100% - 32px, var(--largeur)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--fond) 96%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--trait) 70%, transparent);
}
.entete .conteneur { display: flex; align-items: center; gap: 24px; height: 64px; }
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.32rem; letter-spacing: -.01em; }
.marque svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--encre-2); font-size: .94rem; }
.nav a:hover { color: var(--encre); }
@media (max-width: 920px) { .nav { display: none; } .entete .bouton { margin-left: auto; } }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .7em 1.25em; border-radius: 999px;
  font: 600 .98rem/1.1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.bouton:hover { transform: translateY(-1px); }
.bouton-plein { background: var(--encre); color: var(--fond); }
.bouton-plein:hover { background: color-mix(in srgb, var(--encre) 86%, var(--cuivre)); }
.bouton-trait { border-color: var(--trait-fort); color: var(--encre); background: transparent; }
.bouton-trait:hover { border-color: var(--encre); }
.bouton-petit { min-height: 38px; padding: .5em 1em; font-size: .9rem; }
.bouton svg { width: 18px; height: 18px; }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; }
.surtitre { display: inline-flex; align-items: center; gap: .6em; font: 600 .78rem/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--cuivre); margin-bottom: 1.1rem; }
.surtitre::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.chapo { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--encre-2); max-width: 62ch; }
.titre-section { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }

/* ---------- Héro ---------- */
.hero { padding-top: clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--trait) 1px, transparent 1px), linear-gradient(90deg, var(--trait) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
}
.hero .conteneur { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .chapo { margin-bottom: 1.8rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.garanties { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--discret); font-size: .9rem; }
.garanties li { display: inline-flex; align-items: center; gap: .5em; }
.garanties svg { width: 16px; height: 16px; color: var(--vert); flex: none; }
@media (max-width: 920px) { .hero .conteneur { grid-template-columns: 1fr; } }

/* Maquette du fil */
.fenetre { background: var(--surface); border: 1px solid var(--trait); border-radius: 18px; box-shadow: var(--ombre); overflow: hidden; }
.fenetre-barre { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--trait); background: var(--fond-2); }
.fenetre-barre i { width: 11px; height: 11px; border-radius: 50%; background: var(--trait-fort); }
.fenetre-barre span { margin-left: 10px; font-size: .82rem; color: var(--discret); font-weight: 600; }
.fil { padding: 18px; display: grid; gap: 14px; font-size: .9rem; line-height: 1.45; }
.msg { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; }
.msg .av { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--fond-2); color: var(--encre-2); border: 1px solid var(--trait); }
.msg .av svg { width: 17px; height: 17px; }
.msg b { display: block; font-size: .78rem; color: var(--discret); font-weight: 600; margin-bottom: 2px; }
.msg p { margin: 0; }
.msg.vous .av { background: var(--encre); color: var(--fond); border-color: var(--encre); font: 700 .7rem var(--sans); }
.carte {
  margin-left: 42px; border: 1px solid color-mix(in srgb, var(--cuivre) 45%, var(--trait)); border-radius: 12px;
  background: color-mix(in srgb, var(--cuivre-doux) 45%, var(--surface)); padding: 14px;
}
.carte-tete { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.carte-tete strong { font-size: .92rem; }
.etiquette { font: 700 .66rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: var(--cuivre-doux); color: var(--cuivre); white-space: nowrap; }
.etiquette.ok { background: var(--vert-doux); color: var(--vert); }
.champs { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 12px; font-size: .84rem; }
.champs dt { color: var(--discret); }
.champs dd { margin: 0; font-weight: 500; }
.champs dd.vide { color: var(--cuivre); font-style: italic; font-weight: 500; }
.carte-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.faux-bouton { display: inline-flex; align-items: center; gap: 6px; font: 600 .82rem/1 var(--sans); padding: 9px 12px; border-radius: 9px; border: 1px solid var(--trait-fort); background: var(--surface); }
.faux-bouton.valider { background: var(--vert); color: var(--surface); border-color: var(--vert); }
.faux-bouton svg { width: 15px; height: 15px; }
.carte-pied { margin-left: auto; font-size: .74rem; color: var(--discret); }

/* ---------- Problème ---------- */
.probleme { background: var(--fond-2); border-block: 1px solid var(--trait); }
.trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.douleur { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 26px; }
.douleur svg { width: 36px; height: 36px; color: var(--cuivre); margin-bottom: 18px; }
.douleur p { color: var(--encre-2); margin: 0; }
.bascule { margin-top: 40px; font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.3; max-width: 30ch; }
@media (max-width: 860px) { .trois { grid-template-columns: 1fr; } }

/* ---------- Fonctionnement ---------- */
.etapes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--trait-fort); counter-reset: e; }
.etapes li { padding: 26px 24px 8px 0; border-right: 1px solid var(--trait); counter-increment: e; }
.etapes li + li { padding-left: 24px; }
.etapes li:last-child { border-right: 0; }
.etapes li::before { content: "0" counter(e); display: block; font: 500 .82rem var(--mono); color: var(--cuivre); margin-bottom: 14px; }
.etapes p { color: var(--encre-2); font-size: .97rem; }
@media (max-width: 920px) {
  .etapes { grid-template-columns: 1fr 1fr; }
  .etapes li { border-right: 0; padding-left: 0 !important; padding-right: 20px; border-bottom: 1px solid var(--trait); }
}
@media (max-width: 560px) { .etapes { grid-template-columns: 1fr; } }

.schema-federation { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.schema-federation .illus { background: var(--surface); border: 1px solid var(--trait); border-radius: 18px; padding: clamp(12px, 3vw, 28px); }
.liste-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.liste-points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.liste-points svg { width: 22px; height: 22px; color: var(--cuivre); margin-top: 3px; }
.liste-points strong { display: block; }
.liste-points span { color: var(--encre-2); font-size: .97rem; }
@media (max-width: 860px) { .schema-federation { grid-template-columns: 1fr; } }

/* Journal */
.journal { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.journal-liste { list-style: none; padding: 0; margin: 0; }
.journal-liste li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 13px 18px; border-top: 1px solid var(--trait); font-size: .88rem; }
.journal-liste li:first-child { border-top: 0; }
.journal-liste small { grid-column: 1; color: var(--discret); font-size: .76rem; }
.journal-liste .annuler { grid-row: 1 / span 2; grid-column: 2; font: 600 .76rem var(--sans); color: var(--encre-2); border: 1px solid var(--trait-fort); border-radius: 8px; padding: 6px 10px; display: inline-flex; gap: 5px; align-items: center; }
.journal-liste .annuler svg { width: 13px; height: 13px; }
@media (max-width: 860px) { .journal { grid-template-columns: 1fr; } .journal > div:first-child { order: 2; } }

/* ---------- Métiers ---------- */
.metiers { background: var(--fond-2); border-block: 1px solid var(--trait); }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1px; background: var(--trait); border: 1px solid var(--trait); border-radius: 18px; overflow: hidden; }
.metier { background: var(--surface); padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 10px; transition: background .2s ease; }
.metier:hover { background: color-mix(in srgb, var(--cuivre-doux) 30%, var(--surface)); }
.metier .ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--fond); border: 1px solid var(--trait); color: var(--cuivre); }
.metier .ico svg { width: 22px; height: 22px; }
.metier h3 { margin: 6px 0 0; font-size: 1.14rem; }
.metier p { margin: 0; color: var(--encre-2); font-size: .92rem; line-height: 1.5; }
@media (max-width: 400px) { .grille { grid-template-columns: 1fr; } }

/* ---------- Local d'abord (bandeau sombre) ---------- */
.local { background: var(--nuit); color: var(--nuit-encre); position: relative; overflow: hidden; }
.local h2, .local h3 { color: #f4f0e7; }
.local em { color: #e3a462; }
.local .surtitre { color: #e3a462; }
.local .chapo { color: var(--nuit-discret); }
.local .conteneur { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.local .liste-points svg { color: #e3a462; }
.local .liste-points span { color: var(--nuit-discret); }
.local .illus { background: var(--nuit-2); border: 1px solid #2a2f3b; border-radius: 18px; padding: clamp(12px, 3vw, 28px); }
@media (max-width: 860px) { .local .conteneur { grid-template-columns: 1fr; } }

/* ---------- Patrimoine ---------- */
.patrimoine .conteneur { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.patrimoine .illus { background: var(--surface); border: 1px solid var(--trait); border-radius: 18px; padding: clamp(14px, 3vw, 28px); box-shadow: var(--ombre); }
.equation { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; font-size: .88rem; }
.equation span { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--trait-fort); background: var(--surface); }
.equation .op { border: 0; background: none; padding: 7px 0; color: var(--discret); font-family: var(--mono); }
.equation .net { background: var(--encre); color: var(--fond); border-color: var(--encre); font-weight: 600; }
@media (max-width: 860px) { .patrimoine .conteneur { grid-template-columns: 1fr; } .patrimoine .illus { order: 2; } }

/* ---------- Mobile ---------- */
.mobile { background: var(--fond-2); border-block: 1px solid var(--trait); }
.mobile .conteneur { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.trois-gestes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.geste { border-top: 2px solid var(--encre); padding-top: 14px; }
.geste strong { display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 4px; }
.geste span { color: var(--encre-2); font-size: .93rem; }
.telephone { width: min(300px, 100%); margin-inline: auto; aspect-ratio: 300 / 610; border-radius: 46px; padding: 12px; background: #1a1d24; box-shadow: var(--ombre), inset 0 0 0 2px #3a3f4a; }
.ecran { height: 100%; border-radius: 35px; background: var(--fond); overflow: hidden; display: flex; flex-direction: column; padding: 14px 14px 18px; gap: 12px; position: relative; }
.ecran .ilot { width: 92px; height: 26px; border-radius: 20px; background: #1a1d24; margin: 0 auto 4px; flex: none; }
.ecran h4 { margin: 4px 4px 0; font: 600 1.25rem var(--serif); }
.ecran .sous { margin: 0 4px; font-size: .74rem; color: var(--discret); }
.ecran .carte { margin: 0; padding: 12px; }
.ecran .champs { font-size: .76rem; }
.touchid { margin-top: auto; display: grid; justify-items: center; gap: 8px; font-size: .74rem; color: var(--discret); }
.touchid svg { width: 46px; height: 46px; color: var(--vert); }
.memo { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--trait); font-size: .78rem; }
.memo svg { width: 18px; height: 18px; color: var(--cuivre); flex: none; }
.onde { display: flex; gap: 2px; align-items: center; margin-left: auto; }
.onde i { width: 2px; border-radius: 2px; background: var(--trait-fort); }
@media (max-width: 860px) { .mobile .conteneur { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .trois-gestes { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq .conteneur { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq details { border-top: 1px solid var(--trait-fort); }
.faq details:last-child { border-bottom: 1px solid var(--trait-fort); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-family: var(--serif); font-weight: 600; font-size: 1.16rem; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 1.6rem/1 var(--sans); color: var(--cuivre); transition: transform .2s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--encre-2); padding-right: 32px; margin: -4px 0 22px; }
@media (max-width: 860px) { .faq .conteneur { grid-template-columns: 1fr; } }

/* ---------- Appel final ---------- */
.appel { text-align: center; }
.appel .boite { background: var(--encre); color: var(--fond); border-radius: 26px; padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 64px); position: relative; overflow: hidden; }
.appel .boite::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--cuivre) 38%, transparent), transparent 55%); pointer-events: none; }
.appel h2 { color: var(--fond); max-width: 22ch; margin-inline: auto; position: relative; }
.appel p { color: color-mix(in srgb, var(--fond) 72%, var(--encre)); max-width: 54ch; margin: 0 auto 2rem; position: relative; }
.appel .actions { justify-content: center; position: relative; }
.appel .bouton-plein { background: var(--fond); color: var(--encre); }
.appel .bouton-trait { color: var(--fond); border-color: color-mix(in srgb, var(--fond) 40%, transparent); }
.appel .bouton-trait:hover { border-color: var(--fond); }
.appel .adresse { margin: 1.6rem auto 0; font-size: .9rem; }
.appel .adresse a { color: var(--fond); }

/* ---------- Pied ---------- */
.pied { padding: 40px 0 48px; border-top: 1px solid var(--trait); color: var(--discret); font-size: .9rem; }
.pied .conteneur { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--encre); text-decoration: underline; }
.pied .marque { color: var(--encre); font-size: 1.1rem; }
.pied .marque svg { width: 24px; height: 24px; }

/* ---------- Pages simples (mentions, 404) ---------- */
.page-simple { padding: clamp(48px, 8vw, 96px) 0; }
.page-simple .conteneur { max-width: 760px; }
.page-simple h2 { font-size: 1.45rem; margin-top: 2.2em; }
.page-simple p, .page-simple li { color: var(--encre-2); }
.page-simple .a-completer { background: var(--cuivre-doux); color: var(--cuivre); padding: 1px 6px; border-radius: 5px; font-weight: 600; }
.erreur { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.erreur .code { font: 500 .9rem var(--mono); color: var(--cuivre); letter-spacing: .1em; }

/* Couleurs des schémas SVG en ligne */
.s-trait { stroke: var(--trait-fort); }
.s-encre { stroke: var(--encre); }
.s-cuivre { stroke: var(--cuivre); }
.f-surface { fill: var(--surface); }
.f-fond { fill: var(--fond); }
.f-fond2 { fill: var(--fond-2); }
.f-encre { fill: var(--encre); }
.f-discret { fill: var(--discret); }
.f-cuivre { fill: var(--cuivre); }
.f-cuivre-doux { fill: var(--cuivre-doux); }
.f-vert { fill: var(--vert); }
.f-inverse { fill: var(--fond); }
.illus svg text { font-family: var(--sans); }
.local .illus .s-trait { stroke: #3a4050; }
.local .illus .f-surface { fill: #1f2430; }
.local .illus .f-discret { fill: #a7abb4; }
.local .illus .f-encre { fill: #ece8df; }
.local .illus .s-encre { stroke: #ece8df; }
.local .illus .f-cuivre { fill: #e3a462; }
.local .illus .s-cuivre { stroke: #e3a462; }
.local .illus .f-cuivre-doux { fill: #3a2a1b; }

.flux { stroke-dasharray: 4 6; animation: flux 1.6s linear infinite; }
/* Hors de l'écran, les tracés animés s'arrêtent : rien à repeindre pendant le défilement. */
.hors-ecran .flux, .hors-ecran .orb-pastille::after { animation-play-state: paused; }
@keyframes flux { to { stroke-dashoffset: -20; } }

/* ---------- Orbite des agents (héro) : assets/orbite.js ---------- */
.orbite-cadre { margin: 0; width: 100%; max-width: 560px; justify-self: center; }
.orbite {
  --orb-accent: var(--cuivre);
  --orb-trait: var(--trait-fort);
  --orb-vif: #fff3e2;
  --orb-force: 1.5;
  --orb-k: 1;
  position: relative; width: 100%; aspect-ratio: 10 / 9; overflow: hidden; contain: layout paint;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-color-scheme: dark) { .orbite { --orb-vif: #fff0dc; --orb-force: 1; } }
.orbite.orb-glisse { cursor: grabbing; }
.orb-toile { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.orbite a { -webkit-user-drag: none; }

/* Sans script : les agents en grille, autour du superviseur. */
.orbite:not(.orb-pret) { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 14px 6px; }
.orbite:not(.orb-pret) .orb-centre { flex-basis: 100%; }

.orb-noeud, .orb-centre {
  display: flex; flex-direction: column; align-items: center; gap: 5px; width: 104px; text-align: center; text-decoration: none; color: var(--encre);
}
.orb-pret .orb-noeud { position: absolute; left: 0; top: 0; margin: -22px 0 0 -52px; transform-origin: 52px 22px; will-change: transform, opacity; }
.orb-pret .orb-centre { position: absolute; left: 50%; top: 50%; margin: -32px 0 0 -52px; z-index: 30; transform: scale(var(--orb-k)); transform-origin: 52px 32px; }
.orb-pastille {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle at 50% 35%, var(--surface), color-mix(in srgb, var(--cuivre-doux) 70%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--orb-accent) 40%, var(--trait));
  color: var(--orb-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--orb-accent) 8%, transparent), 0 0 18px -2px color-mix(in srgb, var(--orb-accent) 40%, transparent);
  transition: box-shadow .35s ease, transform .35s ease;
}
.orb-pastille svg { width: 22px; height: 22px; }
.orb-centre .orb-pastille {
  width: 64px; height: 64px; background: var(--encre); color: var(--fond); border-color: var(--encre);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--orb-accent) 14%, transparent), 0 0 34px 4px color-mix(in srgb, var(--orb-accent) 45%, transparent);
  position: relative;
}
/* Halo du centre : une couche à part qui ne fait varier que l'opacité et l'échelle (composées par le GPU),
   au lieu d'une ombre animée qui repeignait la zone à chaque image et saccadait le défilement. */
.orb-centre .orb-pastille::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 40px 8px color-mix(in srgb, var(--orb-accent) 50%, transparent);
  opacity: .55; animation: orb-souffle 3.2s ease-in-out infinite; will-change: opacity, transform;
}
.orb-centre .orb-pastille svg { width: 38px; height: 38px; }
.orb-nom { font: 600 .8rem/1.15 var(--sans); color: var(--encre); text-shadow: 0 0 6px var(--fond), 0 0 2px var(--fond); }
.orb-centre .orb-nom { font: 600 1rem/1.1 var(--serif); }
.orb-noeud.orb-loin .orb-nom { visibility: hidden; }
.orb-noeud.orb-actif .orb-pastille {
  transform: scale(1.1);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--orb-accent) 22%, transparent), 0 0 26px 4px color-mix(in srgb, var(--orb-accent) 70%, transparent);
}
.orb-bulle {
  position: absolute; left: 50%; bottom: calc(100% - 2px); transform: translate(-50%, 6px); white-space: nowrap;
  font: 600 .8rem/1 var(--sans); padding: 6px 11px 6px 21px; border-radius: 999px;
  background: var(--encre); color: var(--fond); box-shadow: var(--ombre);
  opacity: 0; transition: opacity .3s ease, transform .3s ease; pointer-events: none;
}
.orb-bulle::before { content: ""; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--orb-accent); }
.orb-bulle.orb-visible { opacity: 1; transform: translate(-50%, 0); }
.orb-aide { margin: 6px 0 0; text-align: center; font-size: .78rem; color: var(--discret); }
@keyframes orb-souffle { 0%, 100% { opacity: .45; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .orb-aide { display: none; } }

/* Le fil commun, plus bas dans « Comment ça marche ». */
.fil-demo { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .fil-demo { grid-template-columns: 1fr; } }
