@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/figtree-latin.woff2") format("woff2");
}

/* ======================================================================== */
/* ==========================================================================
   Y - To Do — site vitrine
   Signature : le point violet qui clôt chaque titre, comme dans les applications.
   ========================================================================== */

:root {
  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --accent: #8a7cf6;
  --accent-strong: #6f5ef0;
  --accent-soft: rgba(138, 124, 246, .16);
  --lavender: #cfc8ff;
  --ok: #4fc79b;
  --warn: #eeb35a;
  --danger: #f27a8e;
  --orange: #f0a070;

  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 20px;
  --wrap: 1180px;
  --nav-h: 68px;
}

:root[data-theme="dark"] {
  --bg: #0f0e21;
  --bg-2: #15132b;
  --panel: #1b1937;
  --panel-2: #232049;
  --line: rgba(196, 188, 255, .13);
  --text: #eeebff;
  --muted: #a19dca;
  --nav-bg: rgba(15, 14, 33, .82);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f6f6fc;
  --bg-2: #eceaf8;
  --panel: #ffffff;
  --panel-2: #f1effc;
  --line: rgba(40, 30, 120, .13);
  --text: #17143a;
  --muted: #5f5c88;
  --accent: #6a58e8;
  --accent-soft: rgba(106, 88, 232, .12);
  --nav-bg: rgba(246, 246, 252, .85);
  --shadow: 0 30px 80px -34px rgba(50, 40, 140, .35);
  color-scheme: light;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65;
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent-strong); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout ------------------------------------------------------------------ */
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section + .section { border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-2); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 56ch; line-height: 1.6; }
.measure { max-width: 62ch; }
.muted { color: var(--muted); }

/* La signature : un point violet au bout du titre */
.sig::after { content: "."; color: var(--accent); }
h1.sig, h1 { font-size: clamp(2.7rem, 6.4vw, 5.4rem); font-weight: 800; letter-spacing: -.045em; line-height: .98; }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); letter-spacing: -.04em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -.025em; }

/* Navigation -------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.04em; color: var(--text); text-decoration: none; }
.mark { width: 26px; height: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.mark i { border-radius: 50%; background: var(--accent); }
.mark i:nth-child(2), .mark i:nth-child(3) { background: var(--lavender); }
:root[data-theme="light"] .mark i:nth-child(2), :root[data-theme="light"] .mark i:nth-child(3) { background: #b9aef7; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: .97rem; font-weight: 500; transition: background .2s, color .2s; }
.nav-links a:hover { color: var(--text); background: var(--accent-soft); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--accent-soft); font-weight: 600; }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; transition: background .2s; }
.icon-btn:hover { background: var(--accent-soft); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-ico-sun { display: none; }
:root[data-theme="dark"] .theme-ico-sun { display: block; }
:root[data-theme="dark"] .theme-ico-moon { display: none; }
.burger { display: none; }

/* Boutons ----------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 1rem; text-decoration: none; transition: transform .15s, background .2s, border-color .2s, box-shadow .2s; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-strong); color: #fff; box-shadow: 0 10px 30px -12px rgba(111, 94, 240, .9); }
.btn-primary:hover { background: #7d6cf6; }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: .92rem; border-radius: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero (accueil) ---------------------------------------------------------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 110px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto 35%; height: 90%; background: radial-gradient(closest-side, rgba(138, 124, 246, .25), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.hero h1 { margin-bottom: 26px; }
.hero .lead { margin-bottom: 34px; }
.hero-note { margin-top: 22px; font-size: .95rem; color: var(--muted); }
.hero-demo { margin-right: calc(-1 * clamp(0px, 4vw, 70px)); }

/* Sous-navigation d'une page produit --------------------------------------- */
.page-hero { padding-block: clamp(48px, 7vw, 92px) 40px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -40% 30% auto -10%; height: 120%; background: radial-gradient(closest-side, rgba(138, 124, 246, .18), transparent 70%); pointer-events: none; }
.page-hero .wrap { position: relative; }
.page-hero h1 { margin-bottom: 22px; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.subnav a { text-decoration: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .95rem; font-weight: 500; transition: .2s; }
.subnav a:hover { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }

/* Sections à deux colonnes -------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split.flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.split.flip > :first-child { order: 2; }
.split h2 { margin-bottom: 20px; }
.split p { color: var(--muted); }
.ticks { margin: 22px 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-3px); }
.hint { font-size: .95rem; color: var(--muted); border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; margin: 24px 0 0; }
.hint kbd, kbd { font-family: var(--f-mono); font-size: .8em; border: 1px solid var(--line); background: var(--panel); border-radius: 5px; padding: 1px 6px; }
.contact-form { display: grid; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--panel); }
.contact-form label { margin-top: 4px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.contact-form input, .contact-form textarea { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); color: var(--text); background: var(--bg); font: inherit; font-size: .95rem; }
.contact-form textarea { resize: vertical; line-height: 1.55; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-form .form-hint { color: var(--muted); font-size: .86rem; }
.contact-form button { justify-self: start; }

/* ==========================================================================
   Fenêtres d'application (maquettes interactives)
   ========================================================================== */
.mock-dark { --m-bg: #19182f; --m-side: #15132a; --m-card: #211f3e; --m-card2: #2a2751; --m-line: rgba(196, 188, 255, .13); --m-text: #efecff; --m-muted: #9d99c8; --m-accent: #7c6cf0; --m-soft: rgba(124, 108, 240, .2); --m-input: #1a1833; }
.mock-light { --m-bg: #f4f5f9; --m-side: #ffffff; --m-card: #ffffff; --m-card2: #f1effc; --m-line: rgba(40, 30, 120, .11); --m-text: #17143a; --m-muted: #7a779c; --m-accent: #7c6cf0; --m-soft: rgba(124, 108, 240, .14); --m-input: #ffffff; }

.win { border-radius: 16px; border: 1px solid var(--m-line); background: var(--m-bg); color: var(--m-text); overflow: hidden; box-shadow: var(--shadow); font-size: 14px; line-height: 1.45; text-align: left; }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: var(--m-side); border-bottom: 1px solid var(--m-line); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--m-line); }
.win-bar span { margin: 0 auto; transform: translateX(-24px); font-size: 12px; color: var(--m-muted); }
.win button, .win input, .win select { color: var(--m-text); }
.app { display: grid; grid-template-columns: 208px minmax(0, 1fr); min-height: 520px; }
.app-side { background: var(--m-side); border-right: 1px solid var(--m-line); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.app-logo { display: flex; align-items: center; gap: 9px; font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: -.04em; padding: 0 8px 14px; }
.app-logo .mark { width: 20px; height: 20px; gap: 2px; }
.app-user { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--m-line); border-radius: 10px; margin-bottom: 12px; }
.app-user small { display: block; color: var(--m-muted); font-size: 12px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--m-soft); color: var(--m-accent); font-weight: 700; display: grid; place-items: center; font-size: 13px; flex: none; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--m-muted); font-size: 13.5px; }
.side-link::before { content: ""; width: 12px; height: 2px; background: currentColor; opacity: .55; border-radius: 2px; box-shadow: 0 4px 0 currentColor, 0 -4px 0 currentColor; }
.side-link.on { background: var(--m-soft); color: var(--m-text); font-weight: 600; }
.side-h { display: flex; justify-content: space-between; align-items: center; margin: 18px 8px 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--m-muted); font-weight: 700; }
.side-h button { border: 0; background: none; color: var(--m-accent); font-size: 18px; line-height: 1; width: 24px; height: 24px; border-radius: 6px; }
.side-h button:hover { background: var(--m-soft); }
.lists { display: grid; gap: 2px; }
.lists button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: none; border-radius: 8px; text-align: left; font-size: 13.5px; color: var(--m-muted); }
.lists button:hover { background: var(--m-soft); }
.lists button[aria-current="true"] { background: var(--m-soft); color: var(--m-text); font-weight: 600; }
.lists .dot, .app-tabs .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.lists em, .app-tabs em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--m-muted); }
.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-tabs { display: flex; gap: 2px; padding: 8px 14px 0; border-bottom: 1px solid var(--m-line); overflow-x: auto; scrollbar-width: none; }
.app-tabs button { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; background: none; color: var(--m-muted); font-size: 13px; white-space: nowrap; }
.app-tabs button[aria-selected="true"] { background: var(--m-bg); border-color: var(--m-line); color: var(--m-text); font-weight: 600; margin-bottom: -1px; }
.app-body { padding: 24px clamp(16px, 3vw, 36px) 28px; flex: 1; }
.crumb { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--m-muted); font-weight: 700; margin: 0 0 14px; }
.crumb b { color: var(--m-text); }
.app-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 22px; }
.app-title { font-size: clamp(30px, 4vw, 42px); letter-spacing: -.045em; font-weight: 800; }
.app-title::after { content: "."; color: var(--m-accent); }
.app-sub { color: var(--m-muted); margin: 6px 0 0; font-size: 14px; }
.progress { border: 1px solid var(--m-line); border-radius: 12px; padding: 12px 16px; min-width: 210px; background: var(--m-card); }
.progress div.row { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--m-muted); font-weight: 700; }
.progress b { font-size: 15px; color: var(--m-accent); letter-spacing: 0; }
.bar { height: 5px; border-radius: 99px; background: var(--m-line); margin: 9px 0 7px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--m-accent); border-radius: 99px; transition: width .45s cubic-bezier(.3, .8, .3, 1); }
.progress small { font-size: 12px; color: var(--m-muted); }

.card { border: 1px solid var(--m-line); border-radius: 12px; background: var(--m-card); overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--m-line); flex-wrap: wrap; }
.card-head h4 { font-size: 16px; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; margin-right: auto; }
.pill { font-size: 11px; background: var(--m-soft); color: var(--m-text); border-radius: 99px; padding: 1px 8px; font-weight: 600; }
.field, .win select { border: 1px solid var(--m-line); background: var(--m-input); border-radius: 8px; padding: 7px 11px; font-size: 13px; outline-offset: 2px; }
.field::placeholder { color: var(--m-muted); }
.btn-m { border: 1px solid var(--m-line); background: var(--m-input); border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 600; }
.btn-m:hover { border-color: var(--m-accent); }
.btn-m.primary { background: var(--m-accent); border-color: var(--m-accent); color: #fff; }
.btn-m.primary:hover { filter: brightness(1.1); }
.btn-m.soft { background: var(--m-soft); border-color: transparent; color: var(--m-text); }
.add { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 18px; padding: 8px 8px 8px 14px; border: 1px dashed var(--m-line); border-radius: 10px; align-items: center; }
.add:focus-within { border-color: var(--m-accent); }
.add input[type="text"] { flex: 1; min-width: 180px; border: 0; background: none; outline: none; font-size: 14px; }
.add input::placeholder { color: var(--m-muted); }
.add > span { color: var(--m-muted); font-size: 18px; line-height: 1; }

.tasks { padding: 0 18px 8px; }
.task { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-top: 1px solid var(--m-line); }
.task:first-child { border-top: 0; }
.task.enter { animation: task-in .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes task-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.check { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--m-muted); background: none; flex: none; display: grid; place-items: center; padding: 0; transition: .15s; }
.check:hover { border-color: var(--m-accent); }
.task.done .check { background: var(--m-accent); border-color: var(--m-accent); }
.task.done .check::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.task-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.task.done .task-t { text-decoration: line-through; color: var(--m-muted); }
.chip { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--m-soft); color: var(--m-text); white-space: nowrap; }
.chip.haute { background: rgba(242, 122, 142, .18); color: #f58ea0; }
.chip.moyenne { background: rgba(238, 179, 90, .18); color: #eeb35a; }
.chip.basse { background: rgba(79, 199, 155, .18); color: #4fc79b; }
.mock-light .chip.haute { color: #c43a57; }
.mock-light .chip.moyenne { color: #a56a0a; }
.mock-light .chip.basse { color: #1f8a65; }
.xbtn { border: 0; background: none; color: var(--m-muted); width: 26px; height: 26px; border-radius: 6px; font-size: 18px; line-height: 1; flex: none; opacity: .65; }
.xbtn:hover { opacity: 1; background: var(--m-soft); color: var(--m-text); }
.empty { text-align: center; padding: 40px 20px 46px; display: none; }
.empty.on { display: block; }
.empty .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--m-soft); color: var(--m-accent); display: grid; place-items: center; margin: 0 auto 14px; font-size: 20px; }
.empty b { display: block; font-size: 15px; margin-bottom: 4px; }
.empty p { color: var(--m-muted); font-size: 13px; margin: 0 0 14px; }
.is-compact .tool-extra { display: none; }

/* Agenda -------------------------------------------------------------------- */
.agenda { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); }
.cal { padding: 22px; border-right: 1px solid var(--m-line); }
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.cal-head h4 { font-size: 20px; margin-right: auto; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--m-muted); font-weight: 700; text-align: center; padding: 4px 0 8px; }
.cal-day { position: relative; aspect-ratio: 1 / .92; border: 1px solid transparent; border-radius: 10px; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: 14px; }
.cal-day:hover { background: var(--m-soft); }
.cal-day.out { color: var(--m-muted); opacity: .45; }
.cal-day.today { border-color: var(--m-line); font-weight: 700; }
.cal-day.today::after { content: ""; position: absolute; top: 6px; right: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--m-accent); }
.cal-day[aria-pressed="true"] { background: var(--m-accent); color: #fff; border-color: var(--m-accent); }
.cal-day .dots { display: flex; gap: 3px; height: 6px; }
.cal-day .dots i { width: 6px; height: 6px; border-radius: 50%; }
.day-panel { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.day-panel h4 { font-size: 18px; text-transform: capitalize; }
.day-list { display: grid; gap: 8px; }
.day-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--m-line); border-radius: 10px; background: var(--m-bg); }
.day-item .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.day-item.done span { text-decoration: line-through; color: var(--m-muted); }
.day-item small { margin-left: auto; color: var(--m-muted); font-size: 12px; }
.day-form { display: grid; gap: 8px; margin-top: auto; }
.day-form .row { display: flex; gap: 8px; }
.day-form .field { flex: 1; min-width: 0; }
.none { color: var(--m-muted); font-size: 13.5px; margin: 0; }

/* Groupes / Kanban ------------------------------------------------------------ */
.kanban { padding: 20px clamp(14px, 2.4vw, 28px) 26px; }
.kb-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.kb-top .app-title { font-size: 28px; margin-right: auto; }
.kb-form { display: flex; gap: 8px; flex-wrap: wrap; }
.kb-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.kb-col { background: var(--m-card); border: 1px solid var(--m-line); border-radius: 12px; display: flex; flex-direction: column; min-height: 260px; transition: border-color .15s, background .15s; }
.kb-col.over { border-color: var(--m-accent); background: var(--m-card2); }
.kb-col header { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--m-line); }
.kb-col h4 { font-size: 14.5px; letter-spacing: -.01em; flex: 1; min-width: 0; padding: 2px 6px; margin-left: -6px; border-radius: 6px; cursor: text; outline-offset: 1px; }
.kb-col h4:hover { background: var(--m-soft); }
.kb-cards { padding: 10px; display: grid; gap: 8px; align-content: start; flex: 1; }
.kb-card { background: var(--m-bg); border: 1px solid var(--m-line); border-radius: 10px; padding: 11px 12px; display: grid; gap: 9px; cursor: grab; transition: box-shadow .15s, transform .15s; }
.kb-card:hover { box-shadow: 0 8px 22px -14px rgba(0, 0, 0, .6); }
.kb-card.dragging { opacity: .45; transform: scale(.98); }
.kb-card.done .kb-t { text-decoration: line-through; color: var(--m-muted); }
.kb-t { overflow-wrap: anywhere; font-size: 14px; }
.kb-meta { display: flex; align-items: center; gap: 6px; }
.kb-meta .chip { margin-right: auto; }
.kb-meta button { border: 1px solid var(--m-line); background: none; border-radius: 6px; width: 26px; height: 26px; font-size: 13px; color: var(--m-muted); line-height: 1; }
.kb-meta button:hover:not(:disabled) { border-color: var(--m-accent); color: var(--m-text); }
.kb-meta button:disabled { opacity: .3; cursor: default; }
.lbl-design { background: rgba(240, 160, 112, .2); color: #f0a070; }
.lbl-dev { background: rgba(124, 108, 240, .22); color: #a79bff; }
.lbl-contenu { background: rgba(79, 199, 155, .2); color: #4fc79b; }
.lbl-test { background: rgba(238, 179, 90, .2); color: #eeb35a; }
.kb-add-col { align-self: start; border: 1px dashed var(--m-line); background: none; border-radius: 12px; padding: 14px; color: var(--m-muted); font-size: 13.5px; min-width: 200px; }
.kb-add-col:hover { border-color: var(--m-accent); color: var(--m-text); }

/* Corbeille --------------------------------------------------------------------- */
.trash { padding: 6px 18px 14px; }
.trash-item { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-top: 1px solid var(--m-line); flex-wrap: wrap; }
.trash-item:first-child { border-top: 0; }
.trash-item .info { flex: 1; min-width: 180px; }
.trash-item .info small { display: block; color: var(--m-muted); font-size: 12px; }
.trash-item .acts { display: flex; gap: 8px; align-items: center; }

/* Notes -------------------------------------------------------------------------- */
.note { padding: 22px clamp(16px, 3vw, 32px) 26px; }
.rte-bar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--m-line); margin-bottom: 18px; }
.rte-bar button { min-width: 34px; height: 32px; border: 1px solid var(--m-line); background: var(--m-input); border-radius: 8px; font-size: 13.5px; padding: 0 9px; }
.rte-bar button:hover { border-color: var(--m-accent); }
.rte-bar .save { margin-left: auto; font-size: 12.5px; color: var(--m-muted); display: flex; align-items: center; gap: 7px; }
.rte-bar .save::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4fc79b; }
.rte-bar .save.busy::before { background: var(--warn); }
.rte { outline: none; min-height: 180px; line-height: 1.7; font-size: 15px; }
.rte h5 { font-family: var(--f-display); font-size: 22px; margin: 0 0 8px; letter-spacing: -.03em; }
.rte p { margin: 0 0 .8em; }
.rte ul { list-style: disc; padding-left: 22px; margin: 0 0 .8em; }

/* Workflow (accueil) ------------------------------------------------------------- */
.flow { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 60px); margin-top: 48px; }
.flow-steps { display: grid; gap: 4px; align-content: start; counter-reset: s; }
.flow-steps button { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; text-align: left; border: 1px solid transparent; background: none; border-radius: 14px; padding: 16px 16px; color: var(--muted); transition: .2s; }
.flow-steps button::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: .95rem; transition: .2s; }
.flow-steps button b { font-family: var(--f-display); font-size: 1.3rem; letter-spacing: -.03em; color: var(--text); }
.flow-steps button small { grid-column: 2; font-size: .95rem; line-height: 1.45; margin-top: -4px; }
.flow-steps button:hover { background: var(--accent-soft); }
.flow-steps button[aria-selected="true"] { background: var(--panel); border-color: var(--line); color: var(--muted); }
.flow-steps button[aria-selected="true"]::before { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.flow-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(24px, 3.2vw, 42px); min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.flow-captures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
.flow-captures figure { min-width: 0; margin: 0; }
.flow-captures img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: center top; }
.flow-panel[hidden] { display: none; }
.flow-panel h3 { margin-bottom: 12px; font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.flow-panel p { color: var(--muted); max-width: 52ch; }
.flow-vis { border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); padding: 18px; display: flex; gap: 12px; align-items: stretch; min-height: 130px; overflow: hidden; }
.vis-task { flex: 1; display: grid; gap: 8px; align-content: center; }
.vis-line { height: 34px; border-radius: 8px; background: var(--panel-2); display: flex; align-items: center; gap: 10px; padding: 0 12px; font-size: .88rem; color: var(--text); }
.vis-line i { width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--muted); flex: none; }
.vis-line.on i { background: var(--accent); border-color: var(--accent); }
.vis-line.on span { text-decoration: line-through; color: var(--muted); }
.vis-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; flex: 1; align-content: center; }
.vis-cal i { aspect-ratio: 1; border-radius: 6px; background: var(--panel-2); }
.vis-cal i.a { background: var(--accent); }
.vis-cal i.b { background: var(--ok); }
.vis-cal i.c { background: var(--orange); }
.vis-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex: 1; }
.vis-col { background: var(--panel-2); border-radius: 10px; padding: 10px; display: grid; gap: 7px; align-content: start; }
.vis-col span { font-size: .72rem; font-weight: 700; color: var(--muted); }
.vis-col i { height: 26px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); }
.vis-sum { flex: 1; display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: center; }
.vis-doc { height: 100px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); padding: 12px 10px; display: grid; gap: 6px; align-content: start; }
.vis-doc i { height: 5px; border-radius: 3px; background: var(--line); }
.vis-doc i:nth-child(2n) { width: 70%; }
.vis-sumtxt { display: grid; gap: 8px; }
.vis-sumtxt i { height: 8px; border-radius: 4px; background: var(--accent); opacity: .85; }
.vis-sumtxt i:nth-child(2) { width: 82%; opacity: .55; }
.vis-sumtxt i:nth-child(3) { width: 64%; opacity: .35; }
.vis-files { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-content: center; }
.vis-file { background: #fff; border-radius: 10px; padding: 12px 8px; display: grid; gap: 7px; justify-items: center; font-size: .72rem; font-weight: 600; color: #3a3768; }
.vis-file b { width: 26px; height: 30px; border-radius: 5px; display: grid; place-items: center; color: #fff; font-size: .8rem; }

/* Écosystème (accueil) ------------------------------------------------------------ */
.eco { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; margin-top: 48px; }
.eco-card { border-radius: var(--radius-l); padding: clamp(26px, 3.4vw, 46px); display: flex; flex-direction: column; gap: 22px; border: 1px solid transparent; position: relative; overflow: hidden; }
.eco-card.night { background: #17152e; color: #eeebff; border-color: rgba(196, 188, 255, .14); }
.eco-card.day { background: #f4f5f9; color: #17143a; border-color: rgba(40, 30, 120, .12); }
.eco-card h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.045em; font-weight: 800; }
.eco-card p { margin: 0; max-width: 46ch; opacity: .78; }
.eco-card ul { display: grid; gap: 8px; font-size: .98rem; }
.eco-card li { padding-left: 22px; position: relative; }
.eco-card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: #7c6cf0; }
.eco-card a.go { margin-top: auto; align-self: flex-start; font-weight: 700; color: inherit; text-decoration-color: #7c6cf0; text-decoration-thickness: 2px; }
.mini-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-board div { background: rgba(255, 255, 255, .05); border: 1px solid rgba(196, 188, 255, .12); border-radius: 10px; padding: 9px; display: grid; gap: 6px; align-content: start; }
.mini-board span { font-size: .72rem; opacity: .6; font-weight: 700; }
.mini-board i { height: 22px; border-radius: 5px; background: rgba(255, 255, 255, .09); }
.mini-board i.v { background: rgba(124, 108, 240, .55); }
.mini-files { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-files span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; background: #fff; border: 1px solid rgba(40, 30, 120, .1); border-radius: 10px; font-size: .84rem; font-weight: 600; }
.mini-files b { width: 20px; height: 22px; border-radius: 4px; display: grid; place-items: center; color: #fff; font-size: .68rem; }
.c-doc { background: #4f7be0; } .c-pdf { background: #e5566b; } .c-txt { background: #8b88b8; } .c-fold { background: #e8b04a; }

/* Trois approches ------------------------------------------------------------------ */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 44px; }
.trio > div { border-top: 2px solid var(--accent); padding-top: 20px; }
.trio h3 { margin-bottom: 10px; }
.trio p { color: var(--muted); margin: 0; }

/* Bandeau confiance ---------------------------------------------------------------- */
.band { background: #12102a; color: #eeebff; }
:root[data-theme="light"] .band { background: #1d1a45; }
.band .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); }
.band .lead { color: #b3afdb; }
.facts { display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 190px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid rgba(196, 188, 255, .16); }
.facts div:last-child { border-bottom: 1px solid rgba(196, 188, 255, .16); }
.facts dt { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; }
.facts dd { margin: 0; color: #b3afdb; font-size: .98rem; }
.band .btn-ghost { color: #eeebff; border-color: rgba(196, 188, 255, .3); }

/* CTA finale ----------------------------------------------------------------------- */
.cta { text-align: left; }
.cta-box { background: linear-gradient(135deg, #5c4ae0, #8a7cf6 70%); border-radius: 28px; padding: clamp(34px, 6vw, 72px); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: end; position: relative; overflow: hidden; }
.cta-box::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .08); }
.cta-box h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); color: #fff; }
.cta-box h2::after { content: "."; color: #1b1544; }
.cta-box p { color: rgba(255, 255, 255, .85); margin: 14px 0 0; max-width: 46ch; }
.cta-box .btn-primary { background: #fff; color: #3d2fb8; box-shadow: none; position: relative; z-index: 1; }
.cta-box .btn-primary:hover { background: #f1eeff; }

/* Footer ----------------------------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); padding-block: 48px 36px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(2, minmax(0, 2fr)); gap: 32px; }
.foot p { color: var(--muted); font-size: .95rem; max-width: 36ch; margin-top: 12px; }
.foot h4 { font-size: .95rem; margin-bottom: 12px; letter-spacing: -.01em; }
.foot li { margin-bottom: 8px; }
.foot li a { color: var(--muted); text-decoration: none; font-size: .96rem; }
.foot li a:hover { color: var(--text); text-decoration: underline; }
.legal-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 20px; }
.legal-footer-links a { color: var(--muted); font-size: .9rem; }
.foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Synthèse ---------------------------------------------------------------------------- */
.synth { padding: clamp(18px, 3vw, 36px); }
.drop { border: 2px dashed var(--m-line); border-radius: 14px; padding: 46px 20px; text-align: center; transition: .2s; background: var(--m-card); }
.drop.over { border-color: var(--m-accent); background: var(--m-card2); }
.drop .ico { width: 54px; height: 54px; border-radius: 14px; background: var(--m-soft); color: var(--m-accent); display: grid; place-items: center; margin: 0 auto 16px; font-size: 24px; }
.drop h4 { font-size: 20px; margin-bottom: 6px; }
.drop p { color: var(--m-muted); margin: 0 0 18px; font-size: 14px; }
.drop .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.drop .err { color: #f58ea0; font-weight: 600; margin: 16px 0 0; min-height: 1.4em; font-size: 13.5px; }
.run { border: 1px solid var(--m-line); border-radius: 14px; background: var(--m-card); padding: 26px; }
.run h4 { font-size: 18px; margin-bottom: 4px; overflow-wrap: anywhere; }
.run > p { color: var(--m-muted); font-size: 13.5px; margin-bottom: 20px; }
.steps-l { display: grid; gap: 12px; margin-bottom: 20px; }
.steps-l li { display: flex; align-items: center; gap: 12px; color: var(--m-muted); font-size: 14px; }
.steps-l li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--m-line); flex: none; box-sizing: border-box; }
.steps-l li.now { color: var(--m-text); font-weight: 600; }
.steps-l li.now::before { border-color: var(--m-accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps-l li.ok { color: var(--m-text); }
.steps-l li.ok::before { background: var(--m-accent); border-color: var(--m-accent); box-shadow: inset 0 0 0 3px var(--m-card); }
@keyframes spin { to { transform: rotate(360deg); } }
.result { border: 1px solid var(--m-line); border-radius: 14px; background: var(--m-card); overflow: hidden; }
.result-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 16px 22px; border-bottom: 1px solid var(--m-line); }
.result-head h4 { font-size: 18px; margin-right: auto; }
.badge-ex { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgba(238, 179, 90, .18); color: #eeb35a; }
.result-body { padding: 22px; display: grid; gap: 22px; }
.result-body h5 { font-family: var(--f-display); font-size: 15px; letter-spacing: -.01em; margin: 0 0 8px; color: var(--m-accent); }
.result-body p, .result-body li { font-size: 14.5px; line-height: 1.6; margin: 0; }
.result-body ul { display: grid; gap: 7px; }
.result-body li { padding-left: 18px; position: relative; }
.result-body li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--m-accent); }
.result-body li b { color: var(--m-text); }
.result-note { padding: 12px 22px 16px; border-top: 1px solid var(--m-line); color: var(--m-muted); font-size: 12.5px; }

.limits { display: grid; gap: 0; margin-top: 8px; }
.limits li { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.limits li:last-child { border-bottom: 1px solid var(--line); }
.limits b { font-family: var(--f-display); letter-spacing: -.02em; }
.limits span { color: var(--muted); }

/* Cloud (explorateur) ------------------------------------------------------------------- */
.cloud { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 560px; }
.cloud-side { background: var(--m-side); border-right: 1px solid var(--m-line); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.cloud-nav { display: grid; gap: 2px; }
.cloud-nav button { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 0; background: none; border-radius: 8px; text-align: left; font-size: 13.5px; color: var(--m-muted); }
.cloud-nav button:hover { background: var(--m-soft); }
.cloud-nav button[aria-current="true"] { background: var(--m-soft); color: var(--m-accent); font-weight: 700; }
.store { margin-top: 18px; border: 1px solid var(--m-line); border-radius: 12px; padding: 14px; font-size: 12px; color: var(--m-muted); }
.store b { display: block; color: var(--m-text); font-size: 13.5px; margin-bottom: 4px; }
.store .ok { margin-top: 10px; display: flex; align-items: center; gap: 7px; }
.store .ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4fc79b; }
.cloud-main { padding: 0 0 26px; min-width: 0; display: flex; flex-direction: column; }
.cloud-top { padding: 14px clamp(16px, 3vw, 32px); border-bottom: 1px solid var(--m-line); background: var(--m-side); }
.cloud-top .field { width: min(380px, 100%); }
.cloud-body { padding: 24px clamp(16px, 3vw, 32px) 0; }
.cloud-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.cloud-head .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.stat { display: flex; gap: 12px; align-items: center; border: 1px solid var(--m-line); background: var(--m-card); border-radius: 12px; padding: 14px 16px; }
.stat .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; flex: none; }
.stat small { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--m-muted); font-weight: 700; }
.stat b { font-size: 20px; font-family: var(--f-display); }
.files-bar { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--m-line); margin-bottom: 16px; flex-wrap: wrap; }
.files-bar .crumbs { display: flex; align-items: center; gap: 4px; margin-right: auto; font-weight: 600; font-size: 13.5px; flex-wrap: wrap; }
.files-bar .crumbs button { border: 0; background: none; padding: 3px 6px; border-radius: 6px; font-weight: 600; color: var(--m-muted); }
.files-bar .crumbs button:last-child { color: var(--m-text); }
.files-bar .crumbs button:hover { background: var(--m-soft); }
.files-bar .crumbs span { color: var(--m-muted); }
.files-bar small { color: var(--m-muted); font-size: 12px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.fcard { border: 1px solid var(--m-line); background: var(--m-card); border-radius: 12px; padding: 14px; display: grid; gap: 12px; transition: box-shadow .15s, transform .15s; }
.fcard:hover { box-shadow: 0 12px 28px -18px rgba(60, 40, 160, .5); transform: translateY(-1px); }
.fcard .top { display: flex; align-items: center; gap: 11px; min-width: 0; }
.fcard .fi { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; flex: none; }
.fi.folder { background: #fbefd3; } .fi.folder::after { content: ""; width: 18px; height: 13px; border-radius: 3px; background: #e0a52f; }
.fi.doc { background: #e3ebff; color: #4f7be0; } .fi.pdf { background: #fde3e7; color: #e5566b; } .fi.txt { background: #ecebfa; color: #7c6cf0; } .fi.other { background: #ecebfa; color: #7c6cf0; }
.fname { font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; border: 0; padding: 0; text-align: left; min-width: 0; }
button.fname:hover { color: var(--m-accent); }
.fname-in { width: 100%; min-width: 0; border: 1px solid var(--m-accent); border-radius: 6px; padding: 3px 6px; font-weight: 700; font-size: 13.5px; background: var(--m-input); outline: none; }
.fmeta { font-size: 12px; color: var(--m-muted); padding-top: 10px; border-top: 1px solid var(--m-line); }
.facts-row { display: flex; justify-content: flex-end; gap: 2px; }
.facts-row button { width: 28px; height: 28px; border: 0; background: none; border-radius: 7px; color: var(--m-muted); font-size: 14px; }
.facts-row button:hover { background: var(--m-soft); color: var(--m-text); }
.cloud-empty { grid-column: 1 / -1; text-align: center; padding: 40px 10px; color: var(--m-muted); }

dialog.editor { border: 1px solid var(--line); border-radius: 18px; padding: 0; width: min(780px, calc(100% - 28px)); background: #fff; color: #17143a; box-shadow: 0 40px 100px -30px rgba(10, 8, 40, .7); }
dialog.editor::backdrop { background: rgba(10, 8, 30, .6); backdrop-filter: blur(3px); }
.ed-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid rgba(40, 30, 120, .1); }
.ed-head b { margin-right: auto; font-family: var(--f-display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.ed-head .badge-ex { white-space: nowrap; }
.ed-body { padding: 18px 28px 26px; }
.ed-body .rte-bar button { color: #17143a; background: #fff; border-color: rgba(40, 30, 120, .14); }
.ed-body .rte-bar .save { color: #7a779c; }
.ed-body .rte { min-height: 260px; max-height: 52vh; overflow: auto; color: #17143a; }
.ed-foot { padding: 10px 22px 16px; font-size: 12.5px; color: #7a779c; }

/* Sécurité ------------------------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
.pillar { padding: 30px clamp(0px, 3vw, 40px) 30px 0; border-bottom: 1px solid var(--line); }
.pillar:nth-child(odd) { border-right: 1px solid var(--line); }
.pillar:nth-child(even) { padding-left: clamp(0px, 3vw, 40px); }
.pillar h3 { margin-bottom: 10px; font-size: 1.35rem; }
.pillar p { color: var(--muted); margin: 0; font-size: 1rem; }
.logmock { margin-top: 28px; }
.log-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.log-table th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--m-muted); padding: 12px 18px; border-bottom: 1px solid var(--m-line); }
.log-table td { padding: 11px 18px; border-bottom: 1px solid var(--m-line); }
.log-table tr:last-child td { border-bottom: 0; }
.log-table .mono { font-family: var(--f-mono); font-size: 12px; color: var(--m-muted); }
.st { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; }
.st.ok { background: rgba(79, 199, 155, .18); color: #4fc79b; } .st.no { background: rgba(242, 122, 142, .18); color: #f58ea0; } .st.info { background: rgba(124, 108, 240, .22); color: #a79bff; }
.checklist { display: grid; gap: 12px; margin-top: 26px; counter-reset: c; }
.checklist li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); counter-increment: c; }
.checklist li::before { content: counter(c); width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-family: var(--f-display); display: grid; place-items: center; }
.checklist b { display: block; font-family: var(--f-display); letter-spacing: -.02em; }
.checklist span { color: var(--muted); font-size: .98rem; }
.bars { display: grid; gap: 12px; padding: 22px; }
.bar-row { display: grid; grid-template-columns: 90px 1fr 28px; gap: 12px; align-items: center; font-size: 13px; }
.bar-row .track { height: 10px; border-radius: 99px; background: var(--m-line); overflow: hidden; }
.bar-row .track i { display: block; height: 100%; border-radius: 99px; }

/* Versions -------------------------------------------------------------------------------- */
.timeline { position: relative; margin-top: 44px; display: grid; gap: 34px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl { position: relative; padding-left: 52px; }
.tl::before { content: ""; position: absolute; left: 3px; top: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tl.now::before { background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.tl h3 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; font-size: 1.7rem; }
.tl h3 small { font-family: var(--f-body); font-size: .9rem; font-weight: 600; letter-spacing: 0; color: #fff; background: var(--accent-strong); padding: 2px 11px; border-radius: 99px; }
.tl > p { color: var(--muted); max-width: 62ch; }
.tl ul { display: grid; gap: 8px; max-width: 70ch; margin-top: 14px; }
.tl li { padding-left: 20px; position: relative; color: var(--text); font-size: 1rem; }
.tl li::before { content: ""; position: absolute; left: 0; top: .72em; width: 9px; height: 2px; background: var(--accent); }
.tl li b { font-weight: 700; }
.stack { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.stack span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-weight: 600; font-size: .95rem; background: var(--panel); }
.install { display: grid; gap: 0; margin-top: 8px; counter-reset: i; }
.install li { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); counter-increment: i; }
.install li:last-child { border-bottom: 1px solid var(--line); }
.install li::before { content: counter(i); font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; color: var(--accent); letter-spacing: -.04em; line-height: 1; }
.install b { font-family: var(--f-display); letter-spacing: -.02em; font-size: 1.1rem; }
.install p { color: var(--muted); margin: 4px 0 0; font-size: 1rem; }
code { font-family: var(--f-mono); font-size: .88em; background: var(--panel-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; }
.callout { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius-m); padding: 18px 22px; margin: 26px 0 0; border-left: 4px solid var(--warn); }
.callout b { font-family: var(--f-display); }
.callout p { margin: 6px 0 0; color: var(--muted); font-size: .98rem; }

/* Toasts ------------------------------------------------------------------------------------ */
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: min(460px, calc(100% - 28px)); }
.toast { background: #1d1a45; color: #fff; padding: 11px 18px; border-radius: 12px; font-size: .94rem; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .6); animation: toast-in .3s ease both; text-align: center; border: 1px solid rgba(196, 188, 255, .2); }
.toast.out { opacity: 0; transition: opacity .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Entrée du hero : le seul moment orchestré ------------------------------------------------- */
.hero-in { animation: hero-in .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero-demo.hero-in { animation-delay: .15s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Responsive --------------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .hero-grid, .split, .split.flip, .flow, .eco, .band .wrap { grid-template-columns: minmax(0, 1fr); }
  .flow-captures { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child { order: 0; }
  .hero-demo { margin-right: 0; }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .agenda { grid-template-columns: minmax(0, 1fr); }
  .cal { border-right: 0; border-bottom: 1px solid var(--m-line); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillar:nth-child(odd) { border-right: 0; }
  .pillar:nth-child(even) { padding-left: 0; }
  .cta-box { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .flow-steps { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
}
@media (max-width: 860px) {
  .burger { display: grid; }
  .nav-links { position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; margin: 0; display: none; }
  .nav-open .nav-links { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: 1.05rem; }
  .nav-tools { margin-left: auto; }
  .nav-tools .btn { display: none; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .app-side { display: none; }
  .cloud { grid-template-columns: minmax(0, 1fr); }
  .cloud-side { flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--m-line); padding: 10px 12px; overflow-x: auto; }
  .cloud-side .app-logo, .cloud-side .app-user, .store { display: none; }
  .cloud-nav { grid-auto-flow: column; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .facts div, .limits li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .btn-row .btn { flex: 1 1 100%; }
  .cal-day { aspect-ratio: 1; font-size: 13px; }
  .vis-files { grid-template-columns: repeat(2, 1fr); }
  .vis-sum { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  /* Tâches : le titre garde sa largeur, priorité et date passent sur la ligne du dessous */
  .task { flex-wrap: wrap; row-gap: 6px; }
  .task-t { flex: 1 1 60%; overflow-wrap: break-word; }
  .task-t + .chip { margin-left: 32px; }
  .task .xbtn { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.demo-cap { font-size: .92rem; color: var(--muted); margin: 16px 4px 0; max-width: 60ch; }
.add .field { padding: 5px 9px; }

.facts.plain div { border-color: var(--line); }
.facts.plain dt { color: var(--text); }
.facts.plain dd { color: var(--muted); }

/* Captures d'écran : fenêtre macOS + légende dessous ------------------------- */
.shot-frame { margin: 18px 0 0; position: relative; perspective: 1200px; }
.mac-window {
  --mac-bar: #e9e8ee; --mac-bar-line: rgba(0, 0, 0, .12); --mac-title: #4a4a55;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .12), 0 28px 60px -18px rgba(20, 10, 70, .45);
  transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform .25s ease-out, box-shadow .3s ease;
  will-change: transform;
}
:root[data-theme="dark"] .mac-window {
  --mac-bar: #2d2c36; --mac-bar-line: rgba(255, 255, 255, .08); --mac-title: #b9b6d6;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 2px 6px rgba(0, 0, 0, .4), 0 30px 70px -18px rgba(0, 0, 0, .8);
}
.shot-frame:hover .mac-window { box-shadow: 0 0 0 1px rgba(138, 124, 246, .5), 0 40px 90px -20px rgba(106, 88, 232, .55); }
.mac-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  background: linear-gradient(var(--mac-bar), color-mix(in srgb, var(--mac-bar) 88%, #000));
  border-bottom: 1px solid var(--mac-bar-line);
  user-select: none;
}
.shot-dots { position: absolute; left: 14px; display: flex; gap: 8px; }
.shot-dots i {
  width: 12px; height: 12px; border-radius: 50%; display: block;
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.shot-dots i:nth-child(1) { background: #ff5f57; }
.shot-dots i:nth-child(2) { background: #febc2e; }
.shot-dots i:nth-child(3) { background: #28c840; }
.shot-frame:hover .shot-dots i { animation: dot-pop .5s ease both; }
.shot-frame:hover .shot-dots i:nth-child(2) { animation-delay: .08s; }
.shot-frame:hover .shot-dots i:nth-child(3) { animation-delay: .16s; }
@keyframes dot-pop { 40% { transform: scale(1.35); } }
.shot-title {
  font-family: var(--f-body);
  font-size: .8rem;
  font-weight: 600;
  color: var(--mac-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 110px);
}
.shot-img { width: 100%; height: auto; display: block; object-fit: cover; background: var(--bg); }
/* Reflet qui balaie la fenêtre au survol */
.mac-window::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%);
  transform: translateX(-120%);
}
.shot-frame:hover .mac-window::after { transform: translateX(120%); transition: transform .9s ease; }
.shot-caption { margin: 14px 4px 0; text-align: center; font-size: .92rem; color: var(--muted); line-height: 1.5; }
.shot-caption b { display: block; color: var(--text); font-family: var(--f-display); margin-bottom: 2px; }

/* Apparition au défilement + flottement doux du hero */
[data-reveal] { opacity: 0; transform: translateY(34px) scale(.97); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.hero-in.shot-frame .mac-window { animation: mac-float 6s ease-in-out 1.2s infinite alternate; }
@keyframes mac-float { to { translate: 0 -8px; } }
.no-js [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .mac-window { transform: none !important; }
}

/* Bascule Démo / Capture --------------------------------------------------- */
.view-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 16px;
}
.view-toggle button {
  padding: 6px 14px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  transition: all .2s;
}
.view-toggle button.is-active,
.view-toggle button[aria-selected="true"] {
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, .2);
}
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
