/* Polices servies par le site lui-même (licences dans fonts/LICENCES.txt). */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url('fonts/dm-sans-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap; src: url('fonts/manrope-latin-wght-normal.woff2') format('woff2'); }

/* ==========================================================================
   Synkely — feuille de style
   Règle de lisibilité : texte courant 16 px, secondaire 14–15 px,
   jamais sous 13 px. Contraste du texte d'au moins 4,5 pour 1.
   ========================================================================== */

/* Variables déclarées avec leur type : le navigateur peut ainsi les faire glisser
   d'une valeur à l'autre lors du passage jour / nuit (voir .theme-shifting). */
@property --paper { syntax: '<color>'; inherits: true; initial-value: #fff; }
@property --surface { syntax: '<color>'; inherits: true; initial-value: #fff; }
@property --surface-2 { syntax: '<color>'; inherits: true; initial-value: #f6f7f9; }
@property --surface-3 { syntax: '<color>'; inherits: true; initial-value: #ebeff5; }
@property --wash { syntax: '<color>'; inherits: true; initial-value: #f6f7f9; }
@property --ink { syntax: '<color>'; inherits: true; initial-value: #151619; }
@property --text { syntax: '<color>'; inherits: true; initial-value: #3f444c; }
@property --muted { syntax: '<color>'; inherits: true; initial-value: #5d636d; }
@property --soft { syntax: '<color>'; inherits: true; initial-value: #646b78; }
@property --navy { syntax: '<color>'; inherits: true; initial-value: #1e3045; }
@property --navy-2 { syntax: '<color>'; inherits: true; initial-value: #435268; }
@property --navy-3 { syntax: '<color>'; inherits: true; initial-value: #52627a; }
@property --line { syntax: '<color>'; inherits: true; initial-value: #e5e6e9; }
@property --line-soft { syntax: '<color>'; inherits: true; initial-value: #ebedf1; }
@property --line-2 { syntax: '<color>'; inherits: true; initial-value: #dfe3ea; }
@property --line-strong { syntax: '<color>'; inherits: true; initial-value: #c3cad6; }
@property --blue { syntax: '<color>'; inherits: true; initial-value: #245bff; }
@property --blue-dark { syntax: '<color>'; inherits: true; initial-value: #1948d9; }
@property --blue-wash { syntax: '<color>'; inherits: true; initial-value: #edf2ff; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #245bff; }
@property --accent-strong { syntax: '<color>'; inherits: true; initial-value: #1f3f96; }
@property --accent-soft { syntax: '<color>'; inherits: true; initial-value: #4a6dc4; }
@property --link { syntax: '<color>'; inherits: true; initial-value: #254dba; }
@property --link-hover { syntax: '<color>'; inherits: true; initial-value: #245bff; }
@property --btn-bg { syntax: '<color>'; inherits: true; initial-value: #17181b; }
@property --btn-bg-hover { syntax: '<color>'; inherits: true; initial-value: #34363b; }
@property --disabled-bg { syntax: '<color>'; inherits: true; initial-value: #e9ebef; }
@property --disabled-text { syntax: '<color>'; inherits: true; initial-value: #6d737d; }
@property --deco { syntax: '<color>'; inherits: true; initial-value: #d9dfe9; }
@property --deco-blue { syntax: '<color>'; inherits: true; initial-value: #a4b6e0; }
@property --bar-bg { syntax: '<color>'; inherits: true; initial-value: #1d304a; }
@property --ok-text { syntax: '<color>'; inherits: true; initial-value: #1f5a3a; }
@property --ok-bg { syntax: '<color>'; inherits: true; initial-value: #e9f5ee; }
@property --ok-line { syntax: '<color>'; inherits: true; initial-value: #cfe7d9; }
@property --warn-text { syntax: '<color>'; inherits: true; initial-value: #5c3d08; }
@property --warn-bg { syntax: '<color>'; inherits: true; initial-value: #fdf4e2; }
@property --warn-line { syntax: '<color>'; inherits: true; initial-value: #f0dcae; }
@property --wave { syntax: '<color>'; inherits: true; initial-value: #245bff; }
@property --wave-2 { syntax: '<color>'; inherits: true; initial-value: #2aa7ff; }
@property --hero-glow { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --wave-boost { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --day-on { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --night-on { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  color-scheme: light;
  /* Fonds et textes */
  --paper: #fff;            /* fond de page */
  --surface: #fff;          /* cartes, champs, fenêtres */
  --surface-2: #f6f7f9;     /* panneaux discrets */
  --surface-3: #ebeff5;     /* survols, petits aplats */
  --wash: #f6f7f9;          /* sections grisées */
  --ink: #151619;
  --text: #3f444c;          /* texte courant */
  --muted: #5d636d;         /* texte secondaire */
  --soft: #646b78;          /* légendes, mots atténués des titres */
  --navy: #1e3045;          /* textes de la démo */
  --navy-2: #435268;
  --navy-3: #52627a;
  /* Traits */
  --line: #e5e6e9;
  --line-soft: #ebedf1;
  --line-2: #dfe3ea;
  --line-strong: #c3cad6;
  /* Bleu */
  --blue: #245bff;          /* aplats : boutons, pastilles */
  --blue-dark: #1948d9;
  --blue-wash: #edf2ff;
  --accent: #245bff;        /* bleu employé comme texte */
  --accent-strong: #1f3f96;
  --accent-soft: #4a6dc4;
  --link: #254dba;
  --link-hover: #245bff;
  /* Boutons */
  --btn-bg: #17181b;
  --btn-bg-hover: #34363b;
  --disabled-bg: #e9ebef;
  --disabled-text: #6d737d;
  /* Illustrations */
  --deco: #d9dfe9;
  --deco-blue: #a4b6e0;
  --bar-bg: #1d304a;
  --mock-logo-filter: grayscale(1) brightness(1) invert(0);
  --shadow-card: 0 20px 50px #111a2c0d, 0 4px 10px #111a2c08;
  /* États */
  --ok-text: #1f5a3a; --ok-bg: #e9f5ee; --ok-line: #cfe7d9;
  --warn-text: #5c3d08; --warn-bg: #fdf4e2; --warn-line: #f0dcae;
  /* Accroche */
  --hero-glow: 0;           /* halo de nuit derrière l'accroche */
  --wave: #245bff;
  --wave-2: #2aa7ff;
  --wave-boost: 1;
  --day-on: 1;              /* 1 = visible, 0 = masqué (logos, icônes du bouton) */
  --night-on: 0;
  --shift: 1.8s;            /* durée du passage d'un ton à l'autre */
  --shift-text: cubic-bezier(.9, 0, .1, 1);   /* les textes basculent vite au milieu, pour rester lisibles */
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: Manrope, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Ton de nuit : bleu nuit profond, bleu électrique en accent.
   Posé par theme.js (réglage de l'appareil ou choix du visiteur). */
:root[data-theme=night] {
  color-scheme: dark;
  --paper: #060a1e;
  --surface: #0b1230;
  --surface-2: #0e1638;
  --surface-3: #162048;
  --wash: #0a1029;
  --ink: #f1f4ff;
  --text: #c9d1ea;
  --muted: #a3adcb;
  --soft: #97a2c2;
  --navy: #e6ebff;
  --navy-2: #c2cbe8;
  --navy-3: #a3adcb;
  --line: #1b2548;
  --line-soft: #1a2550;
  --line-2: #26346a;
  --line-strong: #37477f;
  --blue-dark: #3f70ff;
  --blue-wash: #14204d;
  --accent: #8fb0ff;
  --accent-strong: #b9ccff;
  --accent-soft: #7f9ff0;
  --link: #9db8ff;
  --link-hover: #c4d4ff;
  --btn-bg: #245bff;
  --btn-bg-hover: #3f70ff;
  --disabled-bg: #1a2244;
  --disabled-text: #8089aa;
  --deco: #2a3768;
  --deco-blue: #4c68b8;
  --bar-bg: #101a40;
  --mock-logo-filter: grayscale(1) brightness(0) invert(.78);
  --shadow-card: 0 24px 70px #0008, 0 0 0 1px #2c57ff22, 0 0 60px #2c57ff1f;
  --ok-text: #8fe0b4; --ok-bg: #0f2b22; --ok-line: #1e4a3a;
  --warn-text: #f3d08a; --warn-bg: #2b2110; --warn-line: #5a4517;
  --hero-glow: 1;
  --wave: #4d7dff;
  --wave-2: #54c8ff;
  --wave-boost: 1.9;
  --day-on: 0;
  --night-on: 1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 36px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
h2 { font-size: clamp(30px, 3vw, 39px); line-height: 1.22; letter-spacing: -.045em; font-weight: 550; }
h3 { font-size: 20px; line-height: 1.4; letter-spacing: -.03em; font-weight: 600; }
em { font-style: normal; color: var(--soft); }
[hidden] { display: none !important; }
.ico { width: 24px; height: 24px; flex-shrink: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 20; padding: 11px 16px; background: var(--btn-bg); color: #fff; border-radius: 5px; font-size: 15px; font-weight: 550; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: 1320px; margin: auto; padding-left: 56px; padding-right: 56px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.eyebrow { font-size: 13px; line-height: 1.5; letter-spacing: .09em; font-weight: 600; color: var(--muted); margin-bottom: 20px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; margin-bottom: 48px; }
.section-heading > p { font-size: 16px; color: var(--muted); max-width: 400px; }

/* --- Boutons -------------------------------------------------------------- */
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid transparent; border-radius: 5px; padding: 14px 20px; font-size: 15px; font-weight: 550; line-height: 1.3; transition: background .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button.dark { background: var(--btn-bg); color: #fff; }
.button.dark:hover { background: var(--btn-bg-hover); }
.button.blue { background: var(--blue); color: #fff; }
.button.blue:hover { background: var(--blue-dark); }
.button.light { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.button.light:hover { border-color: var(--ink); }
.button:disabled, .button:disabled:hover { background: var(--disabled-bg); color: var(--disabled-text); border-color: transparent; cursor: not-allowed; transform: none; }
.text-link { font-size: 15px; font-weight: 500; color: var(--link); }
.text-link span { margin-left: 8px; }
.text-link:hover { color: var(--link-hover); }

/* --- En-tête -------------------------------------------------------------- */
.nav { max-width: 1440px; margin: auto; display: flex; align-items: center; gap: 32px; padding: 22px 56px; border-bottom: 1px solid var(--line); background: var(--paper); }
.brand { display: flex; gap: 9px; align-items: center; white-space: nowrap; }
.brand-mark, .brand-mark img { width: 39px; height: 39px; }
.brand-mark { display: block; position: relative; }
.brand-mark img { display: block; position: absolute; inset: 0; }
.brand-mark .logo-day { opacity: var(--day-on); }
.brand-mark .logo-night { opacity: var(--night-on); }
.brand-name { font-family: var(--display); font-size: 27px; font-weight: 800; letter-spacing: -1.3px; line-height: 1; }
.brand-period { color: var(--accent); }
.nav nav { display: flex; gap: 30px; font-size: 15px; color: var(--muted); margin: 0 auto; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--ink); }
.nav nav .s { display: none; }
.nav-cta { font-size: 14px; font-weight: 550; background: var(--btn-bg); color: #fff; border-radius: 5px; padding: 11px 16px; white-space: nowrap; }
.nav-cta span { margin-left: 14px; }
.nav-cta:hover { background: var(--btn-bg-hover); }

/* --- Vagues de l'accroche ------------------------------------------------- */
.hero-band { position: relative; overflow: hidden; background: var(--paper); }
.hero-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 78% 40%, #0d1a4a 0%, #060a1e00 62%); opacity: var(--hero-glow); pointer-events: none; }
.hero-band .hero { position: relative; z-index: 1; }
.waves { position: absolute; inset: 0; z-index: 0; pointer-events: none; display: flex; align-items: center; justify-content: center;
  -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.5) 34%, #000 62%, rgba(0,0,0,.75) 100%);
          mask-image: linear-gradient(100deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.5) 34%, #000 62%, rgba(0,0,0,.75) 100%); }
.waves svg { flex-shrink: 0; }
.wave { stroke: var(--wave); stroke-opacity: calc(var(--o) * var(--wave-boost)); stroke-linecap: round; animation: wave-flow var(--d) linear infinite; }
.wave.cyan { stroke: var(--wave-2); }
.wave-bob { animation: wave-bob var(--b) ease-in-out var(--delay) infinite alternate; }
@keyframes wave-flow { to { transform: translateX(calc(-1 * var(--p))); } }
@keyframes wave-bob { from { transform: translateY(-9px); } to { transform: translateY(9px); } }

/* --- Passage progressif d'un ton à l'autre -------------------------------- */
/* theme.js pose .theme-shifting sur <html> le temps du changement : ce sont les
   variables elles-mêmes qui glissent, donc toutes les couleurs avancent ensemble.
   Pendant ce temps, theme.js fait accélérer et gonfler les vagues, un peu
   différemment à chaque fois. */
:root.theme-shifting {
  transition: --paper var(--shift) ease-in-out,
              --surface var(--shift) ease-in-out,
              --surface-2 var(--shift) ease-in-out,
              --surface-3 var(--shift) ease-in-out,
              --wash var(--shift) ease-in-out,
              --ink var(--shift) var(--shift-text),
              --text var(--shift) var(--shift-text),
              --muted var(--shift) var(--shift-text),
              --soft var(--shift) var(--shift-text),
              --navy var(--shift) var(--shift-text),
              --navy-2 var(--shift) var(--shift-text),
              --navy-3 var(--shift) var(--shift-text),
              --line var(--shift) ease-in-out,
              --line-soft var(--shift) ease-in-out,
              --line-2 var(--shift) ease-in-out,
              --line-strong var(--shift) ease-in-out,
              --blue var(--shift) ease-in-out,
              --blue-dark var(--shift) ease-in-out,
              --blue-wash var(--shift) ease-in-out,
              --accent var(--shift) var(--shift-text),
              --accent-strong var(--shift) var(--shift-text),
              --accent-soft var(--shift) var(--shift-text),
              --link var(--shift) var(--shift-text),
              --link-hover var(--shift) var(--shift-text),
              --btn-bg var(--shift) ease-in-out,
              --btn-bg-hover var(--shift) ease-in-out,
              --disabled-bg var(--shift) ease-in-out,
              --disabled-text var(--shift) var(--shift-text),
              --deco var(--shift) ease-in-out,
              --deco-blue var(--shift) ease-in-out,
              --bar-bg var(--shift) ease-in-out,
              --ok-text var(--shift) var(--shift-text),
              --ok-bg var(--shift) ease-in-out,
              --ok-line var(--shift) ease-in-out,
              --warn-text var(--shift) var(--shift-text),
              --warn-bg var(--shift) ease-in-out,
              --warn-line var(--shift) ease-in-out,
              --wave var(--shift) ease-in-out,
              --wave-2 var(--shift) ease-in-out,
              --hero-glow var(--shift) ease-in-out,
              --wave-boost var(--shift) ease-in-out,
              --day-on var(--shift) ease-in-out,
              --night-on var(--shift) ease-in-out;
}
.theme-shifting .app-window, .theme-shifting .assist-app { transition: box-shadow var(--shift) ease-in-out; }
.theme-shifting .app-sidebar img { transition: filter var(--shift) ease-in-out; }

/* --- Bouton jour / nuit --------------------------------------------------- */
.theme-toggle { display: none; place-items: center; width: 40px; height: 40px; flex-shrink: 0; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--ink); }
[data-theme] .theme-toggle { display: grid; }   /* visible seulement si le script a démarré */
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle { position: relative; }
.theme-toggle .ico { position: absolute; width: 20px; height: 20px; }
.theme-toggle .moon { opacity: var(--day-on); transform: rotate(calc(var(--night-on) * -90deg)) scale(calc(.5 + .5 * var(--day-on))); }
.theme-toggle .sun { opacity: var(--night-on); transform: rotate(calc(var(--day-on) * 90deg)) scale(calc(.5 + .5 * var(--night-on))); }

/* --- Accroche ------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: 1fr 1.12fr; gap: 60px; align-items: center; padding-top: 96px; padding-bottom: 88px; }
.hero-copy { min-width: 0; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.badge-dot { display: inline-block; width: 7px; height: 7px; background: var(--blue); border-radius: 1px; flex-shrink: 0; }
.hero h1 { font-size: clamp(44px, 4.8vw, 69px); line-height: 1.1; letter-spacing: -.055em; font-weight: 550; text-wrap: initial; }
.headline-line { display: block; }
.hero-lead { font-size: 18px; line-height: 1.6; letter-spacing: -.01em; margin-top: 26px; max-width: 30em; color: var(--text); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; margin-top: 32px; }

.hero-art { min-width: 0; }
.app-window { border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-card); }
.window-bar { min-height: 40px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 15px; color: var(--muted); font-size: 13px; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border: 1px solid var(--line-strong); border-radius: 50%; }
.app-layout { display: flex; }
.app-sidebar { width: 50px; flex-shrink: 0; background: var(--surface-2); border-right: 1px solid var(--line-soft); display: flex; align-items: center; flex-direction: column; padding: 14px 0; gap: 16px; color: var(--soft); font-size: 15px; }
.app-sidebar img { width: 27px; height: 27px; margin-bottom: 6px; filter: var(--mock-logo-filter); }
.app-sidebar span { width: 28px; height: 28px; display: grid; place-items: center; }
.app-sidebar .sidebar-active { background: var(--blue-wash); color: var(--accent); border-radius: 4px; }
.app-sidebar .sidebar-bottom { margin-top: auto; }
.app-main { padding: 24px 24px 18px; flex: 1; min-width: 0; }
.app-breadcrumb { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 14px; }
.app-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-title strong { font-family: var(--display); font-size: 21px; line-height: 1.22; font-weight: 600; letter-spacing: -.035em; }
.app-title > span { font-size: 14px; color: var(--muted); border: 1px solid var(--line-2); width: 24px; height: 24px; border-radius: 3px; display: grid; place-items: center; flex-shrink: 0; }
.app-subtitle { font-size: 13px; color: var(--muted); margin-top: 4px; }
.app-tabs { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 13px; color: var(--muted); margin-top: 18px; border-bottom: 1px solid var(--line-soft); }
.app-tabs > span { padding-bottom: 9px; }
.app-tabs .selected { color: var(--accent); border-bottom: 1.5px solid var(--accent); margin-bottom: -1px; }
.app-table-head, .app-table-row { display: grid; grid-template-columns: minmax(0, 1fr) 98px 18px; gap: 10px; align-items: center; }
.app-table-head { font-size: 13px; letter-spacing: .05em; color: var(--muted); padding: 12px 0 6px; }
.app-table-row { border-bottom: 1px solid var(--line-soft); padding: 11px 0; }
.app-table-row > div { display: flex; align-items: center; gap: 11px; min-width: 0; }
.app-table-row i { display: grid; place-items: center; width: 28px; height: 30px; border: 1px solid var(--line-2); border-radius: 3px; color: var(--soft); font-style: normal; flex-shrink: 0; font-size: 14px; }
.app-table-row strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--navy); }
.app-table-row small { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); }
.app-pill { justify-self: start; font-size: 13px; line-height: 1.3; background: var(--surface-2); border: 1px solid var(--line-2); padding: 3px 8px; border-radius: 3px; white-space: nowrap; color: var(--navy-2); }
.app-pill.blue { background: var(--blue-wash); border-color: var(--line-2); color: var(--accent-strong); }
.app-table-row > span:last-child { font-size: 14px; color: var(--soft); }
.app-bottom { margin-top: 14px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.app-dot { width: 6px; height: 6px; background: var(--accent-soft); border-radius: 50%; flex-shrink: 0; }
.app-caption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-top: 14px; font-size: 13px; color: var(--soft); }
.app-caption > span:first-child { letter-spacing: .06em; }

/* --- Offres --------------------------------------------------------------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.service-card { padding: 4px 26px 0; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.service-card:first-child { padding-left: 0; border-left: 0; }
.service-card:last-child { padding-right: 0; }
.service-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--soft); letter-spacing: .08em; }
.service-top .ico { color: var(--muted); }
.service-visual { height: 132px; margin: 20px 0 24px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 4px; position: relative; overflow: hidden; }
.visual-label { position: absolute; left: 10px; right: 10px; bottom: 9px; text-align: center; font-size: 13px; line-height: 1.3; color: var(--muted); }
.visual-site { padding: 14px 22px 0; }
.mini-browser { height: 74px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; }
.mini-bar { display: flex; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--line-soft); }
.mini-bar i { width: 5px; height: 5px; border-radius: 50%; background: var(--deco); }
.mini-page { padding: 9px 12px; display: grid; gap: 6px; }
.mini-page b { display: block; width: 55%; height: 7px; border-radius: 2px; background: var(--deco-blue); }
.mini-page span { display: block; width: 80%; height: 4px; border-radius: 2px; background: var(--deco); }
.mini-page em { display: block; width: 34%; height: 11px; border-radius: 2px; background: var(--blue); margin-top: 1px; }
.visual-flow { display: flex; align-items: center; justify-content: center; padding-bottom: 28px; }
.visual-flow > span:not(.visual-label) { width: 36px; height: 36px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); color: var(--accent-soft); border-radius: 4px; }
.visual-flow .flow-center { width: 44px; height: 44px; background: var(--blue-wash); color: var(--accent-soft); border-color: var(--line-2); }
.visual-flow > i { width: 22px; border-top: 1px solid var(--line-strong); }
.visual-flow .ico { width: 20px; height: 20px; }
.visual-app { padding: 14px 22px 0; display: flex; gap: 12px; }
.mini-rail { width: 20px; height: 74px; border-right: 1px solid var(--line-2); }
.mini-rail > * { display: block; width: 8px; height: 5px; background: var(--deco); border-radius: 1px; margin-bottom: 10px; }
.mini-rail b { height: 8px; background: var(--accent-soft); }
.mini-work { flex: 1; }
.mini-work > span { display: block; width: 87%; height: 4px; background: var(--deco); margin: 8px 0; border-radius: 2px; }
.mini-work .mini-heading { width: 48%; background: var(--deco); height: 5px; margin-top: 0; }
.mini-blocks { display: flex; gap: 5px; margin: 10px 0; }
.mini-blocks i { width: 33%; height: 22px; border: 1px solid var(--line-2); background: var(--surface-3); border-radius: 2px; }
.mini-blocks i:nth-child(2) { background: var(--blue-wash); }
.visual-ai { padding: 14px 22px 0; display: grid; gap: 7px; align-content: start; }
.mini-bubble { display: grid; gap: 5px; padding: 9px 11px; border-radius: 8px 8px 8px 2px; background: var(--surface); border: 1px solid var(--line-2); width: 62%; }
.mini-bubble i { display: block; height: 4px; border-radius: 2px; background: var(--deco); }
.mini-bubble i:last-child { width: 60%; }
.mini-bubble.reply { justify-self: end; border-radius: 8px 8px 2px 8px; background: var(--blue-wash); border-color: var(--line-2); }
.mini-bubble.reply i { background: var(--deco-blue); }
.service-card ul { padding: 0; list-style: none; font-size: 15px; color: var(--text); margin: 14px 0 24px; }
.service-card li { margin: 6px 0; display: flex; gap: 8px; }
.service-card li::before { content: '↳'; color: var(--accent-soft); flex-shrink: 0; }
.service-card > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 550; padding: 15px 0 0; margin-top: auto; border-top: 1px solid var(--line); }
.service-card > a span { color: var(--accent); font-size: 17px; }
.service-card > a:hover { color: var(--accent); }

/* --- Notre réalisation ---------------------------------------------------- */
.case-results { width: 100%; border-collapse: collapse; font-size: 17px; border-top: 1px solid var(--line); }
.case-results th, .case-results td { padding: 20px 16px 20px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.case-results thead th { font-size: 13px; letter-spacing: .09em; font-weight: 600; color: var(--muted); padding-top: 14px; padding-bottom: 12px; }
.case-results tbody th { width: 28%; font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.case-results tbody td { width: 36%; color: var(--muted); }
.case-results tbody td:last-child { color: var(--accent-strong); font-weight: 600; }
.case-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px; margin-top: 24px; }
.case-foot p { font-size: 17px; color: var(--text); }
.case-status { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ok-text); background: var(--ok-bg); border: 1px solid var(--ok-line); border-radius: 99px; padding: 7px 14px; }
.case-status i { width: 7px; height: 7px; border-radius: 50%; background: #2f9461; flex-shrink: 0; }
.case-built { margin-top: 64px; }
.case-built > h3 { font-size: 22px; margin-bottom: 14px; }
.case-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.case-block { display: grid; grid-template-columns: 24px minmax(0, 20em) minmax(0, 1fr); gap: 4px 18px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.case-block .ico { color: var(--accent); }
.case-block b { font-weight: 600; }
.case-block span { color: var(--muted); }

/* --- Cadre des démonstrations --------------------------------------------- */
.demo-section { padding: 80px 0; background: var(--wash); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.desk-intro { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.75rem; }
.desk-intro p { margin-top: .6rem; max-width: 36em; font-size: 1rem; line-height: 1.55; color: var(--navy-2); }
.desk-intro a { text-decoration: underline; text-underline-offset: .2em; color: var(--link); font-size: .95rem; }

/* --- Démo de l'assistant IA ----------------------------------------------- */
.assist-app { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; color: var(--navy); box-shadow: var(--shadow-card); }
.assist-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; padding: 1rem 1.4rem; color: #f2f7ff; background: var(--bar-bg); }
.assist-top b span { margin: 0 .5rem; color: #a8bdd5; }
.assist-top > span { font-size: .875rem; }
.assist-layout { display: grid; grid-template-columns: minmax(14rem, 26%) minmax(0, 1fr); }
.assist-inbox { background: var(--surface-2); border-right: 1px solid var(--line-strong); padding: 1rem; }
.assist-inbox h3 { font-size: .95rem; margin: .3rem .5rem 1rem; }
.assist-inbox button { display: block; width: 100%; color: var(--navy); background: transparent; border: 1px solid transparent; border-radius: 6px; text-align: left; padding: .8rem; font-size: 1rem; line-height: 1.4; }
.assist-inbox button:hover { background: var(--surface-3); }
.assist-inbox button[aria-pressed=true] { background: var(--surface); border-color: var(--line-strong); box-shadow: inset 3px 0 var(--accent-soft); }
.assist-inbox b { display: block; }
.assist-inbox small { display: block; margin-top: .15rem; color: var(--navy-3); font-size: .875rem; }
.assist-sheet { min-width: 0; padding: clamp(1.1rem, 2.5vw, 2rem); }
.assist-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; font-size: .875rem; color: var(--navy-3); }
#assist-state { border-radius: 4px; padding: .25rem .65rem; background: var(--blue-wash); color: var(--accent-strong); }
#assist-state[data-state=sent] { background: var(--ok-bg); color: var(--ok-text); }
#assist-state[data-state=escalated] { background: var(--warn-bg); color: var(--warn-text); }
#assist-guest { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.04em; margin: .5rem 0 0; }
.assist-label { display: block; margin: 1.5rem 0 .55rem; font: 600 13px/1.4 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--navy-3); }
.assist-label span { letter-spacing: 0; text-transform: none; font-weight: 400; }
#assist-message { margin: 0; padding: 1rem 1.2rem; background: var(--surface-2); border-left: 3px solid var(--deco-blue); border-radius: 0 6px 6px 0; font-size: 1.0625rem; line-height: 1.55; }
#assist-sources { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; font-size: .95rem; color: var(--navy-2); }
#assist-sources li { display: flex; gap: .6rem; }
#assist-sources li::before { content: '✓'; color: var(--accent-soft); flex-shrink: 0; }
#assist-draft { display: block; width: 100%; min-height: 12rem; padding: .9rem 1rem; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--navy); font-size: 1rem; line-height: 1.55; resize: vertical; }
#assist-draft[readonly] { background: var(--surface-2); border-color: var(--line-strong); }
#assist-reason { margin-top: 1.2rem; padding: 1rem 1.2rem; border-radius: 6px; background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-text); }
.assist-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.2rem; }
.assist-inbox .assist-reset { width: auto; margin-top: .9rem; padding: .5rem .8rem; font-size: .9rem; color: var(--link); text-decoration: underline; text-underline-offset: .2em; }
#assist-log { margin: 0; padding-left: 1.3rem; font-size: .95rem; color: var(--navy-2); }

/* --- Questions ------------------------------------------------------------ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 75px; }
.faq-items details { border-bottom: 1px solid var(--line); }
.faq-items details:first-child { border-top: 1px solid var(--line); }
.faq-items summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; cursor: pointer; padding: 19px 0; font-size: 17px; font-weight: 500; color: var(--ink); }
.faq-items summary::-webkit-details-marker { display: none; }
.faq-items summary span { font-size: 22px; font-weight: 400; color: var(--soft); flex-shrink: 0; transition: transform .2s; }
.faq-items details[open] summary span { transform: rotate(45deg); }
.faq-items details p { font-size: 16px; color: var(--muted); padding: 0 40px 22px 0; }

/* --- Contact -------------------------------------------------------------- */
.contact-section { padding: 88px 0; background: var(--wash); border-top: 1px solid var(--line-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 90px; }
.contact-grid h2 { font-size: clamp(34px, 3.8vw, 49px); line-height: 1.18; }
.contact-grid > div > p { font-size: 16px; color: var(--muted); margin-top: 24px; max-width: 30em; }
.contact-direct { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin-top: 28px; }
.contact-direct .button { gap: 10px; justify-content: flex-start; }
.contact-direct .ico { width: 20px; height: 20px; }
.contact-phone { font-size: 17px; font-weight: 550; color: var(--ink); text-decoration: underline; text-underline-offset: .25em; text-decoration-color: var(--line-strong); }
.contact-phone:hover { color: var(--accent); }
#contact-form label { display: block; font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 16px; }
#contact-form input, #contact-form select, #contact-form textarea { display: block; width: 100%; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 4px; color: var(--ink); padding: 12px 13px; margin-top: 6px; font-size: 16px; }
#contact-form textarea { resize: vertical; min-height: 96px; }
#contact-form ::placeholder { color: var(--soft); }
#contact-form input:focus, #contact-form select:focus, #contact-form textarea:focus { border-color: var(--accent); }
#contact-form .button { width: 100%; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 6px; font-size: 15px; border: 1px solid var(--ok-line); background: var(--ok-bg); color: var(--ok-text); }
.form-status[data-kind=error] { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn-text); }
.form-note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.form-note a { text-decoration: underline; text-underline-offset: .2em; color: var(--link); }
.form-result { background: var(--surface); border: 1px solid var(--line-2); padding: 16px; margin-top: 16px; border-radius: 4px; }
.form-result .button { width: auto !important; margin: 10px 8px 0 0; }
#draft-status { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* --- Pied de page --------------------------------------------------------- */
footer.wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }
footer .brand-mark, footer .brand-mark img { width: 34px; height: 34px; }
footer .brand-name { font-size: 23px; color: var(--ink); }
footer a:not(.brand) { text-decoration: underline; text-underline-offset: .2em; }
footer a:not(.brand):hover { color: var(--ink); }

/* --- Page « Nos réalisations » -------------------------------------------- */
.works-intro { padding-top: 72px; padding-bottom: 56px; }
.works-intro h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.1; letter-spacing: -.05em; font-weight: 550; }
.works-intro > p { font-size: 18px; color: var(--text); margin-top: 20px; max-width: 34em; }
.work { padding: 52px 0; border-top: 1px solid var(--line); }
.work h2 { font-size: clamp(26px, 2.6vw, 34px); }
.work-parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 28px 0 22px; }
.work-part { background: var(--surface); padding: 26px 26px 28px; min-width: 0; }
.work-part h3 { font: 600 13px/1.5 var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.work-part p { color: var(--text); }
.work-result { background: var(--blue-wash); }
.work-result h3 { color: var(--accent-strong); }
.work-result p { color: var(--accent-strong); font-weight: 500; }
.works-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-top: 64px; padding-bottom: 72px; border-top: 1px solid var(--line); }
.case-more { margin-top: 26px; padding: 16px 20px; background: var(--wash); border-radius: 8px; color: var(--text); }
.case-more b { color: var(--ink); font-weight: 600; }
.case-more .text-link { margin-left: 10px; white-space: nowrap; }

/* --- Pages de texte (confidentialité, mentions légales) -------------------- */
.legal { max-width: 860px; margin-left: auto; margin-right: auto; padding-top: 72px; padding-bottom: 96px; }
.legal h1 { font-size: clamp(34px, 4vw, 50px); line-height: 1.1; letter-spacing: -.05em; font-weight: 550; }
.legal-lead { font-size: 18px; color: var(--text); margin-top: 22px; padding: 18px 22px; background: var(--wash); border-radius: 8px; }
.legal h2 { font-size: 22px; letter-spacing: -.03em; font-weight: 600; margin-top: 44px; }
.legal p { margin-top: 12px; color: var(--text); }
.legal a:not(.button) { color: var(--link); text-decoration: underline; text-underline-offset: .2em; }
.legal a:not(.button):hover { color: var(--link-hover); }
.error-page { text-align: left; padding-top: 110px; padding-bottom: 140px; }
.error-page .button { margin-top: 28px; }
.legal-date { margin-top: 44px !important; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted) !important; }

/* --- Écrans intermédiaires ------------------------------------------------ */
@media (max-width: 1100px) {
  .wrap { padding-left: 36px; padding-right: 36px; }
  .nav { padding: 20px 36px; gap: 20px; }
  .nav nav { gap: 22px; }
  .hero { gap: 40px; padding-top: 72px; padding-bottom: 68px; }
  .section { padding-top: 76px; padding-bottom: 76px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 44px 40px; }
  .service-card, .service-card:first-child, .service-card:last-child { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .contact-grid { gap: 56px; }
  .faq { gap: 48px; }
}

@media (max-width: 880px) {
  .case-block { grid-template-columns: 24px minmax(0, 15em) minmax(0, 1fr); }
  .nav { flex-wrap: wrap; }
  .nav .nav-cta { margin-left: auto; }
  .nav nav { order: 3; flex: 1 1 60%; margin: 0; gap: 6px 22px; flex-wrap: wrap; }
  .theme-toggle { order: 4; }
  .nav nav a { display: inline-flex; align-items: center; min-height: 36px; }
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 56px; padding-bottom: 56px; }
  .hero-copy { max-width: 600px; }
  .hero h1 { font-size: clamp(38px, 10.5vw, 64px); }
  .hero-art { max-width: 620px; width: 100%; }
  .section-heading { display: block; margin-bottom: 36px; }
  .section-heading > p { margin-top: 18px; max-width: 36em; }
  .faq { grid-template-columns: 1fr; gap: 26px; }
  .work-parts { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .assist-layout { grid-template-columns: minmax(0, 1fr); }
  .assist-inbox { border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .assist-inbox h3 { margin-bottom: .4rem; }
  #assist-list { display: flex; gap: .3rem; overflow-x: auto; padding: .2rem; }
  .assist-inbox button { flex: 0 0 auto; width: auto; }
}

/* --- Téléphones ----------------------------------------------------------- */
@media (max-width: 620px) {
  .wrap { padding-left: 22px; padding-right: 22px; }
  .nav { padding: 16px 22px; gap: 10px 14px; }
  .nav nav { gap: 2px 18px; }
  .nav nav .l { display: none; }
  .nav nav .s { display: inline; }
  .brand-name { font-size: 24px; }
  .brand-mark, .brand-mark img { width: 34px; height: 34px; }
  .nav-cta { font-size: 13px; padding: 10px 12px; }
  .nav-cta span { margin-left: 8px; }
  .hero { padding-top: 40px; padding-bottom: 44px; gap: 36px; }
  .hero-lead { font-size: 17px; margin-top: 22px; }
  .hero-actions { margin-top: 26px; }
  .hero-art { display: none; }   /* illustration décorative : masquée sur téléphone */
  .section { padding-top: 60px; padding-bottom: 60px; }
  .service-grid { grid-template-columns: 1fr; gap: 36px; }
  .case-built { margin-top: 48px; }
  .case-block { grid-template-columns: 24px minmax(0, 1fr); }
  .case-block span { grid-column: 2; }
  .case-results { font-size: 16px; }
  .case-results thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .case-results, .case-results tbody, .case-results tr, .case-results th, .case-results td { display: block; width: auto; }
  .case-results tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .case-results th, .case-results td { padding: 0; border: 0; }
  .case-results tbody th { width: auto; margin-bottom: 8px; }
  .case-results tbody td { width: auto; display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 10px; margin-top: 4px; }
  .case-results td::before { content: attr(data-label); font-size: 14px; font-weight: 400; color: var(--muted); }
  .demo-section { padding: 56px 0; }
  .legal { padding-top: 44px; padding-bottom: 60px; }
  .legal h2 { margin-top: 36px; }
  .works-intro { padding-top: 44px; padding-bottom: 40px; }
  .work { padding: 40px 0; }
  .work-part { padding: 22px; }
  .works-cta { padding-top: 48px; padding-bottom: 52px; }
  .assist-actions .button { width: 100%; }
  #assist-draft { min-height: 17rem; }
  .case-status { border-radius: 14px; }
  .contact-section { padding: 56px 0; }
  .form-row { grid-template-columns: 1fr; }
  .faq-items details p { padding-right: 0; }
  footer.wrap { justify-content: flex-start; }
}

@media (max-width: 360px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .nav { padding: 14px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
