/* Vigie — site produit. Une seule feuille, sans framework.
   Encre et or du logo ; IBM Plex Sans (le dessin du logo) et Plex Mono pour les chiffres et les repères. Thème clair. */

/* Palette : Bleu et orange (29/11/2026). Les noms --gold* sont gardés : ils désignent la couleur d'accent. */
:root {
  --ink: #123B6D;
  --ink-2: #18487F;
  --ink-3: #215893;
  --text: #1C2A3D;
  --slate: #475970;
  --muted: #6A7B91;
  --line: #E2E8F0;
  --line-2: #D0D9E4;
  --mist: #F4F7FB;
  --paper: #ffffff;
  --gold: #F0803C;
  --gold-deep: #B0541A;
  --gold-soft: #FDF0E6;
  --green: #1f7a4d;
  --red: #b42318;
  --radius: 10px;
  --wrap: 85%;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/1.6 var(--sans); font-feature-settings: "kern"; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { width: var(--wrap); margin-inline: auto; }
@media (max-width: 720px) { .wrap { width: auto; margin-inline: 16px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ── En-tête */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--slate); text-decoration: none; }
.nav a:hover { color: var(--ink); background: var(--mist); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; display: block; height: 2px; margin-top: 4px; background: var(--gold); border-radius: 2px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.top .menu-toggle { display: none; }
@media (max-width: 980px) {
  .nav, .top-actions .btn-ghost { display: none; }
  .top .menu-toggle { display: inline-flex; margin-left: auto; }
  .top .wrap { gap: 12px; }
  .top-actions { margin-left: 0; }
  body.menu-open .nav { display: flex; position: fixed; inset: 68px 0 0 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 24px; background: #fff; overflow-y: auto; }
  body.menu-open .nav a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  body.menu-open .nav a[aria-current="page"]::after { display: none; }
}

/* ── Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 8px; font: 600 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-3); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #F6A66F; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn-on-dark:hover { border-color: #fff; }
.arrow::after { content: "→"; font-weight: 400; }

/* ── Repères et titres de section */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 500 12.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--gold); }
.section { padding-block: 96px; }
.section-tight { padding-block: 64px; }
.section-mist { background: var(--mist); border-block: 1px solid var(--line); }
.h-display { font-size: clamp(38px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -0.03em; }
.h-section { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.12; letter-spacing: -0.025em; }
.h-sub { font-size: 20px; line-height: 1.3; }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: var(--slate); max-width: 64ch; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 48px; }
.section-head .lead { margin: 0; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; gap: 16px; } .section { padding-block: 64px; } }

/* La règle graduée : le repère de la vigie (relèvement 0–360), seul ornement du site. */
.bearing { height: 18px; background-image:
  linear-gradient(to right, var(--line-2) 1px, transparent 1px),
  linear-gradient(to right, var(--gold) 1px, transparent 1px);
  background-size: 12px 8px, 120px 18px; background-repeat: repeat-x; background-position: 0 100%, 0 100%; opacity: 0.9; }

/* ── Héros v2 (29/11/2026) : tout l'en-tête dans une carte claire — le ciel de la vigie (bleu très pâle, lueur orange
   en haut, là où regarde le guetteur), l'application réelle à droite, l'agent IA posé dessus ; src/hero.mjs. */
.hero { padding-block: 28px 8px; }
.hero-card { --hp: clamp(22px, 4vw, 56px); position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(30px, 4.2vw, 60px) var(--hp) clamp(22px, 3vw, 34px);
  border: 1px solid var(--line); border-radius: 28px;
  background:
    radial-gradient(55% 75% at 100% 0%, rgba(240, 128, 60, 0.17), transparent 62%),
    radial-gradient(45% 60% at 0% 100%, rgba(33, 88, 147, 0.10), transparent 70%),
    linear-gradient(180deg, #F8FAFE 0%, #EDF2F9 100%);
  box-shadow: 0 1px 2px rgba(18, 59, 109, 0.05), 0 40px 80px -56px rgba(18, 59, 109, 0.45); }
.hero-card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(18, 59, 109, 0.09) 1px, transparent 1.3px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 62%); mask-image: linear-gradient(180deg, #000 0%, transparent 62%); }
.hero-main { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: clamp(32px, 3.6vw, 64px); align-items: center; }
.hero-pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 8px 15px 8px 11px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(18, 59, 109, 0.06);
  font: 500 12px/1.2 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink); }
.hero-pill-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(240, 128, 60, 0.2); }
.hero-title { margin: 0 0 26px; font-size: clamp(34px, 3.75vw, 58px); line-height: 1.06; letter-spacing: -0.032em; max-width: 17ch; }
@media (min-width: 721px) { .hero-em { white-space: nowrap; } }
/* The signature: the end of the title rides on the orange wave of the vigie. */
.hero-em { padding-bottom: 0.16em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='10' viewBox='0 0 32 10'%3E%3Cpath d='M0 6 q8 -6 16 0 t16 0' fill='none' stroke='%23F0803C' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") 0 100% / 26px 9px repeat-x; }
.hero .lead { margin: 0 0 30px; font-size: clamp(16.5px, 1.25vw, 19px); max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-lg { height: 52px; padding: 0 24px; border-radius: 12px; font-size: 15.5px; }
.hero .btn-primary { box-shadow: 0 14px 28px -14px rgba(18, 59, 109, 0.75); }
.hero .btn-ghost { background: rgba(255, 255, 255, 0.85); }
.hero-note { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); max-width: 56ch; }
.hero-note svg { flex-shrink: 0; margin-top: 3px; color: var(--green); }

/* The application, bleeding off the card's edge, and the agent on top of it. */
.hero-visual { position: relative; padding: 30px 0 64px; }
.hv-app { position: relative; margin-inline-end: calc(-1 * var(--hp) - 1px); overflow: hidden; background: #fff;
  border: 1px solid var(--line-2); border-inline-end: 0; border-start-start-radius: 16px; border-end-start-radius: 16px;
  box-shadow: 0 2px 4px rgba(18, 59, 109, 0.06), 0 44px 90px -36px rgba(18, 59, 109, 0.5); }
.hv-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding-inline: 14px; background: var(--mist); border-bottom: 1px solid var(--line); }
.hv-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.hv-bar i:first-child { background: #F6A66F; }
.hv-bar span { margin-inline-start: 14px; padding: 5px 12px; border-radius: 7px; background: #fff; border: 1px solid var(--line); font: 500 11.5px/1 var(--mono); color: var(--muted); }
.hv-app picture, .hv-app img { display: block; }
.hv-app img { width: 128%; max-width: none; height: auto; }
.hv-chip { position: absolute; bottom: 16px; inset-inline-end: 0; z-index: 2; display: flex; align-items: center; gap: 9px; margin: 0;
  padding: 9px 16px 9px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 16px 32px -18px rgba(18, 59, 109, 0.45); font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.hv-chip-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #E3F4EA; color: var(--green); }
.hv-chat { position: absolute; bottom: 0; inset-inline-start: -34px; z-index: 3; display: flex; flex-direction: column; gap: 10px;
  width: min(340px, 72%); padding: 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(18, 59, 109, 0.06), 0 34px 70px -28px rgba(18, 59, 109, 0.55); }
.hv-head { display: flex; align-items: center; gap: 10px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.hv-avatar { width: 32px; height: 32px; border-radius: 10px; }
.hv-head b { display: block; font-size: 13.5px; line-height: 1.3; color: var(--ink); }
.hv-head span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.hv-online { width: 7px; height: 7px; border-radius: 50%; background: #22A05A; box-shadow: 0 0 0 3px rgba(34, 160, 90, 0.18); }
.hv-msg { max-width: 90%; padding: 9px 13px; border-radius: 15px; font-size: 14px; line-height: 1.55; text-align: start; }
.hv-me { align-self: flex-end; background: var(--ink); color: #fff; border-end-end-radius: 5px; }
.hv-tr { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.4; color: rgba(255, 255, 255, 0.72); }
.hv-answer { display: grid; justify-items: start; }
.hv-answer > * { grid-area: 1 / 1; }
.hv-bot { background: var(--mist); color: var(--text); border: 1px solid var(--line); border-end-start-radius: 5px; }
.hv-bot strong { color: var(--ink); }
.hv-typing { display: flex; gap: 4px; align-self: start; padding: 12px 14px; border-radius: 15px; background: var(--mist); border: 1px solid var(--line); opacity: 0; }
.hv-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: hv-dot 1s ease-in-out infinite; }
.hv-typing i:nth-child(2) { animation-delay: 0.15s; } .hv-typing i:nth-child(3) { animation-delay: 0.3s; }
.hv-task { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 9px 9px 12px; border-radius: 13px;
  background: var(--gold-soft); border: 1px solid #F6C9A6; font-size: 13px; line-height: 1.35; font-weight: 500; color: var(--ink); }
.hv-task span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hv-task svg { flex-shrink: 0; color: var(--gold-deep); }
.hv-task b { flex-shrink: 0; padding: 7px 12px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; }

/* One orchestrated moment: the question, « Vigie écrit… », the answer, the task ready. */
@media (prefers-reduced-motion: no-preference) {
  .hv-chat { animation: hv-rise 0.8s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hv-me { animation: hv-pop 0.45s 0.9s ease-out both; }
  .hv-typing { animation: hv-typing 1.3s 1.35s both; }
  .hv-bot { animation: hv-pop 0.45s 2.6s ease-out both; }
  .hv-task { animation: hv-pop 0.45s 3.2s ease-out both; }
  .hv-chip { animation: hv-pop 0.5s 3.8s ease-out both; }
}
@keyframes hv-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes hv-pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes hv-typing { 0% { opacity: 0; } 12%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hv-dot { 0%, 100% { transform: translateY(0); opacity: 0.45; } 50% { transform: translateY(-3px); opacity: 1; } }

/* The facts, each in its own small card. */
.hero-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: clamp(26px, 3.2vw, 44px) 0 0; }
.hero-facts > div { position: relative; padding: 16px 16px 16px 66px; border-radius: 16px; background: rgba(255, 255, 255, 0.88); border: 1px solid var(--line); }
html[dir="rtl"] .hero-facts > div { padding: 16px 66px 16px 16px; }
html[dir="rtl"] .hero-pill { font: 600 13.5px/1.3 var(--sans); letter-spacing: 0; text-transform: none; }
.hf-ic { position: absolute; top: 16px; inset-inline-start: 16px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #E6EEF8; color: var(--ink); }
.hf-ai .hf-ic { background: var(--gold-soft); color: var(--gold-deep); }
.hero-facts dt { margin-bottom: 5px; font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.hero-facts dd { margin: 0; font-size: 14.5px; line-height: 1.45; font-weight: 500; color: var(--ink); }

@media (max-width: 1000px) {
  .hero-main { grid-template-columns: 1fr; }
  .hero-title { max-width: 18ch; }
  .hero-visual { padding: 18px 0 0; }
  .hv-chat { position: relative; bottom: auto; inset-inline-start: auto; width: auto; max-width: 420px; margin: -72px 14px 0 auto; }
  html[dir="rtl"] .hv-chat { margin: -72px auto 0 14px; }
  .hv-chip { bottom: auto; top: 0; inset-inline-end: 10px; }
}
@media (max-width: 720px) {
  .hero { padding-top: 16px; }
  .hero-card { border-radius: 22px; }
  .hero-title { font-size: clamp(32px, 8.6vw, 40px); }
  .btn-lg { height: 50px; padding: 0 18px; flex: 1 1 auto; }
  /* The phone screen, framed as a phone, its lower part fading behind the agent. */
  .hv-app { width: min(78%, 300px); margin: 0 auto; border: 6px solid #0F2F58; border-radius: 30px; box-shadow: 0 30px 60px -30px rgba(18, 59, 109, 0.6); max-height: 470px; }
  .hv-bar { display: none; }
  .hv-app img { width: 100%; }
  .hv-app::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(180deg, transparent, rgba(237, 242, 249, 0.95)); }
  .hv-chat { margin: -110px 0 0; max-width: none; }
  html[dir="rtl"] .hv-chat { margin: -110px 0 0; }
  .hv-chip { display: none; }
  .hero-pill { font-size: 10.5px; letter-spacing: 0.035em; padding-inline: 9px 12px; }
  .hero-card { --hp: 18px; }
  .hero-facts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-facts > div, html[dir="rtl"] .hero-facts > div { padding: 14px; }
  .hf-ic { position: static; margin-bottom: 10px; width: 34px; height: 34px; }
  .hero-facts dd { font-size: 13.5px; }
}
@media (max-width: 380px) { .hero-facts { grid-template-columns: 1fr; } }


/* Capture d'écran dans un cadre d'application (sans effet). */
.shot { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(11, 18, 30, 0.04), 0 12px 32px -12px rgba(11, 18, 30, 0.18); }
.shot-bar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--mist); font: 500 12px/1 var(--mono); color: var(--muted); }
.shot-bar span:first-child { width: 8px; height: 8px; border-radius: 2px; background: var(--gold); }
.shot img { width: 100%; }
.shot-caption { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

/* ── Bande « pensé pour la Tunisie » */
.rules-strip { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.rules-strip .label { margin-right: 8px; font-size: 14px; color: var(--slate); }
.tag { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; font: 500 13px/1 var(--mono); color: var(--ink); }

/* ── Chaîne du devis à la déclaration */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.flow li { list-style: none; padding: 24px 22px 26px; border-left: 1px solid var(--line); position: relative; }
.flow li:first-child { border-left: 0; }
.flow .step { font: 500 12px/1 var(--mono); color: var(--gold-deep); letter-spacing: 0.06em; }
.flow h3 { margin: 14px 0 8px; font-size: 18px; }
.flow p { margin: 0; font-size: 14.5px; color: var(--slate); }
.flow .ref { display: block; margin-top: 14px; font: 500 12px/1 var(--mono); color: var(--muted); }
.flow ul { padding: 0; margin: 0; }
@media (max-width: 1100px) { .flow { grid-template-columns: 1fr; } .flow li { border-left: 0; border-top: 1px solid var(--line); } .flow li:first-child { border-top: 0; } }

/* ── Modules */
.modules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.module { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 24px; background: #fff; text-decoration: none; min-height: 220px; }
.module:hover { background: #fcfbf8; }
.module:hover .more { color: var(--ink); }
.module .code { font: 500 12px/1 var(--mono); color: var(--muted); }
.module h3 { font-size: 19px; }
.module p { margin: 0; font-size: 14.5px; color: var(--slate); flex: 1; }
.module .more { font-size: 14px; font-weight: 600; color: var(--gold-deep); }
.module.dark { background: var(--ink); }
.module.dark h3 { color: #fff; }
.module.dark p { color: #b6bfcd; }
.module.dark .code { color: #8b96a8; }
.module.dark .more { color: var(--gold); }
@media (max-width: 1100px) { .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .modules { grid-template-columns: 1fr; } .module { min-height: 0; } }

/* ── La vigie (bande sombre) */
.watch { background: var(--ink); color: #c9d1dc; }
.watch h2 { color: #fff; }
.watch .lead { color: #aab4c3; margin-top: 20px; }
.watch .eyebrow { color: var(--gold); }
.watch-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.watch-points { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.watch-points li { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); font-size: 15.5px; }
.watch-points strong { color: #fff; font-weight: 600; }
@media (max-width: 1000px) { .watch-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Le panneau « Ce qui vous attend » (reproduit l'écran Assistant de Vigie). */
.panel { background: #fff; color: var(--text); border-radius: 12px; overflow: hidden; border: 1px solid #2a3850; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-head h3 { font-size: 16px; }
.panel-head span { font: 500 12px/1 var(--mono); color: var(--muted); }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 15px 22px; border-bottom: 1px solid var(--line); }
.todo li:last-child { border-bottom: 0; }
.todo .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; }
.todo .dot.red { background: var(--red); }
.todo .dot.amber { background: #c98a14; }
.todo .dot.green { background: var(--green); }
.todo .dot.ink { background: var(--ink-3); }
.todo b { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.todo small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.todo .amt { font: 500 13.5px/1.5 var(--mono); color: var(--ink); text-align: right; white-space: nowrap; }
.todo .act { display: inline-block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--gold-deep); }

/* ── Blocs fonctionnalité (texte + capture) */
.feature { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 64px; align-items: center; }
.feature + .feature { margin-top: 112px; }
.feature.flip { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); }
.feature.flip > :first-child { order: 2; }
.feature h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 16px; }
.feature p { color: var(--slate); }
.checks { list-style: none; margin: 20px 0 24px; padding: 0; }
.checks li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--line); font-size: 15px; }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--gold-deep); border-bottom: 2px solid var(--gold-deep); transform: rotate(-45deg); }
@media (max-width: 1000px) { .feature, .feature.flip { grid-template-columns: 1fr; gap: 32px; } .feature.flip > :first-child { order: 0; } .feature + .feature { margin-top: 72px; } }

/* ── Tarifs */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.plan { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; padding: 32px; }
.plan.featured { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.plan-name { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-name h3 { font-size: 22px; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-deep); font: 600 12px/1 var(--sans); }
.price { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 6px; }
.price .amount { font: 600 52px/1 var(--sans); letter-spacing: -0.03em; color: var(--ink); }
.price .unit { font-size: 15px; color: var(--slate); }
.price-note { font-size: 14px; color: var(--muted); min-height: 44px; }
.plan .checks { flex: 1; }
.plan .btn { width: 100%; margin-top: 8px; }
.plan .no { color: var(--muted); }
.plan .no::before { border: 0; width: 10px; height: 2px; background: var(--line-2); transform: none; top: 20px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } .plan { padding: 24px; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 760px; }
.compare th, .compare td { padding: 12px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { position: sticky; top: 0; background: var(--mist); font: 600 13px/1.3 var(--sans); color: var(--ink); }
.compare tbody th { font-weight: 500; color: var(--text); width: 37%; }
.compare tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.compare tr.group th { background: #fbfbfc; font: 600 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-deep); padding-top: 18px; }
.compare td { text-align: center; width: 21%; }
.compare .y { color: var(--green); font-weight: 600; }
.compare .n { color: #a4acb9; }
.compare td.txt { font-size: 13.5px; color: var(--slate); }

.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pack { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px; background: #fff; }
.pack .n { font: 600 30px/1 var(--sans); color: var(--ink); letter-spacing: -0.02em; }
.pack .n small { font: 500 14px/1 var(--sans); color: var(--slate); letter-spacing: 0; }
.pack .p { margin-top: 10px; font: 500 15px/1 var(--mono); color: var(--ink); }
.pack .u { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 760px) { .packs { grid-template-columns: 1fr; } }

/* ── Divers : cartes simples, définitions, FAQ, bandeau final */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1000px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 24px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { margin: 0; font-size: 15px; color: var(--slate); }
.card .k { display: block; margin-bottom: 14px; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-deep); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--sans); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 22px; max-width: 75ch; color: var(--slate); }
.faq .a p:last-child { margin: 0; }
.cta-band { background: var(--ink); color: #c9d1dc; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 40px; align-items: center; padding-block: 72px; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.02em; }
.cta-band p { margin: 12px 0 0; color: #aab4c3; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .cta-band .wrap { grid-template-columns: 1fr; } }
.page-head { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.page-head .lead { margin: 18px 0 0; }
.crumbs { margin-bottom: 20px; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 8px; color: var(--line-2); }
.kv { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); border-top: 1px solid var(--line); }
.kv dt, .kv dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-weight: 600; color: var(--ink); padding-right: 24px; }
.kv dd { color: var(--slate); }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; } .kv dt { border-bottom: 0; padding-bottom: 2px; } }
.note { border-left: 3px solid var(--gold); background: var(--gold-soft); padding: 14px 18px; border-radius: 0 8px 8px 0; font-size: 15px; color: var(--text); }
.note.warn { border-color: var(--red); background: #fdf3f2; }

/* ── Pied de page */
.foot { background: var(--ink); color: #aab4c3; font-size: 14.5px; }
.foot .wrap { padding-block: 64px 32px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot img { height: 34px; width: auto; margin-bottom: 18px; }
.foot h4 { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 10px; }
.foot a { color: #c9d1dc; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; color: #8b96a8; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ── Documentation */
.docs { display: grid; grid-template-columns: 260px minmax(0, 1fr) 220px; gap: 48px; padding-block: 40px 96px; }
.docs-side { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 8px; font-size: 14.5px; }
.docs-search { position: relative; margin-bottom: 20px; }
.docs-search input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; font: 400 14.5px var(--sans); background: #fff; }
.docs-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 160, 75, 0.2); }
.docs-results { position: absolute; z-index: 30; top: 46px; left: 0; right: 0; max-height: 60vh; overflow-y: auto; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 12px 32px -12px rgba(11, 18, 30, 0.25); }
.docs-results a { display: block; padding: 10px 14px; text-decoration: none; border-bottom: 1px solid var(--line); }
.docs-results a:hover, .docs-results a.on { background: var(--mist); }
.docs-results b { display: block; font-size: 14px; color: var(--ink); }
.docs-results small { display: block; font-size: 12.5px; color: var(--muted); }
.docs-results p { margin: 0; padding: 12px 14px; font-size: 13.5px; color: var(--muted); }
.docs-nav h4 { margin: 22px 0 8px; font: 600 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.docs-nav h4 a { text-decoration: none; }
.docs-nav h4 a:hover { color: var(--ink); }
.docs-nav .open h4 a { color: var(--ink); }
.docs-nav ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.docs-nav li a { display: block; margin-left: -1px; padding: 6px 12px; border-left: 2px solid transparent; color: var(--slate); text-decoration: none; line-height: 1.35; }
.docs-nav li a:hover { color: var(--ink); }
.docs-nav li a[aria-current="page"] { border-left-color: var(--gold); color: var(--ink); font-weight: 600; }
.docs-toc { position: sticky; top: 92px; align-self: start; font-size: 13.5px; }
.docs-toc h4 { margin-bottom: 10px; font: 600 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.docs-toc ul { list-style: none; margin: 0; padding: 0; }
.docs-toc a { display: block; padding: 5px 0; color: var(--slate); text-decoration: none; line-height: 1.35; }
.docs-toc a:hover { color: var(--ink); }
.docs-mobile-nav { display: none; }
@media (max-width: 1200px) { .docs { grid-template-columns: 240px minmax(0, 1fr); } .docs-toc { display: none; } }
@media (max-width: 860px) {
  .docs { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
  .docs-side { position: static; max-height: none; display: none; padding: 0; }
  .docs-mobile-nav { display: block; margin-bottom: 20px; }
  .docs-mobile-nav select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; font: 500 15px var(--sans); background: #fff; color: var(--ink); }
  body.docs-open .docs-side { display: block; margin-bottom: 24px; }
}

.prose { max-width: 76ch; font-size: 16.5px; line-height: 1.7; color: var(--text); }
.prose > h1 { font-size: clamp(30px, 3vw, 40px); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 14px; }
.prose .desc { font-size: 18.5px; color: var(--slate); margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.prose h2 { font-size: 23px; line-height: 1.25; margin: 44px 0 14px; padding-top: 4px; }
.prose h3 { font-size: 18.5px; margin: 30px 0 10px; }
.prose h2 a.anchor, .prose h3 a.anchor { margin-left: 8px; color: var(--line-2); text-decoration: none; font-weight: 400; opacity: 0; }
.prose h2:hover a.anchor, .prose h3:hover a.anchor { opacity: 1; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose li > ul, .prose li > ol { margin: 6px 0 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { padding: 1px 6px; border-radius: 4px; background: var(--mist); border: 1px solid var(--line); font: 500 0.88em var(--mono); color: var(--ink); }
.prose a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--ink); }
.prose .table-wrap { margin: 18px 0 22px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--mist); font-weight: 600; color: var(--ink); }
.prose tr:last-child td { border-bottom: 0; }
.prose .note { margin: 20px 0; }
.prose .note p { margin: 0; }
.doc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc-pager a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.doc-pager a:hover { border-color: var(--ink); }
.doc-pager small { display: block; font-size: 12.5px; color: var(--muted); }
.doc-pager b { display: block; margin-top: 4px; color: var(--ink); font-weight: 600; }
.doc-pager .next { text-align: right; grid-column: 2; }
.doc-help { margin-top: 32px; font-size: 14.5px; color: var(--muted); }
.doc-sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.doc-sections a { display: block; padding: 26px 24px; background: #fff; text-decoration: none; }
.doc-sections a:hover { background: #fcfbf8; }
.doc-sections h3 { font-size: 18px; margin-bottom: 8px; }
.doc-sections p { margin: 0 0 14px; font-size: 14.5px; color: var(--slate); }
.doc-sections .count { font: 500 12px/1 var(--mono); color: var(--muted); }
@media (max-width: 1000px) { .doc-sections { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .doc-sections { grid-template-columns: 1fr; } }
.doc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.doc-list li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.doc-list b { display: block; color: var(--ink); font-size: 17px; font-weight: 600; }
.doc-list span { color: var(--slate); font-size: 15px; }
.doc-list i { font-style: normal; color: var(--muted); align-self: center; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .top, .foot, .docs-side, .docs-toc, .cta-band { display: none !important; } .docs { display: block; } }

/* ── La vigie animée (accueil) : en haut à droite, au-dessus des repères ; en petit au-dessus du titre sur téléphone. */
.hero-wrap { position: relative; }
.hero-art { position: absolute; right: 0; top: -28px; width: min(42%, 560px); pointer-events: none; }
.hero-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.va-float { animation: va-float 6s ease-in-out infinite; }
.va-cone { animation: va-cone 4s ease-in-out infinite; }
.va-wave { animation: va-wave 3.2s linear infinite; }
.va-wave2 { animation-duration: 4.6s; animation-direction: reverse; }
.va-tag { opacity: 0; animation: va-tag 16s ease-in-out infinite; }
.va-t1 { animation-delay: 0.6s; } .va-t2 { animation-delay: 3.4s; } .va-t3 { animation-delay: 8.6s; } .va-t4 { animation-delay: 11.4s; }
@keyframes va-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes va-cone { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes va-wave { from { transform: translateX(0); } to { transform: translateX(-80px); } }
@keyframes va-tag { 0% { opacity: 0; transform: translateY(6px); } 4%, 22% { opacity: 1; transform: translateY(0); } 28%, 100% { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 1000px) {
  .hero-art { position: static; width: min(100%, 420px); margin: -8px auto 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art * { animation: none !important; }
  .va-tag { opacity: 1; }
}

/* ── Pages de référencement : solutions, guides, lexique, FAQ, pages en arabe et en anglais (29/11/2026) ── */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 56px; padding-block: 8px 72px; }
.content-grid .prose { max-width: 78ch; }
@media (max-width: 1100px) { .content-grid { grid-template-columns: minmax(0, 1fr); } .content-grid .docs-toc { display: none; } }
.tldr { margin: 0 0 32px; padding: 18px 22px; border: 1px solid var(--line-2); border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; background: var(--mist); }
.tldr b { display: block; margin-bottom: 8px; font: 600 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); }
.tldr p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink); }
.page-meta { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }
.status-line { margin: 16px 0 0; }
.badge-status { gap: 7px; background: #fdf1dc; color: #7a4f00; }
.badge-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #c98a10; }
.related { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.related h2 { margin-top: 0; font-size: 20px; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.related li { margin: 0; }
.related a { display: inline-block; padding: 4px 0; color: var(--ink); font-weight: 500; }
.hub-list b .badge { margin-inline-start: 8px; vertical-align: 2px; }
.nav-langs { display: inline-flex; gap: 10px; margin-inline-start: auto; padding-inline-start: 8px; }
.nav-langs a { padding: 8px 4px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 980px) { body.menu-open .nav .nav-langs { margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); } }
.foot-grid-6 { grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr)); }
.foot-grid-3 { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); }
@media (max-width: 1200px) { .foot-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-grid-6 > :first-child { grid-column: 1 / -1; } }
@media (max-width: 900px) { .foot-grid-6, .foot-grid-3 { grid-template-columns: 1fr 1fr; } .foot-grid-3 > :first-child { grid-column: 1 / -1; } }
.foot-langs a { white-space: nowrap; }

/* Arabe : de droite à gauche, police IBM Plex Sans Arabic (même famille que le site). */
html[dir="rtl"] { --sans: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4, html[dir="rtl"] .prose > h1 { letter-spacing: 0; }
html[dir="rtl"] body { line-height: 1.75; }
html[dir="rtl"] .prose { font-size: 17.5px; line-height: 1.85; }
html[dir="rtl"] .eyebrow, html[dir="rtl"] .tldr b, html[dir="rtl"] .docs-toc h4 { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 13.5px; }
html[dir="rtl"] .prose ul, html[dir="rtl"] .prose ol { padding-left: 0; padding-right: 24px; }
html[dir="rtl"] .prose th, html[dir="rtl"] .prose td { text-align: right; }
html[dir="rtl"] .prose h2 a.anchor, html[dir="rtl"] .prose h3 a.anchor { margin-left: 0; margin-right: 8px; }
html[dir="rtl"] .note { border-left: 0; border-right: 3px solid var(--gold); border-radius: 8px 0 0 8px; }
html[dir="rtl"] .tldr { border-left: 1px solid var(--line-2); border-right: 4px solid var(--gold); border-radius: 10px 0 0 10px; }
html[dir="rtl"] .checks li { padding: 9px 28px 9px 0; }
html[dir="rtl"] .checks li::before { left: auto; right: 2px; }
html[dir="rtl"] .doc-list i { transform: scaleX(-1); }
html[dir="rtl"] .docs-side { padding-right: 0; padding-left: 8px; }
html[dir="rtl"] .crumbs span { display: inline-block; transform: scaleX(-1); }
html[dir="rtl"] .num, html[dir="rtl"] .mono, html[dir="rtl"] code { direction: ltr; unicode-bidi: isolate; }
/* De droite à gauche, la page défile vers la gauche : le lien d'évitement caché à gauche la rendait trop large. */
html[dir="rtl"] .skip { left: auto; right: -999px; }
html[dir="rtl"] .skip:focus { right: 8px; }

/* ── Agent IA : démonstration en conversation et capacités (29/11/2026) ── */
.ag-caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.ag-cap { padding: 26px 26px 24px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.ag-cap h3 { font-size: 18px; margin-bottom: 8px; }
.ag-cap p { margin: 0 0 16px; font-size: 15px; color: var(--slate); flex: 1; }
.ag-ex { align-self: flex-start; padding: 6px 10px; border-radius: 6px; background: var(--gold-soft); color: var(--gold-deep); font-size: 13.5px; font-weight: 500; }
@media (max-width: 1000px) { .ag-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ag-caps { grid-template-columns: minmax(0, 1fr); } }
.ag-trust { margin-top: 40px; padding: 30px clamp(18px, 3vw, 36px); border-radius: 14px; background: var(--ink); color: #c9d1dc; }
.ag-trust h3 { color: #fff; font-size: 21px; margin-bottom: 20px; }
.ag-trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ag-trust b { display: block; margin-bottom: 6px; color: var(--gold); font-size: 15.5px; }
.ag-trust span { font-size: 14.5px; line-height: 1.55; }
@media (max-width: 1000px) { .ag-trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ag-trust ul { grid-template-columns: minmax(0, 1fr); } }
.ag-note { margin: 22px 0 0; font-size: 14.5px; color: var(--slate); }
.ag-note a { color: var(--gold-deep); font-weight: 500; }
.ef-callout { display: block; margin-top: 28px; padding: 22px 24px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; text-decoration: none; color: var(--text); }
.ef-callout:hover { border-color: var(--ink); }
.ef-callout b { font-size: 17px; color: var(--ink); margin-inline-end: 8px; }
.ef-callout p { margin: 8px 0 0; color: var(--slate); font-size: 15px; }
.links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: 32px; }
@media (max-width: 640px) { .links-grid { grid-template-columns: minmax(0, 1fr) !important; } }
html[dir="rtl"] .hero-facts dt, html[dir="rtl"] .module .more { font-family: var(--sans); letter-spacing: 0; text-transform: none; }
/* De droite à gauche : la vigie passe à gauche, le titre arabe commence à droite (dessin non retourné : ses étiquettes restent lisibles). */
@media (min-width: 1001px) { html[dir="rtl"] .hero-art { right: auto; left: 0; } }
@media (min-width: 1001px) {
  html[dir="rtl"] .hero-art { width: min(34%, 460px); top: -12px; }
  html[dir="rtl"] .hero-wrap > .h-display { max-width: 64%; }
  html[dir="rtl"] .hero-grid { margin-top: 48px; }
}

/* ── Agent IA : démonstration v2 (29/11/2026) — scénarios à gauche, conversation à droite ; site.js en fait un diaporama ── */
.section-agent { background: linear-gradient(180deg, #fff 0%, var(--mist) 100%); border-top: 1px solid var(--line); }
.agent-demo { position: relative; }
.ag-radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ag-layout { display: grid; grid-template-columns: minmax(270px, 0.82fr) minmax(0, 1.6fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.ag-scenarios { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 96px; }
.ag-scenarios label { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px 19px; border: 1px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.ag-scenarios label:hover { border-color: var(--line-2); transform: translateY(-1px); }
.ag-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--mist); color: var(--ink); transition: background 0.2s, color 0.2s; }
.ag-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ag-st b { display: block; margin-bottom: 4px; font-size: 16px; font-weight: 600; color: var(--ink); }
.ag-st small { display: block; font-size: 14px; line-height: 1.5; color: var(--slate); }
.ag-radio:nth-of-type(1):checked ~ .ag-layout .ag-scenarios label:nth-child(1), .ag-radio:nth-of-type(2):checked ~ .ag-layout .ag-scenarios label:nth-child(2),
.ag-radio:nth-of-type(3):checked ~ .ag-layout .ag-scenarios label:nth-child(3), .ag-radio:nth-of-type(4):checked ~ .ag-layout .ag-scenarios label:nth-child(4) { border-color: var(--ink); box-shadow: 0 16px 34px -22px rgba(18, 59, 109, 0.55); }
.ag-radio:nth-of-type(1):checked ~ .ag-layout .ag-scenarios label:nth-child(1) .ag-ic, .ag-radio:nth-of-type(2):checked ~ .ag-layout .ag-scenarios label:nth-child(2) .ag-ic,
.ag-radio:nth-of-type(3):checked ~ .ag-layout .ag-scenarios label:nth-child(3) .ag-ic, .ag-radio:nth-of-type(4):checked ~ .ag-layout .ag-scenarios label:nth-child(4) .ag-ic { background: var(--ink); color: #fff; }
.ag-radio:nth-of-type(1):focus-visible ~ .ag-layout .ag-scenarios label:nth-child(1), .ag-radio:nth-of-type(2):focus-visible ~ .ag-layout .ag-scenarios label:nth-child(2),
.ag-radio:nth-of-type(3):focus-visible ~ .ag-layout .ag-scenarios label:nth-child(3), .ag-radio:nth-of-type(4):focus-visible ~ .ag-layout .ag-scenarios label:nth-child(4) { outline: 2px solid var(--gold); outline-offset: 2px; }
.ag-prog { position: absolute; inset-inline-start: 0; bottom: 0; height: 3px; width: 0; background: var(--gold); pointer-events: none; }
.agent-demo.js label.is-active .ag-prog { animation: ag-prog var(--ag-dur, 8000ms) linear forwards; }
.agent-demo.js.paused label.is-active .ag-prog { animation-play-state: paused; }
.agent-demo.js.still label.is-active .ag-prog { animation: none; width: 0; }
@keyframes ag-prog { to { width: 100%; } }

.ag-device { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 34px 70px -40px rgba(18, 59, 109, 0.5), 0 2px 6px rgba(18, 59, 109, 0.06); }
.ag-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.ag-avatar { flex: none; }
.ag-avatar img { display: block; width: 32px; height: 32px; border-radius: 9px; }
.ag-who b { display: block; font-size: 15px; color: var(--ink); }
.ag-who small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.ag-live { width: 7px; height: 7px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 3px rgba(34, 160, 107, 0.16); }
.ag-ctl { display: none; margin-inline-start: auto; align-items: center; gap: 6px; }
.agent-demo.js .ag-ctl { display: inline-flex; }
.ag-count { min-width: 40px; text-align: center; color: var(--muted); font: 500 12.5px/1 var(--mono); direction: ltr; unicode-bidi: isolate; }
.ag-nav { position: relative; width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; cursor: pointer; }
.ag-nav:hover { border-color: var(--ink); }
.ag-nav::before { content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); }
.ag-next::before { transform: translateX(-2px) rotate(45deg); }
.ag-prev::before { transform: translateX(2px) rotate(-135deg); }
html[dir="rtl"] .ag-next::before { transform: translateX(2px) rotate(-135deg); }
html[dir="rtl"] .ag-prev::before { transform: translateX(-2px) rotate(45deg); }
.ag-panels { background: var(--mist); }
.ag-panel { display: none; flex-direction: column; gap: 14px; padding: 26px clamp(14px, 2.4vw, 30px) 20px; }
.ag-radio:nth-of-type(1):checked ~ .ag-layout .ag-p0, .ag-radio:nth-of-type(2):checked ~ .ag-layout .ag-p1,
.ag-radio:nth-of-type(3):checked ~ .ag-layout .ag-p2, .ag-radio:nth-of-type(4):checked ~ .ag-layout .ag-p3 { display: flex; }
.ag-typing { display: none; overflow: hidden; }
.ag-msg { display: flex; align-items: flex-end; gap: 10px; }
.ag-me { justify-content: flex-end; }
.ag-bubble { max-width: min(560px, 86%); padding: 12px 16px; border-radius: 18px; font-size: 15px; line-height: 1.6; }
.ag-bubble p { margin: 0 0 10px; }
.ag-bubble p:last-child { margin: 0; }
.ag-me .ag-bubble { background: var(--ink); color: #fff; border-end-end-radius: 6px; }
.ag-bot .ag-bubble { background: #fff; border: 1px solid var(--line); color: var(--text); border-end-start-radius: 6px; box-shadow: 0 1px 2px rgba(18, 59, 109, 0.05); }
.ag-bubble[dir="rtl"] { font-family: "IBM Plex Sans Arabic", var(--sans); font-size: 16px; }
.ag-trans { display: block; margin-top: 6px; font: 400 12.5px/1.4 var(--sans); color: #c5d3e6; }
.ag-file { display: flex; width: max-content; max-width: 100%; align-items: center; gap: 8px; margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.14); font: 500 12.5px/1.2 var(--mono); }
.ag-file::before { content: ""; flex: none; width: 13px; height: 16px; border: 1.5px solid #dfe5ee; border-radius: 2px; }
.ag-table { overflow-x: auto; margin: 6px 0 10px; border: 1px solid var(--line); border-radius: 10px; }
.ag-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ag-table th, .ag-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: start; white-space: nowrap; }
.ag-table tr:last-child td { border-bottom: 0; }
.ag-table th { background: var(--mist); font-weight: 600; color: var(--ink); }
.ag-table .num { font-family: var(--mono); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.ag-chips, .ag-sources { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.ag-chips span, .ag-sources span { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font: 500 12.5px/1 var(--sans); color: var(--ink); }
.ag-sources span { background: var(--gold-soft); border-color: transparent; color: var(--gold-deep); }
.ag-sources .ag-k { background: none; padding: 0 2px; color: var(--muted); }
.ag-task { margin-top: 2px; padding: 14px 16px; border: 1px solid var(--line); border-inline-start: 3px solid var(--gold); border-radius: 12px; background: #fff; }
.ag-task-head { margin-bottom: 8px; font: 600 11.5px/1 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--gold-deep); }
html[dir="rtl"] .ag-task-head { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 13.5px; }
.ag-kv { margin: 0; }
.ag-kv div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.ag-kv div:last-child { border-bottom: 0; }
.ag-kv dt { color: var(--slate); }
.ag-kv dd { margin: 0; text-align: end; font-weight: 600; color: var(--ink); }
.ag-task-actions { display: flex; gap: 8px; margin-top: 12px; }
.ag-btn { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ag-btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.ag-mini { margin: 10px 0 0 !important; font-size: 12.5px; color: var(--muted); }
.ag-input { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 18px; border-top: 1px solid var(--line); background: #fff; }
.ag-ph { flex: 1; font-size: 14.5px; color: var(--muted); }
.ag-clip, .ag-send { display: grid; place-items: center; flex: none; }
.ag-clip { color: var(--muted); }
.ag-clip svg, .ag-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ag-send { width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: #fff; }
html[dir="rtl"] .ag-send svg { transform: scaleX(-1); }
.ag-caption { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
html[dir="rtl"] .ag-caption { font-family: var(--sans); }
/* Le diaporama (site.js). */
.agent-demo.js .ag-panels { overflow: hidden; transition: height 0.55s cubic-bezier(0.22, 0.7, 0.2, 1); touch-action: pan-y; }
.agent-demo.js .ag-track { display: flex; align-items: flex-start; transition: transform 0.75s cubic-bezier(0.22, 0.7, 0.2, 1); will-change: transform; }
.agent-demo.js .ag-panel { display: flex; flex: 0 0 100%; min-width: 100%; opacity: 0.2; transition: opacity 0.6s ease; }
.agent-demo.js .ag-panel.is-active { opacity: 1; }
.agent-demo.js .ag-panel.is-active .ag-msg { animation: ag-in 0.5s cubic-bezier(0.22, 0.7, 0.2, 1) both; animation-delay: var(--d, 0s); }
.agent-demo.js .ag-panel.is-active .ag-typing { display: flex; animation: ag-typing 1.15s ease both; animation-delay: var(--d, 0s); }
@keyframes ag-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ag-typing { 0% { opacity: 0; max-height: 0; margin-bottom: -14px; } 14% { opacity: 1; max-height: 70px; margin-bottom: 0; } 84% { opacity: 1; max-height: 70px; margin-bottom: 0; } 100% { opacity: 0; max-height: 0; margin-bottom: -14px; } }
.ag-dots { display: inline-flex; gap: 4px; padding: 5px 2px; }
.ag-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: ag-dot 1s infinite ease-in-out; }
.ag-dots i:nth-child(2) { animation-delay: 0.15s; }
.ag-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ag-dot { 0%, 80%, 100% { opacity: 0.3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
@media (max-width: 980px) {
  .ag-layout { grid-template-columns: minmax(0, 1fr); }
  .ag-scenarios { position: static; flex-direction: row; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .ag-scenarios::-webkit-scrollbar { display: none; }
  .ag-scenarios label { flex: 0 0 min(78%, 300px); scroll-snap-align: start; }
}
@media (max-width: 600px) { .ag-bubble { max-width: 100%; } .ag-bot .ag-avatar { display: none; } .ag-panel { padding-inline: 12px; } .ag-st small { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) {
  .agent-demo.js .ag-track, .agent-demo.js .ag-panels, .agent-demo.js .ag-panel { transition: none; }
  .agent-demo.js .ag-panel.is-active .ag-msg { animation: none; }
  .agent-demo.js .ag-panel.is-active .ag-typing { display: none; }
}
