/* ──────────────────────────────────────────────────────────────────────────
   anthills.cloud — feuille de style unique.

   Charte : celle du clip (anthill-com/clip-hf/DESIGN.md). « La donnée n'est
   pas illustrée, elle est dessinée » : noir pur, traits bleus fins, libellés
   en capitales espacées, titres légers. Un instrument, pas une plaquette :
   ni dégradé, ni halo, ni carte arrondie, ni pastille qui clignote.
   Polices : IBM Plex Sans et Plex Mono, auto-hébergées (licence OFL).
   ────────────────────────────────────────────────────────────────────────── */

@font-face { font-family: "Plex"; src: url("../fonts/plex-sans-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
/* le nom Anthill, dans la police de la barre du haut de l'application */
@font-face { font-family: "EmotionEngine"; src: url("../fonts/emotion-engine-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;

  /* palette du clip */
  --bg: #000;
  --bg-2: #03080b;
  --panel: #010c12;
  --line: #14232b;        /* filets de structure */
  --line-2: #1f3440;      /* filets marqués */
  --trait: #0a5a78;       /* traits de schéma */
  --accent: #0fb5f5;
  --accent-2: #2f9fd0;
  --accent-ink: #00131c;

  --text: #f4f6f7;
  --text-2: #c3ccd1;
  --text-3: #6f7d86;

  --ok: #3ccf7a;

  --wrap: 1180px;
  --wide: 1360px;
  --gutter: clamp(16px, 5vw, 48px);
  --nav-h: 60px;
  --rail-w: 200px;

  --sans: "Plex", "Segoe UI", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wide { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.skip:focus { top: 12px; }

/* ── typographie ─────────────────────────────────────────────────────────── */

/* libellé en capitales espacées, comme le « kicker » du clip */
.kicker {
  display: block;
  font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.kicker-mute { color: var(--text-3); }

.h-hero { font-size: clamp(44px, 7vw, 92px); font-weight: 300; line-height: 1.04; letter-spacing: -.022em; }
.h-page { font-size: clamp(40px, 5.6vw, 76px); font-weight: 300; line-height: 1.05; letter-spacing: -.02em; }
.h-1 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 300; line-height: 1.1; letter-spacing: -.015em; }
.h-2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 300; line-height: 1.2; letter-spacing: -.01em; }
.h-3 { font-size: 20px; font-weight: 500; line-height: 1.3; }

.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--text-2); font-weight: 400; }
.muted { color: var(--text-2); }
.acc { color: var(--accent); }

/* ── boutons et liens ────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 2px;
  font-size: 15px; font-weight: 500; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #4cc9ff; }
.btn-line { border-color: var(--line-2); color: var(--text); }
.btn-line:hover { border-color: var(--accent); }
.btn-s { height: 36px; padding: 0 16px; font-size: 14px; }

.link { color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.link::after { content: "→"; transition: transform .2s var(--ease); }
.link:hover::after { transform: translateX(4px); }

/* ── navigation principale ───────────────────────────────────────────────── */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  background: #000;
  border-bottom: 1px solid var(--line);
}
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: "EmotionEngine", "Arial Black", Arial, sans-serif; font-weight: 700; font-size: 24px; letter-spacing: .02em; }
.brand img { width: 36px; height: 36px; filter: brightness(1.35); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { position: relative; font-size: 14px; color: var(--text-2); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-links a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -21px; height: 1px; background: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; }
.nav-burger span { display: block; width: 18px; height: 1.5px; background: var(--text); margin: 5px auto; transition: transform .3s var(--ease); }

@media (max-width: 960px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px;
    background: #000; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s var(--ease);
  }
  .nav-links a { display: block; padding: 15px 0; font-size: 19px; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current]::after { display: none; }
  .nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-burger { display: block; }
  .nav.open .nav-burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav.open .nav-burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .nav-cta .btn { display: none; }
}

/* ── sommaire vertical des pages intérieures ─────────────────────────────── */
/* Fixe à gauche, à mi-hauteur. Un curseur glisse le long du filet jusqu'à la
   section courante (site.js). La page se décale pour lui laisser sa colonne. */

.rail {
  position: fixed; left: 32px; top: 50%; z-index: 30;
  width: calc(var(--rail-w) - 48px);
  transform: translate(-12px, -50%); opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.rail.visible { transform: translate(0, -50%); opacity: 1; pointer-events: auto; }
.rail-page { display: block; margin-bottom: 18px; font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--text-3); }
.rail-page:hover { color: var(--text); }
.rail ol { position: relative; list-style: none; border-left: 1px solid var(--line-2); }
.rail li a { display: block; padding: 7px 0 7px 16px; font-size: 13px; color: var(--text-3); transition: color .25s; }
.rail li a:hover { color: var(--text-2); }
.rail li a.on { color: var(--text); }
/* les fonctionnalités, en retrait sous leur entrée */
.rail li.rail-sous a { padding-top: 5px; padding-bottom: 5px; padding-left: 28px; font-size: 12.5px; }
.rail-curseur {
  position: absolute; left: -1px; top: 0; width: 2px; height: 0;
  background: var(--accent);
  transition: transform .45s var(--ease), height .45s var(--ease);
}
@media (min-width: 1200px) {
  /* la colonne du sommaire, prise sur la marge quand l'écran est assez large */
  /* l'ouverture de l'accueil garde toute la largeur : le sommaire n'apparaît qu'après elle */
  main:has(.rail) > :not(.hero, .sec-large, .rail, .secteur-flottant) { padding-left: max(0px, calc(var(--rail-w) - (100vw - var(--wide)) / 2 + var(--gutter))); }
}
@media (max-width: 1199px) { .rail { display: none; } }

/* ── sections ────────────────────────────────────────────────────────────── */

section { position: relative; }
.sec { padding: clamp(88px, 10vw, 140px) 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-alt { background: var(--bg-2); }
.sec-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .lead { margin-top: 22px; max-width: 680px; }
.sec-more { margin-top: 40px; }

.rv { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }

/* en-tête des pages intérieures */
.page-head { padding: calc(var(--nav-h) + clamp(64px, 8vw, 112px)) 0 clamp(56px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.page-head .lead { margin-top: 26px; max-width: 720px; }

/* ── ouverture ───────────────────────────────────────────────────────────── */

/* Le texte et la carte tiennent ensemble dans le premier écran ; la carte est à plat, de face. */
.hero { padding: calc(var(--nav-h) + clamp(48px, 6vw, 96px)) 0 clamp(32px, 4vw, 56px); }
/* la carte prend le plus de place possible : le texte se contente de sa colonne */
.hero-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); gap: clamp(32px, 3.4vw, 56px); align-items: center; }
.hero .h-hero { font-size: clamp(38px, 3.3vw, 54px); }
/* l'encart est plus petit qu'ailleurs : sa légende garde le nom de la centrale, sans les réseaux */
.hero-shot .loupe-legende { font-size: 11px; }
.hero-shot .loupe-legende span { display: none; }
.hero .lead { margin-top: 24px; max-width: 520px; }
.hero .kicker { letter-spacing: .18em; }
.hero-cta { display: flex; align-items: center; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
/* le cadre se pose sur la centrale, les traits partent, l'encart s'ouvre */
.hero-shot .loupe-traits rect { animation: cadre .5s .7s var(--ease) both; }
.hero-shot .loupe-traits line { animation: trait .5s 1.2s var(--ease) both; }
.hero-shot .loupe { animation: encart .6s 1.5s var(--ease) both; }
@keyframes cadre { from { opacity: 0; } }
@keyframes trait { from { opacity: 0; } }
@keyframes encart { from { opacity: 0; transform: scale(.94); } }
.hero-shot .loupe { transform-origin: 0 60%; }
/* sous 1000 px : le texte, puis la carte */
@media (max-width: 1000px) {
  .hero { min-height: 0; display: block; padding-top: calc(var(--nav-h) + 56px); }
  .hero-grid { grid-template-columns: 1fr; }
}
/* la section qui suit l'ouverture n'a pas besoin de tout son souffle */
.sec-suite { padding-top: clamp(64px, 7vw, 104px); }
/* une section qui n'a qu'un titre ouvre la suivante : ni vide ni filet entre elles */
.sec-chapitre { padding-bottom: 0; }
.sec-chapitre + .sec { border-top: 0; padding-top: clamp(32px, 4vw, 56px); }

/* ── ce que ça change (accueil) : trois phrases, pas une grille d'icônes ─── */
.atouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(28px, 3.5vw, 56px); }
.atouts > div { border-top: 1px solid var(--line-2); padding-top: 26px; }
.atouts .n { display: block; font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 18px; }
.atouts h3 { font-size: clamp(22px, 2vw, 27px); font-weight: 300; line-height: 1.2; margin-bottom: 14px; }
.atouts p { font-size: 16px; color: var(--text-2); }
@media (max-width: 900px) { .atouts { grid-template-columns: 1fr; gap: 36px; } }

/* ── captures ────────────────────────────────────────────────────────────── */

.shot { position: relative; border: 1px solid var(--line-2); border-radius: 2px; background: #070e1a; overflow: hidden; }
.shot img { width: 100%; }
.shot img[data-zoom] { cursor: zoom-in; }

/* le modèle, puis l'instance posée par-dessus */
.calque { position: relative; padding-bottom: 12%; }
.calque .shot-fond { width: 86%; }
.calque .shot-dessus { position: absolute; right: 0; bottom: 0; width: 60%; box-shadow: 0 0 0 8px var(--bg-2); }
.calque-legende { display: flex; gap: 28px; margin-top: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--text-3); text-transform: uppercase; }
.calque-legende b { color: var(--accent); font-weight: 500; }
@media (max-width: 560px) { .calque-legende { flex-direction: column; gap: 10px; } }
@media (max-width: 760px) {
  .calque { padding-bottom: 0; }
  .calque .shot-fond, .calque .shot-dessus { position: relative; width: 100%; box-shadow: none; }
  .calque .shot-dessus { margin-top: 12px; }
}

/* agrandissement */
.zoom {
  border: 0; padding: 0; background: transparent; color: var(--text);
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  overflow: auto; overscroll-behavior: contain;
}
.zoom[open] { display: grid; place-items: center; }
.zoom::backdrop { background: rgba(0, 0, 0, .94); }
.zoom img { width: auto; max-width: calc(100vw - 32px); max-height: calc(100vh - 88px); border: 1px solid var(--line-2); cursor: zoom-in; }
.zoom-close {
  position: fixed; top: 14px; right: 14px; z-index: 1; width: 44px; height: 44px;
  display: grid; place-items: center; border: 1px solid var(--line-2); cursor: pointer;
  background: #000; color: var(--text);
}
.zoom-close:hover { border-color: var(--accent); }
.zoom-aide { position: fixed; left: 0; right: 0; bottom: 16px; text-align: center; font-size: 13px; color: var(--text-3); pointer-events: none; }
.zoom.plein[open] { display: block; }
.zoom.plein img { max-width: none; max-height: none; border: 0; cursor: zoom-out; }
.zoom.plein .zoom-aide { display: none; }

/* ── secteur des exemples (accueil) ──────────────────────────────────────── */
/* Un seul choix pour toute la page (site.js le pose sur <html>) : chaque élément marqué
   data-secteur="cyber …" ne s'affiche que pour ces secteurs. Sans script : cybersécurité. */
:root:not([data-secteur]) [data-secteur]:not([data-secteur~="cyber"]),
:root[data-secteur="cyber"] [data-secteur]:not([data-secteur~="cyber"]),
:root[data-secteur="influence"] [data-secteur]:not([data-secteur~="influence"]) { display: none !important; }

/* Le sélecteur, unique : flottant en bas à droite, il paraît tant qu'on parcourt les blocs qui
   en dépendent (site.js lui pose .visible). */
.secteur-flottant {
  position: fixed; right: 24px; bottom: 24px; z-index: 45;
  display: flex; align-items: center; gap: 4px; padding: 6px;
  background: #000; border: 1px solid var(--line-2); border-radius: 2px;
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .9);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.secteur-flottant.visible { opacity: 1; transform: none; pointer-events: auto; }
.secteur-flottant button, .choix-secteur button {
  height: 34px; padding: 0 14px; border-radius: 2px; cursor: pointer;
  border: 1px solid transparent; background: transparent; color: var(--text-2); font-size: 14px;
  transition: border-color .2s, color .2s, background .2s;
}
.secteur-flottant button:hover, .choix-secteur button:hover { border-color: var(--line-2); color: var(--text); }
.secteur-flottant button[aria-pressed="true"], .choix-secteur button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 500; }
/* le même choix, posé dans la page plutôt que flottant (page ontologie) */
.choix-secteur { display: inline-flex; gap: 4px; padding: 6px; border: 1px solid var(--line-2); border-radius: 2px; }
@media (max-width: 560px) {
  .secteur-flottant { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; }
  .secteur-flottant button { flex: 1; padding: 0 8px; font-size: 13px; }
}
.exemple { margin-top: 16px; padding-left: 16px; border-left: 1px solid var(--accent); font-size: 17px; color: var(--text-2); max-width: 680px; }
.shot-legende { margin-top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--text-3); }

/* ── schéma de l'ontologie (page ontologie) ──────────────────────────────── */

/* Dessiné par outils/ontologie.js : un plateau en perspective porte les objets et leurs
   relations ; dessus, ce qui s'en sert ; dessous, ce qui l'alimente. Sa section garde toute la
   largeur, comme l'ouverture : le sommaire ne paraît qu'après elle. */
.onto-tete .exemple { margin-top: 24px; }
.onto { margin-top: clamp(32px, 4vw, 48px); }
/* le plateau tient dans un écran : sa hauteur est bornée à la fenêtre moins l'en-tête, le dessin
   se réduit d'autant (le viewBox garde les proportions) */
.onto svg { display: block; width: 100%; height: auto; max-height: calc(100vh - 90px); margin-inline: auto; overflow: visible; }
.onto text { font-family: var(--sans); }
.o-titre { font-size: 14px; font-weight: 600; letter-spacing: .22em; fill: var(--text); }
.o-titre-acc { fill: var(--accent); }
.o-plateau { fill: var(--panel); stroke: var(--line-2); }
.o-tranche { fill: #02080c; stroke: var(--line-2); }
.o-grille { fill: none; stroke: #0b1a22; }
.o-lien { fill: none; stroke: var(--trait); stroke-width: 1.4; }
/* le libellé masque le trait qu'il commente : un contour de la couleur du plateau */
.o-verbe { font-size: 13.5px; fill: var(--text-2); paint-order: stroke; stroke: var(--panel); stroke-width: 8px; stroke-linejoin: round; }
.o-socle { fill: #031620; stroke: var(--trait); }
.o-picto { fill: var(--panel); stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* silhouette pleine, et trait de la couleur du plateau qui la creuse (talon d'Achille) */
.o-picto.o-picto-plein { fill: var(--accent); }
.o-picto.o-picto-creux { fill: none; stroke: var(--panel); stroke-width: 3; }
.o-nom rect { fill: var(--accent); }
.o-nom text { font-size: 14.5px; font-weight: 500; fill: var(--accent-ink); }
.o-icone { fill: none; stroke: var(--accent-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.o-fiche-fond { fill: var(--bg); stroke: var(--line-2); }
.o-attache { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 2 3; }
.o-fiche-genre { font-size: 12px; font-weight: 600; letter-spacing: .2em; fill: var(--accent); }
.o-fiche-titre { font-size: 16px; font-weight: 500; fill: var(--text); }
.o-fiche-filet { stroke: var(--line-2); }
.o-fiche-cle { font-size: 14px; fill: var(--text-3); }
.o-fiche-val { font-size: 14px; fill: var(--text); }
.o-boite { fill: var(--panel); stroke: var(--line-2); }
.o-puce rect { fill: var(--bg); stroke: var(--line-2); }
.o-puce text { font-size: 13.5px; fill: var(--text-2); }
.o-plus-txt text { fill: var(--text-3); }
.o-plus { font-size: 16px; fill: var(--text-3); }
.o-croquis { fill: none; stroke: #2a4552; stroke-width: 1.4; stroke-linecap: round; }
.o-croquis-a { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
.o-pointille { stroke-dasharray: 3 3; stroke-width: 1; }
.o-croquis-t { font-size: 11px; fill: var(--text-3); font-family: var(--mono); }
.o-case { fill: #0a1a22; }
.o-case-a { fill: var(--accent); opacity: .75; }
.o-faisceau { fill: none; stroke: var(--trait); stroke-opacity: .8; }
.o-impulsion { fill: var(--accent); }
/* sous 1000 px, le schéma tient dans la largeur : vue d'ensemble, que le zoom du navigateur
   (pincement) agrandit à la demande */

/* ── étapes du moteur ────────────────────────────────────────────────────── */

.etapes { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line-2); counter-reset: e; }
.etapes li { position: relative; padding: 28px 28px 0 0; }
.etapes li::before {
  content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px;
  background: var(--accent);
}
.etapes li:last-child::before { background: var(--text); }
.etapes .n { display: block; font-family: var(--mono); font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.etapes h3 { font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.etapes li:last-child h3 { color: var(--text); }
.etapes p { font-size: 16px; color: var(--text-2); }
@media (max-width: 1000px) { .etapes { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } }
@media (max-width: 560px) {
  .etapes { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line-2); row-gap: 32px; }
  .etapes li { padding: 0 0 0 24px; }
  .etapes li::before { top: 6px; left: -4px; }
}

/* ── listes de points sous une capture ───────────────────────────────────── */

.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; margin-top: clamp(40px, 5vw, 56px); }
.points.p-3 { grid-template-columns: repeat(3, 1fr); }
.sec-head + .points { margin-top: 0; }
.points div { border-top: 1px solid var(--line-2); padding: 20px 0 24px; }
.points h4 { font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.points p { font-size: 15px; color: var(--text-2); }
@media (max-width: 1000px) { .points, .points.p-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .points, .points.p-3 { grid-template-columns: 1fr; } }

/* grille de filets (sécurité) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.tile { padding: clamp(24px, 3vw, 36px); border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.tile { display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; align-items: center; }
.tile h3 { font-size: 17px; font-weight: 500; }
.tile p { grid-column: 1 / -1; margin-top: 12px; }
.tile p { font-size: 15px; color: var(--text-2); }
.tile .n { display: block; font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 16px; }
/* pictogramme au trait, de la couleur d'accent, comme les traits de schéma */
.tile-picto { width: 30px; height: 30px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, 1fr); } }

/* ── galerie à onglets ───────────────────────────────────────────────────── */

.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line-2); margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; position: relative; border: 0; background: transparent; cursor: pointer;
  padding: 0 0 14px; font-size: 15px; color: var(--text-3); white-space: nowrap;
  transition: color .25s;
}
.tab:hover { color: var(--text-2); }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent); }
/* quatre onglets tiennent sur une ligne d'un téléphone */
@media (max-width: 480px) { .tabs { gap: 14px; } .tab { font-size: 14px; } }
.panel[hidden] { display: none; }
.panel { animation: fondu .5s var(--ease); }
@keyframes fondu { from { opacity: 0; } }
.panel-txt { max-width: 680px; margin-bottom: 24px; font-size: 17px; color: var(--text-2); }
.panel .exemple { margin: -8px 0 24px; }

/* ── texte et capture côte à côte ────────────────────────────────────────── */

.split-shot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.split-shot.rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split-shot.rev > :first-child { order: 2; }
.split-txt .lead { margin-top: 20px; }
.checks { list-style: none; margin-top: 32px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checks li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.checks li strong { display: block; margin-bottom: 2px; color: var(--text); font-weight: 500; font-size: 16px; }
@media (max-width: 900px) { .split-shot, .split-shot.rev { grid-template-columns: 1fr; } .split-shot.rev > :first-child { order: 0; } }

/* requête GQL telle qu'enregistrée dans la plateforme */
.requete {
  margin-top: 28px; padding: 18px 20px; border: 1px solid var(--line-2); background: var(--panel);
  font-family: var(--mono); font-size: 13px; line-height: 1.7; color: #c9d6de; white-space: pre; overflow-x: auto;
}
.requete .k { color: var(--accent); }
.requete-titre { display: block; margin-top: 28px; font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--text-3); }
.requete-titre + .requete { margin-top: 10px; }

/* ── métiers ─────────────────────────────────────────────────────────────── */

.jobs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.job { display: flex; flex-direction: column; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: #000; }
.job-txt { flex: 1; display: flex; flex-direction: column; padding: clamp(28px, 3vw, 40px) clamp(22px, 2.2vw, 32px) clamp(28px, 3vw, 36px); }
/* le lien du bas choisit le secteur des exemples et descend aux fonctionnalités */
.job-lien { margin-top: auto; padding-top: 26px; font-size: 15px; }
@media (max-width: 1000px) { .jobs { grid-template-columns: 1fr; } }
.job-tag { font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.job h3 { font-size: 28px; font-weight: 300; line-height: 1.12; margin-bottom: 14px; }
.job p { color: var(--text-2); font-size: 16px; }
.job ul { list-style: none; margin-top: 18px; display: grid; gap: 8px; }
.job li { position: relative; padding-left: 18px; font-size: 14px; color: var(--text-2); }
.job li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--accent); }

/* ── cas d'usage ─────────────────────────────────────────────────────────── */

.case { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
.case-txt .lead { margin-top: 20px; }
.case .shot { position: sticky; top: calc(var(--nav-h) + 32px); }
.vsteps { list-style: none; counter-reset: v; margin-top: 36px; border-top: 1px solid var(--line); }
.vsteps li { display: grid; grid-template-columns: 40px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
.vsteps li::before { counter-increment: v; content: counter(v, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 3px; }
.vsteps b { display: block; font-size: 16px; font-weight: 500; }
.vsteps span { grid-column: 2; display: block; font-size: 15px; color: var(--text-2); }
.note-demo { margin-top: 48px; font-size: 13px; color: var(--text-3); }
@media (max-width: 1000px) { .case { grid-template-columns: 1fr; } .case .shot { position: relative; top: 0; } }

/* ── déploiement ─────────────────────────────────────────────────────────── */

.modes { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.mode { padding: 32px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.mode .etat { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.mode .etat.on { color: var(--ok); }
.mode h3 { font-size: 26px; font-weight: 300; margin: 12px 0 8px; }
.mode p { font-size: 15px; color: var(--text-2); max-width: 440px; }
@media (max-width: 760px) { .modes { grid-template-columns: 1fr; } }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.grid-2 > * { border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: clamp(24px, 3vw, 36px); }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.deploy-card { display: flex; flex-direction: column; gap: 24px; }
.deploy-card svg.topo { display: block; width: 100%; max-width: 460px; height: auto; margin-inline: auto; }
/* sous 560 px, le cluster se lit empilé : la version large n'y tiendrait pas lisiblement */
.deploy-card svg.topo-etroit { display: none; }
/* au-dessus de 560 px, le mononoeud garde la meme echelle que le cluster (cadre 328 contre 520) */
@media (min-width: 561px) { .deploy-card svg.topo-mono { max-width: 290px; } }
@media (max-width: 560px) {
  .deploy-card svg.topo-large { display: none; }
  .deploy-card svg.topo-etroit { display: block; }
}

/* ── bandeau de contact ──────────────────────────────────────────────────── */

.cta-band { padding: clamp(96px, 12vw, 160px) 0; border-top: 1px solid var(--line); }
.cta-band .lead { max-width: 560px; margin-top: 22px; }
.cta-band .hero-cta { margin-top: 36px; }
.cta-grille { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.cta-logo { flex: 0 0 auto; width: clamp(160px, 18vw, 260px); height: auto; filter: brightness(1.35); }
@media (max-width: 760px) { .cta-logo { display: none; } }

/* ── contact ─────────────────────────────────────────────────────────────── */

.contact { padding: calc(var(--nav-h) + clamp(40px, 5vw, 64px)) 0 clamp(64px, 8vw, 112px); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside .lead { margin-top: 24px; }
.contact-aside ul { list-style: none; margin-top: 36px; border-top: 1px solid var(--line); }
.contact-aside li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 15px; }
.contact-aside li strong { display: block; color: var(--text); font-weight: 500; font-size: 16px; }
.contact-mail { margin-top: 32px; font-size: 15px; color: var(--text-3); }
.contact-mail a { color: var(--text-2); border-bottom: 1px solid var(--line-2); }
.contact-mail a:hover { color: var(--accent); }

/* le formulaire tient dans un écran 1080p avec le widget Turnstile : rangées à deux champs, espaces serrés */
.form { border: 1px solid var(--line-2); background: var(--panel); padding: clamp(22px, 3vw, 32px); display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: 13px; font-weight: 500; color: var(--text-2); }
.field .opt { color: var(--text-3); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 14px; border-radius: 2px;
  background: #000; border: 1px solid var(--line-2);
  font-size: 16px; transition: border-color .2s; color: var(--text);
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239fb0bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.field select:focus { outline: none; border-color: var(--accent); }
.field select option { background: #0b1118; color: var(--text); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
fieldset.field { border: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.choices label { cursor: pointer; }
.choices input { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.choices span { display: inline-block; padding: 8px 14px; border-radius: 2px; border: 1px solid var(--line-2); font-size: 14px; color: var(--text-2); transition: all .2s; }
.choices input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 500; }
.choices input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form .btn { justify-self: start; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--text-3); }
.form-note a { text-decoration: underline; text-underline-offset: 2px; }
/* envoi : le bouton attend ; envoyé : les champs s'effacent et la confirmation prend leur place */
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form > :not(.form-ok) { transition: opacity .35s ease; }
.form-erreur[hidden] { display: none; }
.form.sent > :not(.form-ok) { opacity: 0; pointer-events: none; position: absolute; width: 0; height: 0; overflow: hidden; }
.form { position: relative; }
.form-ok { display: none; padding: 28px 24px; border: 1px solid rgba(60, 207, 122, .45); background: rgba(60, 207, 122, .06); color: var(--text); font-size: 16px; outline: none; }
.form-erreur { margin-top: 14px; padding: 12px 16px; border: 1px solid rgba(239, 68, 68, .5); color: var(--text); font-size: 15px; }
.form-ok strong { display: block; font-size: 22px; font-weight: 500; margin-bottom: 10px; }
.form-ok p { color: var(--text-2); margin-bottom: 18px; }
.form-ok .link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.form.sent .form-ok { display: block; animation: form-ok-in .45s ease-out; }
@keyframes form-ok-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .form.sent .form-ok { animation: none; } .form > :not(.form-ok) { transition: none; } }

/* ── pied de page ────────────────────────────────────────────────────────── */

.foot { border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: 13px; color: var(--text-3); }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot .brand { font-size: 18px; color: var(--text); margin-bottom: 10px; }
.foot .brand img { width: 26px; height: 26px; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot a:hover { color: var(--text); }
/* ── mentions légales ─────────────────────────────────────────────────────── */

/* Une colonne de lecture : intertitres en capitales espacées, fiches en deux colonnes. */
.legal { max-width: 780px; }
.legal h2 { font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); margin: 56px 0 18px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 16px; line-height: 1.6; color: var(--text-2); }
.legal p + p { margin-top: 12px; }
.legal strong { color: var(--text); font-weight: 500; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.legal ul { list-style: none; display: grid; gap: 14px; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 28px; margin-top: 14px; font-size: 16px; }
.legal dt { color: var(--text-3); }
.legal dd { color: var(--text); }
.legal blockquote { margin-top: 10px; padding-left: 16px; border-left: 1px solid var(--line-2); font-size: 14px; color: var(--text-3); }
@media (max-width: 560px) {
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 10px; }
}

/* attribution des icônes STIX 2 (CC BY-SA 4.0), sur toute la largeur sous le pied de page */
.foot-credit { flex-basis: 100%; font-size: 12px; }
.foot-credit a { text-decoration: underline; text-underline-offset: 2px; }

/* ── mouvement réduit : tout se fige, rien ne disparaît ──────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .hero-shot .loupe-traits rect, .hero-shot .loupe-traits line, .hero-shot .loupe { animation: none; }
  .panel { animation: none; }
  .o-impulsion { display: none; }
  .rail, .rail-curseur, .secteur-flottant { transition: none; }
}

/* requêtes en graphe, sous la carte */
.graphe { margin-top: clamp(80px, 9vw, 120px); padding-top: clamp(56px, 6vw, 80px); border-top: 1px solid var(--line); }

/* avec le sommaire, la page est décalée : un fond alterné y laisserait une marche */
main:has(.rail) .sec-alt { background: transparent; }

/* ── halo bleu léger derrière les en-têtes (repris de la première version) ─ */
.hero, .page-head, .cta-band, .contact { overflow: hidden; }
.hero::before, .page-head::before, .cta-band::before, .contact::before {
  content: ""; position: absolute; left: 50%; width: 1600px; transform: translateX(-50%);
  pointer-events: none; z-index: 0;
}
.hero::before {
  top: 0; height: 1000px;
  background:
    radial-gradient(ellipse 45% 38% at 32% 16%, rgba(15, 181, 245, .17), transparent 70%),
    radial-gradient(ellipse 30% 26% at 70% 55%, rgba(61, 123, 255, .08), transparent 70%);
}
.page-head::before { top: 0; height: 760px; background: radial-gradient(ellipse 45% 45% at 30% 12%, rgba(15, 181, 245, .15), transparent 70%); }
.cta-band::before, .contact::before { bottom: -280px; height: 760px; background: radial-gradient(ellipse 50% 50% at 50% 62%, rgba(15, 181, 245, .14), transparent 70%); }
.hero > *, .page-head > *, .cta-band > *, .contact > * { position: relative; z-index: 1; }

/* ── carte et loupe : la vue d'ensemble, un cadre sur une zone, l'agrandi en encart ─ */
.carte-loupe { overflow: hidden; }
.loupe-traits { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.loupe-traits rect { fill: rgba(15, 181, 245, .1); stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.loupe-traits line { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 4 4; opacity: .8; vector-effect: non-scaling-stroke; }
.loupe {
  position: absolute; border: 1px solid var(--accent); background: #070e1a;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, .55), 0 24px 70px -20px rgba(15, 181, 245, .45);
}
.loupe img { width: 100%; }
/* légende à la manière d'un libellé de l'outil : un nœud, son nom, ses réseaux */
.loupe-legende {
  position: absolute; left: -1px; bottom: 100%; display: flex; align-items: center; gap: 8px;
  padding: 5px 10px; background: #0b1424; border: 1px solid var(--accent); border-bottom: 0;
  font-family: var(--mono); font-size: 12px; color: var(--text); white-space: nowrap;
}
.loupe-suite { font-weight: inherit; }
.loupe-legende i { width: 7px; height: 7px; border-radius: 50%; background: #2dd4bf; box-shadow: 0 0 6px #2dd4bf; }
.loupe-legende span { color: var(--text-3); }
/* sur téléphone, la loupe reste posée sur la carte, plus grande en proportion ; les traits de
   rappel ont leur tracé propre (.l-etroit), vers cette position */
.loupe-traits .l-etroit { display: none; }
@media (max-width: 760px) {
  .loupe-traits line { display: none; }
  .loupe-traits .l-etroit { display: inline; }
  .loupe { left: 36% !important; top: 22% !important; width: 60% !important; }
  .loupe-legende, .hero-shot .loupe-legende { font-size: 10px; padding: 4px 8px; }
  .loupe-suite { display: none; }
}
