/* =========================================================
   Promptpoche
   VOIX : simple, claire, accueillante. Une marketplace qu'on parcourt sans effort.
   IDÉE : la poche. Les prompts sont « à portée de poche » : couture pointillée,
          coins arrondis, une seule couleur franche (bleu toile) et une touche
          jaune « fil de couture ».
   COULEUR : blanc / ardoise, bleu toile, fil jaune. Mode nuit bleu nuit.
   TYPE : Figtree partout, 4 tailles.
   ========================================================= */

@import url("/fonts/figtree/index.css");
@import url("/utilitaires.css");

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --card: #ffffff;
  --ink: #111633;
  --ink-2: #4b5170;
  --muted: #5d6382;
  --line: #e4e6ef;
  --line-strong: #cfd3e3;
  --brand: #3346d3;
  --brand-ink: #ffffff;
  --brand-soft: #eceffd;
  --thread: #f2b632;
  --thread-soft: #fff5dc;
  --ok: #1d8a52;
  --ok-soft: #e6f6ed;
  --danger: #c22a3c;
  --shadow: 0 1px 2px rgb(17 22 51 / .05), 0 4px 16px rgb(17 22 51 / .05);
  --radius: 14px;
  --radius-sm: 9px;
  --font: "Figtree Variable", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1220px;
  --pad: clamp(16px, 4vw, 40px);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1124;
  --bg-soft: #131833;
  --card: #161c3a;
  --ink: #eef0fa;
  --ink-2: #b7bcd6;
  --muted: #8c92b3;
  --line: #262d52;
  --line-strong: #364071;
  --brand: #8b9bff;
  --brand-ink: #0d1124;
  --brand-soft: #1e2654;
  --thread: #f5c451;
  --thread-soft: #2b2a2a;
  --ok: #5fd39a;
  --ok-soft: #133226;
  --danger: #ff7b8a;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 6px 20px rgb(0 0 0 / .25);
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
[hidden] { display: none !important; }
html { scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.7 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: clip; transition: background-color .2s, color .2s;
}
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
h2 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding-top: clamp(44px, 6.5vw, 92px); padding-bottom: clamp(44px, 6.5vw, 92px); }
.section-soft { background: var(--bg-soft); }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--card); padding: 8px 14px; border-radius: 8px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--card); color: var(--ink); font-weight: 650; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.08); border-color: var(--brand); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--bg-soft); border-color: transparent; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 15px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link { color: var(--brand); font-weight: 650; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 22px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; flex: none; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 8px 11px; border-radius: 8px; text-decoration: none; font-weight: 550; color: var(--ink-2); font-size: 16px; white-space: nowrap; }
.main-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }
.new-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: var(--thread); color: #2a1d00; font-size: 12px; font-weight: 750; vertical-align: 1px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.auth-slot { display: flex; gap: 6px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: var(--bg-soft); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 6px var(--pad) 16px; }
.mobile-nav > a { display: block; padding: 11px 4px; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav .mobile-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.demo-banner { background: var(--thread-soft); color: var(--ink); text-align: center; font-size: 14px; padding: 7px 12px; border-bottom: 1px solid var(--line); }

@media (max-width: 960px) {
  .main-nav, .header-actions .auth-desktop { display: none; }
  .menu-btn { display: grid; }
  .site-header.open .mobile-nav { display: block; }
}

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: clamp(40px, 6vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-block: 48px 32px; }
.footer-grid h3 { font-size: 15px; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-about p { color: var(--muted); font-size: 15px; margin-top: 12px; max-width: 32ch; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 18px 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .footer-grid { padding-block: 36px 20px; gap: 26px 16px; }
  .footer-about p { max-width: none; font-size: 16px; }
  .footer-grid h3 { font-size: 16px; margin-bottom: 6px; }
  .footer-grid ul { gap: 0; font-size: 16px; }
  .footer-grid li a { display: flex; align-items: center; min-height: 44px; }
  .footer-bottom { flex-direction: column; gap: 4px; padding-block: 16px 28px; font-size: 14.5px; }
}

/* ---------- Accueil ---------- */
.hero { padding-top: clamp(40px, 7vw, 84px); padding-bottom: clamp(32px, 5vw, 56px); text-align: center; position: relative; }
.hero h1 { max-width: 18ch; margin: 0 auto; font-size: clamp(34px, 5.4vw, 58px); }
.hero .lede { max-width: 58ch; margin: 16px auto 0; color: var(--ink-2); font-size: clamp(16px, 1.6vw, 18px); }
.search { display: flex; gap: 8px; max-width: 620px; margin: 28px auto 0; padding: 6px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); }
.search input { flex: 1; border: 0; background: transparent; padding: 10px 12px; font-size: 17px; outline: none; }
.search:focus-within { border-color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-size: 15px; font-weight: 550; text-decoration: none; color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .count { color: var(--muted); font-weight: 500; }
.chip.on .count, .chip[aria-pressed="true"] .count { color: inherit; opacity: .7; }

.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.spot { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); text-decoration: none; }
.spot:hover { border-color: var(--line-strong); }
.spot .spot-ico { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--thread-soft); color: #9a6a00; }
:root[data-theme="dark"] .spot .spot-ico { color: var(--thread); }
.spot .spot-ico svg { width: 26px; height: 26px; }
.spot .kicker { font-size: 14px; font-weight: 700; color: var(--brand); }
.spot h3 { margin-top: 2px; }
.spot p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .spotlight { grid-template-columns: 1fr; } }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head p { color: var(--muted); margin-top: 4px; }

.groups { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.group { display: grid; gap: 10px; padding: 18px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); text-decoration: none; }
.group:hover { border-color: var(--brand); }
.group .g-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.group .g-ico svg { width: 22px; height: 22px; }
.group strong { font-size: 16px; }
.group span { color: var(--muted); font-size: 14px; }
@media (max-width: 1000px) { .groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tool { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); text-decoration: none; font-weight: 650; font-size: 16px; }
.tool:hover { border-color: var(--brand); }
.tool small { color: var(--muted); font-weight: 500; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; margin-bottom: 12px; }
.steps p { color: var(--muted); font-size: 16px; margin-top: 4px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.cta-band { border-radius: 20px; padding: clamp(28px, 5vw, 52px); background: var(--brand); color: var(--brand-ink); display: grid; gap: 14px; justify-items: center; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 10px; border: 2px dashed color-mix(in srgb, var(--brand-ink) 35%, transparent); border-radius: 14px; pointer-events: none; }
.cta-band p { max-width: 52ch; opacity: .9; }
.cta-band .btn { background: var(--brand-ink); color: var(--brand); border-color: var(--brand-ink); position: relative; z-index: 1; }

/* ---------- Cartes prompt ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 22px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); overflow: hidden; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.cover { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--c-bg); color: var(--c-ink); overflow: hidden; }
.cover::before { content: ""; position: absolute; inset: 9px; border: 1.5px dashed color-mix(in srgb, var(--c-ink) 30%, transparent); border-radius: 10px; }
.cover svg { width: 44px; height: 44px; opacity: .9; }
.cover .cover-label { position: absolute; left: 16px; bottom: 13px; font-size: 13px; font-weight: 700; }
.badge { position: absolute; top: 14px; left: 14px; padding: 3px 9px; border-radius: 99px; font-size: 13px; font-weight: 750; }
.badge-free { background: var(--ok); color: #fff; }
.badge-premium { background: var(--ink); color: var(--bg); }
.rank { position: absolute; top: 12px; right: 14px; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 99px; display: grid; place-items: center; background: var(--thread); color: #2a1d00; font-weight: 800; font-size: 15px; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.card-body h3 { font-size: 17px; line-height: 1.3; }
.card-body .excerpt { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-size: 14px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); text-decoration: none; white-space: nowrap; }
.price { font-weight: 800; white-space: nowrap; }
.price.free { color: var(--ok); }
/* Couleurs des couvertures par groupe */
.g-texte { --c-bg: #e8ecfd; --c-ink: #2b3bb5; }
.g-image { --c-bg: #fdeee4; --c-ink: #b4521c; }
.g-video { --c-bg: #f3e8fd; --c-ink: #7a35b8; }
.g-audio { --c-bg: #e4f6ef; --c-ink: #1d7a52; }
.g-web { --c-bg: #fff4d6; --c-ink: #8a6200; }
.g-automatisation { --c-bg: #e3f3fa; --c-ink: #1c6c8f; }
:root[data-theme="dark"] .g-texte { --c-bg: #1d2552; --c-ink: #a9b4ff; }
:root[data-theme="dark"] .g-image { --c-bg: #3a2218; --c-ink: #ffb48a; }
:root[data-theme="dark"] .g-video { --c-bg: #2d1d45; --c-ink: #d3a8ff; }
:root[data-theme="dark"] .g-audio { --c-bg: #132f25; --c-ink: #7ee0b0; }
:root[data-theme="dark"] .g-web { --c-bg: #33290f; --c-ink: #f5c451; }
:root[data-theme="dark"] .g-automatisation { --c-bg: #11293a; --c-ink: #8fd3f2; }

/* ---------- État vide ---------- */
.empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: clamp(32px, 6vw, 56px) 20px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--card); grid-column: 1 / -1; }
.empty svg { width: 46px; height: 46px; color: var(--brand); }
.empty p { color: var(--muted); max-width: 46ch; }

/* ---------- Catalogue ---------- */
.page-head { padding-top: clamp(34px, 5vw, 60px); padding-bottom: 18px; }
.page-head p { color: var(--ink-2); margin-top: 12px; max-width: 64ch; font-size: 18px; line-height: 1.7; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .5; }
.catalog { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; padding-top: 20px; }
.filters { align-self: start; }
.f-card { display: grid; gap: 8px; }
.f-card h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 750; margin: 0 0 8px; }
.f-search { position: relative; }
.f-search input { width: 100%; min-height: 46px; padding: 10px 40px 10px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg-soft); font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.f-search input:focus { border-color: var(--brand); background: var(--card); box-shadow: 0 0 0 3px var(--brand-soft); }
.f-search svg { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.f-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.f-chip { padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.f-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.f-chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.f-box { max-height: 228px; overflow-y: auto; padding: 6px 8px; border: 1px solid var(--line); border-radius: 12px; scrollbar-width: thin; }
.f-box-sm { max-height: 188px; }
.f-box-title { margin: 8px 4px 4px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 750; color: var(--thread); }
.f-box-title:first-child { margin-top: 2px; }
.f-check { display: flex; align-items: center; gap: 9px; padding: 6px 4px; border-radius: 8px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.f-check:hover { background: var(--bg-soft); color: var(--ink); }
.f-check input { width: 17px; height: 17px; accent-color: var(--brand); flex: none; margin: 0; }
.f-check span { flex: 1; }
.f-check small { color: var(--muted); font-size: 13px; }
.f-check:has(input:checked) { color: var(--ink); font-weight: 650; }
.f-free { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed var(--thread); border-radius: 12px; background: var(--thread-soft); cursor: pointer; }
.f-free input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; flex: none; }
.f-free span { display: grid; }
.f-free small { color: var(--ink-2); font-size: 13.5px; }
.f-reset { justify-self: start; border: 0; background: none; padding: 0; color: var(--muted); font: inherit; font-size: 14.5px; font-weight: 650; text-decoration: underline; cursor: pointer; }
.f-reset:hover { color: var(--ink); }
.chosen { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.chosen:empty { display: none; }
.chosen-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--brand-soft); background: var(--brand-soft); color: var(--brand); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.chosen-tag:hover { border-color: var(--brand); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 16px; cursor: pointer; }
.toggle input { appearance: none; width: 42px; height: 24px; border-radius: 99px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .15s; flex: none; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle input:checked { background: var(--ok); }
.toggle input:checked::after { transform: translateX(18px); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.toolbar .search { margin: 0; max-width: 420px; flex: 1; box-shadow: none; padding: 3px; }
.select { min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card); font-size: 16px; }
.filters-btn { display: none; }
.result-count { color: var(--muted); font-size: 15px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.pagination button { min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 650; }
.pagination button[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (max-width: 900px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(340px, 90vw); max-height: none; z-index: 60; background: var(--bg); padding: 12px; box-shadow: var(--shadow); transform: translateX(-105%); transition: transform .2s; }
  .filters.open { transform: none; }
  .filters-btn { display: inline-flex; }
  .filters-close { display: inline-flex !important; }
}
.filters-close { display: none !important; justify-self: end; }
.filters .f-card { gap: 18px; }
@media (max-width: 900px) { .filters .f-card { box-shadow: none; border: 0; padding: 4px; } .filters .filters-close { display: inline-flex !important; } }
.scrim { position: fixed; inset: 0; background: rgb(0 0 0 / .35); z-index: 55; }

/* ---------- Fiche prompt ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; padding-top: 12px; }
.product .cover { border-radius: var(--radius); aspect-ratio: 16 / 6; }
.product .cover svg { width: 64px; height: 64px; }
.product h1 { font-size: clamp(26px, 3.4vw, 38px); margin-top: 22px; }
.by { color: var(--muted); margin-top: 6px; font-size: 16px; }
.prose { margin-top: 26px; display: grid; gap: 14px; max-width: 70ch; }
.prose h2 { font-size: 21px; margin-top: 16px; }
.prose h3 { margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.prose blockquote { margin: 0; padding: 14px 18px; border-left: 3px solid var(--brand); background: var(--bg-soft); border-radius: 0 10px 10px 0; color: var(--ink-2); }
.prose pre { margin: 0; padding: 16px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; white-space: pre-wrap; font: 14px/1.55 ui-monospace, "SF Mono", Menlo, monospace; }
.prose code { font: 0.92em ui-monospace, Menlo, monospace; background: var(--bg-soft); padding: 1px 5px; border-radius: 4px; }
.prose a { color: var(--brand); }
.note { padding: 14px 16px; border-radius: 10px; background: var(--thread-soft); border: 1px solid color-mix(in srgb, var(--thread) 40%, transparent); font-size: 16px; }
.buy-box { position: sticky; top: 84px; display: grid; gap: 14px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.buy-box .big-price { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.buy-box .big-price.free { color: var(--ok); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.45; cursor: pointer; }
.check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.secure { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.secure svg { width: 16px; height: 16px; flex: none; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 15px; border-top: 1px solid var(--line); padding-top: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 650; text-align: right; }
.share { display: flex; flex-wrap: wrap; gap: 6px; }
.faq-list { display: grid; gap: 8px; }
.faq-list details { border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.faq-list summary { cursor: pointer; padding: 14px 16px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--muted); font-weight: 500; font-size: 20px; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > div, .faq-list details > p { padding: 0 16px 16px; color: var(--ink-2); }
.prompt-box { margin-top: 8px; border: 1px solid var(--brand); border-radius: var(--radius); overflow: hidden; }
.prompt-box header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; background: var(--brand-soft); }
.prompt-box .license { font-size: 14px; color: var(--ink-2); }
.prompt-text { position: relative; margin: 0; padding: 18px; white-space: pre-wrap; font: 14.5px/1.65 ui-monospace, "SF Mono", Menlo, monospace; background-repeat: repeat; max-height: 520px; overflow: auto; }
.status { font-size: 15px; font-weight: 600; color: var(--brand); }
.status:empty { display: none; }
@media (max-width: 960px) { .product { grid-template-columns: 1fr; } .buy-box { position: static; } }
@media print { .prompt-box, .buy-box { display: none !important; } }

/* ---------- Blog ---------- */
.cat-bar { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0 14px; scrollbar-width: thin; }
.cat-bar .chip { flex: none; }
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.post { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); text-decoration: none; }
.post:hover { border-color: var(--line-strong); }
.post .cover { aspect-ratio: 16 / 8; }
.post-body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.post-body h3 { font-size: 17px; line-height: 1.3; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--muted); }
.post-meta .cat { color: var(--brand); font-weight: 700; }
.post-list { display: grid; gap: 14px; }
.post-row { display: grid; grid-template-columns: 200px 1fr; }
.post-row .cover { aspect-ratio: auto; height: 100%; min-height: 120px; }
.side { display: grid; gap: 24px; position: sticky; top: 84px; }
.side h3 { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.side .search { margin: 0; box-shadow: none; padding: 3px; }
@media (max-width: 960px) { .blog-layout { grid-template-columns: 1fr; } .side { position: static; } .featured { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .post-row { grid-template-columns: 1fr; } .post-row .cover { min-height: 110px; } }
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: clamp(28px, 4vw, 42px); margin-top: 6px; }
.article .lede { font-size: 19px; color: var(--ink-2); margin-top: 14px; }
.article .prose { max-width: none; font-size: 17px; }
.article .prose h2 { font-size: 24px; margin-top: 22px; }

/* ---------- Défis ---------- */
.defi-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.defi-art { aspect-ratio: 4 / 5; border-radius: 18px; background: var(--c-bg, var(--brand-soft)); color: var(--c-ink, var(--brand)); display: grid; place-items: center; position: relative; overflow: hidden; }
.defi-art::before { content: ""; position: absolute; inset: 12px; border: 2px dashed currentColor; opacity: .35; border-radius: 12px; }
.defi-art svg { width: 30%; height: auto; }
.copy-box { display: grid; gap: 12px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-soft); }
.copy-box pre { margin: 0; white-space: pre-wrap; font: 15px/1.6 var(--font); }
.newsletter { display: grid; gap: 12px; padding: 22px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid var(--line); }
.newsletter form { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter input[type="email"] { flex: 1 1 220px; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card); font-size: 17px; }
.newsletter .fine { font-size: 14px; color: var(--muted); }
.defi-card .cover { aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .defi-hero { grid-template-columns: 1fr; } .defi-art { aspect-ratio: 16 / 9; } }

/* ---------- Formulaires & connexion ---------- */
.auth-page { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 40px 16px; background: var(--bg-soft); }
.auth-card { width: min(100%, 420px); display: grid; gap: 18px; padding: clamp(24px, 4vw, 34px); border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.auth-card .logo { justify-self: center; }
.auth-card h1 { font-size: 24px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 16px; margin-top: -8px; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.input, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--card); font-size: 17px; font-weight: 400;
}
.field textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
.field input:not([type=checkbox]):focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.field .hint { font-weight: 400; color: var(--muted); font-size: 14px; }
.pw { position: relative; }
.pw input { padding-right: 76px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--brand); font-weight: 650; font-size: 14px; cursor: pointer; padding: 6px 8px; }
.meter { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--danger); transition: width .2s, background .2s; }
.form-error { color: var(--danger); font-size: 15px; font-weight: 600; }
.form-error:empty { display: none; }
.form-ok { color: var(--ok); font-size: 15px; font-weight: 600; }
.form-ok:empty { display: none; }
.divider { text-align: center; font-size: 15px; color: var(--muted); }
.trust { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 14.5px; color: var(--muted); }
.trust svg { width: 14px; height: 14px; }

/* ---------- Compte & admin ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs button { padding: 10px 14px; border: 0; background: none; border-bottom: 2px solid transparent; font-weight: 650; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.panel { display: grid; gap: 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.stat strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-weight: 700; color: var(--muted); font-size: 14px; background: var(--bg-soft); }
td.num, th.num { text-align: right; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--bg-soft); border: 1px solid var(--line); white-space: nowrap; }
.pill.on { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.editor { display: grid; gap: 14px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.editor .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.models { display: flex; flex-wrap: wrap; gap: 6px; }
.models label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); font-weight: 550; font-size: 15px; cursor: pointer; }
.models input { accent-color: var(--brand); }
.code-area { font: 14px/1.55 ui-monospace, Menlo, monospace !important; min-height: 220px !important; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lib-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.lib-item small { color: var(--muted); }

/* ---------- Pages simples ---------- */
.notice { max-width: 560px; margin: 0 auto; padding: 80px 20px; display: grid; gap: 14px; justify-items: start; }
.legal { max-width: 760px; }
.legal h2 { font-size: 20px; margin-top: 28px; margin-bottom: 8px; }
.legal p, .legal li { margin-bottom: 8px; color: var(--ink-2); }
.legal-note { padding: 12px 14px; border-radius: 10px; background: var(--thread-soft); font-weight: 600; font-size: 15px; margin: 16px 0; }

.toast { position: fixed; left: 50%; bottom: 20px; z-index: 90; transform: translate(-50%, 160%); padding: 11px 18px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 16px; box-shadow: var(--shadow); transition: transform .25s; max-width: calc(100% - 24px); }
.toast.on { transform: translate(-50%, 0); }

/* ---------- Créateurs ---------- */
.kicker { font-size: 15px; font-weight: 700; color: var(--brand); }
.block { padding-block: clamp(36px, 5vw, 64px); }
.maker-top { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(36px, 6vw, 72px) 12px; }
.maker-top h1 { font-size: clamp(32px, 4.4vw, 52px); margin-top: 6px; }
.maker-top .lede { margin-top: 14px; font-size: 18px; color: var(--ink-2); max-width: 52ch; }
.calc { display: grid; gap: 22px; padding: 26px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.calc h2 { font-size: 22px; }
.calc-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 12px; font-weight: 600; font-size: 15.5px; }
.calc-row output { font-weight: 750; color: var(--brand); background: var(--brand-soft); padding: 3px 10px; border-radius: 99px; font-size: 14.5px; }
.calc-row input[type="range"] { grid-column: 1 / -1; -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 6px 0; border-radius: 99px; cursor: pointer;
  background: linear-gradient(90deg, var(--brand) var(--p, 50%), var(--line) var(--p, 50%)); }
.calc-row input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 3px solid var(--brand); box-shadow: 0 2px 6px rgb(0 0 0 / .15); }
.calc-row input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--card); border: 3px solid var(--brand); }
.calc-result { display: grid; gap: 2px; padding: 18px 20px; border-radius: 16px; background: var(--brand-soft); color: var(--ink-2); font-size: 15px; }
.calc-result strong { font-size: clamp(36px, 4.6vw, 48px); font-weight: 800; line-height: 1.1; color: var(--brand); letter-spacing: -0.02em; }
.calc .muted { font-size: 14px; }
.road { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: road; }
.road li { counter-increment: road; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); display: grid; gap: 6px; align-content: start; }
.road li::before { content: counter(road); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 800; margin-bottom: 6px; }
.road strong { font-size: 17px; }
.road span { color: var(--muted); font-size: 16px; }
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.promises > div { padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.promises p { color: var(--muted); margin-top: 6px; font-size: 16px; }
.defi-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: clamp(22px, 4vw, 36px); border-radius: 18px; background: var(--brand); color: var(--brand-ink); }
.defi-band .btn-primary { background: var(--brand-ink); color: var(--brand); border-color: var(--brand-ink); }
.defi-band p { color: inherit !important; opacity: .9; }
@media (max-width: 860px) { .maker-top { grid-template-columns: 1fr; } .road, .promises { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .road, .promises { grid-template-columns: 1fr; } }
.stand-head { display: flex; gap: 20px; align-items: center; }
.stand-head p { color: var(--ink-2); max-width: 64ch; }
.stand-avatar { flex: none; width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-size: 36px; font-weight: 800; }
.pill.warn { background: #fde8ea; color: var(--danger); border-color: transparent; }
:root[data-theme="dark"] .pill.warn { background: #3a1520; }
.by .link { font-weight: 700; }

/* ---------- Bienvenue après l'inscription ---------- */
.welcome { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 22px 24px; margin-bottom: 24px; border-radius: var(--radius); background: var(--brand-soft); border: 1.5px dashed var(--thread); }
.welcome h2 { font-size: 24px; margin-bottom: 8px; }
.welcome p { max-width: 64ch; }
.welcome-mark { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); }
.welcome-mark svg { width: 30px; height: 30px; }
.linklike { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 700; text-decoration: underline; cursor: pointer; font-size: inherit; }
@media (max-width: 560px) { .welcome { grid-template-columns: 1fr; } }

/* ---------- Mon compte : espace avec barre latérale ---------- */
.acc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.acc-side { position: sticky; top: 84px; display: grid; gap: 4px; padding: 14px; border-radius: var(--radius); background: var(--bg-soft); }
.acc-who { display: flex; gap: 12px; align-items: center; padding: 6px 6px 14px; border-bottom: 2px dashed color-mix(in srgb, var(--thread) 70%, transparent); margin-bottom: 6px; }
.acc-who div { display: grid; }
.acc-avatar { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 18px; }
.acc-nav { display: grid; gap: 2px; }
.acc-group { margin: 12px 8px 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.acc-nav a { padding: 8px 10px; border-radius: 9px; text-decoration: none; font-weight: 600; font-size: 16px; color: var(--ink-2); }
.acc-nav a:hover { background: var(--card); color: var(--ink); }
.acc-nav a[aria-current] { background: var(--card); color: var(--brand); box-shadow: inset 3px 0 0 var(--thread); }
.acc-logout { justify-self: start; margin-top: 10px; color: var(--muted); }
.acc-main { display: grid; gap: 18px; }
.acc-panel { display: grid; gap: 18px; }
.acc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; }
.acc-head h1 { font-size: clamp(26px, 3vw, 34px); }
.acc-head p { margin-top: 4px; }
.acc-card { display: grid; gap: 14px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.acc-card h2 { font-size: 19px; }
.acc-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.acc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.acc-stat { display: grid; gap: 6px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); text-decoration: none; }
.acc-stat:hover { border-color: var(--brand); }
.acc-stat span { color: var(--muted); font-size: 14px; font-weight: 600; }
.acc-stat strong { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.acc-list { list-style: none; margin: 0; padding: 0; display: grid; }
.acc-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.acc-list li:last-child { border-bottom: 0; }
.acc-list a { font-weight: 600; text-decoration: none; }
.acc-list a:hover { color: var(--brand); }
.acc-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.acc-q { display: grid; gap: 2px; padding: 14px; border-radius: 12px; background: var(--bg-soft); text-decoration: none; }
.acc-q:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
.acc-q span { color: var(--muted); font-size: 15px; }
.acc-devices { list-style: none; margin: 0; padding: 0; display: grid; }
.acc-devices li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.toggle-row > span { display: grid; gap: 2px; }
.toggle-row input { appearance: none; width: 44px; height: 26px; border-radius: 99px; background: var(--line-strong); position: relative; cursor: pointer; flex: none; transition: background .15s; }
.toggle-row input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle-row input:checked { background: var(--ok); }
.toggle-row input:checked::after { transform: translateX(18px); }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 50%, transparent); background: color-mix(in srgb, var(--danger) 5%, var(--card)); }
.danger-zone h2 { color: var(--danger); }
.danger-zone summary { cursor: pointer; font-weight: 700; color: var(--danger); }
.slug-field { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); overflow: hidden; }
.slug-field span { padding: 0 4px 0 12px; color: var(--muted); white-space: nowrap; font-weight: 400; }
.slug-field input { border: 0 !important; box-shadow: none !important; padding-left: 2px !important; }
.slug-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.terms-box { max-height: 260px; overflow: auto; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg-soft); font-weight: 400; font-size: 15px; }
.terms-box h1 { font-size: 18px; margin-bottom: 8px; }
.terms-box h2 { font-size: 16px; margin: 14px 0 6px; }
.terms-box p, .terms-box li { margin-bottom: 6px; color: var(--ink-2); }
@media (max-width: 900px) {
  .acc { grid-template-columns: 1fr; }
  .acc-side { position: static; }
  .acc-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .acc-group { display: none; }
  .acc-nav a { flex: 0 0 auto; white-space: nowrap; background: var(--card); }
  .acc-side { min-width: 0; } .acc { min-width: 0; }
  .acc-stats { grid-template-columns: 1fr 1fr; }
  .acc-quick { grid-template-columns: 1fr; }
}
.sort-label { font-size: 15px; color: var(--muted); font-weight: 600; }
@media (max-width: 560px) { .sort-label { display: none; } }

/* Icônes Phosphor (duotone) et couleur par type de création */
svg.ph { flex: none; }
[data-g="texte"] { --gc: #3346d3; }
[data-g="image"] { --gc: #d23f86; }
[data-g="video"] { --gc: #e0592a; }
[data-g="audio"] { --gc: #7b4fd6; }
[data-g="web"] { --gc: #0e8f8a; }
[data-g="automatisation"] { --gc: #c98a00; }
:root[data-theme="dark"] [data-g="texte"] { --gc: #8b9bff; }
:root[data-theme="dark"] [data-g="image"] { --gc: #ff7fb8; }
:root[data-theme="dark"] [data-g="video"] { --gc: #ff9466; }
:root[data-theme="dark"] [data-g="audio"] { --gc: #b393ff; }
:root[data-theme="dark"] [data-g="web"] { --gc: #4fd1c5; }
:root[data-theme="dark"] [data-g="automatisation"] { --gc: #f5c451; }
.group .g-ico[data-g] { width: 46px; height: 46px; border-radius: 12px; color: var(--gc); background: color-mix(in srgb, var(--gc) 13%, transparent); }
.group .g-ico[data-g] svg { width: 28px; height: 28px; }
.group:hover .g-ico[data-g] { background: var(--gc); color: #fff; }
.group:hover .g-ico[data-g] svg path[opacity] { opacity: .35; }
#fav[aria-pressed="true"] { color: #d23f5a; border-color: currentColor; }
#fav[aria-pressed="true"] svg path[opacity] { opacity: 1; }

/* ---------- Accueil animé ---------- */
.hero-text > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-text > h1 { animation-delay: .05s; }
.hero-text > .lede { animation-delay: .15s; }
.hero-text > .search { animation-delay: .3s; }
.hero-text > .chips { animation-delay: .4s; }
.hero-text > #stat-line { animation-delay: .5s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  .hero-text > *, .hero-mascot { animation: none !important; }
}

/* Lettre d'info discrète */
.newsletter-compact { gap: 8px; padding: 0; background: none; border: 0; border-radius: 0; }
.newsletter-compact .nl-title { display: flex; align-items: center; gap: 8px; font-weight: 750; font-size: 16px; }
.newsletter-compact .nl-title svg { width: 20px; height: 20px; color: var(--brand); }
.newsletter-compact form { flex-wrap: nowrap; gap: 0; padding: 4px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); }
.newsletter-compact form:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.newsletter-compact input[type="email"] { flex: 1 1 auto; min-width: 0; min-height: 38px; border: 0; background: none; padding: 6px 10px; font-size: 15px; outline: none; box-shadow: none !important; }
.newsletter-compact .btn { min-height: 38px; padding: 6px 14px; flex: none; }
.newsletter-compact .fine { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.newsletter-compact .fine a { color: var(--muted); }
.newsletter-compact .form-error:empty, .newsletter-compact .form-ok:empty { display: none; }
.defi-tools { display: grid; grid-template-columns: 1fr minmax(320px, 440px); gap: 20px; align-items: start; margin: 26px 0 28px; }
.defi-tools .search { margin: 0; max-width: none; box-shadow: none; padding: 4px; }
@media (max-width: 820px) { .defi-tools { grid-template-columns: 1fr; } }
#home-news { max-width: 560px; margin: 0 auto; }

/* Filtres épurés */
.f-card h3 { font-size: 14.5px; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 750; margin: 0; }
.f-search { margin-bottom: 6px; }
.f-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; font-weight: 650; font-size: 15.5px; cursor: pointer; border-bottom: 1px solid var(--line); }
.f-switch input { appearance: none; width: 40px; height: 23px; border-radius: 99px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
.f-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgb(0 0 0 / .2); }
.f-switch input:checked { background: var(--brand); }
.f-switch input:checked::after { transform: translateX(17px); }
.f-sec { padding: 14px 0 10px; border-bottom: 1px solid var(--line); }
.f-sec > h3 { margin: 0 2px 10px; }
.f-types { display: grid; gap: 2px; }
.f-type { display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font: inherit; font-size: 15.5px; font-weight: 600; text-align: left; cursor: pointer; }
.f-type svg { width: 20px; height: 20px; color: var(--gc, var(--muted)); }
.f-type small { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 500; }
.f-type:hover { background: var(--bg-soft); color: var(--ink); }
.f-type[aria-pressed="true"] { background: var(--brand-soft); color: var(--ink); font-weight: 750; }
.f-fold summary { display: flex; align-items: center; gap: 8px; padding: 2px 2px; list-style: none; cursor: pointer; }
.f-fold summary::-webkit-details-marker { display: none; }
.f-fold summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .15s; }
.f-fold[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.f-n:not(:empty) { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 750; display: inline-grid; place-items: center; }
.f-list2 { display: grid; gap: 0; padding-top: 8px; }
.f-sub { margin: 10px 2px 2px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.f-sub:first-child { margin-top: 0; }
.f-list2 .f-check { font-size: 15px; padding: 6px 4px; white-space: nowrap; }
.f-list2 .f-check span { overflow: hidden; text-overflow: ellipsis; }
.f-reset { margin-top: 8px; }

/* Filtres : sélecteur de prix et tuiles de types */
.f-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin: 6px 0 4px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); }
.f-seg button { min-height: 38px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.f-seg button:hover { color: var(--ink); }
.f-seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgb(17 22 51 / .12); }
.f-seg button[data-free="1"][aria-pressed="true"] { color: var(--ok); }
.f-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 12px; }
.f-sec-head h3 { margin: 0; }
.f-all { border: 0; background: none; padding: 0; color: var(--brand); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.f-all:hover { text-decoration: underline; }
:root[data-theme="dark"] .f-seg button[aria-pressed="true"] { background: var(--line-strong); }

/* Guides : recherche à côté du titre */
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.search.search-inline { margin: 0; flex: 0 1 340px; max-width: 340px; box-shadow: none; padding: 3px; }
.search.search-inline input { padding: 8px 12px; font-size: 15.5px; }
@media (max-width: 640px) { .search.search-inline { flex-basis: 100%; max-width: none; } }

/* Bouton « document » (conditions) */
.btn-doc { background: var(--card); border-color: var(--line-strong); color: var(--ink); }
.btn-doc svg { width: 20px; height: 20px; color: var(--brand); }
.btn-doc:hover { border-color: var(--brand); color: var(--brand); }
.tool-col { display: grid; gap: 8px; }
.tool-col .nl-title { display: flex; align-items: center; gap: 8px; font-weight: 750; font-size: 16px; }
.tool-col .nl-title svg { width: 20px; height: 20px; color: var(--brand); }
.defi-tools .search { min-height: 0; }
.defi-tools .search input { padding: 6px 10px; }
.defi-tools .search .btn { min-height: 38px; }
.defi-tools .search { padding: 4px; border-radius: 12px; border-color: var(--line-strong); }
.defi-tools .search input { min-height: 38px; font-size: 15px; }
.other-tool { display: grid; gap: 6px; margin-top: 10px; font-weight: 600; font-size: 15px; }
.other-tool input { min-height: 42px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card); font-size: 16px; max-width: 360px; }

/* Téléphones et tablettes : texte un peu plus grand, zones de toucher confortables */
@media (max-width: 960px) {
  body { font-size: 17.5px; }
  .mobile-nav > a { font-size: 18px; padding: 13px 4px; }
}
@media (max-width: 560px) {
  .demo-banner { font-size: 14.5px; }
  .btn:not(.btn-sm) { min-height: 46px; }
}

/* ---------- Comptes ---------- */
/* Message affiché à la place du widget Turnstile quand il ne se charge pas */
.ts-fail { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--thread); background: var(--thread-soft); color: var(--ink); font-size: 16px; line-height: 1.5; }
.ts-fail > svg.ph { width: 26px; height: 26px; margin-top: 1px; color: var(--thread); }
:root:not([data-theme="dark"]) .ts-fail > svg.ph { color: #a86b00; }
.ts-fail p { margin: 0 0 10px; }
.ts-fail .ts-fail-title { font-weight: 750; font-size: 17px; margin-bottom: 4px; }
.ts-fail .btn { gap: 8px; background: var(--card); border: 1px solid var(--line-strong); color: var(--ink); min-height: 44px; font-weight: 650; }
.ts-fail .btn:hover { border-color: var(--brand); background: var(--card); }
.ts-fail .btn svg.ph { width: 18px; height: 18px; color: var(--brand); }
@media (max-width: 560px) { .ts-fail { padding: 14px; gap: 10px; } .ts-fail .btn { width: 100%; justify-content: center; } }

/* ---------- Retraits ---------- */
.wd { display: grid; gap: 16px; margin: 8px 0 4px; }
.wd-title { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.wd-title svg.ph { width: 28px; height: 28px; color: var(--brand); }
.wd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.wd-card { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.wd-label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--muted); }
.wd-label svg.ph { width: 20px; height: 20px; color: var(--brand); }
.wd-big { font-size: 34px; font-weight: 800; line-height: 1.1; color: var(--ink); letter-spacing: -0.01em; }
.wd-facts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.wd-facts li { padding: 5px 11px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); font-size: 14px; font-weight: 650; }
.wd-amount { display: flex; align-items: center; gap: 8px; }
.wd-amount input { max-width: 180px; font-size: 20px; font-weight: 700; }
.wd-amount span { font-size: 20px; font-weight: 700; }
.wd-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: 16px; }
.wd-dl dt { color: var(--muted); }
.wd-dl dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.wd-iban { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.02em; }
.wd-edit summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.wd-edit[open] summary { margin-bottom: 14px; }
.wd-status { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.wd-status legend { margin-bottom: 6px; }
.wd-status .check { font-size: 16px; }
.wd-pro[hidden] { display: none; }
.wd-sub { font-size: 19px; margin-top: 8px; }
.wd-reason { color: var(--danger); }
.wd-refuse summary { cursor: pointer; font-weight: 700; }
.wd-refuse .field, .wd-refuse .btn { margin-top: 10px; }
.wd-doc { display: inline-flex; align-items: center; gap: 6px; margin: 2px 10px 2px 0; color: var(--brand); font-weight: 650; font-size: 15px; text-decoration: none; white-space: nowrap; }
.wd-doc:hover { text-decoration: underline; }
.wd-doc svg.ph { width: 18px; height: 18px; }
.wd-admin { padding: 18px 20px; gap: 14px; margin-bottom: 14px; }
.wd-admin:hover { box-shadow: none; }
.wd-admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.wd-actions { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.wd-actions .field { min-width: 180px; }
@media (max-width: 560px) {
  .wd-grid { grid-template-columns: 1fr; }
  .wd-card { padding: 16px; }
  .wd-big { font-size: 28px; }
  .wd-actions .btn, .wd-ask .btn { width: 100%; justify-content: center; }
  .wd-dl { grid-template-columns: 1fr; gap: 2px; }
  .wd-dl dd { margin-bottom: 6px; }
  .wd-table thead { display: none; }
  .wd-table, .wd-table tbody, .wd-table tr, .wd-table td { display: block; width: 100%; }
  .wd-table tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .wd-table td { padding: 3px 0; border: 0; text-align: left; }
  .wd-table td::before { content: attr(data-l); display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
}

/* ---------- Logo ---------- */
/* Mascotte + nom « Promptpoche ». En mode nuit, un léger halo clair détache la poche bleue du fond sombre. */
.logo { gap: 8px; color: var(--ink); line-height: 1; }
.logo-pic { display: block; flex: none; }
.logo-img { display: block; height: 54px; width: auto; }
.site-footer .logo-img { height: 40px; }
.logo-name { font-family: var(--font); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
:root[data-theme="dark"] .logo-img { filter: drop-shadow(0 0 1.5px rgb(255 255 255 / .55)) drop-shadow(0 0 6px rgb(160 175 255 / .35)); }
@media (max-width: 760px) { .logo-img { height: 46px; } .logo-name { font-size: 20px; } }
@media (max-width: 375px) { .logo-img { height: 44px; } .logo-name { font-size: 19px; } }

/* ---------- Contenu ---------- */
.brevo-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
#brevo-out { margin: 14px 0 0; }

/* ---------- CRM ---------- */
/* Couleurs des étiquettes : une pastille pleine, le reste reste neutre. */
:root { --tag-gris: #737a96; --tag-bleu: #3346d3; --tag-vert: #1d8a52; --tag-jaune: #b07d00; --tag-rouge: #c22a3c; --tag-violet: #7b4fd6; }
:root[data-theme="dark"] { --tag-gris: #9aa0bd; --tag-bleu: #8b9bff; --tag-vert: #5fd39a; --tag-jaune: #f5c451; --tag-rouge: #ff7b8a; --tag-violet: #b99bff; }
.crm { font-size: 17px; gap: 22px; }
.crm-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.crm-title { font-size: 24px; letter-spacing: -0.01em; }
.crm-h3 { font-size: 17px; font-weight: 750; margin: 0 0 10px; }
.crm-box { display: grid; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.crm-summary { cursor: pointer; font-weight: 700; }
.crm-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.crm-filters { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(5, minmax(130px, 1fr)); gap: 12px; align-items: end; }
.crm-filters .field { font-size: 14px; color: var(--muted); }
.crm-filters input, .crm-filters select { font-size: 16px; color: var(--ink); }
.crm-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg-soft); }
.crm-bulk select { width: auto; min-width: 160px; }
.crm-table { font-size: 16px; }
.crm-table th, .crm-table td { padding: 14px 14px; }
.crm-table tbody tr:hover { background: var(--bg-soft); }
.crm-table tbody tr:last-child td { border-bottom: 0; }
.crm-check { width: 44px; }
.crm-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.crm-sort { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; font: inherit; color: inherit; }
.crm-sort:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
th[aria-sort] { color: var(--ink); }
.crm-arrow { display: inline-block; min-width: 1ch; }
.crm-who { color: var(--ink); font-weight: 700; text-decoration: none; }
.crm-who:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.crm-mail { display: block; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.crm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.crm-auto, .crm-tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 6px; font-size: 14px; font-weight: 650; line-height: 1.6; border: 1px solid var(--line); background: var(--card); white-space: nowrap; }
.crm-auto { color: var(--muted); background: var(--bg-soft); }
.crm-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tag-gris); flex: none; }
.crm-tag[data-c="bleu"]::before { background: var(--tag-bleu); }
.crm-tag[data-c="vert"]::before { background: var(--tag-vert); }
.crm-tag[data-c="jaune"]::before { background: var(--tag-jaune); }
.crm-tag[data-c="rouge"]::before { background: var(--tag-rouge); }
.crm-tag[data-c="violet"]::before { background: var(--tag-violet); }
.crm-tag-x { border: 0; background: none; color: var(--muted); font-size: 17px; line-height: 1; padding: 0 0 0 2px; cursor: pointer; }
.crm-tag-x:hover { color: var(--danger); }
.crm-taglist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.crm-taglist li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.crm-tagedit { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; align-items: center; }
.crm-tagedit .input { width: auto; min-width: 140px; }
.crm-tagnew { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.crm-color { width: auto; }

/* Fiche contact : identité | activité | chiffres et tâches */
.crm-back { margin-bottom: -6px; }
.crm-card { display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) minmax(250px, 300px); gap: 28px; align-items: start; }
.crm-id, .crm-side { display: grid; gap: 16px; }
.crm-id { padding-right: 28px; border-right: 1px solid var(--line); }
.crm-side { padding-left: 28px; border-left: 1px solid var(--line); }
.crm-name { font-size: 26px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.crm-company { color: var(--muted); margin: -10px 0 0; }
.crm-dl { display: grid; gap: 4px 0; margin: 0; }
.crm-dl dt { color: var(--muted); font-size: 14px; font-weight: 650; margin-top: 8px; }
.crm-dl dd { margin: 0; }
.crm-break { overflow-wrap: anywhere; }
.crm-inline { display: flex; gap: 8px; align-items: center; }
.crm-inline select { flex: 1; min-width: 0; }
.crm-edit { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.crm-edit form { display: grid; gap: 12px; margin-top: 12px; }
.crm-danger { color: var(--danger); justify-self: start; }
.crm-composer { display: grid; gap: 10px; margin-bottom: 8px; }
.crm-composer textarea { font-size: 17px; line-height: 1.5; resize: vertical; }
.crm-timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); display: grid; gap: 22px; }
.crm-ev { position: relative; }
.crm-ev::before { content: ""; position: absolute; left: -29px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong); }
.crm-ev p { margin: 4px 0 0; }
.crm-ev-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.crm-kind { font-size: 14px; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.crm-ev time { font-size: 14px; color: var(--muted); }
.crm-ev-actions { margin-left: auto; display: flex; gap: 2px; }
.crm-note { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.crm-note::before { left: -30px; top: 20px; border-color: var(--brand); background: var(--brand); }
.crm-note .crm-kind { color: var(--brand); }
.crm-note-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.crm-kpi { display: grid; margin: 0; }
.crm-kpi div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.crm-kpi dt { color: var(--muted); font-size: 15px; }
.crm-kpi dd { margin: 0; font-weight: 750; font-variant-numeric: tabular-nums; }
.crm-tasks, .crm-duelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.crm-tasks li, .crm-duelist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.crm-task { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.crm-task input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--brand); flex: none; }
.crm-task-title { display: block; font-weight: 650; }
.crm-due { display: block; font-size: 14px; color: var(--muted); }
.crm-due.is-late { color: var(--danger); font-weight: 650; }
.is-done .crm-task-title { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.crm-taskform { display: grid; gap: 10px; }
.crm-taskform .btn { justify-self: start; }
.crm-todo { display: grid; gap: 10px; padding-bottom: 8px; }
.crm-duelist { max-width: 760px; font-size: 17px; }

@media (max-width: 1180px) {
  .crm-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .crm-search { grid-column: 1 / -1; }
  .crm-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "id side" "feed feed"; }
  .crm-id { grid-area: id; }
  .crm-side { grid-area: side; }
  .crm-feed { grid-area: feed; border-top: 1px solid var(--line); padding-top: 24px; }
}
@media (max-width: 900px) {
  .crm-table th:nth-child(5), .crm-table td:nth-child(5), .crm-table th:nth-child(8), .crm-table td:nth-child(8) { display: none; }
}
@media (max-width: 640px) {
  .crm-filters { grid-template-columns: 1fr 1fr; }
  .crm-card { grid-template-columns: 1fr; grid-template-areas: "id" "side" "feed"; }
  .crm-id { padding-right: 0; border-right: 0; }
  .crm-side { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  /* Sur téléphone, chaque ligne du tableau devient un petit bloc lisible. */
  .crm-table thead { display: none; }
  .crm-table, .crm-table tbody, .crm-table tr, .crm-table td { display: block; width: 100%; }
  .crm-table tr { position: relative; padding: 12px 14px 12px 50px; border-bottom: 1px solid var(--line); }
  .crm-table td { border: 0; padding: 3px 0; }
  .crm-table td.crm-check { position: absolute; left: 14px; top: 14px; width: auto; padding: 0; }
  .crm-table td.num { text-align: left; }
  .crm-table td:nth-child(5), .crm-table td:nth-child(8) { display: block; }
  .crm-table td[data-l]:not([data-l="Contact"])::before { content: attr(data-l) " : "; color: var(--muted); font-size: 14px; }
  .crm-table td[data-l="Étiquettes"]:has(.crm-chips:empty) { display: none; }
  .crm-tagedit { margin-left: 0; }
}
.crm-task { flex: 1; min-width: 0; }
.crm-tasks .btn-ghost { flex: none; padding: 6px 8px; }
.crm-filters input, .crm-filters select { min-height: 46px; }
/* Avec l'onglet Contacts, les onglets de l'admin ne doivent plus se chevaucher sur tablette : ils défilent. */
#admin .tabs button { flex: none; }
/* ---------- Accueil ---------- */
/* La mascotte en vedette : texte + recherche à gauche, mascotte à droite. Sous 960 px, mascotte plus petite au-dessus du titre. */
.hero { display: grid; justify-items: center; }
.hero-art { order: -1; position: relative; }
.hero-mascot { display: block; width: 150px; height: auto; margin: 0 0 12px; animation: mascot-in .9s .1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes mascot-in { from { opacity: 0; transform: translateY(18px) rotate(-3deg); } }
@media (min-width: 961px) {
  .hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 56px; text-align: left; }
  .hero h1 { margin: 0; max-width: 16ch; }
  .hero .lede { margin: 18px 0 0; }
  .hero .search { margin: 30px 0 0; }
  .hero .chips { justify-content: flex-start; }
  .hero-art { order: 0; justify-self: center; width: min(440px, 100%); }
  .hero-mascot { width: 100%; margin: 0; }
}
@media (max-width: 560px) {
  .hero { padding-top: 20px; }
  .hero-mascot { width: 104px; margin-bottom: 6px; }
}
/* Exemple : un vrai prompt et sa réponse, sobre */
.example { margin-top: 8px; margin-bottom: 24px; padding: 28px clamp(18px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.example h2 { margin: 0 0 18px; font-size: 15px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.example-cols { display: grid; gap: 24px 40px; }
@media (min-width: 761px) { .example-cols { grid-template-columns: 1fr 1fr; } }
.example-k { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.example-prompt { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.example-result { padding-left: 16px; border-left: 3px solid var(--brand); }
.example-result p { margin: 0 0 8px; font-size: 17px; line-height: 1.55; color: var(--ink); }
.example-result p:last-child { margin-bottom: 0; }
.example .link { display: inline-block; margin-top: 22px; font-weight: 700; }

/* Filtre « Type de création » : une liste simple (case, point de couleur, nom, compteur) */
.f-types { display: grid; gap: 2px; padding-top: 6px; }
.f-type { min-height: 44px; padding: 8px 6px; }
.f-type input:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.f-type:has(input:focus-visible) { background: var(--bg-soft); }
.f-type { border-radius: 12px; }
.f-type:has(input:checked) { background: color-mix(in srgb, var(--gc) 10%, transparent); color: var(--ink); }
/* La mascotte du logo, à la couleur du type : elle se redresse et reçoit une coche quand le type est choisi */
.f-check .f-masc { position: relative; width: 36px; height: 36px; flex: 0 0 36px; }
.f-masc img { width: 36px; height: 36px; display: block; transform: rotate(-6deg) scale(.92); transform-origin: 50% 80%; opacity: .9; transition: transform .2s ease, opacity .2s ease; }
.f-type:hover .f-masc img { transform: rotate(0) scale(1); opacity: 1; }
.f-type:has(input:checked) .f-masc img { transform: rotate(0) scale(1.06); opacity: 1; }
.f-masc::after { content: ""; position: absolute; right: -3px; bottom: -1px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--bg); background: var(--gc) url("/types/coche.svg") center / 10px no-repeat; transform: scale(0); transition: transform .2s ease; }
.f-type:has(input:checked) .f-masc::after { transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .f-masc img, .f-masc::after { transition: none; } }

/* Couche « carnet » : dessins faits main (images décoratives dans /dessins/).
   Mode nuit : inversés en clair. Masqués sous 760 px. */
.doodle-anchor { position: relative; }
.example-k .doodle-anchor { display: inline-block; }
.doodle { position: absolute; max-width: none; pointer-events: none; user-select: none; height: auto; }
:root[data-theme="dark"] .doodle { filter: invert(1); }
.doodle-souligne { left: -2%; bottom: -.14em; width: 104%; height: .32em; }
.doodle-note { top: -6%; left: -18%; width: 170px; transform: rotate(-4deg); }
.example { position: relative; }
.doodle-fleche { top: -54px; left: 120px; width: 96px; transform: rotate(8deg) scaleX(-1); }
.doodle-cercle { top: -14px; left: -18px; width: calc(100% + 36px); height: calc(100% + 28px); }
@media (max-width: 960px) { .doodle-note { top: 0; left: auto; right: -150px; width: 140px; } }
@media (max-width: 760px) { .doodle { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .doodle { animation: doodle-in .6s .9s ease-out both; }
  @keyframes doodle-in { from { opacity: 0; } }
}

/* CRM étape 2 : sous-navigation, pipeline, emails, statistiques */
.crm-subnav { display: flex; gap: 6px; flex-wrap: wrap; }
.crm-subnav button { min-height: 40px; padding: 6px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: inherit; font-size: 16px; font-weight: 650; cursor: pointer; }
.crm-subnav button[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.crm-compose-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.crm-compose-tabs button { padding: 8px 14px; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-size: 16px; font-weight: 650; color: var(--muted); cursor: pointer; }
.crm-compose-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.crm-composer .field input { font-size: 17px; }
.crm-warn { color: var(--danger); }
.crm-mailbody { margin-top: 6px; }
.crm-mailbody summary { cursor: pointer; color: var(--brand); font-weight: 650; font-size: 15px; }
.crm-mailbody p { margin-top: 8px; padding: 12px 14px; border-left: 3px solid var(--line-strong); background: var(--bg-soft); border-radius: 0 8px 8px 0; }
.crm-deals { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.crm-deals li { display: grid; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.crm-deal-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.crm-deal-amt { font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.crm-board { display: grid; grid-template-columns: repeat(6, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.crm-col { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); min-height: 160px; align-content: start; }
.crm-col.is-over { border-color: var(--brand); }
.crm-col[data-stage="gagne"] .crm-col-head h3 { color: var(--ok); }
.crm-col[data-stage="perdu"] .crm-col-head h3 { color: var(--muted); }
.crm-col-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 2px; }
.crm-col-head h3 { font-size: 16px; font-weight: 750; margin: 0; }
.crm-col-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.crm-col-empty { padding: 12px 2px; }
.crm-deal { display: grid; gap: 6px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: grab; }
.crm-deal.is-dragging { opacity: .5; }
.crm-deal-who { color: var(--muted); font-size: 15px; text-decoration: none; overflow-wrap: anywhere; }
.crm-deal-who:hover { color: var(--brand); text-decoration: underline; }
.crm-deal-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.crm-deal-foot .muted { font-weight: 500; }
.crm-move { font-size: 15px; min-height: 38px; padding-block: 4px; }
.crm-statgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.crm-months td { font-size: 16px; }
.crm-barcell { display: flex; align-items: center; gap: 10px; }
.crm-bar { appearance: none; width: min(260px, 40vw); height: 10px; border: 0; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.crm-bar::-webkit-progress-bar { background: var(--bg-soft); border-radius: 99px; }
.crm-bar::-webkit-progress-value { background: var(--brand); border-radius: 99px; }
.crm-bar::-moz-progress-bar { background: var(--brand); border-radius: 99px; }
.crm-rank { margin: 0; padding: 0 0 0 22px; display: grid; gap: 0; }
.crm-rank li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.crm-rank li span { float: right; font-weight: 750; font-variant-numeric: tabular-nums; }
@media (max-width: 1180px) { .crm-statgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .crm-statgrid { grid-template-columns: 1fr; }
  .crm-board { grid-template-columns: 1fr; overflow: visible; }
}
.crm-board { grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
.crm-col-head { flex-wrap: wrap; }
.crm-deal-top { flex-wrap: wrap; }
.crm-deal-top .crm-task-title { min-width: 0; flex: 1 1 140px; }
.crm-deals .crm-inline select { flex: 1; }
@media (max-width: 1180px) { .crm-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .crm-board { grid-template-columns: 1fr; } }
