/* ==========================================================================
   MOILIM — système visuel
   Éditorial, maritime, contrasté. Pas de dégradés décoratifs gratuits.
   ========================================================================== */

/* Polices auto-hébergées : déposer les fichiers dans web/assets/fonts/ */
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/InstrumentSerif-Regular.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope-Variable.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #080b0a;
  --ink-soft: #0e1311;
  --ink-3: #141a17;
  --ink-4: #1b2320;
  --bone: #f2eee4;
  --bone-2: #e7e0d0;
  --sand: #c8b795;
  --muted: #8b948d;
  --muted-dark: #5d665f;
  --teal: #19b8a6;
  --teal-deep: #0a5e55;
  --teal-soft: #d6f2ec;
  --coral: #e2603c;
  --gold: #d8a94e;
  --line: rgba(242, 238, 228, 0.13);
  --line-strong: rgba(242, 238, 228, 0.28);
  --line-dark: rgba(8, 11, 10, 0.12);
  --radius: 3px;
  --radius-lg: 6px;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --nav-h: 76px;
  --max: 1280px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.light {
  background: var(--bone);
  color: var(--ink);
}

::selection {
  background: var(--teal);
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 1000;
}
.skip:focus { left: 12px; top: 12px; }

/* ---- Typographie ---------------------------------------------------------- */

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.display em {
  font-style: italic;
  color: var(--teal);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 9px;
  vertical-align: 1px;
  box-shadow: 0 0 0 3px rgba(25, 184, 166, 0.14);
}

.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  font-weight: 300;
  max-width: 52ch;
}

.mono { font-family: var(--mono); }

/* ---- Layout --------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

.section {
  padding: clamp(72px, 9vw, 132px) 0;
  position: relative;
}

.section--tight { padding: clamp(48px, 6vw, 88px) 0; }

.rule {
  height: 1px;
  background: var(--line);
  width: 100%;
}

.section-head {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.section-head h2 em { font-style: italic; color: var(--teal); }
.section-head .lede { padding-bottom: 6px; }

@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
}

/* ---- Grain / textures ----------------------------------------------------- */

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.tide {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal) 18%, var(--coral) 82%, transparent);
  opacity: 0.7;
}

/* ---- Navigation ----------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 80;
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(8, 11, 10, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav--light.is-scrolled {
  background: rgba(242, 238, 228, 0.88);
  border-bottom-color: var(--line-dark);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 36px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: -0.02em;
  line-height: 1;
  flex-shrink: 0;
}

.brand__mark {
  width: 26px;
  height: 26px;
  align-self: center;
  color: var(--teal);
  flex-shrink: 0;
}

.brand__dot { color: var(--coral); }

.brand small {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  align-self: center;
  padding-top: 4px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(242, 238, 228, 0.72);
}

.nav--light .nav__links { color: rgba(8, 11, 10, 0.68); }

.nav__links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width 0.28s var(--ease);
}

.nav__links a:hover { color: var(--bone); }
.nav--light .nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__actions .btn--ghost { display: none; }
}

/* Menu mobile */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  padding: 96px clamp(20px, 6vw, 48px) 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease);
}

.mobile-menu.open { transform: translateY(0); }

.mobile-menu a {
  font-family: var(--serif);
  font-size: 40px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-menu .btn { margin-top: 28px; justify-content: center; }

/* ---- Boutons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: transform 0.18s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn--primary {
  background: var(--teal);
  color: #04110e;
}
.btn--primary:hover { background: #23cbb8; }

.btn--ink {
  background: var(--ink);
  color: var(--bone);
}
.btn--ink:hover { background: var(--ink-3); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--bone);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn--light-ghost {
  border-color: var(--line-dark);
  color: var(--ink);
}
.btn--light-ghost:hover { border-color: var(--ink); }

.btn--link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal);
  font-weight: 600;
}
.btn--link:hover { text-decoration: underline; text-underline-offset: 4px; }

.btn--lg { padding: 17px 28px; font-size: 15px; }
.btn--sm { padding: 9px 14px; font-size: 12.5px; }

.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ---- Hero ----------------------------------------------------------------- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 78% 18%, rgba(25, 184, 166, 0.14), transparent 62%),
    radial-gradient(ellipse 55% 45% at 12% 88%, rgba(226, 96, 60, 0.09), transparent 60%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__copy { max-width: 640px; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6.4vw, 94px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 22px 0 26px;
}

.hero h1 em { font-style: italic; color: var(--teal); }

.hero .lede { margin-bottom: 36px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero__proof {
  display: flex;
  gap: 28px;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.hero__proof div { display: flex; flex-direction: column; gap: 2px; }

.hero__proof strong {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.hero__proof span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Carte de démo */
.demo-card {
  position: relative;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(20, 26, 23, 0.92), rgba(9, 13, 11, 0.96));
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.demo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(25, 184, 166, 0.12), transparent 58%);
  pointer-events: none;
}

.demo-card__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo-card__bar .live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin-left: auto;
  box-shadow: 0 0 0 3px rgba(25, 184, 166, 0.14);
}

.demo-card__body { padding: clamp(22px, 3vw, 34px); position: relative; }

.demo-card__label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.demo-card__fr {
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.35;
  min-height: 2.7em;
  font-weight: 400;
}

.demo-card__divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
  position: relative;
}

.demo-card__divider span {
  position: absolute;
  left: 0;
  top: -9px;
  background: #101512;
  padding-right: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--teal);
  text-transform: uppercase;
}

.demo-card__shi {
  font-family: var(--serif);
  font-size: clamp(26px, 3.1vw, 40px);
  line-height: 1.12;
  min-height: 2.2em;
  color: var(--bone);
}

.demo-card__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.tag--teal { border-color: rgba(25, 184, 166, 0.4); color: var(--teal); }
.tag--coral { border-color: rgba(226, 96, 60, 0.4); color: var(--coral); }

.demo-card__foot {
  border-top: 1px solid var(--line);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo-card__foot a { color: var(--teal); }
.demo-card__foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 72px); }
  .demo-card { margin-top: 8px; }
}

/* ---- Bandeau mots --------------------------------------------------------- */

.wordband {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
  background: var(--ink-soft);
}

.wordband__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: drift 46s linear infinite;
  will-change: transform;
}

.wordband:hover .wordband__track { animation-play-state: paused; }

.wordband span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.wordband b { color: var(--sand); font-weight: 400; }

@keyframes drift { to { transform: translateX(-50%); } }

/* ---- Sections claires ----------------------------------------------------- */

.light-section {
  background: var(--bone);
  color: var(--ink);
}

.light-section .eyebrow { color: var(--muted-dark); }
.light-section .lede { color: var(--muted-dark); }
.light-section .section-head h2 em { color: var(--teal-deep); }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
}

.problem {
  padding: 30px 26px 36px 0;
  border-right: 1px solid var(--line-dark);
}

.problem:last-child { border-right: 0; padding-right: 0; }
.problem + .problem { padding-left: 26px; }

.problem__num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--coral);
  margin-bottom: 26px;
  display: block;
}

.problem h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.problem p { font-size: 14.5px; line-height: 1.65; color: var(--muted-dark); }

@media (max-width: 860px) {
  .problem-grid { grid-template-columns: 1fr; }
  .problem { border-right: 0; border-bottom: 1px solid var(--line-dark); padding: 26px 0; }
  .problem + .problem { padding-left: 0; }
  .problem:last-child { border-bottom: 0; }
}

/* ---- Produit / fonctionnalités -------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.feature-list { border-top: 1px solid var(--line); }

.feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.feature__icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--teal);
}

.feature__icon svg { width: 18px; height: 18px; }

.feature h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}

.feature p { font-size: 14px; color: var(--muted); line-height: 1.6; }

.feature__meta {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

/* Mockup application */
.mockup {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-soft);
  box-shadow: var(--shadow);
}

.mockup__top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.mockup__dots { display: flex; gap: 5px; }
.mockup__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); }
.mockup__dots i:first-child { background: var(--coral); opacity: 0.7; }
.mockup__dots i:nth-child(2) { background: var(--gold); opacity: 0.7; }
.mockup__dots i:nth-child(3) { background: var(--teal); opacity: 0.7; }

.mockup__url {
  margin: 0 auto;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.mockup__body { display: grid; grid-template-columns: 148px 1fr; min-height: 430px; }

.mockup__rail {
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mockup__rail .r-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 3px;
  font-size: 11.5px;
  color: var(--muted);
}

.mockup__rail .r-item.active { background: rgba(25, 184, 166, 0.1); color: var(--teal); }
.mockup__rail .r-item svg { width: 14px; height: 14px; }

.mockup__main { padding: 24px; display: flex; flex-direction: column; gap: 14px; }

.mockup__field {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--muted);
}

.mockup__field--accent { border-color: rgba(25, 184, 166, 0.34); color: var(--bone); }

.mockup__result {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px;
  background: rgba(25, 184, 166, 0.05);
  flex: 1;
}

.mockup__result .k {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.mockup__result .v {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.2;
  color: var(--bone);
}

.mockup__chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

.mockup__chips span {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 3px 7px;
  color: var(--muted);
  border-radius: 2px;
}

@media (max-width: 980px) {
  .product-grid { grid-template-columns: 1fr; }
  .mockup__body { grid-template-columns: 1fr; }
  .mockup__rail { display: none; }
}

/* ---- Démo dictionnaire ---------------------------------------------------- */

.dict-demo {
  border: 1px solid var(--line-dark);
  background: #fbf8f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.dict-demo__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-dark);
}

.dict-demo__head svg { width: 17px; height: 17px; color: var(--muted-dark); }

.dict-demo__head input {
  flex: 1;
  border: 0;
  background: none;
  font-size: 19px;
  outline: none;
  color: var(--ink);
  min-width: 0;
}

.dict-demo__head input::placeholder { color: #a49d8c; }

.dict-demo__hint {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
  white-space: nowrap;
}

.dict-demo__results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.dict-demo__item {
  padding: 18px 20px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  min-height: 92px;
  transition: background 0.18s;
}

.dict-demo__item:hover { background: rgba(25, 184, 166, 0.06); }
.dict-demo__item:nth-child(2n) { border-right: 0; }

.dict-demo__item .w {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.1;
  margin-bottom: 4px;
}

.dict-demo__item .g {
  font-size: 13px;
  color: var(--muted-dark);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dict-demo__item .p {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-top: 8px;
}

.dict-demo__empty { padding: 40px 20px; text-align: center; color: var(--muted-dark); font-size: 14px; }

.dict-demo__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--line-dark);
  font-size: 12.5px;
  color: var(--muted-dark);
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .dict-demo__results { grid-template-columns: 1fr; }
  .dict-demo__item { border-right: 0; }
}

/* ---- Institutions --------------------------------------------------------- */

.inst-section {
  background: var(--ink-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.inst-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.inst-card {
  background: var(--ink-soft);
  padding: 30px 26px 34px;
  transition: background 0.2s;
}

.inst-card:hover { background: var(--ink-3); }

.inst-card__tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
  display: block;
}

.inst-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.inst-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; min-height: 5em; }

.inst-card ul { margin-top: 16px; display: flex; flex-direction: column; gap: 7px; }

.inst-card li {
  font-size: 12.5px;
  color: var(--bone);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  opacity: 0.82;
}

.inst-card li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--coral);
  margin-top: 7px;
  flex-shrink: 0;
}

@media (max-width: 900px) { .inst-grid { grid-template-columns: 1fr; } }

/* ---- Tarifs aperçu -------------------------------------------------------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.price {
  background: var(--bone);
  padding: 30px 26px 34px;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.price--featured { background: var(--ink); color: var(--bone); }

.price__name {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 26px;
}

.price--featured .price__name { color: var(--teal); }

.price__amount {
  font-family: var(--serif);
  font-size: 58px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.price__amount small {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted-dark);
  margin-left: 6px;
}

.price--featured .price__amount small { color: var(--muted); }

.price__desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted-dark);
  margin: 16px 0 22px;
  min-height: 3.4em;
}

.price--featured .price__desc { color: var(--muted); }

.price__list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 26px; }

.price__list li {
  font-size: 13px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--muted-dark);
}

.price--featured .price__list li { color: rgba(242, 238, 228, 0.8); }

.price__list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: 8px;
  flex-shrink: 0;
}

.price .btn { margin-top: auto; justify-content: center; }

.price__note {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-top: 12px;
  text-align: center;
}

.price--featured .price__note { color: var(--muted); }

@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; }
  .price { min-height: auto; }
}

/* ---- FAQ ------------------------------------------------------------------ */

.faq { border-top: 1px solid var(--line-dark); }

.faq details {
  border-bottom: 1px solid var(--line-dark);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 44px 24px 0;
  position: relative;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 22px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--teal-deep);
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq p {
  padding: 0 0 26px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted-dark);
  max-width: 72ch;
}

/* ---- CTA final ------------------------------------------------------------ */

.cta-band {
  background: var(--teal-deep);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 85% 50%, rgba(25, 184, 166, 0.35), transparent 65%);
}

.cta-band .wrap { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }

.cta-band h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.cta-band h2 em { font-style: italic; color: var(--sand); }
.cta-band p { margin-top: 16px; color: rgba(242, 238, 228, 0.72); max-width: 46ch; font-size: 15px; }
.cta-band__actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

@media (max-width: 860px) {
  .cta-band .wrap { grid-template-columns: 1fr; }
}

/* ---- Lead form ------------------------------------------------------------ */

.lead-form { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 460px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 238, 228, 0.55);
}

.field input,
.field textarea,
.field select {
  background: rgba(8, 11, 10, 0.35);
  border: 1px solid rgba(242, 238, 228, 0.22);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--bone);
  outline: none;
  transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--teal); }

.field input::placeholder,
.field textarea::placeholder { color: rgba(242, 238, 228, 0.32); }

.lead-form .btn { justify-content: center; }

.form-note {
  font-size: 11.5px;
  color: rgba(242, 238, 228, 0.45);
  line-height: 1.5;
}

.form-status { font-size: 13px; min-height: 20px; color: var(--teal); }
.form-status.error { color: var(--coral); }

/* ---- Footer --------------------------------------------------------------- */

.footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding: 64px 0 34px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}

.footer .brand { font-size: 30px; margin-bottom: 16px; }

.footer__desc { font-size: 13px; color: var(--muted); max-width: 34ch; line-height: 1.65; }

.footer h4 {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 500;
}

.footer li { margin-bottom: 9px; }

.footer li a {
  font-size: 13px;
  color: rgba(242, 238, 228, 0.72);
  transition: color 0.2s;
}

.footer li a:hover { color: var(--teal); }

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}

/* ---- Reveal --------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wordband__track { animation: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================================
   APPLICATION
   ========================================================================== */

.app-shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  height: 100svh;
  background: var(--ink);
}

.app-rail {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  gap: 6px;
  background: var(--ink-soft);
  overflow-y: auto;
}

.app-rail .brand { font-size: 23px; margin: 4px 8px 24px; }
.app-rail .brand__mark { width: 22px; height: 22px; }

.rail-label {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px 6px;
}

.rail-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 0;
  background: none;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  transition: background 0.18s, color 0.18s;
  width: 100%;
}

.rail-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.rail-btn:hover { background: rgba(255, 255, 255, 0.04); color: var(--bone); }
.rail-btn.active { background: rgba(25, 184, 166, 0.11); color: var(--teal); }

.rail-btn .kbd {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 2px 5px;
}

.rail-spacer { flex: 1; }

.rail-plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  margin-top: 10px;
}

.rail-plan .p {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.rail-plan .v { font-size: 13px; font-weight: 600; margin-bottom: 9px; }
.rail-plan .btn { width: 100%; justify-content: center; }

.app-main { display: flex; flex-direction: column; min-width: 0; height: 100svh; }

.app-top {
  height: 62px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  flex-shrink: 0;
  background: rgba(8, 11, 10, 0.6);
}

.app-top h1 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.app-top .sub { font-size: 12px; color: var(--muted); }
.app-top .spacer { flex: 1; }

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}

.icon-btn:hover { color: var(--teal); border-color: var(--teal); }
.icon-btn svg { width: 16px; height: 16px; }

.app-content { flex: 1; overflow-y: auto; padding: clamp(18px, 3vw, 34px); }

.view { display: none; animation: fade 0.3s var(--ease); }
.view.active { display: block; }

@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.view-head { max-width: 920px; margin-bottom: 24px; }

.view-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.view-head p { font-size: 13.5px; color: var(--muted); max-width: 62ch; }

/* Traduction */

.translate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 1180px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-soft);
  display: flex;
  flex-direction: column;
  min-height: 380px;
  overflow: hidden;
}

.panel__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel__head .spacer { flex: 1; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.lang-switch button {
  border: 0;
  background: none;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lang-switch button.active { background: var(--teal); color: var(--ink); }

.panel textarea {
  flex: 1;
  border: 0;
  background: none;
  resize: none;
  padding: 18px;
  font-size: 20px;
  line-height: 1.5;
  outline: none;
  color: var(--bone);
  min-height: 220px;
  font-family: var(--sans);
}

.panel textarea::placeholder { color: #4e5651; }

.panel__foot {
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel__foot .count {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
  margin-right: auto;
}

.result-panel { background: linear-gradient(180deg, rgba(25, 184, 166, 0.05), transparent 40%); }

.result-body { padding: 18px; flex: 1; overflow-y: auto; }

.result-text {
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.18;
  color: var(--bone);
  white-space: pre-wrap;
  word-break: break-word;
}

.result-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  padding: 30px;
}

.result-empty svg { width: 28px; height: 28px; opacity: 0.5; }

.result-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }

.result-notes {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

.result-notes b { color: var(--bone); font-weight: 600; }

.result-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

.history-strip {
  margin-top: 22px;
  max-width: 1180px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.history-strip h3 {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.history-list { display: flex; flex-direction: column; }

.history-item {
  display: grid;
  grid-template-columns: 1fr 1fr 70px;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
}

.history-item:hover { color: var(--bone); }
.history-item .t { font-family: var(--mono); font-size: 9px; text-align: right; }
.history-item div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 980px) {
  .translate-grid { grid-template-columns: 1fr; }
  .panel { min-height: 300px; }
}

/* Dictionnaire */

.dict-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  max-width: 1180px;
  align-items: start;
}

.dict-searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  background: var(--ink-soft);
  margin-bottom: 12px;
}

.dict-searchbar svg { width: 16px; height: 16px; color: var(--muted); }
.dict-searchbar input {
  flex: 1;
  border: 0;
  background: none;
  outline: none;
  padding: 13px 0;
  font-size: 16px;
  color: var(--bone);
  min-width: 0;
}
.dict-searchbar input::placeholder { color: #4e5651; }

.dict-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }

.chip {
  border: 1px solid var(--line);
  background: none;
  padding: 5px 10px;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip.active { border-color: var(--teal); color: var(--teal); background: rgba(25, 184, 166, 0.08); }

.dict-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

.dict-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 54px;
  gap: 12px;
  align-items: baseline;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  width: 100%;
  text-align: left;
  transition: background 0.15s;
}

.dict-row:last-child { border-bottom: 0; }
.dict-row:hover { background: rgba(255, 255, 255, 0.03); }
.dict-row.active { background: rgba(25, 184, 166, 0.09); }

.dict-row .w { font-family: var(--serif); font-size: 21px; line-height: 1.1; }
.dict-row .g { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dict-row .p { font-family: var(--mono); font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); text-align: right; }

.dict-detail {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-soft);
  padding: 24px;
  position: sticky;
  top: 0;
  min-height: 320px;
}

.dict-detail .word {
  font-family: var(--serif);
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.dict-detail .pron { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 16px; }

.dict-detail .gloss {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.dict-detail .meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.dict-detail .meta-grid .k {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.dict-detail .meta-grid .v { font-size: 13px; }

.dict-detail .examples { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.dict-detail .examples h4 { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.dict-detail .examples blockquote { margin: 0 0 10px; padding-left: 12px; border-left: 1px solid var(--teal); }
.dict-detail .examples .s { font-family: var(--serif); font-size: 18px; }
.dict-detail .examples .f { font-size: 12.5px; color: var(--muted); }

.dict-empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 13px; }

@media (max-width: 980px) {
  .dict-layout { grid-template-columns: 1fr; }
  .dict-detail { position: static; }
}

/* Phrases */

.phrase-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; max-height: 92px; overflow-y: auto; }

.phrase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 1180px;
}

.phrase {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--ink-soft);
  transition: border-color 0.18s;
}

.phrase:hover { border-color: var(--line-strong); }
.phrase .fr { font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-bottom: 8px; }
.phrase .shi { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.phrase .note { font-size: 11px; color: var(--muted); margin-top: 8px; font-style: italic; }
.phrase .tools { display: flex; gap: 6px; margin-top: 12px; }

@media (max-width: 760px) { .phrase-grid { grid-template-columns: 1fr; } }

/* Voix */

.voice-wrap {
  max-width: 720px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-soft);
  padding: 34px;
  text-align: center;
}

.rec-btn {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 1px solid rgba(25, 184, 166, 0.5);
  background: rgba(25, 184, 166, 0.1);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  transition: transform 0.2s, background 0.2s;
}

.rec-btn svg { width: 32px; height: 32px; }
.rec-btn:hover { transform: scale(1.03); }
.rec-btn.recording { background: var(--coral); border-color: var(--coral); color: #fff; animation: pulse 1.4s infinite; }

@keyframes pulse { 50% { box-shadow: 0 0 0 14px rgba(226, 96, 60, 0.12); } }

.voice-status { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); min-height: 16px; }

.voice-result { margin-top: 24px; text-align: left; display: none; }
.voice-result.show { display: block; }
.voice-result .k { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 7px; }
.voice-result .v { font-family: var(--serif); font-size: 27px; line-height: 1.2; margin-bottom: 16px; }

.voice-note { font-size: 12px; color: var(--muted); margin-top: 16px; line-height: 1.6; }

/* Conversation */

.chat-wrap { max-width: 860px; display: flex; flex-direction: column; height: calc(100svh - 62px - 68px); }

.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 4px 0 18px; }

.msg { max-width: 82%; }
.msg.user { align-self: flex-end; }
.msg.bot { align-self: flex-start; }

.msg .bubble {
  padding: 12px 16px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--ink-soft);
}

.msg.user .bubble { background: rgba(25, 184, 166, 0.1); border-color: rgba(25, 184, 166, 0.28); }
.msg .shi { font-family: var(--serif); font-size: 22px; line-height: 1.25; }
.msg .fr { font-size: 13.5px; color: var(--muted); margin-top: 7px; }
.msg .notes { font-size: 11.5px; color: var(--muted); margin-top: 7px; font-style: italic; }
.msg .who { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }

.chat-bar {
  display: flex;
  gap: 9px;
  align-items: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.chat-bar textarea {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--ink-soft);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 15px;
  resize: none;
  outline: none;
  min-height: 46px;
  max-height: 140px;
  color: var(--bone);
}

.chat-bar textarea:focus { border-color: var(--teal); }

/* Settings dialog */

.dialog {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

.dialog.open { display: flex; }

.dialog__box {
  width: 100%;
  max-width: 520px;
  background: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
  max-height: 90svh;
  overflow-y: auto;
}

.dialog__head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.dialog__head h2 { font-size: 16px; font-weight: 600; flex: 1; }

.dialog .field { margin-bottom: 14px; }
.dialog .field label { color: var(--muted); }
.dialog .field input { background: var(--ink); }

.dialog .hint { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 6px; }

/* Mobile app */

.app-mobile-nav { display: none; }

@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-rail { display: none; }
  .app-content { padding: 16px 16px 90px; }
  .app-mobile-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 19, 17, 0.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom, 0px));
    z-index: 70;
  }
  .app-mobile-nav button {
    border: 0;
    background: none;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 8.5px;
    font-family: var(--mono);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 2px;
  }
  .app-mobile-nav button svg { width: 19px; height: 19px; }
  .app-mobile-nav button.active { color: var(--teal); }
  .chat-wrap { height: calc(100svh - 62px - 100px); }
}

/* Utilitaires */

.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;
}

.muted { color: var(--muted); }
.center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.full { width: 100%; }

/* ---- Tableau comparatif --------------------------------------------------- */

.compare-wrap { overflow-x: auto; border: 1px solid var(--line-dark); border-radius: var(--radius); }

.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 13.5px;
}

.compare th,
.compare td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-dark);
}

.compare thead th {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
  font-weight: 500;
  background: rgba(8, 11, 10, 0.03);
}

.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 600; }
.compare td:not(:first-child) { color: var(--muted-dark); }
.compare .yes { color: var(--teal-deep); font-weight: 600; }
.compare .no { color: #b4ac9b; }

/* ---- Pages légales -------------------------------------------------------- */

.legal-page { padding-top: calc(var(--nav-h) + 56px); }

.legal-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  border-left: 1px solid var(--line-dark);
  padding-left: 18px;
}

.legal-toc a {
  display: block;
  font-size: 13px;
  color: var(--muted-dark);
  padding: 5px 0;
}

.legal-toc a:hover { color: var(--teal-deep); }

.prose { max-width: 74ch; }

.prose h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.prose h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  margin: 52px 0 14px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.prose h3 { font-size: 16px; margin: 26px 0 8px; }

.prose p,
.prose li {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted-dark);
  margin-bottom: 12px;
}

.prose ul { list-style: disc; padding-left: 20px; margin-bottom: 16px; }
.prose a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose .updated { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 32px; }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; border-left: 0; border-top: 1px solid var(--line-dark); padding: 16px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
}

/* ---- Erreur --------------------------------------------------------------- */

.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
}

.error-page .code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--teal);
  margin-bottom: 18px;
}

.error-page h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 8vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.error-page p { color: var(--muted); max-width: 44ch; margin: 0 auto 28px; }

[hidden] { display: none !important; }

.mobile-menu { visibility: hidden; transition: transform 0.45s var(--ease), visibility 0s linear 0.45s; }
.mobile-menu.open { visibility: visible; transition: transform 0.45s var(--ease), visibility 0s; }

.history-item {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  width: 100%;
  color: var(--muted);
  font-family: var(--sans);
}

.tag--alt {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}

@media (max-width: 640px) {
  .app-top .tag { display: none; }
  .app-top h1 { font-size: 13px; }
  .app-top .sub { font-size: 11px; }
}

.desk-result { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.desk-result[hidden] { display: none; }
.desk-result ul { margin: 0; padding-left: 20px; }
.desk-review { padding: 10px 12px; border: 1px solid var(--teal); border-radius: 8px; font-weight: 600; }
.desk-note { opacity: .75; font-size: .875rem; }

.voice-edit { width: 100%; resize: vertical; background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 8px; padding: 10px; font: inherit; }
