/* ═══════════════════════════════════════════════════════════════
   Nofy IA — feuille de style du site (accueil, tarifs, pages légales)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #faf9f7;
  --bg-elev: #ffffff;
  --surface: #f3f2ee;
  --surface-2: #ebe9e3;
  --border: rgba(20, 18, 14, 0.08);
  --border-strong: rgba(20, 18, 14, 0.14);
  --text: #16150f;
  --text-muted: #5f5d57;
  --text-light: #8f8c84;
  --ink: #16150f;
  --on-ink: #faf9f7;
  --accent: #5b4cf0;
  --accent-soft: rgba(91, 76, 240, 0.10);
  --accent-2: #f2734b;
  --success: #16a34a;
  --danger: #dc2626;
  --warning-bg: #fff4d6;
  --warning-text: #7a5300;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(20, 18, 14, 0.05);
  --shadow: 0 1px 3px rgba(20, 18, 14, 0.05), 0 8px 24px rgba(20, 18, 14, 0.06);
  --shadow-lg: 0 24px 64px -12px rgba(20, 18, 14, 0.18);
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --container: 1160px;
  --header-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c0b;
    --bg-elev: #151513;
    --surface: #1b1b19;
    --surface-2: #252522;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #f3f2ee;
    --text-muted: #b0aea7;
    --text-light: #7d7b75;
    --ink: #f3f2ee;
    --on-ink: #0c0c0b;
    --accent: #9b8fff;
    --accent-soft: rgba(155, 143, 255, 0.14);
    --warning-bg: #3a2e10;
    --warning-text: #ffd987;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 64px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0c0b;
  --bg-elev: #151513;
  --surface: #1b1b19;
  --surface-2: #252522;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f2ee;
  --text-muted: #b0aea7;
  --text-light: #7d7b75;
  --ink: #f3f2ee;
  --on-ink: #0c0c0b;
  --accent: #9b8fff;
  --accent-soft: rgba(155, 143, 255, 0.14);
  --warning-bg: #3a2e10;
  --warning-text: #ffd987;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 64px -12px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
.muted { color: var(--text-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent); background: var(--accent-soft);
  padding: 6px 12px; border-radius: 999px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px;
  font-size: 15px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, opacity .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { opacity: .88; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -8px var(--accent); }
.btn-accent:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; color: var(--text); }
.logo svg { width: 26px; height: 26px; fill: currentColor; transition: transform .4s ease; }
.logo:hover svg { transform: rotate(45deg); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-muted); text-decoration: none; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); }
.header-cta { display: flex; align-items: center; gap: 8px; }
.theme-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--border); background: transparent; color: var(--text-muted);
  border-radius: 10px; cursor: pointer; transition: background .2s, color .2s;
}
.theme-btn:hover { background: var(--surface); color: var(--text); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .nav, .header-cta .btn-ghost { display: none; }
  .menu-toggle { display: grid; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg-elev); border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px; box-shadow: var(--shadow);
  }
  .nav.open a { padding: 12px; font-size: 16px; }
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 680px; z-index: -1;
  background:
    radial-gradient(40% 50% at 75% 30%, rgba(91, 76, 240, 0.16), transparent 70%),
    radial-gradient(35% 45% at 20% 10%, rgba(242, 115, 75, 0.13), transparent 70%);
  filter: blur(10px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(44px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.02em; margin: 20px 0 20px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { font-size: 19px; color: var(--text-muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-email { display: flex; gap: 8px; margin-top: 32px; max-width: 480px; }
.hero-email input {
  flex: 1; min-width: 0; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--border-strong); background: var(--bg-elev); color: var(--text);
  font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.hero-email input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--text-light); }
.hero-note a { color: var(--text-muted); }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; padding: 0; list-style: none; font-size: 14px; color: var(--text-muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 16px; height: 16px; color: var(--success); }
@media (max-width: 960px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 520px) { .hero-email { flex-direction: column; } }

/* ── Démo de conversation ────────────────────────────────────── */
.demo {
  position: relative;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.demo::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(140deg, rgba(91, 76, 240, .35), transparent 30%, transparent 70%, rgba(242, 115, 75, .3)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; border: 1px solid transparent;
}
.demo-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface); }
.demo-dots { display: flex; gap: 6px; }
.demo-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); }
.demo-model { font-size: 13px; font-weight: 600; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.demo-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-light); }
.demo-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; min-height: 360px; }
.bubble-user {
  align-self: flex-end; max-width: 82%;
  background: var(--ink); color: var(--on-ink);
  padding: 12px 16px; border-radius: 18px 18px 4px 18px; font-size: 14.5px;
}
.bubble-ai { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.bubble-ai .avatar { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); display: grid; place-items: center; }
.bubble-ai .avatar svg { width: 15px; height: 15px; fill: var(--on-ink); }
.bubble-ai .content { flex: 1; min-width: 0; }
.bubble-ai .content strong { font-weight: 600; }
.bubble-ai ul { margin: 8px 0 0; padding-left: 18px; }
.bubble-ai li { margin: 4px 0; }
.demo-input { margin: 0 18px 18px; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border: 1px solid var(--border-strong); border-radius: 16px; color: var(--text-light); font-size: 14px; }
.demo-input span { flex: 1; }
.demo-send { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); display: grid; place-items: center; }
.demo-send svg { width: 16px; height: 16px; stroke: var(--on-ink); }
.typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-light); animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.fade-in { animation: fadeIn .4s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Sections ────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -0.015em; margin: 16px 0 14px; }
.section-head p { color: var(--text-muted); font-size: 18px; }
@media (max-width: 640px) { .section { padding: 64px 0; } .section-head { margin-bottom: 40px; } }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card h3 { font-size: 17px; font-weight: 650; margin: 18px 0 8px; letter-spacing: -0.01em; }
.card p { color: var(--text-muted); font-size: 15px; }
.icon-tile {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.icon-tile svg { width: 22px; height: 22px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-muted); margin-left: 6px; vertical-align: middle; }

/* Pourquoi Nofy */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-elev); }
.why > div { padding: 36px 32px; border-right: 1px solid var(--border); }
.why > div:last-child { border-right: 0; }
.why .num { font-family: var(--font-serif); font-size: 44px; line-height: 1; color: var(--accent); }
.why h3 { font-size: 18px; margin: 18px 0 10px; }
.why p { color: var(--text-muted); font-size: 15px; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } .why > div { border-right: 0; border-bottom: 1px solid var(--border); } .why > div:last-child { border-bottom: 0; } }

/* Étapes */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--border); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--on-ink); font-weight: 700; font-size: 14px; margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ── Tarifs ──────────────────────────────────────────────────── */
.billing-toggle {
  display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); margin: 0 auto 40px;
}
.billing-toggle button {
  border: 0; background: transparent; color: var(--text-muted); cursor: pointer;
  padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s;
}
.billing-toggle button[aria-pressed="true"] { background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow-sm); }
.save-pill { font-size: 11px; font-weight: 700; color: var(--success); background: rgba(22, 163, 74, .12); padding: 2px 8px; border-radius: 999px; }
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: 24px; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px;
}
.price-card.featured { border: 1.5px solid var(--ink); box-shadow: var(--shadow-lg); }
.price-card .ribbon {
  position: absolute; top: -12px; left: 32px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}
.price-card h3 { font-size: 16px; font-weight: 600; color: var(--text-muted); }
.price { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 4px; }
.price .amount { font-size: 48px; font-weight: 750; letter-spacing: -0.03em; }
.price .per { color: var(--text-muted); font-size: 15px; }
.price-sub { font-size: 13px; color: var(--text-light); min-height: 20px; }
.price-card ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; flex: 1; }
.price-card li { display: flex; gap: 10px; font-size: 15px; color: var(--text-muted); }
.price-card li svg { flex: none; width: 18px; height: 18px; color: var(--success); margin-top: 3px; }
.price-card li.off { color: var(--text-light); }
.price-card li.off svg { color: var(--text-light); }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 28px; font-size: 13px; color: var(--text-muted); }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 16px; height: 16px; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.pay-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--text-muted); background: var(--bg-elev); }
.pay-badge svg { width: 14px; height: 14px; }
.fine-print { max-width: 760px; margin: 32px auto 0; font-size: 13px; color: var(--text-light); text-align: center; }
.fine-print a { color: var(--text-muted); }

.compare { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--bg-elev); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.compare thead th { background: var(--surface); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 20px; height: 20px;
  background: currentColor; opacity: .5;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; color: var(--text-muted); }
.faq .answer p + p { margin-top: 10px; }
.faq .answer a { color: var(--text); }
.faq-group-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-light); margin: 32px 0 4px; }

/* ── CTA ─────────────────────────────────────────────────────── */
.cta {
  position: relative; overflow: hidden; text-align: center;
  background: var(--ink); color: var(--on-ink);
  border-radius: var(--radius-xl); padding: 72px 32px;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 80% at 50% 0%, rgba(155, 143, 255, .35), transparent 70%);
}
.cta > * { position: relative; }
.cta h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 14px; }
.cta p { opacity: .75; font-size: 18px; margin-bottom: 30px; }
.cta .btn-primary { background: var(--on-ink); color: var(--ink); }

/* ── Bandeau d'avertissement IA ──────────────────────────────── */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--radius);
  background: var(--warning-bg); color: var(--warning-text); font-size: 15px;
}
.notice svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.notice a { color: inherit; font-weight: 600; }
.notice-info { background: var(--accent-soft); color: var(--text); }
.notice-info svg { color: var(--accent); }

/* ── Pages de contenu (légal, à propos…) ─────────────────────── */
.page-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(38px, 5vw, 58px); letter-spacing: -0.015em; margin: 14px 0 12px; }
.page-hero p { color: var(--text-muted); font-size: 18px; max-width: 680px; }
.breadcrumb { font-size: 13px; color: var(--text-light); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding: 48px 0 96px; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: 14px; }
.toc p { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-light); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 1px solid var(--border); }
.toc a { display: block; padding: 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-muted); text-decoration: none; }
.toc a:hover, .toc a.active { color: var(--text); border-left-color: var(--ink); }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; } }

.prose { max-width: 720px; font-size: 16.5px; }
.prose h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 650; margin: 28px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; color: var(--text-muted); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; background: var(--surface); }
@media (max-width: 640px) { .prose table { display: block; overflow-x: auto; } .prose th, .prose td { min-width: 130px; } }
.prose .notice { margin: 0 0 24px; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--surface); padding: 2px 6px; border-radius: 6px; }
.updated { font-size: 14px; color: var(--text-light); margin-bottom: 32px; }

/* Champs à compléter par l'éditeur (visibles exprès) */
.todo { background: var(--warning-bg); color: var(--warning-text); padding: 1px 6px; border-radius: 4px; font-weight: 600; font-style: normal; }

/* ── Formulaires ─────────────────────────────────────────────── */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: var(--bg-elev); color: var(--text);
  font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-muted); }
.check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--accent); }
.form-status { font-size: 14px; min-height: 20px; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }
.hp { position: absolute; left: -9999px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; padding: 56px 0 96px; }
.contact-card { display: flex; gap: 14px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-elev); }
.contact-card + .contact-card { margin-top: 12px; }
.contact-card h3 { font-size: 15px; margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: 15px; color: var(--text-muted); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Changelog / statut */
.status-box { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-elev); margin-bottom: 40px; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--text-light); box-shadow: 0 0 0 4px rgba(127, 127, 127, .15); }
.status-dot.up { background: var(--success); box-shadow: 0 0 0 4px rgba(22, 163, 74, .18); }
.status-dot.down { background: var(--danger); box-shadow: 0 0 0 4px rgba(220, 38, 38, .18); }
.timeline { position: relative; display: grid; gap: 28px; }
.release { display: grid; grid-template-columns: 140px 1fr; gap: 24px; }
.release time { font-size: 14px; color: var(--text-light); padding-top: 4px; }
.release h3 { font-size: 20px; margin-bottom: 10px; }
@media (max-width: 640px) { .release { grid-template-columns: 1fr; gap: 6px; } }

/* 404 */
.err-page { min-height: calc(100vh - var(--header-h) - 200px); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.err-page .code { font-family: var(--font-serif); font-size: clamp(96px, 18vw, 180px); line-height: 1; color: var(--accent); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-grid h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-light); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--text-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; }
.footer-brand p { color: var(--text-muted); margin: 14px 0 18px; max-width: 300px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); color: var(--text-muted); }
.socials a:hover { color: var(--text); background: var(--surface); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-light); font-size: 13px; }
.footer-bottom button { background: none; border: 0; color: var(--text-muted); text-decoration: underline; cursor: pointer; padding: 0; font-size: 13px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }

/* ── Bandeau cookies ─────────────────────────────────────────── */
.cookie-banner {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px;
  max-width: 560px; margin-left: auto;
  background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 20px 22px;
  transform: translateY(20px); opacity: 0; pointer-events: none; transition: transform .3s ease, opacity .3s ease;
}
.cookie-banner.show { transform: none; opacity: 1; pointer-events: auto; }
.cookie-banner h2 { font-size: 16px; margin-bottom: 6px; }
.cookie-banner p { font-size: 14px; color: var(--text-muted); }
.cookie-banner a { color: var(--text); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cookie-actions .btn { flex: 1; }

/* ── Animation au défilement ─────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
