/* OphtaDesk, site vitrine
   Concept : une interface clinique, nette et lumineuse. Le fond est un blanc
   froid « salle d'examen », l'encre un bleu nuit, l'accent un vert-bleu
   « iris » ; l'ambre n'apparaît que pour les signaux (statuts, points rouges
   du logiciel). Une seule famille (Plus Jakarta Sans) pour tout le site, hiérarchie par graisse et taille comme dans les grilles du logiciel. */

:root {
  --bg: #f6f8fb;
  --bg-elev: #ffffff;
  --bg-sunk: #eaeff5;
  --fg: #0f1b2d;
  --fg-muted: #51607a;
  --line: #d6dde8;
  --accent: #0e7c86;
  --accent-ink: #ffffff;
  --accent-soft: #d9f0f2;
  --signal: #d98a1f;
  --signal-soft: #fdeed6;
  --ok: #2f8f5b;
  --ok-soft: #dcf2e5;
  --danger: #c43d3d;
  --shadow: 0 10px 30px rgba(15, 27, 45, 0.08), 0 1px 2px rgba(15, 27, 45, 0.06);
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --max: 1180px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b1220;
  --bg-elev: #121b2c;
  --bg-sunk: #0f172a;
  --fg: #e8edf5;
  --fg-muted: #9aa8bf;
  --line: #253147;
  --accent: #3fc1c9;
  --accent-ink: #06202a;
  --accent-soft: #113b43;
  --signal: #f0ad4e;
  --signal-soft: #3d2d12;
  --ok: #5ccc8a;
  --ok-soft: #153426;
  --danger: #ef6b6b;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--fg-muted); max-width: 62ch; }
.muted { color: var(--fg-muted); }
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-flag { display: inline-flex; align-items: center; gap: 8px; }
.flag-ch { width: 16px; height: 16px; flex: none; }
.flag-inline { display: inline-block; vertical-align: -2px; margin-left: 4px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
body { font-variant-numeric: tabular-nums; word-spacing: 0.06em; }
h1, h2, h3, h4 { word-spacing: 0.04em; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
section { padding-block: clamp(56px, 8vw, 110px); }
.section-head { display: grid; gap: 12px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 52px); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.brand img { width: 30px; height: 30px; display: block; }
.nav-links { display: flex; gap: 22px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { text-decoration: none; color: var(--fg-muted); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg-elev); color: var(--fg);
  display: grid; place-items: center; cursor: pointer;
}
.theme-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: var(--bg-elev); border-radius: 8px; color: var(--fg); cursor: pointer; }
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-elev); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 10px 0; }
  .menu-btn { display: inline-grid; place-items: center; }
  .nav-actions { margin-left: auto; }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-ghost { background: var(--bg-elev); border-color: var(--line); color: var(--fg); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
/* Fond léger : halos bleu, turquoise et vert (couleurs du logo) et anneaux d'iris en filigrane derrière l'ordinateur */
.hero { --fx: 80%; --fy: 54%; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(48% 62% at var(--fx) var(--fy), rgba(23, 195, 192, 0.15), transparent 70%),
    radial-gradient(34% 44% at 94% 18%, rgba(27, 155, 232, 0.12), transparent 70%),
    radial-gradient(34% 40% at 62% 92%, rgba(34, 230, 168, 0.11), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-radial-gradient(circle at var(--fx) var(--fy), transparent 0 78px, rgba(10, 108, 134, 0.10) 78px 79px);
  -webkit-mask-image: radial-gradient(circle at var(--fx) var(--fy), #000 0, rgba(0, 0, 0, 0.7) 22%, transparent 48%);
  mask-image: radial-gradient(circle at var(--fx) var(--fy), #000 0, rgba(0, 0, 0, 0.7) 22%, transparent 48%);
}
@media (max-width: 900px) { .hero { --fx: 50%; --fy: 80%; } }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; position: relative; z-index: 1; }
.hero .wrap > * { min-width: 0; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.7rem); }
.hero-copy { display: grid; gap: 22px; }
.hero-copy h1 em { font-style: normal; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 6px 0 0; }
.hero-tags li { font-family: var(--font-mono); font-size: 0.76rem; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-elev); color: var(--fg-muted); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Maquette de dossier patient (CSS pur) */
.mock {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  overflow: hidden; font-size: 0.82rem; min-width: 0;
}
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-sunk); }
.mock-bar .dots { display: flex; gap: 5px; }
.mock-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.mock-bar .title { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; }
.mock-bar .badge { margin-left: auto; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.02em; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-signal { background: var(--signal-soft); color: var(--signal); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.mock-tabs { display: flex; gap: 2px; padding: 8px 10px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.mock-tabs span { padding: 7px 10px; border-radius: 8px 8px 0 0; white-space: nowrap; color: var(--fg-muted); font-weight: 600; font-size: 0.78rem; position: relative; }
.mock-tabs span.on { color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-bottom-color: var(--bg); margin-bottom: -1px; }
.mock-tabs span.dot::after { content: ""; position: absolute; top: 6px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); }
.mock-body { padding: 14px; display: grid; gap: 12px; }
.mock-grid { display: grid; grid-template-columns: 54px repeat(5, 1fr); gap: 6px 8px; align-items: center; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.mock-grid .h { color: var(--fg-muted); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.mock-grid .eye { font-family: var(--font-display); font-weight: 700; color: var(--accent); }
.mock-grid .v { background: var(--bg-sunk); border-radius: 5px; padding: 5px 7px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mock-chip { padding: 5px 9px; border-radius: 6px; background: var(--bg-sunk); font-family: var(--font-mono); font-size: 0.74rem; }
.mock-note { border-left: 3px solid var(--accent); padding: 8px 10px; background: var(--accent-soft); border-radius: 0 6px 6px 0; color: var(--fg); }
.mock-toast {
  position: absolute; right: 16px; bottom: 16px; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 8px;
  font-size: 0.78rem; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow);
  animation: toast-in 0.8s ease 1.2s both;
}
.mock-wrap { position: relative; min-width: 0; }
.mock-grid .v { font-size: 0.78rem; }
@media (max-width: 480px) { .mock-grid { grid-template-columns: 40px repeat(5, 1fr); gap: 5px 4px; } .mock-grid .v { padding: 4px 5px; font-size: 0.7rem; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Bandeau défilant (style flash info) ---------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-elev); padding-block: 14px; overflow: hidden; }
.ticker { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.strip:hover .ticker, .strip:focus-within .ticker { animation-play-state: paused; }
.ticker-track { display: flex; flex: none; list-style: none; margin: 0; padding: 0; }
.ticker-track li {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding-inline: 22px; border-right: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--fg-muted);
}
.ticker-track .ti { width: 20px; height: 20px; color: var(--accent); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .strip { overflow-x: auto; }
  .ticker { width: auto; }
  .ticker-track[aria-hidden="true"] { display: none; }
}

/* ---------- Grilles de cartes ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: grid; gap: 10px; align-content: start; min-width: 0;
}
.card .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.card .icon svg { width: 22px; height: 22px; }
.card p { color: var(--fg-muted); font-size: 0.98rem; }
.card ul { margin: 4px 0 0; padding-left: 18px; color: var(--fg-muted); font-size: 0.95rem; display: grid; gap: 4px; }
.card.feature-lg { grid-column: span 2; }
@media (max-width: 620px) { .card.feature-lg { grid-column: auto; } }

/* ---------- Sections à deux colonnes ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split > * { min-width: 0; }
.split.reverse > .split-copy { order: 2; }
.split-copy { display: grid; gap: 16px; }
.split-copy ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; }
.split-copy li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--fg-muted); }
.split-copy li svg { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.split-copy li strong { color: var(--fg); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > .split-copy { order: 0; } }

/* ---------- Flux (4 étapes) ---------- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; counter-reset: step; }
.flow::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 2px; background: var(--line); }
.flow-step { position: relative; padding: 0 16px; display: grid; gap: 10px; align-content: start; text-align: center; }
.flow-step .num { counter-increment: step; width: 54px; height: 54px; border-radius: 50%; background: var(--bg-elev); border: 2px solid var(--accent); color: var(--accent); display: grid; place-items: center; margin-inline: auto; font-family: var(--font-display); font-weight: 700; position: relative; }
.flow-step .num::after { content: counter(step); }
.flow-step .where { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); }
.flow-step p { color: var(--fg-muted); font-size: 0.96rem; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 22px; }
  .flow::before { display: none; }
  .flow-step { text-align: left; grid-template-columns: 54px 1fr; column-gap: 14px; }
  .flow-step .num { grid-row: span 3; margin: 0; }
}

/* ---------- Rôles ---------- */
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.role { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 8px; min-width: 0; }
.role h4 { display: flex; align-items: center; gap: 8px; }
.role h4 i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; }
.role p { color: var(--fg-muted); font-size: 0.93rem; }
@media (max-width: 980px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .roles { grid-template-columns: 1fr; } }

/* ---------- Maquettes thématiques ---------- */
.mock-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.74rem; font-variant-numeric: tabular-nums; }
.mock-table th, .mock-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mock-table th { color: var(--fg-muted); font-weight: 500; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; }
.mock-table td.r { text-align: right; }
.mock-scroll { overflow-x: auto; }

.hess { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hess svg { width: 100%; height: auto; display: block; border-radius: 6px; background: var(--bg-sunk); }

.calendar { display: grid; grid-template-columns: 44px repeat(3, 1fr); gap: 4px; font-size: 0.74rem; }
.calendar .hd { font-family: var(--font-display); font-weight: 600; text-align: center; padding: 4px; color: var(--fg-muted); }
.calendar .t { font-family: var(--font-mono); color: var(--fg-muted); padding: 6px 2px; font-size: 0.68rem; }
.calendar .slot { background: var(--bg-sunk); border-radius: 5px; min-height: 30px; }
.calendar .ev { border-radius: 5px; padding: 5px 7px; font-weight: 600; line-height: 1.2; min-height: 30px; }
.calendar .ev small { display: block; font-weight: 400; color: inherit; opacity: 0.8; font-family: var(--font-mono); font-size: 0.64rem; }
.ev-a { background: var(--accent-soft); color: var(--accent); }
.ev-b { background: var(--ok-soft); color: var(--ok); }
.ev-c { background: var(--signal-soft); color: var(--signal); }

.chat { display: grid; gap: 8px; }
.chat .msg { max-width: 82%; padding: 8px 11px; border-radius: 12px; background: var(--bg-sunk); font-size: 0.8rem; }
.chat .msg.me { margin-left: auto; background: var(--accent-soft); }
.chat .meta { font-family: var(--font-mono); font-size: 0.64rem; color: var(--fg-muted); margin-top: 3px; }

/* ---------- Nouveautés (timeline) ---------- */
.news { display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 8px; }
.news-item { position: relative; padding: 0 0 26px 26px; display: grid; gap: 6px; }
.news-item::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.news-item .when { font-family: var(--font-mono); font-size: 0.74rem; color: var(--fg-muted); letter-spacing: 0.06em; }
.news-item p { color: var(--fg-muted); max-width: 70ch; }

/* ---------- Chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat { display: grid; gap: 4px; padding: 18px 0; border-top: 2px solid var(--accent); }
.stat b { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--fg-muted); font-size: 0.95rem; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- CTA + pied de page ---------- */
.cta { background: var(--fg); color: var(--bg); border-radius: 20px; padding: clamp(32px, 5vw, 64px); display: grid; gap: 18px; justify-items: start; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -10%; top: -40%; width: 50%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%); pointer-events: none; }
.cta h2, .cta p { position: relative; }
.cta p { color: color-mix(in srgb, var(--bg) 75%, transparent); max-width: 60ch; }
.cta .hero-actions { position: relative; }
.cta .btn-primary { position: relative; }
footer { border-top: 1px solid var(--line); padding-block: 36px; color: var(--fg-muted); font-size: 0.92rem; }
footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
footer h4 { color: var(--fg); margin-bottom: 8px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--fg); }
footer .copy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: 0.85rem; }
@media (max-width: 800px) { footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Catalogue (fonctionnalites.html) ---------- */
.page-head { padding-block: clamp(40px, 6vw, 80px) 10px; display: grid; gap: 14px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 10px 0 0; }
.toc a { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-elev); text-decoration: none; font-size: 0.9rem; font-weight: 600; color: var(--fg-muted); }
.toc a:hover { color: var(--fg); border-color: var(--accent); }
.module { padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); }
.module-head { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 24px; max-width: 760px; }
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; display: grid; gap: 6px; min-width: 0; }
.feature h4 { font-size: 1rem; }
.feature p { color: var(--fg-muted); font-size: 0.93rem; }
.feature .tag { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 980px) { .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feature-list { grid-template-columns: 1fr; } }

/* ---------- Apparition au défilement (état de repos visible) ---------- */
.reveal { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal:not(.in) { opacity: 0.001; transform: translateY(14px); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Partenaires ---------- */
.partners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.partners li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.partners li:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.partners a { display: grid; gap: 18px; justify-items: center; text-align: center; padding: 28px 24px 20px; text-decoration: none; color: inherit; border-radius: var(--radius); }
.partners img { height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.partners span { color: #51607a; font-size: 0.95rem; }
@media (max-width: 620px) { .partners { grid-template-columns: 1fr; } }

.nav-cta { padding: 9px 18px; font-size: 0.92rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.contact-form { display: grid; gap: 14px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.contact-form input, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form .btn { justify-self: start; }
.form-status { min-height: 1.4em; font-size: 0.95rem; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }
.contact-phone { display: grid; gap: 10px; align-content: start; }
.contact-phone a.tel { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); text-decoration: none; color: var(--accent); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } .contact-form .row { grid-template-columns: 1fr; } }

/* Héro en pleine page à l'arrivée (hauteur de l'écran moins la barre de navigation) */
.hero { min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); display: flex; align-items: center; }
.hero .wrap { width: 100%; }

section.tone { background: var(--bg-elev); border-block: 1px solid var(--line); }

/* ---------- Ordinateur portable 3D (héro) : ouverture à l'arrivée, fermeture au défilement ---------- */
.laptop-wrap { --close: 0; container-type: inline-size; width: 100%; max-width: 680px; margin-inline: auto; aspect-ratio: 1 / 0.82; position: relative; perspective: 1700px; perspective-origin: 50% 35%; }
.laptop {
  --W: 84cqw; --H: 53cqw; --D: 54cqw; --T: 2.4cqw; --LT: 0.7cqw; --R: 2.8cqw;
  position: absolute; left: 26cqw; top: 6cqw; width: var(--W); height: var(--H);
  transform-style: preserve-3d; transform-origin: 50% 100%;
  transform: rotateX(-17deg) rotateY(-24deg);
}
/* .lid : animation d'ouverture ; .lid-pivot : angle piloté par le défilement */
.lid { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 100%; animation: lid-open 1.05s cubic-bezier(0.25, 0.9, 0.3, 1) 0.1s both; }
.lid-pivot { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 100%; transform: rotateX(calc(7deg - var(--close) * 97deg)); }
.lid-front, .lid-back { position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--R) var(--R) 0.5cqw 0.5cqw; }
.lid-front { transform: translateZ(calc(var(--LT) / 2)); background: #0c0d10; box-shadow: inset 0 0 0 0.12cqw #4a4e57; }
.lid-back { transform: rotateY(180deg) translateZ(calc(var(--LT) / 2)); background: linear-gradient(135deg, #eceff3 0%, #c2c8d0 55%, #aeb4bd 100%); display: grid; place-items: center; box-shadow: inset 0 0 0 0.12cqw #f6f7f9; }
.lid-back img { width: 9%; height: auto; opacity: 0.85; }
.lid-edge { position: absolute; left: 1.2%; right: 1.2%; top: 0; height: var(--LT); transform-origin: 50% 0; transform: translateZ(calc(var(--LT) / -2)) rotateX(90deg); background: linear-gradient(#cfd4db, #9fa5af); border-radius: 0.3cqw; }
.bezel { position: absolute; inset: 0; padding: 1.2cqw 1.2cqw 1.5cqw; border-radius: inherit; }
.cam { position: absolute; top: 0.4cqw; left: 50%; width: 0.55cqw; aspect-ratio: 1; border-radius: 50%; background: #23262b; box-shadow: 0 0 0 0.1cqw #15171b; transform: translateX(-50%); z-index: 2; }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 0.7cqw; background: linear-gradient(150deg, #e9f6f8, #d3eaf0); display: grid; place-items: center; animation: screen-on 0.5s ease 0.85s both; }
.screen .notch { position: absolute; top: 0; left: 50%; width: 11%; height: 3.4%; background: #0c0d10; border-radius: 0 0 0.7cqw 0.7cqw; transform: translateX(-50%); z-index: 2; }
.screen-logo { width: 22%; height: auto; }
.screen-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.glare { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,0.30) 0%, rgba(255,255,255,0.06) 32%, rgba(255,255,255,0) 45%); pointer-events: none; z-index: 3; }
.deck-top {
  position: absolute; left: 0; top: 100%; width: 100%; height: var(--D); transform-origin: 50% 0; transform: rotateX(90deg);
  background: linear-gradient(180deg, #c3c8d0 0%, #d6dae0 18%, #e1e4e9 100%); border-radius: 0.5cqw 0.5cqw var(--R) var(--R);
  box-shadow: inset 0 0 0 0.12cqw #f4f5f7;
}
.deck-top .hinge { position: absolute; left: 1%; right: 1%; top: 0; height: 2.2%; background: linear-gradient(180deg, #14161a, #2b2e35); border-radius: 0 0 0.5cqw 0.5cqw; }
.deck-top .speaker { position: absolute; top: 9%; width: 4.6%; height: 44%; background-image: radial-gradient(circle, #5b616b 0.16cqw, transparent 0.2cqw); background-size: 0.9cqw 0.9cqw; opacity: 0.75; }
.deck-top .speaker.l { left: 1.4%; }
.deck-top .speaker.r { right: 1.4%; }
.deck-top .fkeys { position: absolute; left: 7%; right: 7%; top: 5.5%; height: 4.2%; background-color: #262930; background-image: linear-gradient(90deg, transparent calc(100% - 0.4cqw), #d3d7dd 0); background-size: 5.55cqw 100%; border-radius: 0.5cqw 0.5cqw 0 0; }
.deck-top .keys {
  position: absolute; left: 7%; right: 7%; top: 10.6%; height: 44%; border-radius: 0 0 0.6cqw 0.6cqw; background-color: #262930;
  background-image:
    linear-gradient(90deg, transparent calc(100% - 0.4cqw), #d3d7dd 0),
    linear-gradient(180deg, transparent calc(100% - 0.4cqw), #d3d7dd 0);
  background-size: 5.1cqw 4.3cqw;
  box-shadow: inset 0 0 0 0.5cqw #262930;
}
.deck-top .pad { position: absolute; left: 33%; width: 34%; bottom: 7%; height: 27%; border: 0.14cqw solid #b1b7c0; border-radius: 1cqw; background: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.15)); box-shadow: inset 0 0.15cqw 0.4cqw rgba(0,0,0,0.12); }
/* épaisseur de la base : tranches superposées au même contour arrondi, du dessus (clair) au dessous (sombre) */
.deck-body { position: absolute; inset: 0; transform-style: preserve-3d; }
.deck-body span {
  position: absolute; left: 0; top: 100%; width: 100%; height: var(--D);
  border-radius: 0.5cqw 0.5cqw var(--R) var(--R);
  transform-origin: 50% 0; transform: rotateX(90deg) translateZ(calc(var(--i) * var(--T) / -12));
  background: color-mix(in srgb, #bfc4cc, #868c96 calc(var(--i) * 8.33%));
}
.ground { position: absolute; left: 10%; right: 2%; bottom: 2%; height: 16%; background: radial-gradient(closest-side, rgba(15, 27, 45, 0.34), transparent); filter: blur(7px); animation: ground-in 1s ease 0.1s both; }
@keyframes lid-open { from { transform: rotateX(-90deg); } to { transform: rotateX(0deg); } }
@keyframes screen-on { from { opacity: 0; filter: brightness(2.4); } to { opacity: 1; filter: none; } }
@keyframes ground-in { from { opacity: 0.35; } to { opacity: 1; } }
@media (max-width: 1240px) { .laptop { left: 12cqw; } }
/* grands écrans : on pousse l'ordinateur vers le bord droit, sans qu'il soit coupé */
@media (min-width: 1241px) { .laptop-wrap { translate: max(0px, calc(((100vw - 1180px) / 2 - 92px) * 2 / 3 - 14px)) 0; } }
@media (max-width: 900px) {
  .laptop-wrap { max-width: 560px; }
  .laptop { --W: 72cqw; --H: 45.5cqw; --D: 46cqw; left: 23cqw; top: 8cqw; transform: rotateX(-15deg) rotateY(-17deg); }
}
@media (prefers-reduced-motion: reduce) { .lid, .screen, .ground { animation: none; } .lid-pivot { transform: rotateX(7deg); } }

/* ---------- Modules : cartes à fond animé (inspiré des cartes « shader ») ---------- */
.shader-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.shader-card { position: relative; border-radius: 24px; overflow: hidden; min-height: 320px; isolation: isolate; background: var(--c0); }
.sc-bg {
  position: absolute; inset: -20%; z-index: 0; background-color: var(--c0);
  background-image:
    radial-gradient(50% 55% at 18% 22%, var(--c1), transparent 62%),
    radial-gradient(48% 58% at 82% 28%, var(--c2), transparent 62%),
    radial-gradient(52% 60% at 70% 86%, var(--c3), transparent 64%),
    radial-gradient(45% 55% at 12% 88%, var(--c4), transparent 62%);
  animation: sc-drift var(--d, 12s) ease-in-out infinite alternate;
}
.shader-card[data-shape="dots"]::before, .shader-card[data-shape="checks"]::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.8; mix-blend-mode: soft-light; }
.shader-card[data-shape="dots"]::before { background-image: radial-gradient(rgba(255,255,255,0.55) 1.2px, transparent 1.8px); background-size: 14px 14px; }
.shader-card[data-shape="checks"]::before { background-image: conic-gradient(rgba(255,255,255,0.35) 25%, transparent 0 50%, rgba(255,255,255,0.35) 0 75%, transparent 0); background-size: 26px 26px; }
.sc-body {
  position: relative; z-index: 1; height: 100%; min-height: inherit; padding: 28px; display: flex; flex-direction: column; gap: 12px;
  background: rgba(6, 18, 32, 0.40); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: inherit; color: #fff;
}
.sc-icon { width: 38px; height: 38px; color: #fff; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); margin-bottom: 6px; }
.sc-body h3 { color: #fff; font-size: 1.4rem; }
.sc-body p { color: rgba(255, 255, 255, 0.9); font-size: 0.97rem; flex-grow: 1; }
.sc-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: #fff; font-weight: 700; font-size: 0.9rem; text-decoration: none; opacity: 0.9; }
.sc-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.sc-link:hover { opacity: 1; text-decoration: underline; }
.sc-link:hover svg { transform: translateX(3px); }
.shader-card:hover .sc-bg { animation-duration: 5s; }
@keyframes sc-drift { from { transform: translate(-3%, -2%) scale(1) rotate(0deg); } to { transform: translate(3%, 3%) scale(1.18) rotate(8deg); } }
@media (max-width: 980px) { .shader-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .shader-grid { grid-template-columns: 1fr; } .shader-card { min-height: 0; } }

/* ---------- Flux : étapes en cartes à fond animé ---------- */
.shader-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.shader-grid.cols-4 .shader-card { min-height: 400px; }
.sc-step { font-family: var(--font-display); font-weight: 700; font-size: 3.2rem; line-height: 1; letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.92); font-variant-numeric: lining-nums tabular-nums; margin-bottom: 2px; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25); }
.sc-where { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
@media (max-width: 1100px) { .shader-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shader-grid.cols-4 .shader-card { min-height: 0; } }
@media (max-width: 620px) { .shader-grid.cols-4 { grid-template-columns: 1fr; } }

/* ---------- Style « fond animé » généralisé : colonnes, rôles, fonctionnalités, bloc final ---------- */
:is(.card, .role, .feature) {
  --c0: #0a3d63; --c1: #1b9be8; --c2: #17c3c0; --c3: #22e6a8; --c4: #0b5f8a;
  position: relative; isolation: isolate; overflow: hidden; background: var(--c0); border: 0; color: #fff;
  border-radius: 20px; padding: 24px; gap: 8px;
}
:is(.card, .role, .feature):nth-child(4n+2) { --c0: #0a4a52; --c1: #17c3c0; --c2: #0e7c86; --c3: #1b9be8; --c4: #22e6a8; --d: 16s; }
:is(.card, .role, .feature):nth-child(4n+3) { --c0: #0a4d3d; --c1: #22e6a8; --c2: #17c3c0; --c3: #0b8f6a; --c4: #1b9be8; --d: 13s; }
:is(.card, .role, .feature):nth-child(4n+4) { --c0: #0c4170; --c1: #1b9be8; --c2: #2a8fd6; --c3: #17c3c0; --c4: #0a5a8a; --d: 18s; }
:is(.card, .role, .feature)::before {
  content: ""; position: absolute; inset: -25%; z-index: -1; background-color: var(--c0);
  background-image:
    radial-gradient(50% 55% at 18% 22%, var(--c1), transparent 62%),
    radial-gradient(48% 58% at 82% 28%, var(--c2), transparent 62%),
    radial-gradient(52% 60% at 70% 86%, var(--c3), transparent 64%),
    radial-gradient(45% 55% at 12% 88%, var(--c4), transparent 62%);
  animation: sc-drift var(--d, 14s) ease-in-out infinite alternate;
}
:is(.role, .feature)::before { animation-play-state: paused; }
:is(.role, .feature):hover::before { animation-play-state: running; }
:is(.card, .role, .feature)::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background: rgba(6, 18, 32, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
:is(.card, .role, .feature) > * { position: relative; z-index: 1; }
:is(.card, .role, .feature) :is(h3, h4) { color: #fff; }
:is(.card, .role, .feature) p { color: rgba(255, 255, 255, 0.88); }
.role h4 { color: #fff; }
.feature .tag { color: #86f0d3; }
.feature-list { gap: 16px; }
.role { border-radius: 18px; padding: 20px; }
.feature { border-radius: 18px; padding: 20px; }

.cta { background: #0b3652; }
.cta::after { display: none; }
.cta::before {
  content: ""; position: absolute; inset: -30%; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(40% 50% at 20% 25%, rgba(27, 155, 232, 0.8), transparent 62%),
    radial-gradient(40% 50% at 85% 30%, rgba(23, 195, 192, 0.75), transparent 62%),
    radial-gradient(45% 55% at 65% 90%, rgba(34, 230, 168, 0.7), transparent 64%);
  animation: sc-drift 16s ease-in-out infinite alternate;
}
.cta > * { position: relative; z-index: 1; }

:is(.role, .feature) { align-content: start; }

/* =========================================================
   Finitions premium : effets fins et discrets
   ========================================================= */
html { scroll-padding-top: 84px; }
::selection { background: rgba(23, 195, 192, 0.28); color: inherit; }

/* barre de progression de lecture */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, #1b9be8, #17c3c0, #22e6a8); pointer-events: none; }

/* barre de navigation : verre fin une fois la page défilée */
.nav { transition: box-shadow 0.3s ease, background-color 0.3s ease; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 10px 30px -18px rgba(15, 27, 45, 0.35); }

/* bandeau défilant : fondu sur les bords */
.strip { -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }

/* titre du héro : mot clé en dégradé */
.hero-copy h1 em { background: linear-gradient(100deg, #0e7c86 0%, #1b9be8 55%, #17b79a 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* boutons : reflet qui traverse au survol + halo */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: transform 0.15s ease, box-shadow 0.25s ease, background-color 0.2s ease; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%); transform: translateX(-120%); transition: transform 0.7s ease; }
.btn:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 10px 26px -8px rgba(14, 124, 134, 0.65); }

/* l'ordinateur flotte très légèrement */
.laptop-wrap { animation: float 9s ease-in-out 2s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* halos du héro : léger parallaxe avec la souris */
.hero::before { transform: translate3d(calc(var(--px, 0) * 14px), calc(var(--py, 0) * 10px), 0); transition: transform 0.4s ease-out; }

/* cartes : projecteur qui suit le curseur */
.sc-body::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity 0.3s ease; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.20), transparent 62%); }
.shader-card:hover .sc-body::before { opacity: 1; }
.sc-body > * { position: relative; z-index: 1; }
:is(.card, .role, .feature)::after { background: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 255, 255, 0.18), transparent 62%), rgba(6, 18, 32, 0.42); }

/* grain fin sur les dégradés (supprime les bandes de couleur) */
.sc-body { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.08'/></svg>"); background-size: 160px 160px; }
.shader-card { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease; }
.shader-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -24px rgba(8, 40, 70, 0.55); }
.card:hover, .role:hover, .feature:hover { transform: translateY(-2px); }
:is(.card, .role, .feature) { transition: transform 0.3s ease; }

/* apparition : léger flou, et décalage entre cartes voisines */
.js .reveal:not(.in) { filter: blur(5px); }
.reveal { transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.7s ease; }
.shader-grid > .reveal:nth-child(3n+2), .feature-list > .reveal:nth-child(3n+2), .roles > .reveal:nth-child(4n+2) { transition-delay: 0.08s; }
.shader-grid > .reveal:nth-child(3n), .feature-list > .reveal:nth-child(3n), .roles > .reveal:nth-child(4n+3) { transition-delay: 0.16s; }
.shader-grid.cols-4 > .reveal:nth-child(4n+2) { transition-delay: 0.08s; }
.shader-grid.cols-4 > .reveal:nth-child(4n+3) { transition-delay: 0.16s; }
.shader-grid.cols-4 > .reveal:nth-child(4n) { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .js .reveal:not(.in) { filter: none; } .laptop-wrap { animation: none; } }
@media (hover: none) { .shader-card:hover { transform: none; box-shadow: none; } }

/* =========================================================
   Accessibilité, SEO et mobile
   ========================================================= */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: clip; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: top 0.2s ease; }
.skip-link:focus { top: 12px; }
.nav-main { display: contents; }
.wrap { padding-inline: max(20px, env(safe-area-inset-left), env(safe-area-inset-right)); }
.nav .wrap { padding-top: env(safe-area-inset-top); }
@media (max-width: 860px) {
  .menu-btn { width: 44px; height: 44px; }
  .nav-links a { padding: 14px 0; }
  .nav-cta { padding: 11px 18px; }
}
@media (pointer: coarse) {
  .toc a { padding: 12px 14px; }
  .btn { min-height: 46px; }
  footer a { display: inline-block; padding-block: 6px; }
}
@media (max-width: 560px) {
  section { padding-block: clamp(48px, 12vw, 72px); }
  .section-head { margin-bottom: 28px; }
  footer .wrap { padding-bottom: env(safe-area-inset-bottom); }
}
