/* ==========================================================================
   Kodia — feuille de style globale
   ========================================================================== */

:root {
  --bg: #0a0a0f;
  --surface: #13131a;
  --surface-2: #1b1b24;
  --border: #24242e;
  --text: #ededf2;
  --muted: #9a9aab;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --green: #4ade80;
  --grad: linear-gradient(120deg, var(--violet), var(--cyan));
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: .8rem; color: var(--cyan);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46ch; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  font-family: inherit;
}
.btn-primary { background: var(--grad); color: #0a0a0f; box-shadow: 0 8px 30px -8px rgba(139, 92, 246, .6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(34, 211, 238, .6); }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 15, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(36, 36, 46, .6);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.logo { font-family: var(--mono); font-weight: 700; font-size: 1.2rem; text-decoration: none; letter-spacing: -0.02em; }
.logo span { color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.burger { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; width: 44px; height: 44px; color: var(--text); cursor: pointer; }
.burger svg { margin: auto; }

@media (max-width: 860px) {
  .burger { display: grid; place-items: center; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 20px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child a { border: 0; }
  .nav-links .btn { margin-top: 12px; width: 100%; color: #0a0a0f; padding: 14px 24px; display: flex; }
}
@media (min-width: 861px) { .nav-links .mobile-only { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 110px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(139, 92, 246, .25), transparent 60%); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -40% -15%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(34, 211, 238, .14), transparent 60%); pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero .lead { margin-bottom: 32px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); font-size: .85rem; color: var(--muted); margin-bottom: 24px;
}
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(74, 222, 128, .18); }
.hero-proof { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-proof strong { display: block; font-size: 1.6rem; letter-spacing: -0.02em; }
.hero-proof span { color: var(--muted); font-size: .9rem; }

/* Terminal */
.terminal {
  background: #0d0d14; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(139, 92, 246, .08);
  font-family: var(--mono); font-size: .9rem; overflow: hidden;
}
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a48; }
.term-bar i:nth-child(1) { background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 10px; color: var(--muted); font-size: .8rem; }
.term-body { padding: 22px; min-height: 300px; line-height: 1.85; white-space: pre-wrap; }
.term-body .p { color: var(--cyan); }
.term-body .ok { color: var(--green); }
.term-body .dim { color: var(--muted); }
.term-body .hl { color: var(--violet); }
.caret { display: inline-block; width: 8px; height: 1.1em; background: var(--text); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .term-body { min-height: 260px; font-size: .82rem; }
}

/* ---------- Bandeau défilant ---------- */
.marquee { border-block: 1px solid var(--border); background: var(--surface); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: scroll 32s linear infinite; }
.marquee-track ul { display: flex; gap: 48px; padding: 0 24px; margin: 0; list-style: none; }
.marquee-track li { display: flex; align-items: center; gap: 48px; font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.marquee-track li::after { content: "✦"; color: var(--violet); font-size: .8rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Vidéo de présentation ---------- */
.video-frame {
  max-width: 1000px; margin: 0 auto; border-radius: 24px; padding: 1px; background: var(--grad);
  box-shadow: 0 40px 100px -30px rgba(139, 92, 246, .45);
}
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 23px; background: var(--bg); }

/* ---------- Services ---------- */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding: 56px 0; }
.service + .service { border-top: 1px solid var(--border); }
.service.reverse .service-text { order: 2; }
.service-num { font-family: var(--mono); color: var(--muted); font-size: .85rem; margin-bottom: 12px; display: block; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.ticks li::before {
  content: "✓"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 2px;
  border-radius: 50%; background: rgba(34, 211, 238, .12); color: var(--cyan); font-size: .75rem; font-weight: 700;
}
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; }
  .service.reverse .service-text { order: 0; }
}

/* Maquettes génériques */
.mock {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); overflow: hidden; position: relative;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a48; }
.mock-url {
  flex: 1; margin-left: 10px; background: var(--bg); border-radius: 6px; padding: 4px 10px;
  font-family: var(--mono); font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Maquette site + Lighthouse */
.mock-site { padding: 20px; display: grid; gap: 14px; }
.mock-hero-block { height: 110px; border-radius: 10px; background: linear-gradient(135deg, #2a1f4a, #123642); position: relative; padding: 16px; }
.mock-hero-block b { display: block; width: 60%; height: 12px; border-radius: 4px; background: rgba(255, 255, 255, .85); margin-bottom: 8px; }
.mock-hero-block s { display: block; width: 40%; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .35); }
.mock-hero-block em { position: absolute; left: 16px; bottom: 16px; width: 80px; height: 22px; border-radius: 999px; background: var(--grad); }
.mock-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-cols div { height: 64px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.lighthouse {
  position: absolute; right: 18px; bottom: 18px; display: flex; gap: 12px; align-items: center;
  background: rgba(10, 10, 15, .92); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px;
}
.gauge {
  --v: 98; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--green) calc(var(--v) * 1%), #26262f 0);
  position: relative; font-weight: 800; font-size: 1rem; color: var(--green);
}
.gauge::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #0d0d14; }
.gauge span { position: relative; }
.lighthouse small { display: block; color: var(--muted); font-size: .75rem; line-height: 1.3; }

/* Maquette chat */
.chat { padding: 20px; display: grid; gap: 12px; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 16px; font-size: .92rem; line-height: 1.5; }
.msg.user { justify-self: end; background: var(--grad); color: #0a0a0f; border-bottom-right-radius: 4px; font-weight: 500; }
.msg.bot { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg.bot strong { color: var(--cyan); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: .92rem; }
.chat-head .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #0a0a0f; font-size: .8rem; font-weight: 800; }
.chat-head small { display: block; color: var(--green); font-weight: 500; font-size: .75rem; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; width: max-content; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* Maquette dashboard */
.dash { padding: 20px; display: grid; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.kpi small { color: var(--muted); font-size: .72rem; display: block; }
.kpi b { font-size: 1.25rem; letter-spacing: -0.02em; }
.kpi em { font-style: normal; color: var(--green); font-size: .72rem; margin-left: 4px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.bars span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(to top, rgba(139, 92, 246, .5), var(--cyan)); transform-origin: bottom; }
.is-visible .bars span { animation: grow .9s cubic-bezier(.2, .8, .2, 1) both; }
.bars span:nth-child(2) { animation-delay: .05s; } .bars span:nth-child(3) { animation-delay: .1s; }
.bars span:nth-child(4) { animation-delay: .15s; } .bars span:nth-child(5) { animation-delay: .2s; }
.bars span:nth-child(6) { animation-delay: .25s; } .bars span:nth-child(7) { animation-delay: .3s; }
@keyframes grow { from { transform: scaleY(0); } }
.rows { display: grid; gap: 6px; }
.rows div { display: flex; justify-content: space-between; font-size: .8rem; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); color: var(--muted); }
.rows b { color: var(--text); font-weight: 600; }
.tag { font-size: .7rem; padding: 2px 8px; border-radius: 999px; background: rgba(74, 222, 128, .12); color: var(--green); }
.tag.warn { background: rgba(254, 188, 46, .12); color: #febc2e; }

/* Maquette vidéo */
.video-screen {
  aspect-ratio: 16 / 9; background: radial-gradient(circle at 30% 30%, #3b1f6e, #0f2a35 70%);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.video-screen::before {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: var(--grad); filter: blur(60px); opacity: .45; animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translate(60px, -20px) scale(1.1); } }
.play { position: relative; width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 255, 255, .95); display: grid; place-items: center; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.play::after { content: ""; border-left: 20px solid #0a0a0f; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.video-title { position: absolute; left: 20px; bottom: 16px; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.timeline { padding: 14px 18px; display: grid; gap: 10px; }
.progress { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.progress span { display: block; height: 100%; width: 38%; background: var(--grad); }
.clips { display: grid; grid-template-columns: 2fr 1fr 3fr 1.5fr; gap: 4px; }
.clips i { height: 26px; border-radius: 4px; background: rgba(139, 92, 246, .35); }
.clips i:nth-child(even) { background: rgba(34, 211, 238, .3); }
.time { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .72rem; color: var(--muted); }

/* ---------- Sélecteur de style ---------- */
.styler { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.style-btns { display: grid; gap: 12px; }
.style-btn {
  text-align: left; padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; font-family: inherit; font-size: 1rem; transition: border-color .2s, background .2s;
}
.style-btn b { display: block; font-size: 1.1rem; }
.style-btn small { color: var(--muted); }
.style-btn:hover { background: var(--surface-2); }
.style-btn[aria-pressed="true"] { border-color: var(--violet); background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--grad) border-box; border: 1px solid transparent; }

.preview { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: all .4s ease; }
.pv-inner { padding: clamp(24px, 4vw, 44px); min-height: 360px; display: grid; align-content: space-between; gap: 24px; transition: all .4s ease; }
.pv-nav { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; gap: 12px; }
.pv-nav nav { display: flex; gap: 16px; opacity: .75; }
.pv-name { font-weight: 700; font-size: 1.05rem; }
.pv-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.05; margin: 0 0 10px; }
.pv-sub { opacity: .8; max-width: 38ch; margin: 0; }
.pv-btn { display: inline-block; padding: 10px 20px; margin-top: 16px; font-size: .9rem; font-weight: 600; }
.pv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pv-cards div { height: 60px; border-radius: 8px; }

.preview[data-style="chic"] .pv-inner { background: #f6f1ea; color: #2a2420; font-family: Georgia, "Times New Roman", serif; }
.preview[data-style="chic"] .pv-title { font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.preview[data-style="chic"] .pv-btn { background: #2a2420; color: #f6f1ea; border-radius: 0; letter-spacing: .1em; text-transform: uppercase; font-size: .75rem; font-family: var(--font); }
.preview[data-style="chic"] .pv-cards div { background: #e6dccf; border-radius: 0; }

.preview[data-style="nature"] .pv-inner { background: #e9f0e2; color: #1f3a24; font-family: var(--font); }
.preview[data-style="nature"] .pv-title { font-weight: 700; }
.preview[data-style="nature"] .pv-btn { background: #3f7a3c; color: #fff; border-radius: 999px; }
.preview[data-style="nature"] .pv-cards div { background: #c9dbb9; border-radius: 16px; }

.preview[data-style="street"] .pv-inner { background: #ffde21; color: #111; font-family: "Arial Black", Impact, var(--font); }
.preview[data-style="street"] .pv-title { font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; }
.preview[data-style="street"] .pv-btn { background: #111; color: #ffde21; border-radius: 4px; transform: rotate(-2deg); box-shadow: 4px 4px 0 #ff3d7f; }
.preview[data-style="street"] .pv-cards div { background: #111; border: 3px solid #111; border-radius: 4px; }
.preview[data-style="street"] .pv-cards div:nth-child(2) { background: #ff3d7f; }

@media (max-width: 860px) {
  .styler { grid-template-columns: 1fr; }
  .style-btns { grid-template-columns: repeat(3, 1fr); }
  .style-btn { padding: 12px; text-align: center; }
  .style-btn small { display: none; }
  .pv-nav nav { display: none; }
}

/* ---------- Réalisations ---------- */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case {
  display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: transform .3s ease, border-color .3s ease;
}
.case:hover { transform: translateY(-4px); border-color: #3a3a4a; }
.case-visual { aspect-ratio: 16 / 9; position: relative; overflow: hidden; display: grid; place-items: center; }
.case-visual .label {
  font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.03em; text-align: center; padding: 0 20px;
  transition: transform .4s ease;
}
.case:hover .case-visual .label { transform: scale(1.05); }
.cv-resto { background: linear-gradient(135deg, #3a1d14, #8b3a1f); color: #ffe6c7; font-family: Georgia, serif; }
.cv-resto .label { font-style: italic; font-weight: 400; }
.cv-chat { background: linear-gradient(135deg, #10203d, #1e3a6e); color: #dbe7ff; }
.cv-stock { background: linear-gradient(135deg, #2b2416, #5c4a25); color: #f7e7c4; }
.cv-clip { background: linear-gradient(135deg, #220d2e, #0b3b3a); color: #fff; }
.case-body { padding: 22px 24px 26px; }
.case-cat { font-family: var(--mono); font-size: .75rem; color: var(--cyan); text-transform: uppercase; letter-spacing: .08em; }
.case-body h3 { margin: 8px 0 6px; }
.case-body p { color: var(--muted); margin: 0 0 14px; font-size: .95rem; }
.case-link { font-weight: 600; font-size: .95rem; }
.case-link::after { content: " →"; transition: margin .2s; }
.case:hover .case-link::after { margin-left: 4px; }
.mini-chat { width: 70%; display: grid; gap: 8px; }
.mini-chat span { height: 22px; border-radius: 11px; background: rgba(255, 255, 255, .15); width: 70%; }
.mini-chat span:nth-child(even) { justify-self: end; background: rgba(34, 211, 238, .5); width: 55%; }
.fictif { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 24px; }
@media (max-width: 760px) { .cases { grid-template-columns: 1fr; } }

/* ---------- Tarifs ---------- */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.price {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.price.featured { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1px solid transparent; position: relative; }
.price.featured::before {
  content: attr(data-badge); position: absolute; top: -12px; left: 24px; background: var(--grad); color: #0a0a0f;
  font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.price h3 { margin: 0; }
.price .from { color: var(--muted); font-size: .85rem; margin-top: 10px; }
.price .amount { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price .amount small { font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 8px; font-size: .92rem; color: var(--muted); flex: 1; align-content: start; }
.price li::before { content: "— "; color: var(--violet); }
.price-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 24px; }

/* Forfaits mensuels */
.plans { margin-top: 96px; }
.plans .section-head { margin-bottom: 40px; }
.plans-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; }
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 860px; margin: 0 auto; }
@media (max-width: 680px) { .plan-grid { grid-template-columns: 1fr; } }
@media (max-width: 1000px) { .prices { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .prices { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 780px; margin: 88px auto 0; }
.faq h3 { font-size: 1.6rem; margin-bottom: 24px; text-align: center; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 600; font-size: 1.05rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--cyan);
  transition: transform .25s ease; font-weight: 400;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; margin: 0; }

/* ---------- Contact ---------- */
.contact-wrap {
  background: radial-gradient(ellipse at top left, rgba(139, 92, 246, .18), transparent 55%), radial-gradient(ellipse at bottom right, rgba(34, 211, 238, .12), transparent 55%), var(--surface);
  border: 1px solid var(--border); border-radius: 28px; padding: clamp(28px, 6vw, 64px);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px);
}
.contact-info .lead { margin-bottom: 28px; }
.contact-lines { display: grid; gap: 14px; margin-top: 28px; }
.contact-lines a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--muted); }
.contact-lines a:hover { color: var(--text); }
.contact-lines .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit; font-size: .98rem; transition: border-color .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, .2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form small { color: var(--muted); font-size: .8rem; }
@media (max-width: 860px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 32px; margin-top: clamp(72px, 10vw, 128px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 14px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.footer a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
.no-cookie { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }


/* ---------- Pages de cas ---------- */
.case-hero { padding: clamp(48px, 8vw, 96px) 0 48px; }
.back { display: flex; width: max-content; gap: 8px; color: var(--muted); text-decoration: none; font-size: .92rem; margin-bottom: 28px; }
.back:hover { color: var(--text); }
.case-banner { border-radius: 24px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 64px; }
.case-banner .case-visual { aspect-ratio: 21 / 9; }
.case-banner .label { font-size: clamp(2rem, 6vw, 4rem); }
.case-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 6vw, 80px); }
.case-meta { display: grid; gap: 20px; align-content: start; position: sticky; top: 96px; }
.case-meta div { border-top: 1px solid var(--border); padding-top: 12px; }
.case-meta small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.case-content h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 48px; }
.case-content h2:first-child { margin-top: 0; }
.case-content p, .case-content li { color: var(--muted); }
.case-content ul { padding-left: 20px; }
.case-content li { margin-bottom: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.stat b { display: block; font-size: 2.2rem; letter-spacing: -0.03em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }
.case-cta { text-align: center; margin-top: 96px; padding: 56px 24px; border-radius: 28px; border: 1px solid var(--border); background: radial-gradient(ellipse at top, rgba(139, 92, 246, .18), transparent 60%), var(--surface); }
.case-cta .btn-row { justify-content: center; }
.legal h2 { font-size: 1.5rem; margin-top: 40px; }
.legal p { color: var(--muted); }
@media (max-width: 860px) {
  .case-layout { grid-template-columns: 1fr; }
  .case-meta { position: static; grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; }
}

/* ---------- Page Commander ---------- */
.order-hero { padding-bottom: 40px; }
.order-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.order-form { display: grid; gap: 48px; }
.order-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.order-step legend { display: flex; align-items: center; gap: 14px; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; padding: 0; margin-bottom: 6px; }
.step-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #0a0a0f; font-size: .95rem; font-weight: 800; }
.step-help { color: var(--muted); font-size: .95rem; margin: 0 0 18px 48px; }

.pick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pick-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pick-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: border-color .2s, background .2s; }
.pick-card:hover { border-color: #3a3a4a; }
.pick-card.is-on { border-color: var(--violet); background: linear-gradient(rgba(139, 92, 246, .08), rgba(139, 92, 246, .08)), var(--surface); }
.pick-card.is-blocked { opacity: .5; }
.pick-card.is-blocked:hover { border-color: var(--border); }
.pick-main { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 18px; cursor: pointer; }
.is-blocked.pick-main { cursor: not-allowed; }
.pick-main input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick-check { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #3a3a4a; margin-top: 1px; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.pick-radio { border-radius: 50%; }
.is-on .pick-check { background: var(--grad); border-color: transparent; }
.is-on .pick-check::after { content: "✓"; color: #0a0a0f; font-size: .75rem; font-weight: 900; }
.is-on .pick-radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #0a0a0f; }
.pick-main input:focus-visible + .pick-check { outline: 2px solid var(--cyan); outline-offset: 3px; }
.pick-body { display: grid; gap: 4px; min-width: 0; }
.pick-title { font-weight: 700; }
.pick-desc { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.pick-price { font-weight: 700; white-space: nowrap; font-size: .95rem; }
.pick-badge { display: inline-block; margin-left: 6px; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--grad); color: #0a0a0f; vertical-align: middle; }
.pick-plan { grid-template-columns: auto 1fr; }
.pick-plan .pick-price { grid-column: 2; font-size: 1.1rem; }

.stepper { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 0 18px 16px 54px; }
.stepper-label { font-size: .88rem; font-weight: 600; }
.stepper-ctrl { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.stepper-ctrl button { width: 36px; height: 34px; border: 0; background: var(--surface-2); color: var(--text); font-size: 1.1rem; cursor: pointer; }
.stepper-ctrl button:hover:not(:disabled) { background: #26262f; }
.stepper-ctrl button:disabled { opacity: .35; cursor: not-allowed; }
.stepper-ctrl output { min-width: 40px; text-align: center; font-weight: 700; }
.stepper-note { width: 100%; color: var(--muted); font-size: .8rem; }

.order-summary { position: sticky; top: 92px; }
.summary-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; display: grid; gap: 18px; }
.summary-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.summary-head h2 { font-size: 1.3rem; margin: 0; }
.summary-ref { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.summary-lines { display: grid; gap: 10px; }
.summary-empty { color: var(--muted); font-size: .92rem; margin: 0; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; font-size: .93rem; }
.summary-line small { display: block; color: var(--muted); font-size: .8rem; }
.summary-line.is-option { color: var(--muted); }
.summary-line b { white-space: nowrap; }
.summary-totals { border-top: 1px solid var(--border); padding-top: 16px; display: grid; gap: 8px; }
.total-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.total-row b { font-size: 1.35rem; letter-spacing: -0.02em; }
.total-row.is-muted { color: var(--muted); font-size: .88rem; }
.summary-error { margin: 0; padding: 10px 14px; border-radius: 10px; background: rgba(255, 95, 87, .12); color: #ff8a84; font-size: .9rem; }
.summary-actions { display: grid; gap: 10px; }
.summary-copy { background: none; border: 0; color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.summary-copy:hover { color: var(--text); }
.summary-done { display: grid; gap: 4px; padding: 12px 14px; border-radius: 10px; background: rgba(74, 222, 128, .1); color: var(--green); font-size: .88rem; }
.summary-done span { color: var(--muted); }
.summary-done a { color: var(--cyan); }
.summary-note { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }

.order-bar { display: none; }

@media (max-width: 960px) {
  .order-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .pick-grid-3 { grid-template-columns: 1fr; }
  .order-bar {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding: 12px 20px;
    background: rgba(19, 19, 26, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border);
  }
  .order-bar small { display: block; color: var(--muted); font-size: .75rem; }
  .order-bar b { font-size: 1.05rem; }
  .order-page .footer { padding-bottom: 96px; }
  .order-page .cb-launcher { bottom: 100px; }
}
@media (max-width: 640px) {
  .pick-grid { grid-template-columns: 1fr; }
  .step-help { margin-left: 0; }
  .stepper { padding-left: 18px; }
}

/* ---------- Espace client & admin ---------- */
.dash-page { padding-bottom: 40px; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.dash-head h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.dash-head .muted { margin: 4px 0 0; }
.auth-card { max-width: 480px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: clamp(24px, 4vw, 36px); display: grid; gap: 16px; }
.auth-card h2 { margin: 0; font-size: 1.4rem; }
.auth-card p { margin: 0; color: var(--muted); }

.dash-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.dash-tab { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: inherit; font-weight: 600; padding: 12px 16px; cursor: pointer; white-space: nowrap; }
.dash-tab:hover { color: var(--text); }
.dash-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--violet); }
.dash-tab .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--violet); color: #fff; font-size: .72rem; }
.dash-panel { display: grid; gap: 16px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.dash-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; display: grid; gap: 12px; min-width: 0; }
.dash-card h3 { margin: 0; font-size: 1.1rem; }
.dash-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.dash-meta { color: var(--muted); font-size: .88rem; }
.dash-lines { display: grid; gap: 6px; font-size: .92rem; }
.dash-lines div { display: flex; justify-content: space-between; gap: 12px; }
.dash-lines span:last-child { white-space: nowrap; font-weight: 600; }
.dash-note { background: var(--surface-2); border-left: 3px solid var(--cyan); border-radius: 8px; padding: 10px 14px; font-size: .9rem; color: var(--muted); white-space: pre-wrap; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; background: rgba(154, 154, 171, .15); color: var(--muted); }
.badge-received, .badge-open, .badge-pending { background: rgba(254, 188, 46, .14); color: #febc2e; }
.badge-validated, .badge-in_progress { background: rgba(139, 92, 246, .16); color: #b69cff; }
.badge-delivered, .badge-resolved, .badge-paid, .badge-done { background: rgba(74, 222, 128, .14); color: var(--green); }
.badge-cancelled { background: rgba(255, 95, 87, .14); color: #ff8a84; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.steps li { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 0 18px 34px; }
.steps li::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: 0; width: 2px; background: var(--border); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::before { display: none; }
.steps .dot-step { position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #3a3a4a; background: var(--bg); }
.steps .is-in_progress .dot-step { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139, 92, 246, .2); }
.steps .is-done .dot-step { border-color: transparent; background: var(--grad); }
.steps .is-done .step-label { color: var(--muted); }

.gauge-bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.gauge-bar span { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.gauge-bar.is-over span { background: linear-gradient(120deg, #febc2e, #ff5f57); }

.thread { display: grid; gap: 10px; max-height: 420px; overflow-y: auto; padding: 4px; }
.thread-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); font-size: .92rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.thread-msg small { display: block; color: var(--muted); font-size: .75rem; margin-top: 4px; }
.thread-msg.is-mine { justify-self: end; background: rgba(139, 92, 246, .14); border-color: rgba(139, 92, 246, .35); }

.ticket-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; color: var(--text); font: inherit; cursor: pointer; }
.ticket-row:hover, .ticket-row[aria-expanded="true"] { border-color: var(--violet); }

.admin-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th, .admin-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; background: var(--surface); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: var(--surface); }
.admin-table button.link { background: none; border: 0; color: var(--cyan); font: inherit; cursor: pointer; padding: 0; text-align: left; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.admin-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.admin-stat b { display: block; font-size: 1.8rem; letter-spacing: -0.03em; }
.admin-stat span { color: var(--muted); font-size: .85rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline-form .field { flex: 1 1 180px; }
.field-sm input, .field-sm select { padding: 9px 12px; font-size: .9rem; }

.empty-state { text-align: center; color: var(--muted); padding: 32px 16px; border: 1px dashed var(--border); border-radius: 16px; display: grid; gap: 12px; justify-items: center; }
.notice { padding: 12px 16px; border-radius: 12px; font-size: .92rem; }
.notice-info { background: rgba(34, 211, 238, .1); color: var(--cyan); }
.notice-success { background: rgba(74, 222, 128, .1); color: var(--green); }
.notice-error { background: rgba(255, 95, 87, .12); color: #ff8a84; }
.notice a { color: inherit; }
.loading { color: var(--muted); font-size: .92rem; }

/* ---------- Assistant (chatbot) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cb-launcher {
  position: fixed; right: 20px; bottom: 36px; z-index: 61; width: 56px; height: 56px; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center; background: var(--grad); color: #0a0a0f;
  box-shadow: 0 10px 30px -6px rgba(139, 92, 246, .7); transition: transform .2s;
}
.cb-launcher:hover { transform: scale(1.08); }
.cb-launcher svg { grid-area: 1 / 1; transition: transform .25s, opacity .25s; }
.cb-ico-close { opacity: 0; transform: rotate(-90deg); }
.cb-open .cb-ico-open { opacity: 0; transform: rotate(90deg); }
.cb-open .cb-ico-close { opacity: 1; transform: none; }
.cb-ping {
  position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--bg);
}
.cb-ping::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--green); animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { transform: scale(2.2); opacity: 0; } }
.cb-seen .cb-ping { display: none; }

.cb-panel {
  position: fixed; right: 20px; bottom: 104px; z-index: 62; width: 370px; max-width: calc(100vw - 32px);
  height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(139, 92, 246, .1);
  animation: cb-in .25s cubic-bezier(.2, .8, .2, 1);
}
.cb-panel[hidden] { display: none; }
@keyframes cb-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.cb-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.cb-head b { display: block; font-size: .95rem; }
.cb-head small { color: var(--green); font-size: .75rem; }
.cb-avatar {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--grad); color: #0a0a0f; font-family: var(--mono); font-weight: 700; font-size: .8rem;
}
.cb-close { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; }
.cb-close:hover { background: var(--surface); color: var(--text); }
.cb-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.cb-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.5; animation: cb-in .2s ease; overflow-wrap: anywhere; }
.cb-bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.cb-bot a { color: var(--cyan); }
.cb-user { align-self: flex-end; background: var(--grad); color: #0a0a0f; font-weight: 500; border-bottom-right-radius: 4px; }
.cb-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.cb-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: bounce 1.2s infinite; }
.cb-typing i:nth-child(2) { animation-delay: .15s; }
.cb-typing i:nth-child(3) { animation-delay: .3s; }
.cb-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px; }
.cb-quick:not(:empty) { padding-bottom: 12px; }
.cb-quick button {
  font: inherit; font-size: .82rem; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text); border: 1px solid #3a3a4a; transition: border-color .2s, background .2s;
}
.cb-quick button:hover { border-color: var(--violet); background: rgba(139, 92, 246, .12); }
.cb-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.cb-form input {
  flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit; font-size: 16px;
}
.cb-form input:focus { outline: none; border-color: var(--violet); }
.cb-form button { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; cursor: pointer; background: var(--grad); color: #0a0a0f; display: grid; place-items: center; }

@media (max-width: 560px) {
  .cb-panel { right: 0; left: 0; bottom: 0; width: 100%; max-width: none; height: 100dvh; border-radius: 0; border: 0; }
  .cb-open .cb-launcher { display: none; }
}

/* ---------- Apparitions au scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Administration : onglets, filtres, listes ---------- */
a.dash-tab { text-decoration: none; display: inline-block; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.toolbar-search { flex: 1 1 240px; max-width: 360px; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { color: var(--text); border-color: var(--violet); background: rgba(139, 92, 246, .14); }
.chip .n { margin-left: 6px; opacity: .65; font-weight: 500; }
.admin-table .num { text-align: right; white-space: nowrap; }
.admin-table tr.is-link { cursor: pointer; }
.admin-table td a { color: var(--cyan); text-decoration: none; font-weight: 600; }
.admin-table td a:hover { text-decoration: underline; }
a.admin-stat { color: inherit; text-decoration: none; transition: border-color .2s; }
a.admin-stat:hover { border-color: var(--violet); }
.admin-stat.is-alert b { color: #ff8a84; }
.badge-late { background: rgba(255, 95, 87, .14); color: #ff8a84; }
.todo-list { display: grid; gap: 8px; }
.todo-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; color: var(--text); text-decoration: none; }
.todo-item:hover { border-color: var(--violet); }
.todo-item small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.admin-table td { white-space: nowrap; }
.dash-card > * { min-width: 0; }
.dash-grid-fit { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

/* ---------- Espace client : accueil (frise de la commande) ---------- */
.milestones { list-style: none; margin: 4px 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.milestones li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: .82rem; color: var(--muted); }
.milestones li::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.milestones li:first-child::before { display: none; }
.milestones .ms-dot { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #3a3a4a; background: var(--bg); }
.milestones .is-done { color: var(--text); }
.milestones .is-done .ms-dot { background: var(--violet); border-color: var(--violet); }
.milestones .is-done::before, .milestones .is-current::before { background: var(--violet); }
.milestones .is-current { color: var(--text); font-weight: 700; }
.milestones .is-current .ms-dot { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139, 92, 246, .25); }
.is-late { display: block; color: #ff8a84; font-weight: 600; }

/* ---------- Démos en direct (accueil) ---------- */
.demos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.demo-tile { position: relative; display: grid; gap: 6px; align-content: start; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border);
  background: radial-gradient(260px 160px at 100% 0%, color-mix(in srgb, var(--t2) 28%, transparent), transparent 70%), var(--t1);
  color: var(--text); text-decoration: none; overflow: hidden; transition: transform .25s, border-color .25s; min-height: 250px; }
.demo-tile:hover { transform: translateY(-4px); border-color: var(--t2); }
.demo-tile h3 { margin: 4px 0 0; }
.demo-tile p { color: var(--muted); margin: 0 0 12px; font-size: .95rem; }
.demo-tile .case-link { margin-top: auto; color: var(--t2); }
.demo-emoji { font-size: 2.2rem; margin-bottom: 10px; }
@media (max-width: 1000px) { .demos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .demos { grid-template-columns: 1fr; } .demo-tile { min-height: 0; } }

/* Pages cas : mention « projet d'exemple » */
.case-example { display: inline-block; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: .85rem; }

/* ---------- Animations douces (désactivées par « réduire les animations ») ---------- */
/* 1. Entrée du haut de page en cascade */
.js .hero-grid > div:first-child > * { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.js .hero-grid > div:first-child > :nth-child(2) { animation-delay: .08s; }
.js .hero-grid > div:first-child > :nth-child(3) { animation-delay: .16s; }
.js .hero-grid > div:first-child > :nth-child(4) { animation-delay: .24s; }
.js .hero-grid > div:first-child > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* 4. Survols : cartes qui se soulèvent, bordure qui s'éclaire, reflet sur le bouton principal */
.js .reveal.is-visible:is(.case, .price, .demo-tile) { transition: opacity .8s ease, transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.price { transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.price:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(139, 92, 246, .55); }
.price:not(.featured):hover { border-color: rgba(139, 92, 246, .45); }
.case:hover, .demo-tile:hover { box-shadow: 0 18px 40px -22px rgba(34, 211, 238, .4); }
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-primary:hover::after { transform: translateX(120%); transition: transform .7s ease; }

/* 5. Le point « Disponible » pulse comme un voyant */
.hero-badge .dot { position: relative; }
.hero-badge .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: pulse-dot 2.4s ease-out infinite; }
@keyframes pulse-dot { from { transform: scale(1); opacity: .55; } to { transform: scale(2.8); opacity: 0; } }
