/* Ambroise IT : feuille de style commune (accueil, parcours, migration, mentions légales)
   Direction « signalétique » : fond blanc pur, texte et lignes noirs, vert de signalisation pour le trajet
   et l'action, jaune réservé au repère « vous êtes ici », au focus et à la sélection. */

/* ---------- Polices (auto-hébergées, sous-ensemble latin) ---------- */
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 200 800; font-style: normal; font-display: swap; src: url("/fonts/AtkinsonHyperlegibleNext-var.woff2") format("woff2"); }
/* Plex Mono : réservé aux données des schémas techniques (adresses, VLAN, étiquettes MPLS) */
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/IBMPlexMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/IBMPlexMono-Medium.woff2") format("woff2"); }

/* ---------- Jetons ---------- */
:root {
  --paper: #FFFFFF;          /* fond unique, toutes sections */
  --ink: #000000;            /* texte, lignes du réseau */
  --green: #008351;          /* RAL 6024 vert signalisation : trajet, action (texte blanc dessus 4,81:1) */
  --green-deep: #1E5945;     /* RAL 6016 : texte vert, survol (8,17:1 sur blanc) */
  --yellow: #F7B500;         /* RAL 1023 : « vous êtes ici », focus, sélection ; jamais en texte */
  --grey: #8F9695;           /* RAL 7042 : stations des outils remplacés (3,02:1, graphique seulement) */
  --text-2: #4D5354;         /* texte secondaire (7,83:1) */
  --sep: #DDE0DF;            /* séparateurs fins */
  /* Alias conservés pour parcours.css et les générateurs */
  --accent: var(--green);
  --accent-text: var(--green-deep);
  --label: var(--text-2);
  --stroke: 1.5px;
  --line: 6px;               /* épaisseur d'une ligne du réseau */
  --stop: 18px;              /* diamètre d'une station */
  --radius: 10px;
  --sans: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 4.25rem; -webkit-text-size-adjust: 100%; scrollbar-color: var(--grey) var(--paper); background: var(--paper); }
body {
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper);
  font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; caret-color: var(--green);
}
::selection { background: var(--yellow); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
a, button, .btn { touch-action: manipulation; -webkit-tap-highlight-color: rgb(247 181 0 / 0.35); }
ul, ol { list-style: none; }
a { color: inherit; text-underline-offset: 0.24em; text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-weight: 650; line-height: 1.12; text-wrap: balance; }
h1, h2, h3, h4, p, li, dt, dd, figcaption, .btn { overflow-wrap: break-word; }
h3, h4 { overflow-wrap: anywhere; }
.hero .wrap > *, .offer > *, .feature > *, .mig-head > *, .steps li, .steps li > *, .ledger li > *, .lines li > * { min-width: 0; }
p { text-wrap: pretty; }
strong { font-weight: 650; }
/* Focus : anneau jaune cerné de noir, lisible sur blanc comme sur les aplats verts */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--yellow); border-radius: 2px; }
main:focus { outline: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 0.75rem; left: 0.75rem; width: auto; height: auto; clip: auto; margin: 0; padding: 0.75rem 1rem; background: var(--ink); color: var(--paper); z-index: 100; font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); }
/* Intitulé discret (casse normale, pas de capitales espacées) */
.label { font-size: 0.9375rem; font-weight: 600; color: var(--text-2); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0 1.4rem; border: 2px solid var(--ink); border-radius: var(--radius);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; color: var(--ink); background: var(--paper);
  cursor: pointer; transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out);
  max-width: 100%; min-width: 0;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn > span { min-width: 0; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--green); border-color: var(--green); color: var(--paper); }
.btn-primary:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--paper); }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.site-footer .wrap > * { min-width: 0; max-width: 100%; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--sep); }
.site-header nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.25rem; }
/* Logo : le point médian du nom devient une station du réseau */
.logo { font: 750 1.125rem/1 var(--sans); letter-spacing: 0.01em; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.logo span { display: inline-block; flex: none; width: 10px; height: 10px; margin: 0 4px; border-radius: 50%; background: var(--paper); border: 3px solid var(--green); color: transparent; overflow: hidden; font-size: 0; line-height: 0; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a:not(.btn) {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.75rem;
  font-size: 0.9375rem; font-weight: 600; text-decoration: none; color: var(--text-2);
}
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 8px; height: 3px; border-radius: 3px; background: var(--green); transform: scaleX(0); transform-origin: left center; transition: transform 220ms var(--ease-out); }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { transform: none; }
.nav-links .btn { min-height: 44px; margin-left: 0.5rem; padding: 0 1.1rem; font-size: 0.9375rem; }
.nav-toggle {
  display: none; align-items: center; gap: 0.6rem; min-height: 44px; min-width: 44px; padding: 0 0.9rem;
  border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); color: var(--ink);
  font: 600 0.9375rem var(--sans); cursor: pointer;
}
.nav-toggle .bars { display: grid; gap: 4px; }
.nav-toggle .bars i { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; }

@media (max-width: 57.5em) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--sep); padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 0; border-bottom: 1px solid var(--sep); font-size: 1.0625rem; color: var(--ink); }
  .nav-links a:not(.btn)::after { left: 0; right: auto; width: 2.5rem; bottom: 8px; }
  .nav-links .btn { margin: 1rem 0 0; }
  .no-js .nav-links { display: flex; position: static; border: 0; padding: 0 0 1rem; }
  .no-js .site-header nav { flex-wrap: wrap; }
  .no-js .nav-toggle { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); border-top: 1px solid var(--sep); }
/* Arrivée par un lien (#section) : le titre se place 1,5rem sous le menu collant (4,25rem) */
/* scroll-padding-top (menu, 4,25rem) évite qu'un élément atteint au clavier passe sous le menu (WCAG 2.4.11) ;
   la marge négative compense le haut de section pour que le titre arrive 1,5rem sous le menu. */
.section[id], .contact[id] { scroll-margin-top: calc(1.5rem - var(--section)); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.75rem); max-width: 52rem; }
.section-head h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.125rem); font-weight: 700; letter-spacing: -0.025em; }
.section-head p { margin-top: 1rem; color: var(--text-2); font-size: 1.1875rem; max-width: 40rem; }

/* ---------- Hero : titre, puis le plan de ligne sur toute la largeur ---------- */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(4rem, 8vw, 6.5rem); }
.hero h1 { font-size: clamp(2.5rem, 1.1rem + 4.6vw, 4.75rem); font-weight: 750; line-height: 1.02; letter-spacing: -0.035em; max-width: 23ch; }
.hero-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.hero-text { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: var(--text-2); max-width: 38rem; }
.hero .btns { max-width: 100%; }

/* Plan de ligne : liste ordonnée de stations. Grise (outils remplacés), correspondance, verte (chez vous), terminus. */
.route { margin-top: clamp(3rem, 6vw, 4.5rem); }
.route-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-bottom: 3.75rem; font-size: 1rem; font-weight: 600; color: var(--text-2); }
.route-name b { display: inline-flex; align-items: center; min-height: 2rem; padding: 0 0.85rem; border-radius: 999px; background: var(--green); color: var(--paper); font-weight: 700; }
.route-line { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr) repeat(6, minmax(0, 1fr)) minmax(0, 1.4fr); }
.stop { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: calc(var(--stop) + 1.1rem); }
/* Segment de ligne : chaque station porte la moitié gauche et la moitié droite de son tronçon */
.stop::before { content: ""; position: absolute; top: calc((var(--stop) - var(--line)) / 2); left: 0; right: 0; height: var(--line); background: var(--green); }
.stop:first-child::before { left: 50%; border-radius: var(--line) 0 0 var(--line); }
.stop:last-child::before { right: 50%; }
.stop.old::before { background: var(--grey); }
.stop.hub::before { background: linear-gradient(90deg, var(--grey) 50%, var(--green) 50%); }
/* Station : cercle blanc cerclé */
.stop::after { content: ""; position: absolute; top: 0; left: 50%; width: var(--stop); height: var(--stop); margin-left: calc(var(--stop) / -2); border-radius: 50%; background: var(--paper); border: 4px solid var(--green); }
.stop.old::after { border-color: var(--grey); }
/* Correspondance : pastille allongée noire, comme sur les plans de ligne */
.stop.hub::after { width: calc(var(--stop) * 1.9); margin-left: calc(var(--stop) * -0.95); border-radius: 999px; border-color: var(--ink); }
/* Terminus : grand cercle plein */
.stop.end::after { width: calc(var(--stop) + 10px); height: calc(var(--stop) + 10px); top: -5px; margin-left: calc((var(--stop) + 10px) / -2); background: var(--green); border: 4px solid var(--ink); }
.stop-name { font-size: 0.9375rem; font-weight: 600; line-height: 1.25; padding-inline: 0.25rem; }
.stop.old .stop-name { color: var(--text-2); font-weight: 400; }
.stop.hub .stop-name, .stop.end .stop-name { font-size: 1.0625rem; font-weight: 750; }
.stop-note { margin-top: 0.25rem; font-size: 0.8125rem; color: var(--text-2); line-height: 1.35; padding-inline: 0.25rem; }
/* « Vous êtes ici » : seul usage du jaune dans la page */
.here { position: absolute; top: calc(var(--stop) * -2.4); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 0.8125rem; font-weight: 700; }
.here::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: var(--yellow); transform: translateX(-50%) rotate(45deg); border-radius: 0 0 2px 0; z-index: -1; }

/* Signature : la ligne verte se trace une fois au chargement, de la correspondance au terminus.
   Visible par défaut : l'animation part de l'état masqué (fill-mode backwards). */
@keyframes trace-x { from { transform: scaleX(0); } }
@keyframes stop-on { from { transform: scale(0.4); opacity: 0; } }
.motion .stop:is(.new, .end)::before { transform-origin: left center; animation: trace-x 520ms var(--ease-out) backwards; animation-delay: calc(500ms + var(--n, 0) * 140ms); }
.motion .stop:is(.new, .end)::after { animation: stop-on 360ms var(--ease-out) backwards; animation-delay: calc(640ms + var(--n, 0) * 140ms); }
.motion .stop.hub .stop-name { animation: stop-on 360ms var(--ease-out) backwards; animation-delay: 300ms; }

/* Bouton pause des animations en boucle (WCAG 2.2.2), affiché seulement quand elles tournent */
.anim-toggle, .mig-replay {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 1rem; border: 2px solid var(--ink); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); font: 600 0.875rem/1 var(--sans); cursor: pointer;
}
.anim-toggle::before { content: ""; width: 8px; height: 10px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.anim-toggle[aria-pressed="true"]::before { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 9px; border-color: transparent transparent transparent currentColor; }
.anim-toggle:hover, .mig-replay:hover { background: var(--ink); color: var(--paper); }
.anim-paused .pkt, .anim-paused .proto { animation-play-state: paused !important; }

/* Page migration : les VM passent une à une de vCenter à Proxmox VE (état final affiché sans JS) */
.mig-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.mig { border: 1px solid var(--sep); border-radius: calc(var(--radius) * 1.6); overflow: hidden; }
.mig svg { width: 100%; height: auto; }
.mig .t-head { font: 700 17px var(--sans); fill: var(--ink); }
.mig .t-note { font: 400 13px var(--sans); fill: var(--text-2); }
.mig .t-vm { font: 600 14px var(--sans); fill: var(--ink); }
.mig figcaption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem 1rem; padding: 0.5rem 0.5rem 0.5rem 1.1rem; border-top: 1px solid var(--sep); font-size: 0.9375rem; font-weight: 600; color: var(--text-2); }
.mig figcaption .mig-count { color: var(--green-deep); }
.mig .vm { transition: transform 700ms var(--ease-out); }
.mig .vm rect { transition: fill 200ms var(--ease-out); }
.mig.mig-ready .vm { transform: translateX(-280px); }
.mig.mig-ready .vm.moved { transform: none; }
.mig .vm.moving rect { stroke: var(--green); stroke-width: 3; }
.mig.mig-reset .vm, .mig.mig-reset .vm rect { transition: none; }

/* Traits qui se dessinent une fois à l'arrivée dans l'écran (html.lines, posée seulement si le mouvement est autorisé) */
html.lines .steps li:not(:last-child)::after { transform: scaleX(0); transform-origin: left center; transition: transform 600ms var(--ease-out); }
html.lines .steps li:nth-child(2)::after { transition-delay: 150ms; }
html.lines .steps li:nth-child(3)::after { transition-delay: 300ms; }
html.lines .steps.is-drawn li::after { transform: none; }

/* Micro-interactions : le bouton monte d'un pixel au survol et s'enfonce au clic */
@media (hover: hover) and (pointer: fine) {
  .motion .btn, .motion .anim-toggle { transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 150ms var(--ease-out); }
  .motion .btn:hover, .motion .anim-toggle:hover { transform: translateY(-1px); }
}
.motion .btn:active, .motion .anim-toggle:active { transform: translateY(1px) scale(0.985); transition-duration: 90ms; }
.no-transition, .no-transition::before, .no-transition::after, .no-transition * { transition: none !important; }

/* ---------- Ce que je migre : une correspondance par domaine ---------- */
/* Correspondance : deux stations reliées, l'outil remplacé (gris) puis l'outil installé (vert), noms sous les stations */
.xfer { --stop: 16px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1rem; padding-top: calc(var(--stop) + 0.7rem); }
.xfer::before { content: ""; position: absolute; top: calc((var(--stop) - var(--line)) / 2); left: calc(var(--stop) / 2); width: calc(50% + 0.5rem); height: var(--line); background: linear-gradient(90deg, var(--grey) 50%, var(--green) 50%); }
.xfer > span { position: relative; display: block; line-height: 1.35; }
.xfer > span::before { content: ""; position: absolute; top: calc(-1 * (var(--stop) + 0.7rem)); left: 0; width: var(--stop); height: var(--stop); border-radius: 50%; background: var(--paper); border: 4px solid var(--green); }
.xfer .from::before { border-color: var(--grey); }
.xfer .from b { color: var(--text-2); font-weight: 400; }
.xfer .to b { font-weight: 700; color: var(--green-deep); }

.feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.feature h3 { font-size: clamp(1.625rem, 1.1rem + 1.6vw, 2.375rem); font-weight: 700; letter-spacing: -0.02em; }
.feature-intro p { margin-top: 1.25rem; color: var(--text-2); max-width: 36rem; font-size: 1.125rem; }
.feature-intro .xfer { margin-top: 2rem; font-size: 1.125rem; }
.feature-intro .btn { margin-top: 2rem; }
.feature-list .label { display: block; margin-bottom: 0.75rem; }
.checklist li { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); padding: 0.8rem 0; border-bottom: 1px solid var(--sep); }
.checklist li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); margin-top: 0.55em; }

/* Les autres domaines : des lignes de tableau de départs, pas des cartes */
.lines { border-top: 2px solid var(--ink); }
.lines > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1rem clamp(2rem, 5vw, 4rem); padding: 1.75rem 0; border-bottom: 1px solid var(--sep); }
.lines h3 { font-size: 1.375rem; font-weight: 700; }
.lines p { margin-top: 0.4rem; color: var(--text-2); }
.lines .xfer { align-self: center; }

/* ---------- Méthode : la ligne de la migration, jusqu'au terminus ---------- */
.steps { --gap: clamp(1.25rem, 3vw, 2.5rem); --dot: 3rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: step; }
.steps li { position: relative; counter-increment: step; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: calc((var(--dot) - var(--line)) / 2); left: var(--dot); right: calc(-1 * var(--gap)); height: var(--line); background: var(--green); }
.steps li::before {
  content: counter(step); position: relative; z-index: 1; display: grid; place-items: center; width: var(--dot); height: var(--dot);
  border-radius: 50%; background: var(--paper); border: 4px solid var(--green); font: 750 1.125rem/1 var(--sans); margin-bottom: 1.5rem;
}
/* Terminus : la maintenance, cercle plein cerclé de noir */
.steps li:last-child::before { background: var(--green); color: var(--paper); border-color: var(--ink); }
.steps h3 { font-size: 1.3125rem; font-weight: 700; }
.steps p { margin-top: 0.6rem; color: var(--text-2); }
.steps .note { display: inline-flex; align-items: center; max-width: 100%; overflow-wrap: anywhere; hyphens: auto; min-height: 1.9rem; padding-block: 0.15rem; margin-top: 1rem; padding: 0 0.8rem; border-radius: 999px; border: 1.5px solid var(--green); color: var(--green-deep); font-size: 0.875rem; font-weight: 600; }

/* ---------- Offre GLPI : fond blanc, identité GLPI en accents seulement ---------- */
/* Valeurs relevées dans le dépôt glpi-project/glpi : marine = --glpi-mainmenu-bg (css/includes/_base.scss) ;
   bleu = .cls-1 du logo (public/pics/logos/sources/GLPI_Logo-color.svg) ; tuiles = tableau de bord « central »
   (src/Glpi/Dashboard/Dashboard.php, getDefaults). Le bleu du logo ne sert qu'en aplat (2,74:1 sur blanc). */
.band-glpi { --glpi-navy: #2f3f64; --glpi-blue: #00a5f3; }
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.offer .section-head { margin-bottom: 0; }
.band-glpi .section-head h2 { color: var(--glpi-navy); }
.specs { position: relative; padding-top: 4px; }
.specs::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px; background: var(--glpi-blue); transform-origin: left center; }
.specs > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--sep); }
.specs dt { position: relative; padding-left: 1.1rem; font-size: 0.9375rem; font-weight: 600; line-height: 1.75; color: var(--text-2); transition: color 150ms var(--ease-out); }
.specs dt::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--glpi-blue); }
.specs > div:hover dt { color: var(--glpi-navy); }
.specs dd { font-size: 1.0625rem; }
.specs .price { border-bottom: 2px solid var(--glpi-navy); }
.specs .price dd { color: var(--glpi-navy); font-weight: 700; }
/* Animation d'entrée : seulement si site.js a posé .will-reveal (JS actif et mouvement autorisé) */
.specs.will-reveal::before { transform: scaleX(0); }
.specs.will-reveal > div { opacity: 0; transform: translateY(8px); }
.specs.revealed::before { transform: scaleX(1); transition: transform 600ms var(--ease-out); }
.specs.revealed > div { opacity: 1; transform: none; transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); transition-delay: calc(250ms + var(--i, 0) * 50ms); }
.glpi-shot { margin-top: clamp(2rem, 4vw, 3rem); max-width: 34rem; }
.glpi-shot img { width: 100%; height: auto; border: 1px solid var(--sep); border-radius: var(--radius); }
.glpi-shot figcaption { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--text-2); }
.offer .btns { margin-top: 2rem; }
.band-glpi .btn-primary { background: var(--glpi-blue); border-color: var(--glpi-blue); color: var(--ink); }
.band-glpi .btn-primary:hover { background: var(--glpi-navy); border-color: var(--glpi-navy); color: var(--paper); }
.glpi-board { margin-top: clamp(2rem, 4vw, 3rem); max-width: 34rem; }
.glpi-board figcaption { margin-bottom: 0.75rem; font-size: 0.9375rem; font-weight: 600; color: var(--text-2); }
.glpi-board ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.625rem; }
.glpi-board li {
  display: flex; align-items: flex-end; min-height: 5.25rem; padding: 0.75rem 0.875rem; border-radius: 6px; border: 1px solid rgb(0 0 0 / 0.08);
  font-size: 0.9375rem; font-weight: 600; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere;
}
.glpi-board .t-ticket { background: #ffdc64; }   /* bn_count_Ticket */
.glpi-board .t-computer { background: #e69393; } /* bn_count_Computer */
.glpi-board .t-network { background: #bfe7ea; }  /* bn_count_NetworkEquipment */
.glpi-board .t-software { background: #aaddac; } /* bn_count_Software */
.glpi-board .t-user { background: #fafafa; border-color: var(--sep); } /* bn_count_User */
.glpi-board .t-license { background: #27ab3c; }  /* bn_count_SoftwareLicense (texte noir : 7,06:1) */
@media (max-width: 26em) { .glpi-board ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.glpi-board.will-reveal li { opacity: 0; transform: translateY(10px) scale(0.97); }
.glpi-board.revealed li { opacity: 1; transform: none; transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- Expérience terrain ---------- */
.ledger { border-top: 2px solid var(--ink); }
.ledger li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.9fr); gap: 1rem 2rem; align-items: baseline; padding: 1.5rem 0; border-bottom: 1px solid var(--sep); }
.ledger h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); font-weight: 700; }
.ledger .where { color: var(--text-2); }
.ledger .label { color: var(--green-deep); justify-self: end; text-align: right; }
.more-link { max-width: 100%; overflow-wrap: anywhere; display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; margin-top: 1.75rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--green); }
.more-link:hover { text-decoration-color: var(--ink); }
.more-link svg { width: 18px; height: 18px; transition: transform 160ms var(--ease-out); }
.motion .more-link:hover svg { transform: translateX(3px); }

/* ---------- Contact : le terminus ---------- */
.contact { padding-block: var(--section); border-top: 1px solid var(--sep); }
.contact h2 { font-size: clamp(2rem, 1.1rem + 3vw, 3.5rem); font-weight: 750; letter-spacing: -0.03em; max-width: 20ch; }
.contact-mail { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2rem; font: 650 clamp(1.375rem, 1rem + 1.4vw, 2.125rem)/1.3 var(--sans); text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 4px; text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.contact-mail:hover { text-decoration-color: var(--ink); }
.contact .btns { margin-top: 2rem; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--sep); padding-block: 1.75rem; font-size: 0.9375rem; color: var(--text-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 2rem; }
.site-footer .legal { font-size: 0.875rem; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration-color: var(--green); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }

/* ---------- Pages intérieures (parcours, mentions légales, migration) ---------- */
.page-head { padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.page-head h1 { font-size: clamp(2.375rem, 1.2rem + 3.8vw, 4rem); font-weight: 750; letter-spacing: -0.035em; line-height: 1.04; }
.page-head .lead { margin-top: 1.25rem; font-size: 1.1875rem; color: var(--text-2); max-width: 40rem; }
.page-head .btns { margin-top: 2rem; }
.points { border-top: 2px solid var(--ink); max-width: 60rem; }
.points li { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 0.4rem 2.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--sep); }
.points h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.5; }
.points p { color: var(--text-2); }
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2.75rem; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose dl { margin-top: 0.9rem; color: var(--text-2); }
.prose dl > div { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--sep); }
.prose dt { font-size: 0.9375rem; font-weight: 600; line-height: 1.75; color: var(--text-2); }
.prose dd { color: var(--ink); }
.prose dd a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -0.6rem; text-decoration-color: var(--green); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .feature, .offer, .mig-head { grid-template-columns: minmax(0, 1fr); }
  .mig { max-width: 36rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .steps li:nth-child(2)::after { display: none; }
}
/* Plan de ligne vertical, comme dans une voiture de métro (en em : suit aussi la taille de texte choisie) */
@media (max-width: 62em) {
  .route-name { margin-bottom: 1.75rem; }
  .route-line { grid-template-columns: minmax(0, 1fr); }
  .stop { flex-direction: row; flex-wrap: wrap; align-items: baseline; text-align: left; gap: 0 0.6rem; padding: 0 0 1.15rem calc(var(--stop) + 1.25rem); min-height: 2.75rem; }
  .stop::before, .stop:first-child::before, .stop:last-child::before { top: 0; bottom: 0; left: calc((var(--stop) - var(--line)) / 2); right: auto; width: var(--line); height: auto; border-radius: 0; }
  .stop:first-child::before { top: calc(var(--stop) / 2); border-radius: var(--line) var(--line) 0 0; }
  .stop:last-child::before { bottom: auto; height: calc(var(--stop) / 2); }
  .stop.hub::before { background: linear-gradient(var(--grey) 50%, var(--green) 50%); }
  .stop::after { top: 0.1rem; left: 0; margin-left: 0; }
  .stop.hub::after { width: var(--stop); height: calc(var(--stop) * 1.9); top: -0.3rem; margin-left: 0; }
  .stop.end::after { left: -5px; top: -0.2rem; margin-left: 0; }
  .stop-name, .stop-note { padding-inline: 0; }
  .stop-note { margin-top: 0; flex-basis: 100%; }
  .here { position: static; transform: none; order: 2; padding: 0.05rem 0.55rem; }
  .here::after { display: none; }
  .motion .stop:is(.new, .end)::before { transform-origin: center top; animation-name: trace-y; }
  @keyframes trace-y { from { transform: scaleY(0); } }
}
@media (max-width: 760px) {
  .lines > li { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  body { font-size: 1rem; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; --dot: 2.75rem; }
  .steps li:not(:last-child)::after, .steps li:nth-child(2)::after { display: block; top: var(--dot); bottom: 0; left: calc((var(--dot) - var(--line)) / 2); right: auto; width: var(--line); height: auto; }
  html.lines .steps li:not(:last-child)::after { transform: scaleY(0); transform-origin: center top; }
  html.lines .steps.is-drawn li::after { transform: none; }
  .steps li { display: grid; grid-template-columns: var(--dot) minmax(0, 1fr); column-gap: 1.1rem; padding-bottom: 2rem; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li::before { margin: 0; grid-row: span 3; }
  .steps li > * { grid-column: 2; }
  .steps li > .note { justify-self: start; }
  .ledger li { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .ledger .label { justify-self: start; text-align: left; margin-top: 0.4rem; }
  .specs > div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .prose dl > div { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .points li { grid-template-columns: minmax(0, 1fr); }
  .btns .btn { flex: 1 1 100%; white-space: normal; text-align: center; }
  .hero .btns { width: 100%; }
  .hero h1 { hyphens: auto; }
    .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

/* Texte très agrandi (réglage d'accessibilité) : media query en em, qui suit la taille de texte choisie.
   Le mot « Menu » est masqué visuellement mais reste le nom accessible du bouton. */
@media (max-width: 19.9em) {
  .nav-toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .nav-toggle { padding: 0; justify-content: center; }
  :root { --gutter: 1rem; }
  .site-header nav { gap: 0.5rem; }
  .logo { font-size: 0.875rem; letter-spacing: 0; }
}

/* Contraste renforcé demandé par le système : les gris passent au noir */
@media (prefers-contrast: more) {
  :root { --text-2: #000000; --grey: #4D5354; --sep: #4D5354; }
}

/* Mouvement réduit : les animations ne s'activent qu'avec html.motion, posée en JS seulement sans prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Contact : le terminus de la ligne (tronçon vert jusqu'au cercle terminus ; décoratif, sans texte) */
.contact .wrap::before {
  content: ""; display: block; width: min(100%, 22rem); height: 30px; margin-bottom: clamp(2rem, 4vw, 2.75rem);
  background:
    radial-gradient(circle at calc(100% - 15px) 50%, var(--green) 0 8px, var(--ink) 8.5px 12px, transparent 12.5px),
    linear-gradient(var(--green), var(--green)) left center / calc(100% - 20px) var(--line) no-repeat;
}
