/* Calenia : base monochrome, un vert émeraude, Geist. Les sites des commerçants sont les vraies images de la page. */
:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --surface-2: #f0f0ec;
  --ink: #0d0f0e;
  --muted: #5f6460;
  --line: #e4e5e0;
  --accent: #0b7a5c;
  --accent-ink: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Geist', system-ui, sans-serif;
  --font-body: 'Geist', system-ui, sans-serif;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 32px -12px rgb(0 0 0 / 0.14);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d0c; --surface: #141614; --surface-2: #1c1f1c; --ink: #eef0ec; --muted: #a0a69f; --line: #262a26;
    --accent: #34c595; --accent-ink: #04140e; --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -16px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
code { font: 500 0.88em 'Geist Mono', ui-monospace, monospace; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.ui-btn { border-radius: var(--btn-radius, 999px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.h2 { font: 600 clamp(2rem, 4.4vw, 3.2rem)/1.05 var(--font-display); letter-spacing: -0.04em; margin: 0 0 16px; text-wrap: balance; }
.lead { color: var(--muted); max-width: 56ch; margin: 0; font-size: 1.12rem; }
.section { padding: clamp(80px, 11vw, 136px) 0; }
.section-head { display: grid; gap: 4px; margin-bottom: 48px; max-width: 720px; }

/* Logo : une petite vitrine */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.03em; text-decoration: none; }
.logo-mark { position: relative; width: 22px; height: 22px; border-radius: 6px; background: var(--ink); flex: none; }
/* Logo vectoriel (core/logo.js) à la place du petit carré dessiné en CSS */
.logo-mark.is-svg { width: 26px; height: 26px; border-radius: 0; background: none; }
.logo-mark.is-svg::before, .logo-mark.is-svg::after { content: none; }
.logo-mark.is-svg svg { display: block; width: 100%; height: 100%; }
.logo-mark::before { content: ''; position: absolute; inset: 4px 4px auto; height: 3px; border-radius: 2px; background: var(--bg); opacity: 0.5; }
.logo-mark::after { content: ''; position: absolute; inset: 10px 4px 4px; border-radius: 2px; background: var(--accent); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { height: 66px; display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 28px; align-items: center; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); }
.nav .ui-btn { min-height: 40px; padding: 0 18px; font-size: 0.95rem; }
@media (max-width: 760px) { .nav-links { display: none; } .nav .ui-btn { margin-left: auto; } }

/* Haut de page */
.hero { padding: clamp(40px, 7vw, 88px) 0 40px; overflow: hidden; }
.hero-copy { text-align: center; display: grid; justify-items: center; }
.hero-title { font: 600 clamp(2.7rem, 7.4vw, 5.6rem)/0.98 var(--font-display); letter-spacing: -0.055em; margin: 0 0 22px; max-width: 15ch; text-wrap: balance; }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-lead { color: var(--muted); font-size: clamp(1.08rem, 1.6vw, 1.22rem); max-width: 52ch; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.trial-note { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--muted); font-size: 0.93rem; }
.trial-note i { color: var(--accent); font-size: 1.1rem; }
.hero-proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.92rem; }
.hero-proof li { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof i { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.8s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .showcase { animation: rise 1s 0.25s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Vitrine de démos : un vrai site dans un navigateur */
.showcase { margin-top: clamp(48px, 7vw, 72px); }
.switcher { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.switcher button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 500 0.92rem var(--font-body); transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.switcher button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.switcher button:hover { color: var(--ink); }
.switcher button[aria-pressed="true"] { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.browser { border-radius: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 16%, transparent); }
.browser-url { flex: 1; max-width: 420px; margin: 0 auto; height: 26px; border-radius: 7px; background: var(--surface); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.8rem; color: var(--muted); overflow: hidden; white-space: nowrap; }
.browser-open { font-size: 0.82rem; font-weight: 500; text-decoration: none; color: var(--muted); white-space: nowrap; }
.browser-open:hover { color: var(--ink); }
.frame { position: relative; aspect-ratio: 16 / 9.4; overflow: hidden; background: var(--surface-2); }
.frame iframe { position: absolute; top: 0; left: 0; width: 1440px; height: 846px; border: 0; transform-origin: 0 0; transform: scale(var(--scale, 0.8)); transition: opacity 0.35s; }
.frame iframe.is-loading { opacity: 0; }
@media (max-width: 640px) { .browser-open { display: none; } .frame { aspect-ratio: 4 / 3; } }

/* Métiers */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.filters button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 500 0.9rem var(--font-body); cursor: pointer; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filters small { margin-left: 4px; opacity: 0.6; }
.trades { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.trade { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.trade:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.trade[hidden] { display: none; }
.thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: color-mix(in srgb, var(--c) 14%, var(--surface-2)); border-bottom: 1px solid var(--line); }
.thumb iframe { position: absolute; top: 0; left: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; transform: scale(var(--scale, 0.2)); pointer-events: none; opacity: 0; transition: opacity 0.4s; }
.thumb iframe.is-ready { opacity: 1; }
.thumb-link { position: absolute; inset: 0; z-index: 1; }
.trade-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.trade-family { font-size: 0.78rem; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.trade-family::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.trade h3 { margin: 0; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.trade p { margin: 0; color: var(--muted); font-size: 0.93rem; flex: 1; }
.trade-links { display: flex; gap: 16px; margin-top: 12px; font-size: 0.92rem; font-weight: 500; }
.trade-links a { text-decoration: none; }
.trade-links a:first-child { color: var(--accent); }
.trade-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.trades-more { margin: 28px 0 0; color: var(--muted); }
.trades-more a { color: var(--ink); font-weight: 500; }

/* Comment ça marche */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.how li { counter-increment: s; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.how li::before { content: counter(s, decimal-leading-zero); display: block; font: 500 0.85rem 'Geist Mono', monospace; color: var(--accent); margin-bottom: 40px; }
.how h3 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.how p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .how { grid-template-columns: 1fr; } .how li::before { margin-bottom: 16px; } }
.diy { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-top: 16px; padding: 24px 28px; border-radius: var(--radius); border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.diy > i { font-size: 2rem; color: var(--accent); }
.diy h3 { margin: 0 0 4px; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.diy p { margin: 0; color: var(--muted); max-width: 70ch; }
@media (max-width: 820px) { .diy { grid-template-columns: 1fr; gap: 12px; padding: 22px; } .diy .ui-btn { justify-self: start; } }
.diy-note { margin-top: 6px; }
.diy-note a { color: var(--ink); font-weight: 500; }

/* Ce qui est inclus */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cell { grid-column: span 2; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.cell.wide { grid-column: span 3; }
.cell.dark { background: var(--block, var(--ink)); color: var(--block-ink, var(--bg)); border-color: var(--block, var(--ink)); }
.cell.dark p { color: color-mix(in srgb, var(--block-ink, var(--bg)) 68%, transparent); }
.cell i { font-size: 1.5rem; color: var(--accent); margin-bottom: 18px; }
.cell h3 { margin: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.cell p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 20px; }
.slots span { padding: 6px 12px; border-radius: 8px; font: 500 0.85rem 'Geist Mono', monospace; background: color-mix(in srgb, var(--bg) 12%, transparent); }
.slots span.is-taken { text-decoration: line-through; opacity: 0.4; }
.slots span.is-picked { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 960px) { .cell, .cell.wide { grid-column: span 3; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .cell, .cell.wide { grid-column: auto; } }

/* Essayer les démos */
.try { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 32px; border-radius: var(--radius); border: 1px dashed color-mix(in srgb, var(--ink) 25%, transparent); }
.try h3 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 600; }
.try p { margin: 0; color: var(--muted); }
.creds { display: grid; gap: 8px; font-size: 0.93rem; }
.creds span { display: inline-block; min-width: 120px; color: var(--muted); }
@media (max-width: 760px) { .try { grid-template-columns: 1fr; } }

/* Questions */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; font-weight: 500; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: -6px 0 22px; color: var(--muted); max-width: 64ch; }

/* Appel final */
.cta { padding: clamp(56px, 8vw, 96px) 24px; border-radius: calc(var(--radius) * 1.5); background: var(--block, var(--ink)); color: var(--block-ink, var(--bg)); text-align: center; display: grid; justify-items: center; gap: 4px; }
.cta .h2 { color: var(--block-ink, var(--bg)); max-width: 18ch; }
.cta p { color: color-mix(in srgb, var(--block-ink, var(--bg)) 68%, transparent); margin: 0 0 24px; }
.cta .ui-btn { background: var(--block-ink, var(--bg)); color: var(--block, var(--ink)); }
.cta .ui-btn:hover { background: var(--accent); color: var(--accent-ink); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cta .ui-btn.is-ghost { background: transparent; color: var(--block-ink, var(--bg)); border-color: color-mix(in srgb, var(--block-ink, var(--bg)) 40%, transparent); }
.cta .ui-btn.is-ghost:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.foot { padding: 40px 0; color: var(--muted); font-size: 0.92rem; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; }
.foot .logo { color: var(--ink); font-size: 1rem; }

@media (max-width: 640px) {
  .eyebrow .logo-mark { display: none; }
  .switcher { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; }
  .switcher::-webkit-scrollbar { display: none; }
  .switcher button { flex: none; }
}

/* Métiers en ligne */
.remote { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.remote-tag { padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.remote .lead { margin-bottom: 28px; }
.remote-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 16px; }
.remote-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; color: var(--muted); font-size: 0.98rem; }
.remote-list i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); font-size: 1.2rem; }
.remote-list b { color: var(--ink); font-weight: 600; }
.mail { padding: 26px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 0.95rem; transform: rotate(1.5deg); }
.mail-head { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 3px solid #2b59c3; }
.mail-dot { width: 36px; height: 36px; border-radius: 50%; background: #2b59c3; flex: none; }
.mail-head b { display: block; }
.mail-head small { color: var(--muted); }
.mail-hello { margin: 18px 0 8px; }
.mail-rows { margin: 0 0 18px; }
.mail-rows div { display: grid; grid-template-columns: 90px 1fr; padding: 6px 0; }
.mail-rows dt { color: var(--muted); }
.mail-rows dd { margin: 0; font-weight: 600; }
.mail-join { display: grid; gap: 10px; justify-items: start; padding: 16px; border-radius: 12px; background: var(--surface-2); }
.mail-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 9px; background: #2b59c3; color: #fff; font-weight: 600; }
.mail-join small { color: var(--muted); font-family: 'Geist Mono', monospace; }
@media (max-width: 900px) { .remote { grid-template-columns: 1fr; gap: 40px; } .mail { transform: none; } }

/* Inscriptions fermées (réglage de la console) */
.wz-closed { max-width: 560px; padding-top: 48px; padding-bottom: 64px; display: grid; gap: 14px; justify-items: start; }
.wz-closed h1 { margin: 0; }
.wz-closed p { margin: 0; color: var(--muted); }

/* Sections masquées depuis la console (visibles en transparence dans l'éditeur) */
[data-off] { display: none !important; }

/* Lien « Connexion » des gérants (visible aussi sur téléphone) */
.nav-login { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink); margin-right: -14px; white-space: nowrap; }
.nav-login:hover { color: var(--accent); }
@media (max-width: 760px) { .nav-login { margin-left: auto; margin-right: -16px; } .nav-login + .ui-btn { margin-left: 0; } }

/* Tarifs */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 18px; }
.plan { display: grid; gap: 10px; align-content: start; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.plan.is-main { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan h3 { margin: 0; font-size: 1.3rem; letter-spacing: -0.02em; }
.plan-for { margin: -6px 0 0; color: var(--muted); }
.plan-price { margin: 6px 0 0; color: var(--muted); }
.plan-price b { font: 700 2.4rem/1 var(--font-display); color: var(--ink); letter-spacing: -0.03em; margin-right: 4px; }
.plan-founder { margin: 0; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--accent-soft); font-size: 0.9rem; }
.plan-founder s { color: var(--muted); }
.plan ul { margin: 4px 0 8px; padding-left: 18px; display: grid; gap: 4px; }
.plan .ui-btn { justify-self: start; }
.plans-note { margin: 18px 0 0; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
