/* =====================================================================================
 * RIO — SITE PUBLIC, CHARTE « GRAPHITE » (refonte du 17 octobre 2026, SITE-REFONTE)
 *
 * Chargée APRÈS styles.css, refonte.css, information-design-v2.css et ecosystem-band.css :
 * elle redéfinit les jetons de la charte (mêmes noms : --bg, --surface, --line, --t1…t4,
 * --rio…) puis habille les composants. Les composants existants suivent sans réécriture.
 *
 * Thème sombre seul. Graphite au lieu du noir, halo ardoise en CSS (aucun WebGL), cartes de
 * verre à filet d'un pixel, pilules, capsule de navigation flottante, feuille claire à coins
 * de 48 px, pied de page éclairé par le haut.
 *
 * DEUX ÉLÉMENTS NE CHANGENT PAS D'ASPECT : la maquette animée (.mock) et le schéma
 * « Comment ça marche » (#fonctionnement). Ils redéclarent l'ancienne palette sur leur
 * conteneur (bloc « Conservés » ci-dessous), et les règles nouvelles qui pourraient les
 * atteindre (.btn, section, h2, p) les excluent par `:not(#fonctionnement *)`.
 *
 * Mieux que la référence : zones tactiles ≥ 44 px, champs de 48 px en 16 px,
 * prefers-reduced-motion complet, barre d'action mobile, contrastes AA.
 * ================================================================================== */

/* ---------------------------------------------------------------- police Inter, hébergée sur le site
 * Inter 4.1 (github.com/rsms/inter), licence SIL OFL 1.1 : `fonts/OFL.txt`. Sous-ensemble latin
 * (français, anglais, signes du site), graisses 300 à 700 et un vrai italique : aucun appel à
 * un service de polices tiers, et la CSP `font-src 'self'` suffit. */
@font-face { font-family: Inter; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/inter-latin-light.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-regular.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-medium.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-semibold.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-bold.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-italic.woff2") format("woff2"); }

/* ---------------------------------------------------------------- jetons */
:root,
:root:not([data-theme="light"]) {
  color-scheme: dark;
  /* fonds */
  --bg: #0b0c0e;
  --surface: #15171a;
  --surface-2: #101114;
  --line: rgba(255, 255, 255, .10);
  --line-soft: rgba(255, 255, 255, .07);
  --ink: #f5f6f7;
  --invert: #0b0c0e;
  /* texte : des opacités de blanc, jamais sous 60 % pour un texte de moins de 18 px */
  --t1: rgba(255, 255, 255, .86);
  --t2: rgba(255, 255, 255, .74);
  --t3: rgba(255, 255, 255, .64);
  --t4: rgba(255, 255, 255, .60);
  /* accent et statuts (valeurs RIO) */
  --rio: #2ec4a6; --rio-strong: #5eead4; --rio-ink: #0f7a66;
  --pass: #35d07f; --warn: #f5b544; --fail: #ff6b6b; --amb: #b79cff; --info: #6aa9ff; --neutral: #a8a8a8;
  --r: 14px;
  /* verre */
  --glass: rgba(255, 255, 255, .05);
  --glass-hover: rgba(255, 255, 255, .08);
  --glass-blur: 12px;
  --line-strong: rgba(255, 255, 255, .16);
  --line-field: rgba(255, 255, 255, .36);   /* 3,28:1 sur le fond : un contrôle se voit (WCAG 1.4.11) */
  --line-hover: rgba(46, 196, 166, .35);
  /* feuille claire */
  --sheet: #ffffff; --sheet-2: #f8fafc; --sheet-line: #e2e8f0;
  --sheet-ink: #0f172b; --sheet-t: #45556c;
  /* rayons */
  --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 22px; --r-sheet: 48px; --r-pill: 9999px;
  /* ombres et lumières */
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, .25), 0 4px 6px -4px rgba(0, 0, 0, .25);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, .45);
  --shadow-sheet: 0 10px 15px -3px rgba(15, 23, 42, .08), 0 4px 6px -4px rgba(15, 23, 42, .06);
  --light-top: radial-gradient(35% 128px at 50% 0, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03) 70%, transparent);
  /* typographie */
  --font-sans: Inter, Aptos, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --fs-display: clamp(1.875rem, .9rem + 4.2vw, 4.5rem);   /* 30 px → 72 px */
  --fs-h2: clamp(1.75rem, 1rem + 2.6vw, 3.25rem);         /* 28 px → 52 px */
  --fs-h2-edit: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem);   /* 36 px → 72 px */
  --fs-lead: clamp(1rem, .9rem + .6vw, 1.25rem);          /* 16 px → 20 px */
  --fs-lead-hero: clamp(1rem, .8rem + 1vw, 1.5rem);       /* 16 px → 24 px */
  /* mise en page */
  --gutter: 16px; --max-wide: 1152px; --max-nav: 1024px; --tap: 44px;
  --pill-top: 28px; --pill-h: 58px;
  /* mouvement */
  --ease-out: cubic-bezier(0, 0, .2, 1); --ease: cubic-bezier(.4, 0, .2, 1);
  --dur-fast: 150ms; --dur: 300ms; --dur-slow: 500ms;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }
@media (max-width: 1180px) { :root { --pill-top: 16px; --pill-h: 56px; } }
@media (prefers-reduced-motion: reduce) { :root { --dur-fast: 0ms; --dur: 0ms; --dur-slow: 0ms; } }

/* ---------------------------------------------------------------- page et halo */
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--t2);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
}
/* Le halo ardoise : trois dégradés fixés sous la page. Rien ne se calcule, rien ne tourne en continu. */
body::before {
  content: ""; position: fixed; inset: -10vh -10vw; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(100, 116, 139, .30), transparent 70%),
    radial-gradient(40% 35% at 85% 18%, rgba(46, 196, 166, .09), transparent 70%),
    radial-gradient(45% 40% at 8% 50%, rgba(71, 85, 105, .16), transparent 70%);
}
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  body::before { animation: g-halo 36s ease-in-out infinite alternate; }
  @keyframes g-halo { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(2vw, 3vh, 0) scale(1.04); } }
}
::selection { background: rgba(46, 196, 166, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--rio); outline-offset: 3px; border-radius: 6px; }
.container { max-width: calc(var(--max-wide) + 2 * var(--gutter)); padding-inline: var(--gutter); }
.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; }
h1, h2, h3, h4 { color: var(--ink); }

/* ---------------------------------------------------------------- conservés : maquette et schéma
 * L'ancienne palette, redéclarée sur leur conteneur : la nouvelle ne peut pas les atteindre. */
#fonctionnement, .mock {
  --bg: #050505; --surface: #141414; --surface-2: #0d0d0d; --line: #373737; --line-soft: #232323;
  --ink: #ffffff; --invert: #000000;
  --t1: #c3c3c3; --t2: #b9b9b9; --t3: #9b9b9b; --t4: #8f8f8f;
  --rio: #2ec4a6; --pass: #35d07f; --warn: #f5b544; --fail: #ff6b6b; --amb: #b79cff; --info: #6aa9ff; --neutral: #a8a8a8;
  --r: 10px; --maxw: 1180px; --gut: clamp(20px, 4vw, 40px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14.5px; line-height: 1.6; color: var(--t1);
}
#fonctionnement { background: var(--bg); position: relative; }
#fonctionnement .container { max-width: var(--maxw); padding: 0 var(--gut); }
#fonctionnement :focus-visible { outline: 2px solid var(--info); outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------------- capsule de navigation */
.site-header {
  position: fixed; top: var(--pill-top); left: 0; right: 0; z-index: 50; pointer-events: none;
  transition: transform var(--dur-slow) var(--ease), opacity var(--dur-slow) var(--ease);
}
.site-header.cache { transform: translateY(calc(-100% - var(--pill-top) - 8px)); opacity: 0; }
.site-header.compact { position: fixed; top: var(--pill-top); animation: none; }
.pill-wrap { max-width: none; padding: 0; }
.pill, .site-header.compact .pill {
  width: min(var(--max-nav), 92vw); max-width: none; min-height: var(--pill-h); margin: 0 auto;
  gap: 14px; padding: 7px 7px 7px 22px; border-radius: var(--r-pill);
  background: rgba(11, 12, 14, .72); color: var(--ink);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
}
.pill :focus-visible { outline: 2px solid var(--rio); outline-offset: 3px; }
.brand { color: var(--ink); min-height: var(--tap); min-width: var(--tap); }
.brand .rio-logo { height: 22px; }
.nav-links, .nav-links a, .nav-group summary { color: rgba(255, 255, 255, .80); font-size: 14px; font-weight: 500; }
.nav-links a:hover, .nav-group summary:hover, .nav-group[open] > summary { color: #fff; }
.nav-group summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform var(--dur) var(--ease); opacity: .7; }
.nav-group[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.lang { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.lang button { color: rgba(255, 255, 255, .78); min-width: 40px; min-height: 32px; }
.lang button:hover { color: #fff; }
.lang button[aria-pressed="true"], .lang button[aria-pressed="true"]:hover { background: var(--ink); color: var(--invert); }
.nav-login { color: rgba(255, 255, 255, .80); font-size: 14px; font-weight: 500; }
.nav-login:hover { color: #fff; }
.nav-try { display: none; }
.pill .btn-cta, .pill .btn-cta:hover, .site-header.compact .btn-cta {
  background: var(--ink); color: var(--invert); border: 0; border-radius: var(--r-pill);
  min-height: var(--tap); padding: 0 20px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
}
.pill .btn-cta::after { content: "→"; transition: transform var(--dur) var(--ease); }
@media (hover: hover) { .pill .btn-cta:hover::after { transform: translateX(3px); } }
.menu-btn {
  width: var(--tap); height: var(--tap); padding: 0; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-strong); color: var(--ink);
  align-items: center; justify-content: center; flex: none;
}
.menu-btn-bars { position: relative; width: 18px; height: 12px; display: block; }
.menu-btn-bars i { position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px; background: currentColor;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease); }
.menu-btn-bars i:first-child { top: 2px; }
.menu-btn-bars i:last-child { top: 9px; }
.menu-btn[aria-expanded="true"] .menu-btn-bars i:first-child { top: 5.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-bars i:last-child { top: 5.5px; transform: rotate(-45deg); }

/* Menus déroulants (ordinateur) : panneau de verre sombre. */
@media (min-width: 1181px) {
  .nav-dropdown, .nav-dropdown.mega {
    background: rgba(18, 19, 22, .97); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg); color: var(--ink); margin-top: 22px;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  }
}
.nav-dropdown a.mega-item { color: var(--ink); min-height: var(--tap); }
.nav-dropdown a.mega-item:hover { background: rgba(255, 255, 255, .06); }
.mega-ico { background: rgba(46, 196, 166, .12); color: var(--rio-strong); }
.mega-txt b { color: var(--ink); font-size: 14px; }
.mega-txt small { color: rgba(255, 255, 255, .64); font-size: 12.5px; }
.mega-kicker { color: var(--rio); }
.nav-dropdown a.mega-feature { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--ink); }
.mega-feature span:not(.mega-kicker) { color: rgba(255, 255, 255, .70); }
.mega-feature em { color: var(--rio); }
.mega-side { border-left-color: var(--line); }
.nav-dropdown .mega-chips a { border-color: var(--line-strong); color: rgba(255, 255, 255, .82); min-height: 32px; display: inline-flex; align-items: center; }
.nav-dropdown .mega-chips a:hover { border-color: var(--rio); color: var(--rio-strong); }
.nav-dropdown a.mega-more { color: var(--rio); min-height: 32px; display: inline-flex; align-items: center; }

@media (min-width: 1181px) {
  .pill-menu { gap: 16px; }
  .nav-links { gap: 20px; }
  .switches .lang button { min-height: 30px; }
}

/* Menu mobile : une carte qui prolonge la capsule, entrées en cascade, voile flouté derrière. */
@media (max-width: 1180px) {
  .pill { padding: 6px 6px 6px 18px; }
  .pill-menu {
    top: calc(100% + 10px); left: 0; right: 0; max-height: calc(100dvh - var(--pill-top) - var(--pill-h) - 24px); overflow: auto;
    background: rgba(16, 17, 20, .97); border: 1px solid var(--line-strong); border-radius: 26px;
    box-shadow: var(--shadow-lg); padding: 10px 18px 18px; color: var(--ink);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  }
  .nav-links a, .nav-group summary { min-height: 52px; display: flex; align-items: center; padding: 0; font-size: 16px;
    color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav-group summary { justify-content: space-between; }
  .nav-dropdown, .nav-dropdown.mega { background: none; border: 0; box-shadow: none; padding: 4px 0 10px 4px; color: var(--ink); }
  .nav-dropdown a.mega-item { padding: 8px 6px; border-bottom: 0; min-height: 52px; }
  .nav-dropdown .mega-chips a { min-height: var(--tap); }
  .nav-dropdown a.mega-more { min-height: var(--tap); }
  .switches { order: -1; padding: 8px 0 10px; border-bottom: 1px solid var(--line); }
  .switches .lang button { min-height: var(--tap); min-width: 52px; }
  .nav-login { display: flex; align-items: center; min-height: 52px; padding: 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 16px; }
  .nav-try { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 16px; border-radius: var(--r-pill);
    border: 1px solid var(--line-field); background: rgba(255, 255, 255, .045); color: var(--ink); font-weight: 600; font-size: 16px; }
  .pill .btn-cta { width: 100%; justify-content: center; min-height: 48px; margin-top: 10px; font-size: 16px; }
  .pill-menu.open > *, .pill-menu.open .nav-links > * { animation: g-cascade .4s var(--ease-out) both; }
  .pill-menu.open .nav-links > :nth-child(1) { animation-delay: .07s; }
  .pill-menu.open .nav-links > :nth-child(2) { animation-delay: .14s; }
  .pill-menu.open .nav-links > :nth-child(3) { animation-delay: .21s; }
  .pill-menu.open > .switches { animation-delay: 0s; }
  .pill-menu.open > .nav-login { animation-delay: .28s; }
  .pill-menu.open > .nav-try { animation-delay: .35s; }
  .pill-menu.open > .btn-cta { animation-delay: .42s; }
  @keyframes g-cascade { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }
  body.menu-open::after { content: ""; position: fixed; inset: 0; z-index: 45; background: rgba(5, 6, 8, .55);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
}

/* ---------------------------------------------------------------- boutons (hors schéma conservé) */
.btn:where(:not(#fonctionnement *)) {
  border-radius: var(--r-pill); min-height: var(--tap); padding: 10px 22px; font-size: 15px; font-weight: 600;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line-field); color: var(--ink);
  justify-content: center; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn-primary:where(:not(#fonctionnement *)),
.cta-band .btn:first-child {
  background: var(--ink); color: var(--invert); border-color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.btn-small:where(:not(#fonctionnement *)) { min-height: var(--tap); padding: 8px 18px; font-size: 14px; }
@media (hover: hover) {
  .btn:where(:not(#fonctionnement *)):hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .5); }
  .btn-primary:where(:not(#fonctionnement *)):hover, .cta-band .btn:first-child:hover { background: #fff; border-color: #fff; opacity: 1; transform: translateY(-1px); }
}
.actions { gap: 12px; }

/* ---------------------------------------------------------------- sections et en-têtes de section */
section:where(:not(#fonctionnement)) { border-top: 0; }
.v2-section { padding-block: clamp(64px, 3rem + 4vw, 104px); }
.v2-surface { background: rgba(255, 255, 255, .022); border-block: 1px solid var(--line-soft); }
/* Badge, H2 éditorial léger avec un mot appuyé, puis chapeau. */
.kicker.kicker:where(:not(#fonctionnement *)), .g-badge {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%;
  padding: 6px 14px; margin-bottom: 22px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-strong);
  color: rgba(255, 255, 255, .80); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4;
}
.kicker.kicker:where(:not(#fonctionnement *))::before, .g-badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rio); box-shadow: 0 0 10px rgba(46, 196, 166, .8); flex: none;
}
.v2-section h2, .section-head h2, .v2-workspace-row h2, .cta2 h2, .ecosystem-intro h2 {
  font-size: var(--fs-h2); font-weight: 300; line-height: 1.08; letter-spacing: -.025em; color: var(--ink); max-width: 24ch;
}
h2 em, h1 em { font-style: italic; font-weight: 600; color: #fff; }
.v2-heading .v2-lead, .section-intro, .v2-heading > p:not(.kicker) {
  font-size: var(--fs-lead); font-weight: 300; line-height: 1.6; color: rgba(255, 255, 255, .76);
}
.v2-section p { color: var(--t2); font-size: 16px; line-height: 1.625; }
.v2-section h3 { color: var(--ink); }
.v2-index { color: var(--rio); }
.v2-link { color: var(--ink); text-decoration-color: var(--rio); min-height: var(--tap); }
.v2-link:hover { color: var(--rio-strong); }

/* Accueil : en-têtes centrés. */
.g-home .v2-heading { margin-inline: auto; text-align: center; max-width: 820px; }
.g-home .v2-heading h2 { margin-inline: auto; }
.g-home .v2-heading .v2-lead, .g-home .v2-heading > p:not(.kicker) { margin-inline: auto; margin-top: 22px; }
.g-home .v2-split .v2-heading, .g-home .v2-split .v2-heading h2, .g-home .v2-split .v2-heading .v2-lead { text-align: left; margin-inline: 0; }
.g-home #explicabilite .v2-heading h2 { font-size: var(--fs-h2-edit); max-width: 16ch; }

/* ---------------------------------------------------------------- cartes de verre */
.card, .product-card, .mode-card, .expertise-card, .info-card, .cap, .dark-panel, .lineage, .product-story, .plan-card,
.tarif-grille > *, .v2-product-figure, .story-demo, .v2-detail-list > div, .contact-form, .cta-band, .faq-item {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card, .product-card, .mode-card, .expertise-card, .info-card, .cap, .dark-panel, .lineage, .product-story, .plan-card { background: #17181a; }
}
@media (hover: hover) {
  .card, .product-card, .expertise-card, .info-card, .lineage, .product-story, .plan-card {
    transition: background var(--dur-slow) var(--ease), border-color var(--dur-slow) var(--ease);
  }
  .card:hover, .product-card:hover, .expertise-card:hover, .info-card:hover, .product-story:hover, .plan-card:hover {
    background: var(--glass-hover); border-color: var(--line-hover);
  }
}
.card p, .product-card p, .expertise-card p, .info-card p, .cap p, .mode-card p { color: var(--t2); font-size: 15px; line-height: 1.6; }
.plan-card.featured { border-color: var(--rio); }

/* ---------------------------------------------------------------- hero (forme de la référence, contenu RIO) */
section.hero {
  padding-top: calc(var(--pill-top) + var(--pill-h) + clamp(56px, 8vw, 104px));
  padding-bottom: clamp(56px, 7vw, 96px);
  text-align: center;
}
.hero .hero-grid { display: block; }
.hero-intro { max-width: 1000px; margin: 0 auto; }
.g-badge { margin: 0 auto 28px; text-transform: none; letter-spacing: .01em; font-size: 13px; font-weight: 500; }
.hero h1.hero-title { font-size: var(--fs-display); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; margin: 0 auto; max-width: 18ch; }
.hero h1.hero-title span { display: inline; }
.hero h1.hero-title span:first-child { display: block; }
.hero h1.hero-title .soft { color: rgba(255, 255, 255, .72); font-weight: 300; font-style: italic; letter-spacing: -.035em; }
.hero .hero-copy { margin: 28px auto 0; max-width: 46ch; font-size: var(--fs-lead-hero); line-height: 1.625; font-weight: 300; color: rgba(255, 255, 255, .88); }
.hero .actions { justify-content: center; margin-top: 36px; }
.hero .actions .btn { min-height: 52px; padding-inline: 28px; font-size: 16px; }
.hero-reassure { max-width: none; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin: 20px auto 0; font-size: 13px; color: rgba(255, 255, 255, .68); }
.hero-reassure span { display: inline-flex; align-items: center; gap: 8px; }
.hero-reassure svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--rio); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
/* La maquette : déplacée sous le hero, dans un écrin de verre éclairé. Elle-même ne change pas. */
.hero-demo { max-width: 1112px; margin: clamp(48px, 6vw, 80px) auto 0; padding: clamp(8px, 1.2vw, 16px);
  border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--light-top), rgba(255, 255, 255, .03);
  box-shadow: var(--shadow-lg); text-align: left; }
.hero-demo-cap { margin: 0 0 12px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .68); max-width: none; }
@media (max-width: 640px) {
  .hero h1.hero-title { line-height: 1.2; letter-spacing: -.02em; }
  .hero h1.hero-title span:first-child { display: inline; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .hero .actions .btn { width: 100%; }
  .g-badge { font-size: 12px; }
  /* la maquette garde sa largeur d'origine sur téléphone (375 - 2 × 20 px) */
  .hero-demo { padding: 0; border: 0; background: none; box-shadow: none; margin-inline: 4px; }
}

/* ---------------------------------------------------------------- sources, traitement, expériences */
.v2-source-names li { font-size: 15px; color: var(--t1); border-top-color: var(--line); }
.v2-inputs { border-left: 0; padding: 28px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line); }
.v2-mode-list li { border-top-color: var(--line); }
.v2-mode-list p, .v2-flow p, .v2-business-row p, .v2-cycle-list p, .v2-source-row p { font-size: 15px; }
.v2-flow li { padding: 24px; border: 1px solid var(--line); border-top: 2px solid var(--rio); border-radius: var(--r-lg); background: var(--glass); }
.v2-decision { padding: 22px 26px; border: 1px solid rgba(46, 196, 166, .22); border-left: 3px solid var(--rio); border-radius: var(--r-md); background: rgba(46, 196, 166, .06); }
.v2-experience-cards .card { padding: clamp(24px, 3vw, 36px); }
.v2-experience-cards .card .meta { display: inline-block; padding: 6px 12px; border-radius: var(--r-md); background: rgba(46, 196, 166, .10);
  border: 1px solid rgba(46, 196, 166, .22); color: var(--rio-strong); font-size: 12px; font-weight: 700; letter-spacing: .06em; margin-bottom: 16px; }

/* ---------------------------------------------------------------- la feuille claire (#metiers) */
#metiers {
  --ink: var(--sheet-ink); --t1: #314158; --t2: var(--sheet-t); --t3: var(--sheet-t); --t4: #536276;
  --line: var(--sheet-line); --line-soft: var(--sheet-line); --rio: var(--rio-ink);
  position: relative; margin: clamp(24px, 4vw, 48px) clamp(6px, 1.5vw, 20px); border-radius: var(--r-sheet);
  background-color: var(--sheet); color: var(--sheet-t);
  background-image: radial-gradient(rgba(15, 23, 42, .07) 1px, transparent 1px); background-size: 22px 22px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
}
#metiers .kicker.kicker { background: #f1f5f9; border-color: var(--sheet-line); color: #314158; }
#metiers .kicker.kicker::before { background: var(--rio-ink); box-shadow: none; }
#metiers h2 { color: var(--sheet-ink); }
#metiers h2 em { color: var(--sheet-ink); }
#metiers .v2-heading .v2-lead, #metiers .v2-heading > p:not(.kicker) { color: var(--sheet-t); }
#metiers :focus-visible { outline-color: var(--rio-ink); }
#metiers .v2-business-list { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
#metiers .v2-business-row {
  grid-column: span 2; grid-template-columns: 1fr 24px; grid-template-rows: auto 1fr; gap: 14px 12px;
  padding: 28px; border: 1px solid var(--sheet-line); border-radius: var(--r-lg); background: #fff; color: var(--sheet-t);
  box-shadow: var(--shadow-sheet); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
#metiers .v2-business-row:nth-child(1) { grid-column: span 4; background: linear-gradient(135deg, #ffffff, var(--sheet-2)); }
#metiers .v2-business-row:nth-child(6) { grid-column: span 6; }
#metiers .v2-business-row .v2-index { grid-column: 1; color: var(--rio-ink); padding-top: 0; font-size: 12px; }
#metiers .v2-business-row > div { grid-column: 1 / -1; grid-row: 2; }
#metiers .v2-business-row .v2-arrow { grid-column: 2; grid-row: 1; color: #536276; }
#metiers .v2-business-row h3 { color: var(--sheet-ink); font-size: clamp(19px, 1.1rem + .4vw, 24px); }
#metiers .v2-business-row p { color: var(--sheet-t); font-size: 15px; }
@media (hover: hover) {
  #metiers .v2-business-row:hover { transform: translateY(-6px); border-color: #cbd5e1; box-shadow: 0 25px 50px -12px rgba(15, 23, 42, .22); }
  #metiers .v2-business-row:hover h3 { color: var(--rio-ink); }
}
#metiers .v2-note { color: var(--sheet-t); text-align: center; margin-inline: auto; }
@media (max-width: 900px) {
  #metiers .v2-business-list { grid-template-columns: 1fr 1fr; }
  #metiers .v2-business-row, #metiers .v2-business-row:nth-child(1), #metiers .v2-business-row:nth-child(6) { grid-column: span 1; }
  #metiers .v2-business-row:nth-child(1) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  #metiers { border-radius: 32px; margin-inline: 6px; }
  #metiers .v2-business-list { grid-template-columns: 1fr; }
  #metiers .v2-business-row, #metiers .v2-business-row:nth-child(1), #metiers .v2-business-row:nth-child(6) { grid-column: auto; padding: 22px; }
}

/* ---------------------------------------------------------------- explicabilité */
.lineage { padding: clamp(22px, 2.5vw, 32px); }
.lineage-objet { font-size: 14px; }
.v2-section .lineage .lineage-montant { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.v2-section .lineage .explanation-status { font-size: clamp(22px, 2.2vw, 30px); }
.node { min-height: var(--tap); }

/* ---------------------------------------------------------------- appel final */
.cta-final2 { padding-block: clamp(48px, 6vw, 88px); }
.cta2 {
  border-radius: var(--r-xl); border: 1px solid var(--line-strong);
  background: var(--light-top), rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-lg);
}
.cta2::after { display: none; }
.cta2-glow { opacity: .55; }
.cta2 h2 { margin-inline: auto; max-width: 20ch; }
.cta2 p { font-size: var(--fs-lead); font-weight: 300; color: rgba(255, 255, 255, .78); }
.cta2 .actions .btn { min-height: 52px; padding-inline: 28px; font-size: 16px; }
.g-micro { max-width: none !important; margin: 22px auto 0 !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .62) !important; }

/* ---------------------------------------------------------------- pages intérieures */
.page-hero { padding-top: calc(var(--pill-top) + var(--pill-h) + clamp(48px, 6vw, 88px)); }
.page-hero h1 { font-size: clamp(1.875rem, 1.1rem + 3vw, 3.5rem); line-height: 1.08; letter-spacing: -.03em; max-width: 22ch; }
.page-hero p { font-size: var(--fs-lead); font-weight: 300; color: rgba(255, 255, 255, .84); }
.breadcrumb { color: rgba(255, 255, 255, .62); font-size: 12px; }
.breadcrumb a { color: rgba(255, 255, 255, .74); }
.breadcrumb a:hover { color: #fff; }
.v2-page-index a { min-height: var(--tap); display: inline-flex; align-items: center; }
.cta-band { box-shadow: var(--shadow-md); background: var(--light-top), rgba(255, 255, 255, .04); border-color: var(--line-strong); }

/* ---------------------------------------------------------------- formulaires : 48 px, 16 px */
.contact-form { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-xl); background: var(--light-top), var(--glass); }
.contact-form label, .field label { color: var(--t1); font-size: 14px; font-weight: 500; }
.contact-form input, .contact-form textarea, .contact-form select,
.field input, .field textarea, .field select {
  min-height: 48px; font-size: 16px; font-family: inherit; color: var(--ink);
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line-field); border-radius: var(--r-sm); padding: 12px 14px;
}
.contact-form textarea, .field textarea { min-height: 132px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255, 255, 255, .58); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus,
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--rio); outline-offset: 1px; border-color: var(--rio); }
.contact-form .btn { min-height: 52px; width: 100%; font-size: 16px; }
.field.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- pied de page éclairé par le haut */
footer {
  max-width: calc(var(--max-wide) + 2 * var(--gutter) + 64px); margin: clamp(32px, 5vw, 64px) auto 0;
  border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  background: radial-gradient(35% 160px at 50% 0, rgba(255, 255, 255, .08), transparent 80%), #0f1013;
}
footer::before { width: 33%; height: 1px; opacity: 1; filter: blur(.6px);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); }
.footer-brand p { font-size: 14px; color: var(--t3); }
.footer-bottom { color: rgba(255, 255, 255, .62); font-size: 13px; border-top-color: var(--line); }
.footer-mark { opacity: .06; }
@media (max-width: 760px) {
  footer { border-radius: 32px 32px 0 0; }
}

/* ---------------------------------------------------------------- retour en haut */
.back-top {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 55;
  width: 46px; height: 46px; border-radius: var(--r-pill); display: grid; place-items: center;
  background: rgba(0, 0, 0, .6); color: var(--ink); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), bottom var(--dur) var(--ease);
}
.back-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back-top.on, :root:not(.js) .back-top { opacity: 1; transform: none; pointer-events: auto; }
@media (hover: hover) { .back-top:hover { background: rgba(0, 0, 0, .8); border-color: rgba(255, 255, 255, .4); } }
body:has(.mobile-cta.on) .back-top { bottom: calc(84px + env(safe-area-inset-bottom)); }
body.menu-open .back-top { opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------------- barre d'action mobile */
@media (max-width: 760px) {
  .mobile-cta { left: 12px; right: 12px; padding: 6px; border-radius: var(--r-pill);
    background: rgba(11, 12, 14, .82); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); }
  .mobile-cta .btn { min-height: 48px; font-size: 15px; }
  body.menu-open .mobile-cta { display: none; }
}

/* ---------------------------------------------------------------- tarifs (pages non listées) */
.tarif-grille > * { padding: 24px; }
.comparatif { border-color: var(--line); }
.comparatif th, .comparatif td { border-color: var(--line); }

/* ---------------------------------------------------------------- mouvement réduit : tout est posé, rien ne bouge */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .site-header.cache { transform: none; opacity: 1; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* listes de détail en tuiles */
.v2-detail-list { display: grid; gap: 12px; }
.v2-detail-list > div { padding: 18px 22px; }
.v2-detail-list dt { color: var(--ink); font-weight: 600; }
.v2-detail-list dd { color: var(--t2); }
.v2-detail-list dd a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.v2-detail-list dd a:hover { text-decoration-thickness: 2px; }
.footer-brand > a:first-child { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.lineage-walk { min-height: 44px; }

/* ---------------------------------------------------------------- paiement instantané, 17/10/2026
   Étiquette discrète « En préparation » : filet pointillé, sans couleur d'accent, pour ne rien promettre. */
.g-prep {
  display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--r-pill);
  border: 1px dashed var(--line-strong); color: var(--t3); background: transparent;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.6; white-space: nowrap; vertical-align: middle;
}
.v2-detail-list dt .g-prep { margin-left: 8px; }

/* ---------------------------------------------------------------- accessibilité (revue WCAG 2.2 AA, 17/10/2026) */
/* 2.4.11 : une ancre ne s'arrête jamais sous l'en-tête fixe. */
html { scroll-padding-top: 96px; scroll-padding-bottom: 96px; }
/* Le message du formulaire de contact se lit sans effort. */
.form-status { font-size: 14px; }
/* Pendant l'envoi, le bouton reste focusable mais se montre indisponible. */
.btn[aria-disabled="true"] { opacity: .6; cursor: progress; }

/* ---------------------------------------------------------------- pied de page rangé par besoin (17/10/2026)
 * Plus de longue liste en colonnes : un en-tête (marque à gauche, carte « Votre espace » qui
 * regroupe création d'espace, connexion, expert, courriel et LinkedIn), un plan du site en quatre
 * besoins avec une ligne d'explication chacun, la confiance en
 * bandeau compact. Même structure en français et en anglais ; aucun script : rien ne se replie,
 * tout se lit (grille de deux colonnes sur téléphone). Zones tactiles ≥ 44 px sur mobile. */
.ft-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ft-head .footer-brand p:last-child { max-width: 52ch; }
.ft-access { padding: clamp(22px, 2.6vw, 30px); border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--light-top), var(--glass); }
.ft-access h2 { margin: 0 0 6px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; color: var(--ink); }
.ft-access > p { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: var(--t2); max-width: none; }
.ft-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ft-contact { list-style: none; margin: 18px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 0 22px; }
.ft-contact a, .ft-group a, .ft-trust a, .footer-bottom .ft-company a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: 14px; color: var(--t2);
  transition: color var(--dur-fast) var(--ease); }
.ft-contact a:hover, .ft-group a:hover, .ft-trust a:hover, .footer-bottom .ft-company a:hover { color: #fff; }
.ft-contact .ico-in { width: 15px; height: 15px; }

.ft-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px;
  margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line-soft); }
.ft-group h2 { margin: 0 0 6px; font-size: 14px; font-weight: 600; line-height: 1.35; letter-spacing: -.005em; color: var(--ink); }
.ft-group p { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: var(--t3); max-width: none; }
.ft-group ul, .ft-trust ul, .ft-company { list-style: none; margin: 0; padding: 0; }

.ft-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; margin-top: clamp(32px, 4vw, 48px);
  padding: 6px 22px; border: 1px solid var(--line); border-radius: var(--r-pill); background: rgba(255, 255, 255, .025); }
.ft-trust h2 { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.ft-trust h2 svg { width: 18px; height: 18px; color: var(--rio); }
.ft-trust ul { display: flex; flex-wrap: wrap; gap: 0 22px; }
.ft-trust a { font-size: 13.5px; }
.footer-bottom { margin-top: 28px; }
.footer-bottom .ft-company { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-bottom .ft-company a { font-size: 13px; color: inherit; }

@media (max-width: 1100px) {
  .ft-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) { .ft-head { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .ft-contact a, .ft-group a, .ft-trust a, .footer-bottom .ft-company a { min-height: var(--tap); }
  .ft-trust { border-radius: var(--r-lg); padding: 12px 16px; }
  .ft-trust h2 { width: 100%; padding-top: 4px; }
  .ft-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 420px) {
  .ft-nav { gap: 28px 16px; }
  .ft-group p { font-size: 12.5px; }
  .ft-group a { font-size: 13.5px; }
}
