/* ExoGroupe — warm golden-hour Firewatch landing (light / beige) */
:root {
  --bg:        #f6efe3;   /* sable clair */
  --bg-soft:   #efe5d5;   /* wash de section */
  --bg-card:   #fffaf1;   /* carte, crème quasi-blanc chaud */
  --ink:       #2a1c14;   /* brun foncé — texte principal */
  --ink-soft:  #5c4a3d;   /* brun moyen — texte secondaire */
  --ink-faint: #8a7767;   /* brun-gris — méta */
  --line:      rgba(42,28,20,0.10);
  --line-2:    rgba(42,28,20,0.18);
  --ember:     #d9722f;   /* terracotta — action primaire */
  --ember-2:   #c24a34;   /* rouge chaud */
  --gold:      #c98a1e;   /* or (assombri pour contraste sur clair) */
  --amber:     #e0912f;   /* miel */
  --maxw:      1200px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--ember); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.serif { font-family: var(--serif); font-weight: 400; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(246,239,227,0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .14em; font-size: 15px; text-transform: uppercase; }
.brand .mark {
  width: 30px; height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(255,184,107,.28));
}
.brand small { color: var(--ink-faint); font-weight: 600; letter-spacing: .2em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14px; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang {
  display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden;
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
}
.lang button { background: none; border: 0; color: var(--ink-faint); padding: 6px 11px; cursor: pointer; font: inherit; transition: .2s; }
.lang button.on { background: var(--ink); color: var(--bg); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 14px;
  cursor: pointer; border: 1px solid transparent; transition: transform .2s, box-shadow .3s, background .3s;
  letter-spacing: .01em;
}
.btn-primary { background: linear-gradient(135deg, var(--ember), var(--ember-2)); color: #fff; box-shadow: 0 10px 30px -8px rgba(217,114,47,.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(217,114,47,.62); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: rgba(42,28,20,0.03); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; display: flex; align-items: flex-end; overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-veil { position: absolute; inset: 0; pointer-events: none;
  /* fade the golden scene down into the beige page + give the bottom text a light backdrop */
  background: linear-gradient(to bottom, rgba(246,239,227,0) 0%, rgba(246,239,227,0) 42%, rgba(246,239,227,.55) 66%, rgba(246,239,227,.92) 88%, var(--bg) 100%); }
.hero-inner { position: relative; z-index: 3; width: 100%; padding-bottom: 7vh; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.kicker::before { content:""; width: 26px; height: 1px; background: var(--gold); display: inline-block; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 8.4vw, 116px); line-height: 0.95; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
.hero h1 .l2 { color: var(--ember); font-style: italic; }
.hero p.sub { max-width: 620px; margin: 26px 0 30px; font-size: clamp(17px,1.5vw,21px); color: var(--ink-soft); line-height: 1.5; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint .dot { width: 1px; height: 34px; background: linear-gradient(var(--ink-faint), transparent); animation: drop 2s infinite; }
@keyframes drop { 0%{opacity:0; transform:scaleY(.3) translateY(-8px);} 40%{opacity:1;} 100%{opacity:0; transform:scaleY(1) translateY(8px);} }

/* ---------- sections ---------- */
section.block { position: relative; padding: clamp(80px,11vh,150px) 0; }
.block.alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 50%, var(--bg) 100%); }
.eyebrow { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ember); font-weight: 700; }
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px,5vw,64px); line-height: 1.02; margin: 14px 0 0; letter-spacing: -0.01em; }
.sec-head p { color: var(--ink-soft); font-size: 18px; margin: 16px 0 0; }

/* stats ribbon */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { background: var(--bg); padding: 30px 24px; }
.stat .n { font-family: var(--serif); font-size: clamp(34px,4vw,52px); line-height: 1; color: var(--ink); }
.stat .l { font-size: 13px; color: var(--ink-faint); margin-top: 10px; letter-spacing: .03em; }

/* services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.svc { position: relative; background: var(--bg-card); border: 1px solid var(--line); border-radius: 20px; padding: 38px 34px; overflow: hidden; transition: border-color .3s, transform .3s; }
.svc::before { content:""; position: absolute; inset: 0; background: radial-gradient(120% 100% at 0% 0%, rgba(217,114,47,.10), transparent 55%); opacity: 0; transition: opacity .4s; }
.svc:hover { transform: translateY(-4px); border-color: var(--line-2); }
.svc:hover::before { opacity: 1; }
.svc .tag { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.svc h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px,3vw,38px); margin: 16px 0 8px; line-height: 1.05; }
.svc .lead { color: var(--ember); font-weight: 600; margin: 0 0 22px; }
.svc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.svc li { display: flex; gap: 12px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.45; }
.svc li::before { content:""; flex: 0 0 auto; margin-top: 9px; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--ember); }

/* work */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.work-card { display: block; position: relative; background: var(--bg-card); border: 1px solid var(--line); border-radius: 20px; padding: 32px 32px 30px; overflow: hidden; transition: transform .35s, border-color .35s; }
.work-card:hover { transform: translateY(-5px); border-color: var(--ember); }
.work-card .glow { position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(217,114,47,.20), transparent 70%); opacity: 0; transition: opacity .4s; }
.work-card:hover .glow { opacity: 1; }
.work-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; }
.work-logo { width: 56px; height: 56px; flex-shrink: 0; border-radius: 15px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 3px 12px rgba(60,35,20,.14); border: 1px solid rgba(42,28,20,.06); }
.work-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.work-logo--mono { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1; color: #fff; background: linear-gradient(140deg, var(--gold), var(--ember)); border: none; }
.work-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px,3.2vw,40px); line-height: 1.04; margin: 20px 0 0; }
.work-meta { font-size: 13px; color: var(--ink-faint); white-space: nowrap; }
.pill { display: inline-block; white-space: nowrap; font-size: 12px; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-soft); margin: 16px 0 14px; }
.work-card p { color: var(--ink-soft); margin: 0; font-size: 15.5px; line-height: 1.5; }
.work-card .link { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--gold); }
.work-card .link .arr { transition: transform .25s; }
.work-card:hover .link .arr { transform: translate(3px,-3px); }

/* about */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.about-portrait { position: relative; aspect-ratio: 4/5; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2);
  background:
    repeating-linear-gradient(135deg, rgba(217,114,47,.10) 0 2px, transparent 2px 11px),
    linear-gradient(160deg, #efe0cb, #e2cdb0); }
.about-portrait .ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 20px; }
.about-portrait .portrait-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.about-portrait .ph span { font-family: ui-monospace, monospace; font-size: 12px; color: var(--ink-faint); letter-spacing: .04em; }
.about h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px,6vw,76px); margin: 8px 0 22px; line-height: .98; }
.about p { color: var(--ink-soft); margin: 0 0 16px; font-size: 16.5px; }
.about .tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.about .tags span { font-size: 13px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-soft); }

/* team — two senior engineers, 2-up */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.member {
  display: flex; gap: 22px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 20px; padding: 28px 30px;
}
.member-portrait {
  flex: 0 0 auto; width: 118px; aspect-ratio: 4/5; border-radius: 16px;
  overflow: hidden; position: relative; border: 1px solid var(--line-2);
  background:
    repeating-linear-gradient(135deg, rgba(217,114,47,.10) 0 2px, transparent 2px 11px),
    linear-gradient(160deg, #efe0cb, #e2cdb0);
}
.member-portrait .portrait-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.member-portrait .ph { position: absolute; inset: 0; align-items: center; justify-content: center; }
.member-portrait .ph span { font-family: var(--serif); font-size: 48px; line-height: 1; color: var(--ember); }
.member-body { min-width: 0; }
.member-body h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px,3vw,34px); margin: 0; line-height: 1.05; }
.member-role { font-size: 13px; letter-spacing: .04em; color: var(--gold); font-weight: 700; margin: 6px 0 14px; }
.member-body p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; margin: 0; }
.member-body .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.member-body .tags span { font-size: 12.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-soft); }

/* webwork — "see all" affordance on the home teaser */
.webwork-more { margin-top: 34px; display: flex; justify-content: center; }
.webwork-more .arr { transition: transform .25s; }
.webwork-more .btn:hover .arr { transform: translateX(4px); }

/* process */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 34px 26px 34px 0; border-top: 2px solid transparent; margin-top: -1px; position: relative; }
.step:not(:last-child) { border-right: 1px solid var(--line); padding-right: 26px; }
.step:not(:first-child) { padding-left: 26px; }
.step .n { font-family: var(--serif); font-size: 40px; color: var(--ember); line-height: 1; }
.step h4 { font-size: 19px; margin: 18px 0 8px; font-weight: 700; }
.step p { color: var(--ink-soft); font-size: 15px; margin: 0; line-height: 1.5; }

/* contact */
.contact-wrap { position: relative; border: 1px solid var(--line-2); border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 130% at 80% 0%, rgba(217,114,47,.14), transparent 55%), var(--bg-card);
  padding: clamp(46px,7vw,84px) clamp(34px,6vw,72px); text-align: center; }
.contact-wrap h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px,6.5vw,84px); margin: 0; line-height: 1; }
.contact-wrap p { color: var(--ink-soft); font-size: 18px; max-width: 540px; margin: 20px auto 34px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.contact-mail { font-family: var(--serif); font-size: clamp(22px,3vw,32px); color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color .3s; }
.contact-mail:hover { border-color: var(--ember); }
.cal-note { font-size: 12px; color: var(--ink-faint); margin-top: 16px; letter-spacing: .03em; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 38px 0; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--ink-faint); font-size: 14px; }
.foot .brand { color: var(--ink); }
.foot-legal { display: flex; align-items: center; gap: 22px; }
.foot-legal a { color: var(--ink-faint); transition: color .2s; }
.foot-legal a:hover { color: var(--gold); }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 900px) {
  .nav-links a:not(.tab) { display: none; }
  .nav-links .sep { display: none; }
  .services, .work-grid, .about, .team { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-right: none !important; padding-left: 0 !important; }
  .about { gap: 36px; }
  .about-portrait { max-width: 360px; }
}
@media (max-width: 560px) {
  .stats, .steps { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
  .nav { padding: 14px 20px; }
}

/* ============ tabs in nav ============ */
.nav-links a.tab {
  position: relative; color: var(--ink); font-weight: 600;
  padding: 7px 2px; letter-spacing: .005em;
}
.nav-links a.tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--ember-2));
  transform: scaleX(0); transform-origin: left; transition: transform .28s cubic-bezier(.2,.7,.2,1);
}
.nav-links a.tab:hover::after { transform: scaleX(1); }
.nav-links a.tab.on { color: var(--gold); }
.nav-links a.tab.on::after { transform: scaleX(1); }
.nav-links .sep { width: 1px; height: 16px; background: var(--line-2); }

/* ── Services dropdown ── */
.nav-group { position: relative; display: inline-flex; align-items: center; }
.nav-parent {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--ink); font-weight: 600; font-size: 14px; padding: 7px 2px;
  letter-spacing: .005em; cursor: default; user-select: none;
}
.nav-caret { width: 13px; height: 13px; opacity: .6; transition: transform .25s ease, opacity .2s; }
.nav-group:hover .nav-caret, .nav-group:focus-within .nav-caret { transform: rotate(180deg); opacity: 1; }
.nav-group.on .nav-parent { color: var(--gold); }
.nav-sub {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  min-width: 210px; padding: 8px; z-index: 80;
  background: rgba(255,250,241,.98); backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(60,35,20,.18);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(8px);
}
.nav-sub .sub {
  display: block; padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 600;
  color: var(--ink-soft); white-space: nowrap; transition: background .15s, color .15s;
}
.nav-sub .sub:hover { background: rgba(42,28,20,.06); color: var(--ink); }
.nav-sub .sub.on { color: var(--gold); }

/* ============ service card → page link (hub) ============ */
.svc .more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  font-size: 14.5px; font-weight: 700; color: var(--gold); letter-spacing: .01em;
}
.svc .more .arr { transition: transform .25s; }
.svc:hover .more .arr { transform: translateX(4px); }

/* ============ page hero (sub-pages) ============ */
.hero.page { align-items: center; min-height: 560px; height: 88svh; }
.hero.page .hero-inner { padding-bottom: 0; }
.hero.page .hero-veil {
  background: linear-gradient(to bottom, rgba(246,239,227,.35) 0%, rgba(246,239,227,.05) 30%, rgba(246,239,227,.4) 62%, rgba(246,239,227,.94) 90%, var(--bg) 100%);
}
.hero.page h1 { font-size: clamp(44px, 7.6vw, 104px); }
.hero.page p.sub { max-width: 660px; }

/* ============ feature grid (web offer / generic) ============ */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.feature {
  position: relative; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 20px; padding: 34px 32px; overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.feature::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(120% 100% at 0% 0%, rgba(217,114,47,.10), transparent 55%);
}
.feature:hover { transform: translateY(-4px); border-color: var(--line-2); }
.feature:hover::before { opacity: 1; }
.feature .tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.feature h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px,2.6vw,32px); margin: 14px 0 12px; line-height: 1.06; }
.feature p { color: var(--ink-soft); font-size: 15.5px; margin: 0; line-height: 1.5; }

/* ============ deliverables checklist ============ */
.deliver { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: start; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; }
.check { display: flex; gap: 14px; align-items: flex-start; color: var(--ink); font-size: 16px; line-height: 1.45; }
.check .mk {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--ember-2));
  box-shadow: 0 6px 16px -6px rgba(217,114,47,.5);
}

/* ============ audit cards (svc number variant) ============ */
.audit-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.svc .idx { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--ember); }

/* ============ mini grid (ai / founders) ============ */
.mini-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.mini { background: var(--bg-card); padding: 34px 30px; transition: background .3s; }
.mini:hover { background: #f1e3d0; }
.mini h4 { font-family: var(--serif); font-weight: 400; font-size: clamp(21px,2.2vw,27px); margin: 0 0 12px; line-height: 1.1; color: var(--ink); }
.mini p { color: var(--ink-soft); font-size: 15.5px; margin: 0; line-height: 1.5; }

/* ============ FAQ accordion ============ */
.faq { display: flex; flex-direction: column; max-width: 880px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 26px 4px; display: flex;
  align-items: center; justify-content: space-between; gap: 24px;
  font-family: var(--serif); font-weight: 400; font-size: clamp(20px,2.4vw,28px);
  color: var(--ink); transition: color .25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold); }
.faq-item .ic { position: relative; flex: 0 0 auto; width: 20px; height: 20px; }
.faq-item .ic::before, .faq-item .ic::after {
  content: ""; position: absolute; background: var(--ember); border-radius: 2px;
  transition: transform .28s cubic-bezier(.2,.7,.2,1), opacity .28s;
}
.faq-item .ic::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-item .ic::after { left: 9px; top: 0; width: 2px; height: 20px; }
.faq-item[open] .ic::after { transform: rotate(90deg); opacity: 0; }
.faq-a { overflow: hidden; padding: 0 4px 26px; }
.faq-a p { margin: 0; max-width: 720px; color: var(--ink-soft); font-size: 16.5px; line-height: 1.6; }

/* responsive — pages */
@media (max-width: 900px) {
  .feature-grid, .audit-grid, .mini-grid, .checklist { grid-template-columns: 1fr; }
  .deliver { grid-template-columns: 1fr; gap: 32px; }
  .mini-grid { border-radius: 16px; }
}
@media (max-width: 560px) {
  .nav-links a:not(.tab) { display: none; }
}

/* ============ web portfolio — single card ============ */
.work-grid--single { grid-template-columns: minmax(0, 560px); }

/* ============ legal pages (mentions / confidentialité) ============ */
.legal-block { padding-top: 132px; }
.legal { max-width: 860px; }
.legal-back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 38px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft); transition: color .2s, gap .2s;
}
.legal-back:hover { color: var(--gold); gap: 12px; }
.legal .eyebrow { display: none; }
.legal-title { font-weight: 400; font-size: clamp(40px, 6.5vw, 76px); line-height: 1; margin: 0; letter-spacing: -0.01em; }
.legal-sub { color: var(--ink-soft); font-size: 18px; margin: 18px 0 0; max-width: 620px; text-wrap: pretty; }
.legal-body { margin-top: 48px; border-top: 1px solid var(--line); }
.legal-sec { padding: 36px 0; border-bottom: 1px solid var(--line); }
.legal-sec h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.8vw, 32px);
  margin: 0 0 18px; line-height: 1.1; color: var(--ink);
}
.legal-sec p { color: var(--ink-soft); font-size: 16px; line-height: 1.65; margin: 0 0 12px; max-width: 680px; }
.legal-sec p:last-child { margin-bottom: 0; }
.legal-list { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.legal-list li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }
.legal-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--ember); }
.legal-rows { margin: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.legal-row { display: grid; grid-template-columns: 240px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.legal-row:first-child { border-top: 0; padding-top: 0; }
.legal-row dt { color: var(--ink-faint); font-size: 13.5px; letter-spacing: .03em; text-transform: uppercase; font-weight: 700; }
.legal-row dd { margin: 0; color: var(--ink); font-size: 16px; }
.legal-updated { margin: 32px 0 0; font-size: 13px; color: var(--ink-faint); letter-spacing: .03em; }

@media (max-width: 560px) {
  .work-grid--single { grid-template-columns: 1fr; }
  .legal-row { grid-template-columns: 1fr; gap: 4px; }
  .legal-row dd { font-size: 15.5px; }
}

/* ====================================================================== */
/* ============ FX LAYER — ambient embers + content stacking ============ */
/* ====================================================================== */
#fx-embers {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
/* keep all real content painting above the ember canvas (transparent
   sections let the sparks drift through; opaque cards sit on top) */
.hero, section.block, footer { position: relative; z-index: 1; }

/* ============ cursor spotlight on cards ============ */
.svc, .work-card, .feature, .mini, .preview-card { --mx: 50%; --my: 50%; }
.svc::after, .work-card::after, .feature::after, .mini::after, .preview-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx) var(--my),
              color-mix(in oklab, var(--gold) 22%, transparent), transparent 62%);
  opacity: 0; transition: opacity .4s ease; z-index: 2; mix-blend-mode: multiply;
}
.svc:hover::after, .work-card:hover::after, .feature:hover::after,
.mini:hover::after, .preview-card:hover::after { opacity: 1; }
/* lift the actual card content above the spotlight wash */
.svc > *, .feature > *, .mini > *, .work-card > *:not(.glow), .preview-card > * { position: relative; z-index: 3; }

/* a touch more depth on hover for the showcase cards */
.work-card:hover, .preview-card:hover, .feature:hover {
  box-shadow: 0 26px 60px -28px rgba(60,35,20,.3), 0 0 0 1px var(--line-2);
}

/* ============ ridge silhouette divider (Firewatch echo) ============ */
.ridge-divider {
  position: relative; z-index: 1; height: clamp(96px, 15vh, 176px);
  margin: -1px 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 38%);
          mask-image: linear-gradient(to bottom, transparent, #000 38%);
}
.ridge-divider svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ridge-divider .rg { transform-origin: bottom; }
.ridge-divider .rg1 { animation: ridgeDrift 26s ease-in-out infinite; }
.ridge-divider .rg2 { animation: ridgeDrift 34s ease-in-out infinite reverse; }
.ridge-divider .rg3 { animation: ridgeDrift 44s ease-in-out infinite; }
@keyframes ridgeDrift {
  0%, 100% { transform: translateX(0) translateY(0); }
  50%      { transform: translateX(-1.6%) translateY(2px); }
}
.ridge-divider .haze {
  transform-origin: center;
  animation: hazeGlow 11s ease-in-out infinite;
}
@keyframes hazeGlow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .ridge-divider .rg, .ridge-divider .haze { animation: none; }
}

/* ============ stats — a little more life ============ */
.stat { position: relative; transition: background .35s; }
.stat::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--ember-2));
  transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.stats.in .stat::before { transform: scaleX(1); }
.stats.in .stat:nth-child(2)::before { transition-delay: .08s; }
.stats.in .stat:nth-child(3)::before { transition-delay: .16s; }
.stats.in .stat:nth-child(4)::before { transition-delay: .24s; }
.stat:hover { background: var(--bg-card); }

/* ============ contact card — living aurora ============ */
.contact-wrap::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 140%;
  background: radial-gradient(50% 60% at 30% 20%, color-mix(in oklab, var(--ember) 22%, transparent), transparent 60%),
              radial-gradient(45% 55% at 80% 10%, color-mix(in oklab, var(--gold) 20%, transparent), transparent 60%);
  filter: blur(8px); opacity: .55; pointer-events: none;
  animation: auroraFloat 16s ease-in-out infinite;
}
.contact-wrap > * { position: relative; z-index: 1; }
@keyframes auroraFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(2%, 3%, 0) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) { .contact-wrap::before { animation: none; } }

/* ====================================================================== */
/* ============ web portfolio — link-preview cards ============ */
/* ====================================================================== */
.webwork-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.preview-card {
  display: flex; flex-direction: column; position: relative; isolation: isolate;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; transition: transform .35s, border-color .35s;
}
.preview-card:hover { transform: translateY(-5px); border-color: color-mix(in oklab, var(--pa, var(--gold)) 55%, var(--line-2)); }
.pv-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid var(--line); background: var(--bg-soft);
}
.pv-chrome { flex: 0 0 auto; font-size: 12px; color: var(--ink-faint); letter-spacing: .06em; }
.pv-dots { display: flex; gap: 6px; flex: 0 0 auto; }
.pv-dots i { width: 9px; height: 9px; border-radius: 50%; }
.pv-dots i:nth-child(1) { background: #e0655a; }
.pv-dots i:nth-child(2) { background: #e3a94b; }
.pv-dots i:nth-child(3) { background: #57b368; }
.pv-url {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px;
  color: var(--ink-soft); background: rgba(42,28,20,.05); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 13px; letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pv-url .lock { flex: 0 0 auto; color: var(--gold); font-size: 11px; }
/* the "screenshot" is a fully synthesized dark website mock, tinted from the
   site's own brand colours (--pt / --pt2 / --pa). No images, no network. */
.pv-hero {
  position: relative; aspect-ratio: 16 / 9.4; overflow: hidden;
  background: linear-gradient(165deg,
    color-mix(in oklab, var(--pt2, #241a14) 82%, #000) 0%,
    color-mix(in oklab, var(--pt, #12100f) 92%, #000) 100%);
}
.pv-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    radial-gradient(120% 120% at 50% -10%, rgba(255,255,255,.10), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 1px, transparent 1px 13px);
}
.pv-mock {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column;
  padding: 11px 13px 0; gap: 8px;
  --acc: var(--pa, color-mix(in oklab, var(--pt2, #241a14) 55%, white));
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.pv-mock-nav { display: flex; align-items: center; gap: 8px; height: 24px; }
.pv-mock-brand { font-size: 13px; line-height: 1; color: color-mix(in oklab, var(--acc) 72%, white); letter-spacing: .02em; }
.pv-mock-nav-links { display: flex; gap: 9px; margin-left: 4px; }
.pv-mock-nav-links i { width: 18px; height: 5px; border-radius: 3px; background: color-mix(in oklab, white 22%, transparent); }
.pv-mock-pill { margin-left: auto; width: 48px; height: 15px; border-radius: 999px; background: var(--acc); opacity: .9; }
.pv-mock-hero { padding: 10px 4px 0; }
.pv-mock-eyebrow { display: block; width: 58px; height: 6px; border-radius: 3px; background: var(--acc); margin-bottom: 9px; }
.pv-mock-title { font-size: clamp(20px, 3vw, 30px); line-height: 1.02; color: color-mix(in oklab, white 88%, var(--pt2, #241a14)); }
.pv-mock-line { display: block; height: 6px; border-radius: 3px; background: color-mix(in oklab, white 26%, transparent); margin-top: 8px; }
.pv-mock-line.l1 { width: 74%; }
.pv-mock-line.l2 { width: 56%; }
.pv-mock-btns { display: flex; gap: 8px; margin-top: 13px; }
.pv-mock-btns .b1 { width: 72px; height: 19px; border-radius: 7px; background: var(--acc); }
.pv-mock-btns .b2 { width: 60px; height: 19px; border-radius: 7px; border: 1px solid color-mix(in oklab, white 34%, transparent); }
.pv-mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; padding-bottom: 12px; }
.pv-mock-cards i { height: 30px; border-radius: 7px; background: color-mix(in oklab, white 12%, transparent); border: 1px solid color-mix(in oklab, white 12%, transparent); }
.preview-card:hover .pv-mock { transform: translateY(-6px) scale(1.015); }
.pv-live {
  position: absolute; top: 12px; right: 12px; z-index: 3; display: inline-flex; align-items: center;
  gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(20,13,18,.5); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 6px 12px;
}
.pv-live .ping { width: 7px; height: 7px; border-radius: 50%; background: #3ad29f; box-shadow: 0 0 0 0 rgba(58,210,159,.6); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0%{box-shadow:0 0 0 0 rgba(58,210,159,.55);} 70%{box-shadow:0 0 0 8px rgba(58,210,159,0);} 100%{box-shadow:0 0 0 0 rgba(58,210,159,0);} }
.pv-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.pv-body .pv-kind { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.pv-body h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px,3vw,36px); margin: 12px 0 0; line-height: 1.05; }
.pv-body p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; margin: 12px 0 0; }
.pv-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 20px; }
.pv-meta { font-size: 13px; color: var(--ink-faint); }
.pv-go { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.pv-go .arr { transition: transform .25s; }
.preview-card:hover .pv-go .arr { transform: translate(3px,-3px); }

@media (max-width: 900px) { .webwork-grid { grid-template-columns: 1fr; } }

/* ====================================================================== */
/* ============ nav — Accueil + 5 tabs + mobile drawer ============ */
/* ====================================================================== */
.nav-links { gap: 22px; }
.nav-cta-mobile { display: none; }
.nav-toggle {
  display: none; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(42,28,20,.04); cursor: pointer;
  align-items: center; justify-content: center; color: var(--ink); padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .3s, opacity .2s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100dvh; width: min(84vw, 340px);
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 92px 30px 32px; background: rgba(246,239,227,.98);
    backdrop-filter: blur(20px) saturate(1.1); border-left: 1px solid var(--line);
    transform: translateX(102%); transition: transform .4s cubic-bezier(.2,.7,.2,1);
    z-index: 70; overflow-y: auto;
  }
  .nav-links.open { transform: none; }
  /* override the legacy "hide non-tab" rule so every link shows in the drawer */
  .nav-links a, .nav-links a:not(.tab), .nav-links a.tab {
    display: block !important; font-size: 20px; padding: 12px 0; color: var(--ink);
    width: 100%; border-bottom: 1px solid var(--line);
  }
  .nav-links a.tab::after { display: none; }
  .nav-links a.tab.on { color: var(--gold); }
  .nav-links .sep { display: none; }
  /* dropdown flattens into the drawer: "Services" header + indented children */
  .nav-group { display: block; width: 100%; position: static; }
  .nav-parent {
    display: block !important; width: 100%; font-size: 20px; padding: 12px 0;
    color: var(--ink); border-bottom: 1px solid var(--line); cursor: default;
  }
  .nav-caret { display: none; }
  .nav-sub {
    position: static; opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    min-width: 0; padding: 2px 0 6px; margin: 0; gap: 0;
    background: none; border: none; box-shadow: none; backdrop-filter: none;
  }
  .nav-sub::before { display: none; }
  /* neutralise the desktop flyout transform (translateX(-50%)) inside the drawer
     — otherwise hovering "Services" shoves the sub-items to the left */
  .nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub { transform: none; }
  .nav-sub .sub {
    display: block; width: 100%; padding: 11px 0 11px 16px; font-size: 17px;
    border-radius: 0; border-bottom: 1px solid var(--line); color: var(--ink-soft);
  }
  .nav-sub .sub.on { color: var(--gold); }
  /* CTA in the drawer: restore real button look, centered, with icon */
  .nav-links a.nav-cta-mobile {
    display: flex !important; align-items: center; justify-content: center; gap: 10px;
    width: 100%; margin-top: 26px; padding: 15px 22px; font-size: 15px;
    border-bottom: none; border-radius: 999px; color: #fff; text-align: center;
  }
  .nav-links a.nav-cta-mobile svg { width: 18px; height: 18px; flex: 0 0 auto; }
  .nav-cta-desktop { display: none; }
  .nav-scrim {
    position: fixed; inset: 0; background: rgba(30,18,12,.4); backdrop-filter: blur(2px);
    z-index: 60; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav-scrim.open { opacity: 1; visibility: visible; }
}

/* ============ LLM trust strip (conseil → IA) ============ */
.llm-strip { margin-top: 40px; text-align: center; }
.llm-label {
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700; margin-bottom: 22px;
}
.llm-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.llm-chip {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px 14px 18px; border-radius: 16px;
  background: var(--bg-card); border: 1px solid var(--line);
  transition: border-color .3s, transform .3s, background .3s;
  animation: llm-float 6s ease-in-out infinite;
}
.llm-chip:hover { transform: translateY(-4px); border-color: var(--line-2); background: #1c1840; }
.llm-ico {
  display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto;
  border-radius: 12px; background: rgba(238,240,251,.04);
}
.llm-mark { width: 30px; height: 30px; display: block; }
.llm-claude .llm-ico  { color: var(--amber); }
.llm-gemini .llm-ico  { color: var(--gold); }
.llm-openai .llm-ico  { color: var(--ink); }
.llm-ico { filter: drop-shadow(0 0 0 transparent); animation: llm-glow 4s ease-in-out infinite; }
.llm-claude .llm-ico { animation-delay: .4s; }
.llm-gemini .llm-ico { animation-delay: 1.4s; }
.llm-openai .llm-ico { animation-delay: 2.4s; }
.llm-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.llm-name { font-weight: 700; font-size: 17px; color: var(--ink); }
.llm-maker { font-size: 12.5px; color: var(--ink-faint); letter-spacing: .03em; margin-top: 2px; }
.llm-note {
  max-width: 540px; margin: 22px auto 0; color: var(--ink-soft);
  font-size: 15.5px; line-height: 1.55;
}
@keyframes llm-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes llm-glow {
  0%,100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 9px currentColor); }
}

/* ============ build (outils métiers) ============ */
.build-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 52px; }
.build-mode {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px 28px;
}
.build-mode .bm-dot {
  flex: 0 0 auto; width: 12px; height: 12px; margin-top: 7px; border-radius: 3px;
  transform: rotate(45deg); background: var(--ember);
  box-shadow: 0 0 14px rgba(160,107,255,.7);
}
.build-mode:nth-child(2) .bm-dot { background: var(--gold); box-shadow: 0 0 14px rgba(84,207,238,.6); }
.build-mode h4 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0 0 6px; line-height: 1.1; }
.build-mode p { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.5; }
.build-label {
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700; margin-bottom: 22px;
}
.build-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.build-card {
  position: relative; display: flex; gap: 24px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 20px; padding: 28px 30px; overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.build-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.bc-meta .bc-tag {
  font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.bc-meta h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; margin: 8px 0 8px; line-height: 1.08; }
.bc-meta p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }

/* — viz frame — */
.bviz {
  flex: 0 0 auto; position: relative; width: 116px; height: 96px;
  border-radius: 14px; background: var(--bg-soft);
  border: 1px solid var(--line); overflow: hidden;
}
.bviz > * { position: absolute; }

/* quote: lines fill, total pill drops in */
.bviz-quote .bq-line {
  left: 16px; height: 7px; border-radius: 4px; background: var(--ink-soft);
  transform-origin: left center; transform: scaleX(0); opacity: .55;
}
.bviz-quote .l1 { top: 18px; width: 70px; animation: bq-fill 3.6s ease-in-out infinite; }
.bviz-quote .l2 { top: 33px; width: 84px; animation: bq-fill 3.6s ease-in-out .4s infinite; }
.bviz-quote .l3 { top: 48px; width: 56px; animation: bq-fill 3.6s ease-in-out .8s infinite; }
.bviz-quote .bq-total {
  left: 16px; top: 66px; width: 84px; height: 18px; border-radius: 6px;
  background: var(--ember); opacity: 0; transform: translateY(6px);
  animation: bq-total 3.6s ease-in-out 1.2s infinite;
  display: flex; align-items: center; gap: 6px; padding: 0 8px;
}
.bviz-quote .bq-total i { width: 22px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.85); }
.bviz-quote .bq-total b { margin-left: auto; width: 28px; height: 8px; border-radius: 3px; background: rgba(255,255,255,.95); }
@keyframes bq-fill { 0%,8% { transform: scaleX(0); } 30%,82% { transform: scaleX(1); } 100% { transform: scaleX(1); } }
@keyframes bq-total { 0%,30% { opacity: 0; transform: translateY(6px); } 45%,82% { opacity: 1; transform: translateY(0); } 100% { opacity: 1; } }

/* chat: bubbles slide in, typing dots */
.bviz-chat .bc-bubble { height: 18px; border-radius: 9px; opacity: 0; }
.bviz-chat .bc-bubble.in  { left: 14px; background: rgba(238,240,251,.16); border-bottom-left-radius: 3px; }
.bviz-chat .bc-bubble.out { right: 14px; background: var(--gold); border-bottom-right-radius: 3px; }
.bviz-chat .b1 { top: 16px; width: 48px; animation: bc-pop 4s ease-in-out infinite; }
.bviz-chat .b2 { top: 40px; width: 56px; animation: bc-pop 4s ease-in-out .7s infinite; }
.bviz-chat .b3 { top: 64px; width: 40px; display: flex; align-items: center; justify-content: center; gap: 5px; animation: bc-pop 4s ease-in-out 1.4s infinite; }
.bviz-chat .b3 i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-soft); animation: bc-dot 1.1s ease-in-out infinite; }
.bviz-chat .b3 i:nth-child(2) { animation-delay: .18s; }
.bviz-chat .b3 i:nth-child(3) { animation-delay: .36s; }
@keyframes bc-pop { 0%,12% { opacity: 0; transform: translateY(7px); } 28%,90% { opacity: 1; transform: translateY(0); } 100% { opacity: 1; } }
@keyframes bc-dot { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-3px); opacity: 1; } }

/* dash: bars grow */
.bviz-dash .bd-bar { bottom: 16px; width: 12px; border-radius: 4px 4px 2px 2px; background: var(--ember); transform-origin: bottom; transform: scaleY(.12); }
.bviz-dash .d1 { left: 16px;  height: 40px; animation: bd-grow 3.4s ease-in-out infinite; }
.bviz-dash .d2 { left: 36px;  height: 58px; background: var(--gold);  animation: bd-grow 3.4s ease-in-out .12s infinite; }
.bviz-dash .d3 { left: 56px;  height: 30px; animation: bd-grow 3.4s ease-in-out .24s infinite; }
.bviz-dash .d4 { left: 76px;  height: 64px; background: var(--gold);  animation: bd-grow 3.4s ease-in-out .36s infinite; }
.bviz-dash .d5 { left: 96px;  height: 46px; animation: bd-grow 3.4s ease-in-out .48s infinite; }
@keyframes bd-grow { 0%,6% { transform: scaleY(.12); } 40%,88% { transform: scaleY(1); } 100% { transform: scaleY(1); } }

/* agenda: cell grid, slot fills */
.bviz-agenda { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 6px; padding: 14px; }
.bviz-agenda .ba-cell { position: static; border-radius: 4px; background: rgba(238,240,251,.08); }
.bviz-agenda .c5  { animation: ba-fill 3.6s ease-in-out infinite; }
.bviz-agenda .c6  { animation: ba-fill 3.6s ease-in-out .5s infinite; }
.bviz-agenda .c10 { animation: ba-fill 3.6s ease-in-out 1s infinite; }
@keyframes ba-fill {
  0%,10% { background: rgba(238,240,251,.08); }
  40%,80% { background: var(--ember); box-shadow: 0 0 10px rgba(160,107,255,.5); }
  100% { background: rgba(238,240,251,.08); }
}

@media (max-width: 900px) {
  .build-modes, .build-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .build-card { flex-direction: column; align-items: flex-start; gap: 18px; }
  .llm-chip { padding: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .llm-chip, .llm-ico,
  .bviz-quote .bq-line, .bviz-quote .bq-total,
  .bviz-chat .bc-bubble, .bviz-chat .b3 i,
  .bviz-dash .bd-bar, .bviz-agenda .ba-cell { animation: none !important; }
  .bviz-quote .bq-line { transform: scaleX(1); }
  .bviz-quote .bq-total { opacity: 1; transform: none; }
  .bviz-chat .bc-bubble { opacity: 1; transform: none; }
  .bviz-dash .bd-bar { transform: scaleY(1); }
}

/* ════════════════════════ Page Gumble (jeu) ════════════════════════ */
.gb-hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; padding: 130px 24px 90px;
  z-index: 1;
}
.gb-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.gb-glow.g1 {
  width: 1100px; height: 1100px; left: 50%; top: 38%; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(255,184,107,.20), rgba(255,184,107,.05) 45%, transparent 68%);
}
.gb-glow.g2 {
  width: 760px; height: 760px; right: -220px; bottom: -280px;
  background: radial-gradient(circle, rgba(226,100,164,.16), transparent 65%);
}

.gb-float {
  position: absolute; pointer-events: none; z-index: 0;
  transform: translate3d(calc(var(--gx,0) * var(--depth,16) * 1.6px), calc(var(--gy,0) * var(--depth,16) * 1.2px), 0);
  transition: transform .25s ease-out; will-change: transform;
}
.gb-float img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.45));
  animation: gb-bob 8s ease-in-out infinite;
}
@keyframes gb-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(var(--rot,-6deg)); }
}

.gb-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.gb-icon {
  width: 96px; height: 96px; border-radius: 24px;
  box-shadow: 0 18px 50px -10px rgba(255,184,107,.45), 0 0 0 1px var(--line-2);
  margin-bottom: 26px;
}
.gb-title {
  font-size: clamp(64px, 12vw, 128px); line-height: .95; margin: 0; letter-spacing: -0.01em;
  background: linear-gradient(160deg, #ffe9c4 18%, var(--amber) 52%, var(--ember-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gb-tagline { font-size: clamp(22px, 3.4vw, 34px); font-style: italic; color: var(--ink); margin: 14px 0 0; }
.gb-sub { color: var(--ink-soft); font-size: 18px; max-width: 560px; margin: 18px auto 0; }

.gb-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.gb-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 22px 10px 16px; border-radius: 14px; text-align: left;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04); opacity: .92;
}
.gb-badge-ico svg { width: 26px; height: 26px; display: block; color: var(--ink); }
.gb-badge-txt { display: flex; flex-direction: column; line-height: 1.15; }
.gb-badge-txt small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.gb-badge-txt strong { font-size: 16px; color: var(--ink); }
a.gb-badge { text-decoration: none; }
.gb-badge--live { opacity: 1; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.gb-badge--live:hover { border-color: var(--line-2); background: rgba(255,255,255,.08); transform: translateY(-2px); }
.gb-badge--live:hover .gb-badge-txt small { color: var(--amber); }

.gb-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 0; margin: 26px 0 0; }
.gb-chips li {
  font-size: 13px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-soft); background: rgba(255,255,255,.03);
}

.gb-scroll {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
}
.gb-scroll svg { width: 18px; height: 18px; animation: gb-bob 2.4s ease-in-out infinite; }
.gb-scroll:hover { color: var(--amber); }

/* ── chaîne de fusion ── */
.gb-chain { display: flex; align-items: flex-end; justify-content: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; }
.gb-chain-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 14px; min-width: 64px; }
.gb-chain-item img {
  display: block; height: auto;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.4));
  animation: gb-bob 5.6s ease-in-out infinite;
  transition: transform .18s ease;
}
.gb-chain-item:hover img { transform: scale(1.18) rotate(-6deg); }
.gb-chain-name { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.gb-chain-pts { font-size: 11px; color: var(--ink-faint); }
.gb-chain-arrow { color: var(--ink-faint); font-size: 20px; align-self: center; margin-bottom: 34px; }
.gb-chain-item.last { background: radial-gradient(circle at 50% 36%, rgba(255,184,107,.14), transparent 72%); }
.gb-chain-item.last .gb-chain-name { color: var(--amber); }
.gb-chain-goal { text-align: center; color: var(--ink-faint); font-size: 14px; margin-top: 26px; }

/* ── features ── */
.gb-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gb-feat {
  border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px;
  background: var(--bg-card); transition: transform .2s ease, border-color .2s ease;
}
.gb-feat:hover { border-color: var(--line-2); transform: translateY(-3px); }
.gb-feat-emo { font-size: 30px; display: block; margin-bottom: 14px; }
.gb-feat h3 { margin: 0 0 8px; font-size: 19px; }
.gb-feat p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ── captures ── */
.gb-shots { display: flex; justify-content: center; align-items: center; gap: clamp(16px, 3vw, 38px); }
.gb-phone {
  margin: 0; width: clamp(200px, 26vw, 290px);
  padding: 10px; border-radius: clamp(28px, 3vw, 40px);
  background: #1a1430; border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
  transition: transform .35s ease;
}
.gb-phone img { width: 100%; height: auto; display: block; border-radius: clamp(20px, 2.4vw, 32px); }
.gb-phone.p0 { transform: rotate(-5deg) translateY(14px); }
.gb-phone.p2 { transform: rotate(5deg) translateY(14px); }
.gb-phone:hover { transform: rotate(0deg) translateY(-6px) scale(1.02); }

/* ── CTA finale ── */
.gb-cta {
  text-align: center; border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(40px, 6vw, 72px) 28px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,184,107,.12), transparent 60%), var(--bg-card);
}
.gb-cta img { border-radius: 18px; box-shadow: 0 14px 40px -10px rgba(255,184,107,.4); }
.gb-cta h2 { font-size: clamp(30px, 4.6vw, 52px); margin: 18px 0 0; }
.gb-cta p { color: var(--ink-soft); max-width: 540px; margin: 14px auto 0; }
.gb-cta .gb-badges { margin-top: 30px; }
.gb-cta-links { margin-top: 26px; font-size: 14px; color: var(--ink-faint); display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.gb-cta-links a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.gb-cta-links a:hover { color: var(--amber); }

@media (max-width: 900px) {
  .gb-feats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .gb-float { display: none; }
  .gb-float.keep { display: block; opacity: .5; }
  .gb-chain-arrow { display: none; }
  .gb-shots { flex-direction: column; }
  .gb-phone { width: min(320px, 78vw); }
  .gb-phone.p0, .gb-phone.p2 { transform: none; }
  .gb-feats { grid-template-columns: 1fr; }
}

/* ════════════════════ Page BabelWord (jeu) ════════════════════ */
/* Réutilise tout le layout .gb-* de Gumble ; ici, seulement les écarts :
   palette céleste (violet/cyan au lieu d'ambre) et tuiles-lettres. */

/* glows + accents céderés vers le violet/cyan */
.bw-hero .gb-glow.g1 {
  background: radial-gradient(circle, rgba(160,107,255,.22), rgba(160,107,255,.05) 45%, transparent 68%);
}
.bw-hero .gb-glow.g2 {
  background: radial-gradient(circle, rgba(84,207,238,.16), transparent 65%);
}
.bw-hero .gb-icon {
  box-shadow: 0 18px 50px -10px rgba(160,107,255,.5), 0 0 0 1px var(--line-2);
}
.bw-title {
  background: linear-gradient(150deg, #eaf3ff 12%, var(--gold) 48%, var(--ember) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bw-scroll:hover { color: var(--gold); }

/* tuile-lettre flottante du hero (dans .gb-float, qui gère position + parallaxe) */
.bw-tile {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 1; border-radius: 22%;
  font-family: var(--serif); color: #fff;
  background: linear-gradient(155deg, #3a2c63, #241a44);
  border: 1px solid rgba(207,232,255,.22);
  box-shadow: 0 18px 30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.16);
  animation: gb-bob 8s ease-in-out infinite;
}
.bw-tile .l { line-height: 1; font-size: 1em; }
.bw-tile .v {
  position: absolute; right: 14%; bottom: 9%;
  font-family: var(--sans); font-size: .26em; font-weight: 700; color: var(--gold);
}

/* section « Le geste » : le mot illustré en tuiles */
.bw-word { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.bw-wtile {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: clamp(56px, 9vw, 80px); aspect-ratio: 1; border-radius: 18%;
  font-family: var(--serif); font-size: clamp(32px, 5.4vw, 46px); color: #fff;
  background: linear-gradient(155deg, #3a2c63, #241a44);
  border: 1px solid rgba(207,232,255,.22);
  box-shadow: 0 14px 26px -6px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.16);
  transition: transform .18s ease;
}
.bw-wtile:hover { transform: translateY(-5px) rotate(-3deg); }
.bw-wtile .l { line-height: 1; }
.bw-wtile .v {
  position: absolute; right: 13%; bottom: 8%;
  font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--gold);
}

/* CTA finale teintée céleste */
.bw-cta {
  background: radial-gradient(ellipse at 50% 0%, rgba(160,107,255,.14), transparent 60%), var(--bg-card);
}
.bw-cta img { box-shadow: 0 14px 40px -10px rgba(160,107,255,.45); }
.bw-cta .gb-cta-links a:hover { color: var(--gold); }
