@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/vendor/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 800; font-style: normal; font-display: swap;
}
:root {
  --night: #0b1020; --night-2: #101833; --night-3: #18244a;
  --cream: #f7f2e8; --paper: #fffdf8; --ink: #17181c; --muted: #5d6270; --line: #e4dccb;
  --red-text: #b8331f; --green-text: #257a4c; --amber-text: #8a5a00;      /* textes : contraste AA sur crème et sur blanc ; les couleurs d'origine restent pour les aplats */
  --red: #d8432e; --gold: #f4b93a; --gold-ink: #2a1c00; --blue: #4a7dff; --green: #2c8a57; --amber: #b7791f;
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 700; max-width: 21ch; }
h3 { font-size: 21px; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 40px); }
.kicker { font: 600 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--red-text); margin-bottom: 16px; }
.kicker-gold { color: var(--gold); }
.sub { margin-top: 18px; max-width: 62ch; color: #b9c0d6; font-size: 18px; }
.sub.dark { color: var(--muted); }
main > section { padding: clamp(64px, 9vw, 120px) 0; }
.if-live { display: none; } body.agent-live .if-live { display: inline; } body.agent-live .if-soon { display: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 650 16px/1 var(--body); text-decoration: none;
  padding: 15px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 6px 0 #b98312, 0 14px 30px rgba(244, 185, 58, .25); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #b98312, 0 18px 34px rgba(244, 185, 58, .32); }
.btn-gold:active { transform: translateY(4px); box-shadow: 0 2px 0 #b98312; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { border-color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 14px; box-shadow: 0 4px 0 #b98312; }

/* navigation */
.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 28px; padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(11, 16, 32, .86); backdrop-filter: blur(12px); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.brand { font: 750 24px/1 var(--display); text-decoration: none; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 9px; }
.brand-badge { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--night); font-size: 15px; }
.nav nav { display: flex; gap: 24px; margin-left: auto; }
.nav nav a { text-decoration: none; font-size: 15px; color: #c9cfe2; }
.nav nav a:hover { color: #fff; }

/* hero */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 150px; color: #fff; overflow: hidden;
  background: radial-gradient(1200px 600px at 78% 30%, #1d2b5c 0%, transparent 60%), linear-gradient(180deg, var(--night) 0%, #0e1630 100%); }
.stars { position: absolute; inset: 0; opacity: .8;
  background-image: radial-gradient(1.5px 1.5px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 64%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 14%, #cfd8ff 50%, transparent 51%), radial-gradient(1px 1px at 58% 44%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 78%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 92% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 8%, #cfd8ff 50%, transparent 51%), radial-gradient(1px 1px at 36% 38%, #fff 50%, transparent 51%); }
.hero-in { position: relative; width: min(1180px, 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 24px; }
.chip { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: #d5dbf0; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 7px 14px; margin-bottom: 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(244, 185, 58, .22); }
h1 { font-size: clamp(40px, 5.3vw, 70px); font-weight: 780; letter-spacing: -0.035em; line-height: 1; }
h1 em { font-style: normal; color: var(--gold); }
.lead { margin-top: 26px; font-size: clamp(18px, 1.5vw, 21px); color: #c5cce1; max-width: 54ch; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.proof { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; gap: 14px 34px; color: #aab2cc; font-size: 14.5px; }
.proof b { display: block; font: 700 22px/1.2 var(--display); color: #fff; }
.hero-mascot { position: relative; aspect-ratio: 1 / 1.08; width: min(100%, 540px); justify-self: end; }
#mascot { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.gyro { position: absolute; inset: 8% 6% 14%; border-radius: 50%; filter: blur(60px); opacity: .55;
  background: conic-gradient(from 0deg, var(--blue), transparent 30%, var(--red) 50%, transparent 80%, var(--blue)); animation: spin 5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bubble { position: absolute; left: -4%; top: 9%; max-width: 230px; background: #fff; color: var(--ink); font: 600 15px/1.35 var(--body);
  padding: 12px 16px; border-radius: 18px 18px 18px 4px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); transform: rotate(-3deg); }
.horizon { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 150px; display: block; }
.fox .eye { animation: blink 4.5s infinite; }
@keyframes blink { 0%, 92%, 100% { opacity: 1; } 95% { opacity: 0; } }

/* problèmes */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px; display: grid; gap: 10px; align-content: start; }
.card svg { width: 44px; height: 44px; fill: none; stroke: var(--red); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.card svg circle { fill: var(--red); stroke: none; }
.card p { color: var(--muted); font-size: 15.5px; }

/* ce que Cotcot réunit */
.diff .grid3 { margin-top: 44px; }
.diff .card { border-top: 4px solid var(--gold); }

/* étapes */
.how { background: var(--paper); border-block: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 50px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; counter-reset: s; }
.steps li { display: grid; gap: 12px; align-content: start; }
.num { font: 800 84px/0.9 var(--display); color: transparent; -webkit-text-stroke: 2px var(--red); letter-spacing: -0.04em; }
.steps p { color: var(--muted); }

/* démo */
.demo { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: #fff; }
.board { margin-top: 40px; border-radius: 22px; overflow: hidden; background: #0a0e1c; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 100px rgba(0, 0, 0, .55); }
.board-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #141b33; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.board-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2c365c; }
.board-bar b { margin-left: 10px; font: 500 13px/1 var(--body); color: #8e97b8; }
.board-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr) 350px; height: min(690px, 78vh); min-height: 560px; }
.pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.chat { background: #0f152b; border-right: 1px solid rgba(255, 255, 255, .08); }
.chat header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.chat header img { border-radius: 50%; background: #1d2850; object-fit: cover; object-position: 50% 12%; }
.chat header div { display: grid; line-height: 1.2; } .chat header small { color: #8e97b8; font-size: 12px; }
.link { margin-left: auto; background: none; border: 0; color: var(--gold); font: 600 13px var(--body); cursor: pointer; padding: 6px; }
.log { list-style: none; margin: 0; padding: 14px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.log:empty::before { content: "Cliquez sur « Rejouer » pour voir l'exemple de conversation."; color: #7882a6; font-size: 13.5px; }
.msg { max-width: 92%; padding: 10px 13px; border-radius: 15px; font-size: 14.5px; line-height: 1.42; animation: pop .35s ease both; }
.msg.user { align-self: flex-end; background: #3a63e0; color: #fff; border-bottom-right-radius: 5px; }
.msg.bot { align-self: flex-start; background: #1b2445; color: #e8ecfa; border-bottom-left-radius: 5px; }
.msg .file { display: inline-flex; gap: 6px; align-items: center; margin-top: 7px; padding: 4px 9px; border-radius: 8px; background: rgba(0, 0, 0, .22); font-size: 12.5px; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 13px; background: #1b2445; border-radius: 15px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8e97b8; animation: bob 1s infinite; } .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.stepper { list-style: none; margin: 0; padding: 9px 14px 2px; display: flex; gap: 4px; counter-reset: st; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.stepper[hidden] { display: none; }
.stepper li { flex: 1; font: 600 10px/1.2 var(--body); color: #8a95bf; text-align: center; padding-bottom: 8px; border-bottom: 3px solid #1f2a52; counter-increment: st; }
.stepper li.done { color: #8fd3ae; border-color: #3fae6f; } .stepper li.now { color: var(--gold); border-color: var(--gold); }
.projectbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 12px 8px; }
.projectbar[hidden] { display: none; }
.projectbar button { flex: 1 1 auto; font: 650 12.5px/1.2 var(--body); padding: 10px 10px; border-radius: 10px; border: 0; background: var(--gold); color: var(--gold-ink); cursor: pointer; }
.projectbar button.ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .26); }
.projectbar button:disabled { opacity: .55; cursor: wait; }
.starts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 12px 10px; }
.starts[hidden], .composer[hidden], .thumbs[hidden], .privacy[hidden] { display: none; }
.starts button { flex: 1 1 130px; font: 650 13.5px/1.2 var(--body); padding: 11px 8px; border-radius: 11px; border: 0; background: var(--gold); color: var(--gold-ink); cursor: pointer; }
.starts button.ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.chips { align-self: stretch; display: flex; flex-wrap: wrap; gap: 6px; animation: pop .3s ease both; }
.chips button { font: 600 13px/1.2 var(--body); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--gold); background: transparent; color: var(--gold); cursor: pointer; }
.chips button:hover { background: var(--gold); color: var(--gold-ink); }
.chips.dims { align-items: center; }
.chips.dims input { width: 84px; font: 500 14px var(--body); padding: 8px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .25); background: #0a0e1c; color: #fff; }
.chips.dims span { color: #8e97b8; }
.log .card { align-self: stretch; display: grid; gap: 5px; padding: 11px 13px; border-radius: 13px; background: #141d3a; border-left: 4px solid #4a5a96; color: #dfe5f7; font-size: 13.5px; line-height: 1.42; animation: pop .35s ease both; }
.log .card > b { font: 650 14.5px/1.2 var(--display); color: #fff; }
.log .card.ok { border-left-color: #3fae6f; } .log .card.warn { border-left-color: var(--gold); } .log .card.ko { border-left-color: var(--red); }
.log .card a.dl { color: var(--gold); font-weight: 650; }
.mailform { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 2px; }
.mailform input { flex: 1 1 190px; min-width: 0; font: 500 14px var(--body); padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .28); background: #0a0e1c; color: #fff; }
.mailform input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.mailform button { flex: 0 0 auto; font: 650 14px var(--body); padding: 10px 16px; border-radius: 999px; border: 0; background: var(--gold); color: #2a1c00; cursor: pointer; }
.mailform.consent { display: grid; gap: 8px; } .mailform.consent label { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; } .mailform.consent input { flex: 0 0 auto; width: 16px; min-width: 16px; margin-top: 2px; } .mailform.consent a { color: var(--gold); }
.mailform button:disabled, .mailform input:disabled { opacity: .55; cursor: default; }
.log .card .fine { font-size: 12px; color: #98a2c6; }
.msg .thumb { display: block; margin-top: 7px; max-width: 150px; border-radius: 9px; }
.thumbs { display: flex; gap: 8px; margin: 0 12px 8px; }
.thumbs span { position: relative; } .thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 9px; display: block; }
.thumbs button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: 11px; cursor: pointer; }
.composer.live { border-style: solid; border-color: rgba(255, 255, 255, .22); padding: 6px; align-items: flex-end; gap: 6px; }
.composer.live textarea { flex: 1; min-width: 0; resize: none; border: 0; background: transparent; color: #fff; font: 400 14.5px/1.4 var(--body); padding: 7px 4px; max-height: 110px; }
.composer.live textarea::placeholder { color: #7882a6; }
.composer.live button { width: 34px; height: 34px; flex: none; border-radius: 9px; border: 0; background: #1f2a52; color: #fff; font-size: 17px; cursor: pointer; }
.composer.live button[type=submit] { background: var(--gold); color: var(--gold-ink); font-weight: 700; }
.composer.live.busy button[type=submit] { opacity: .45; pointer-events: none; }
.privacy { margin: -4px 12px 10px; font-size: 11px; line-height: 1.35; color: #7882a6; }
.composer { margin: 0 12px 12px; padding: 11px 12px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, .2); color: #7882a6; font-size: 13px; display: flex; justify-content: space-between; gap: 8px; }
.composer i { font-style: normal; }
.view { position: relative; background: #05070f; }
.view iframe { flex: 1; width: 100%; border: 0; display: block; background: #0a0e1c; }
.view-tools { position: absolute; left: 12px; top: 12px; z-index: 2; display: flex; gap: 8px; }
.tool { font: 600 13px/1 var(--body); padding: 9px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(10, 14, 28, .72); color: #fff; cursor: pointer; backdrop-filter: blur(6px); }
.tool[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.view-hint { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .7); pointer-events: none; text-shadow: 0 1px 3px #000; padding: 0 240px 0 12px; }
.order { background: var(--paper); color: var(--ink); padding: 14px; overflow-y: auto; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: #efe8d8; padding: 4px; border-radius: 12px; }
.tab { font: 650 13px/1 var(--body); padding: 10px 2px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.tab[aria-pressed="true"] { background: var(--night); color: #fff; }
.tagline { margin: 12px 2px 4px; font: 650 17px/1.25 var(--display); }
.items { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.items li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 3px; background: #fff; }
.items .h { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-weight: 650; font-size: 14.5px; }
.items .p { white-space: nowrap; font-variant-numeric: tabular-nums; }
.items .d { font-size: 13px; color: var(--muted); }
.items .f { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; margin-top: 4px; }
.items a { font: 650 13px var(--body); color: var(--red-text); text-decoration: none; border: 1.5px solid var(--red-text); padding: 4px 10px; border-radius: 999px; }
.items a:hover { background: var(--red); color: #fff; }
.items li.shop { border: 0; background: none; padding: 6px 2px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 700 12px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.items li.shop span { font-weight: 500; letter-spacing: 0; text-transform: none; }
.pose { font-size: 11.5px; color: var(--muted); }
.items .c { font-size: 12.5px; color: #8a5a00; }
.items li.optrow { border-style: dashed; background: #f6f1e6; margin-top: 6px; }
.items li.optrow.on { border-style: solid; border-color: var(--night); }
.items li.optrow label { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; cursor: pointer; font-size: 14.5px; }
.items li.optrow input { width: 17px; height: 17px; accent-color: var(--night); }
.items li.optrow label span { margin-left: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.items li.gap { border-style: dashed; background: #fff6f3; }
.items li.gap .h { color: var(--red-text); }
.badge { font-size: 11.5px; color: var(--muted); } .badge.ok { color: var(--green-text); } .badge.warn { color: var(--amber-text); } .badge.ko { color: var(--red-text); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; }
.total b { font: 750 26px/1 var(--display); font-variant-numeric: tabular-nums; }
.total small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.total:empty { display: none; }
.fine { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* packs */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; align-items: stretch; }
.pack { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 28px 26px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.pack.best { background: var(--night); color: #fff; border-color: var(--night); box-shadow: 0 30px 60px rgba(11, 16, 32, .25); transform: translateY(-10px); }
.pack .flag { position: absolute; top: -13px; left: 24px; background: var(--gold); color: var(--gold-ink); font: 700 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; }
.pack h3 { font-size: 26px; }
.pack .amount { font: 780 44px/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pack .amount small { display: block; font: 500 13.5px/1.3 var(--body); letter-spacing: 0; color: var(--muted); margin-top: 6px; }
.pack.best .amount small, .pack.best p { color: #b9c0d6; }
.pack ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; font-size: 15px; flex: 1; align-content: start; }
.pack li { padding-left: 24px; position: relative; }
.pack li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.pack.best li::before { color: var(--gold); }
.pack li.plus { font-weight: 650; padding-left: 0; } .pack li.plus::before { content: none; }
.pack button { margin-top: 8px; font: 650 15px var(--body); padding: 13px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.pack button:hover { background: var(--ink); color: #fff; }
.pack.best button { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.pack.option { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 34px; border-style: dashed; background: transparent; }
.pack.option > div:first-child { flex: 1.1; display: grid; gap: 8px; }
.pack.option ul { flex: 1.2; margin: 0; }
.pack.option li::before { content: "+"; color: var(--red); }
.pack.option .amount { font-size: 32px; flex: .9; }

/* confiance */
.trust { background: var(--paper); border-block: 1px solid var(--line); }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 54px; margin-top: 44px; }
.grid2 article { padding: 24px 0; border-top: 2px solid var(--ink); display: grid; gap: 10px; align-content: start; }
.grid2 p { color: var(--muted); }

/* questions */
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq details:first-of-type { margin-top: 34px; border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font: 650 20px/1.3 var(--display); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 26px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--muted); max-width: 68ch; }

/* final + pied */
.final { background: radial-gradient(900px 400px at 20% 50%, #1d2b5c 0%, transparent 65%), var(--night); color: #fff; }
.final-in { display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center; }
.final img { width: 210px; height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); }
.final img:not([src]) { visibility: hidden; }
.final h2 { max-width: 16ch; } .final p { margin: 18px 0 28px; color: #c5cce1; max-width: 52ch; font-size: 18px; }
.foot { background: #070a15; color: #7f88a8; font-size: 14px; padding: 28px 0 36px; }
.foot p + p { margin-top: 6px; } .foot b { color: #fff; font-family: var(--display); }

@media (max-width: 1080px) {
  .board-grid { grid-template-columns: 1fr; height: auto; }
  .chat { order: 1; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); max-height: 70vh; } .view { order: 2; height: min(70vh, 520px); } .order { order: 3; max-height: none; }   /* le chat d'abord : c'est là que commence le projet */
  .view-hint { padding: 0 130px 0 12px; text-align: left; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav nav { display: none; } .nav .btn { margin-left: auto; }
  .hero-in { grid-template-columns: 1fr; } .hero-mascot { order: -1; justify-self: center; width: min(78vw, 360px); } .bubble { left: -6%; top: 2%; font-size: 13.5px; max-width: 190px; }
  .steps, .grid3, .grid2 { grid-template-columns: 1fr; } .pack.best { transform: none; }
  .pack.option { flex-direction: column; align-items: stretch; gap: 14px; }
  .final-in { grid-template-columns: 1fr; text-align: left; } .final img { width: 150px; }
}
@media (max-width: 520px) { .grid4 { grid-template-columns: 1fr; } body { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gyro, .fox .eye, .typing i, .msg { animation: none; }
  .btn { transition: none; }
}

/* Pages légales */
.legal { padding: 56px 0 88px; }
.legal h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.05; }
.legal h2 { font-size: 22px; max-width: none; margin: 34px 0 8px; letter-spacing: -0.01em; }
.legal p, .legal li { font-size: 17px; }
.legal ul { padding-left: 1.2em; }
.legal .back { display: inline-block; margin-bottom: 18px; }

/* Retirer une ligne du pack */
.skipbtn { margin-left: auto; font: 600 12px var(--body); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.skipbtn:hover, .skipbtn:focus-visible { border-color: var(--ink); color: var(--ink); }
.log .card .ask { display: flex; gap: 8px; margin: 2px 0 6px; }
.log .card .ask button { font: 650 13px var(--body); padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: #fff; cursor: pointer; }
.log .card .ask button:hover { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.items li.flash { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 10px; transition: outline-color .4s; }

/* Accessibilité : anneau de focus lisible sur le clair (noir bordé d'or), champs à 16 px (pas de zoom iOS), cibles tactiles de 44 px */
main > section:not(.hero):not(.demo):not(.final) :focus-visible, .legal :focus-visible { outline-color: var(--night, #0b1020); box-shadow: 0 0 0 6px var(--gold); }
.pack.best :focus-visible { outline-color: var(--gold); box-shadow: none; }
iframe:focus-visible { outline: 3px solid var(--gold); }
.chips.dims input, .mailform input, .composer textarea, #msg { font-size: 16px; }
.chips.dims form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips.dims .err, .mailform .err { flex-basis: 100%; color: #ffb4a8; font-size: 13px; }
.log .card .ans { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 3px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.log .card .ans button { font: 600 12px var(--body); padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: #fff; cursor: pointer; }
.legal p, .legal ul { margin: 0 0 14px; }
.legal h2 { margin-top: 30px; }
@media (pointer: coarse) {
  .btn-sm, .tool, .tab, .link, .chips button, .starts button, .projectbar button, .skipbtn, .items a, .ask button, .mailform button, .ans button { min-height: 44px; }
  .composer.live button { width: 44px; height: 44px; }
  .faq summary { min-height: 44px; padding-block: 8px; }
  .foot a { display: inline-block; padding: 12px 6px; }
  .items li.optrow input { width: 24px; height: 24px; }
}

/* Mascotte : image fixe d'abord, version 3D animée quand le navigateur est disponible */
.mascot-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
#mascot { opacity: 0; transition: opacity .3s; } .hero-mascot.live #mascot { opacity: 1; } .hero-mascot.live .mascot-still { display: none; }
.chip { align-items: flex-start; } .chip-t { min-width: 0; }
.unlock3d { position: absolute; right: 12px; bottom: 12px; z-index: 3; font: 650 14px var(--body); min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 0; background: var(--gold); color: var(--gold-ink); cursor: pointer; }
.view iframe.inert { pointer-events: none; }
.legal-brand { display: inline-flex; align-items: center; gap: 8px; font: 800 20px var(--display); color: var(--ink); text-decoration: none; margin-bottom: 22px; }
.legal-foot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

