/* Polices hébergées sur le site (aucune requête vers Google : RGPD) */
@font-face { font-family: "Inter Tight"; src: url(fonts/inter-tight-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Tektur"; src: url(fonts/tektur-latin.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }

/* ===== Couleurs et typo : modifiez ici ===== */
:root {
  --bg: #ECE9E7;          /* gris clair chaud */
  --ice-1: #A7BFC7;       /* bleu glacé (haut du panneau) */
  --ice-2: #D5E0E3;       /* bleu glacé (bas du panneau) */
  --green: #CDFF8F;       /* vert fluo */
  --lav: #D6C2F7;         /* lavande des titres surlignés */
  --teal: #2F8C96;
  --ink: #0B0B0B;
  --muted: #6E6C6A;
  --rule: rgba(11, 11, 11, .55);
  --card: #F6F4F2;
  --radius: 22px;
  --display: "Tektur", "Inter Tight", system-ui, sans-serif;
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --p: 1; /* progression de scroll, pilotée par main.js (1 = état final statique) */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.5 var(--sans); overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, canvas { display: block; }
section[id] { scroll-margin-top: 24px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 99px; }
.skip:focus { top: 16px; }

/* ===== Boutons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 99px; border: 1.5px solid transparent;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--green); }
.btn-glass { background: rgba(255,255,255,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--green); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }

/* ===== Dock de navigation (bas) ===== */
.dock {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; pointer-events: none;
}
.dock > * { pointer-events: auto; }
.pill, .pill-group {
  background: rgba(236, 241, 242, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 99px; box-shadow: 0 6px 24px rgba(30, 50, 60, .12);
}
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 6px; border: 0; font: 600 14px/1 var(--sans); color: var(--ink); text-decoration: none; cursor: pointer; }
.pill-brand { padding: 0 20px; background: var(--green); font-family: var(--display); letter-spacing: .06em; }
.pill-group { display: flex; align-items: center; gap: 2px; padding: 6px; }
.pill-group a { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 99px; font-weight: 600; font-size: 14px; text-decoration: none; }
.pill-group a:hover { background: rgba(255,255,255,.7); }
.pill-group a.is-current::before { content: ""; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #8BD13A; }
.pill-group .pill-cta { background: var(--ink); color: var(--green); margin-left: 4px; }
.pill-group .pill-cta:hover { background: var(--ink); }
.pill-menu { display: none; padding: 0 20px; }

/* Badge vertical sur le bord */
.edge-badge {
  position: fixed; right: 0; top: 50%; z-index: 40; transform: translateY(-50%);
  background: #fff; border-radius: 10px 0 0 10px; padding: 18px 9px; text-decoration: none;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
}
.edge-badge span { writing-mode: vertical-rl; transform: rotate(180deg); font: 600 12px/1 var(--sans); letter-spacing: .02em; }
.edge-badge::before { content: ""; display: block; width: 9px; height: 9px; margin: 0 auto 12px; border-radius: 50%; background: #8BD13A; }

/* ===== Hero ===== */
.hero { height: 210vh; --p: 0; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 16px; }
.hero-panel {
  position: relative; height: 100%; overflow: hidden; border-radius: var(--radius);
  background: radial-gradient(120% 90% at 50% 15%, var(--ice-2), var(--ice-1) 75%);
  transform: scale(calc(1 - var(--p) * .06));
  transform-origin: 50% 0;
}
.hero.is-static .hero-panel { transform: none; }
#ringCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s; }
.has-webgl #ringCanvas { opacity: 1; }
.has-webgl .ring-fallback { display: none; }
.wordmark {
  position: absolute; left: 0; right: 0; top: 2.2vw; text-align: center;
  font: 700 clamp(48px, 15.4vw, 24vh) / .82 var(--display); letter-spacing: -.01em;
  color: var(--green); white-space: nowrap; pointer-events: none;
  transform: translateY(calc(var(--p) * -14vh)); opacity: calc(1 - var(--p) * .9);
}
.hero-copy {
  position: absolute; left: clamp(16px, 4vw, 56px); bottom: 110px; max-width: 640px; z-index: 2;
  transform: translateY(calc(var(--p) * -6vh));
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(205,255,143,.35); }
.hero h1 .eyebrow { display: flex; margin-bottom: 14px; letter-spacing: .08em; }
.hero h1 .h1-main { display: block; }
.hero h1 { font: 500 clamp(32px, 4.6vw, 64px)/1.02 var(--sans); letter-spacing: -.035em; }
.hero-lede { margin-top: 16px; max-width: 46ch; font-size: clamp(16px, 1.3vw, 19px); color: #1f2a2d; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.scroll-hint { position: absolute; right: 32px; bottom: 110px; font-size: 13px; font-weight: 600; opacity: calc(1 - var(--p) * 4); }
.scroll-hint::after { content: ""; display: block; width: 1px; height: 48px; margin: 10px auto 0; background: var(--ink); }

/* Anneau de secours (sans WebGL) : verre dépoli en CSS */
.ring-fallback i {
  position: absolute; left: 50%; top: 62%; width: min(78vw, 92vh); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -30%);
  border: clamp(18px, 3vw, 40px) solid rgba(255,255,255,.28);
  box-shadow: inset 0 0 40px rgba(255,255,255,.45), 0 0 60px rgba(255,255,255,.25);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.ring-fallback i + i { transform: translate(-38%, -27%); opacity: .6; }

/* ===== Manifeste ===== */
.manifesto { padding: 18vh clamp(16px, 6vw, 96px); }
.manifesto-text { max-width: 22ch; margin: 0 auto; font: 500 clamp(30px, 4.8vw, 72px)/1.06 var(--sans); letter-spacing: -.035em; }
.manifesto-text .w { opacity: clamp(.14, calc(var(--p) * 2.4 * var(--n) - var(--i) - var(--n) * .35), 1); transition: opacity .1s linear; }

/* ===== Modules numérotés ===== */
.module, .pricing, .demos, .faq, .capabilities { padding: 12vh clamp(16px, 4vw, 56px); }
.module { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.module-text.wide { max-width: 900px; margin-bottom: 56px; }
.num { font: 500 clamp(56px, 7vw, 104px)/1 var(--sans); letter-spacing: -.04em; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.title-stack { display: flex; flex-direction: column; font: 500 clamp(40px, 5.6vw, 84px)/1 var(--sans); letter-spacing: -.04em; }
.title-stack > span { padding: 12px 0 14px; border-bottom: 1px solid var(--rule); }
.hl { align-self: flex-start; background: var(--lav); border-radius: 10px; padding-inline: 14px !important; margin: 10px 0; border-bottom: 0 !important; }
.lede { margin-top: 28px; max-width: 34ch; font-size: clamp(19px, 1.7vw, 26px); line-height: 1.25; color: var(--muted); }
.caption { margin-top: 18px; max-width: 46ch; font-size: 14px; color: var(--muted); }
.rows { margin-top: 32px; border-top: 1px solid var(--rule); }
.rows li { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(11,11,11,.15); font-size: 18px; font-weight: 500; }
.rows li::after { content: "→"; color: var(--muted); }

/* Réalisation (portfolio) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.work { grid-column: 1 / -1; }
.work-card {
  display: grid; grid-template-columns: 1.4fr 1fr; margin-top: 16px; overflow: hidden; border-radius: var(--radius);
  background: #0b0b0b; color: #f3f1ea; text-decoration: none;
}
.work-card img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .6s; }
.work-card:hover img { transform: scale(1.03); }
.work-info { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 4vw, 48px); }
.work-info h3 { font: 500 clamp(30px, 3.4vw, 48px)/1 var(--sans); letter-spacing: -.03em; }
.work-info p { color: #b9b6ad; }
.work-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.work-tags li { padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(255,255,255,.25); font-size: 13px; }
.work-link { margin-top: auto; align-self: flex-start; padding: 12px 20px; border-radius: 99px; background: var(--green); color: var(--ink); font-weight: 600; }
.work-card:focus-visible { outline-color: var(--teal); }

.media-panel { position: relative; overflow: hidden; border-radius: var(--radius); background: linear-gradient(180deg, var(--ice-1), var(--ice-2)); }

/* Maquette de site qui s'assemble au scroll */
.module-media { aspect-ratio: 4 / 5; display: grid; place-items: center; }
.wire {
  --a: clamp(0, calc(var(--p) * 2.2 - .35), 1);
  position: relative; width: 74%; aspect-ratio: 3 / 4; padding: 7%;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto 1.6fr 1fr auto; gap: 6%;
  border-radius: 18px; background: rgba(255,255,255,.38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 30px 60px rgba(40,70,80,.18);
  transform: perspective(900px) rotateX(calc((1 - var(--a)) * 28deg)) rotateZ(calc((1 - var(--a)) * -8deg));
}
.wire span { border-radius: 10px; background: rgba(255,255,255,.75); transform: translateY(calc((1 - var(--a)) * var(--d, 60px))); opacity: calc(.2 + var(--a) * .8); }
.w-bar { grid-column: 1 / -1; height: 14px; --d: -80px; }
.w-hero { grid-column: 1 / -1; background: linear-gradient(135deg, var(--green), #e9ffd0) !important; --d: 120px; }
.w-col { --d: 180px; }
.w-col.b { --d: 240px; background: var(--lav) !important; }
.w-col.c { --d: 300px; }
.w-btn { grid-column: 1 / 2; height: 26px; border-radius: 99px !important; background: var(--ink) !important; --d: 360px; }

/* ===== Agents : scène épinglée ===== */
.agents { height: 230vh; }
.agents-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; padding: 16px clamp(16px, 4vw, 56px) 90px;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
}
.stream-panel { height: min(78vh, 720px); }
#streamCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.device {
  position: absolute; left: 18%; right: 18%; top: 46%; height: 9%; border-radius: 18px;
  background: linear-gradient(180deg, #fbfbfa, #dedfde); box-shadow: 0 18px 40px rgba(20,40,50,.28), inset 0 2px 0 #fff;
  transform: rotate(calc(-4deg + var(--p) * 4deg));
}
.device::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 22%; height: 3px; border-radius: 3px; background: var(--lav); box-shadow: 0 0 14px 3px var(--lav); }

/* Liste des capacités (surlignage au centre de l'écran) */
.cap-list { border-top: 1px solid var(--rule); }
.cap-list li { display: grid; grid-template-columns: 1fr minmax(0, 32ch); gap: 24px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.cap-name { justify-self: start; padding: 4px 14px; border-radius: 10px; font: 500 clamp(32px, 5.4vw, 80px)/1.1 var(--sans); letter-spacing: -.04em; transition: background .35s, color .35s; color: #9a9896; }
.cap-desc { color: var(--muted); font-size: 16px; opacity: .35; transition: opacity .35s; }
.cap-list li.is-active .cap-name { background: var(--lav); color: var(--ink); }
.cap-list li.is-active .cap-desc { opacity: 1; }

/* ===== Pourquoi ===== */
.why { display: block; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.why-grid article { padding: 28px 28px 8px 0; }
.why-grid article + article { padding-left: 28px; border-left: 1px solid rgba(11,11,11,.15); }
.why-grid h3 { font: 500 26px/1.15 var(--sans); letter-spacing: -.02em; }
.why-grid p { margin-top: 12px; color: var(--muted); }

/* ===== Tarifs ===== */
.price-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 56px 0 20px; font: 500 28px/1.1 var(--sans); letter-spacing: -.02em; }
.price-group small { font-size: 15px; color: var(--muted); letter-spacing: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card.wide { grid-column: span 2; }
.price-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
/* Offre maquette gratuite (blocs class="offer") */
.offer-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border-radius: var(--radius); background: var(--green); font-size: 17px; }
.offer-banner p { max-width: 60ch; }
.offer-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 600; }
.offer-hero a { text-decoration: none; }
.offer-tag { padding: 5px 10px; border-radius: 99px; background: var(--ink); color: var(--green); font-size: 12px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid rgba(11,11,11,.08); }
.card h4 { font: 500 30px/1 var(--sans); letter-spacing: -.03em; }
.price { font-size: 16px; color: var(--muted); }
.price b { font: 500 44px/1 var(--sans); color: var(--ink); letter-spacing: -.03em; }
.card ul { flex: 1; display: grid; align-content: start; gap: 8px; font-size: 15px; }
.card li { padding-left: 20px; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.card li.plus { padding-left: 0; font-weight: 600; }
.card li.plus::before { display: none; }
.example { font-size: 13px; color: var(--muted); padding: 12px 14px; border-radius: 12px; background: rgba(214,194,247,.35); }
.card .btn { align-self: flex-start; margin-top: 6px; }
.card-feature { background: linear-gradient(180deg, var(--ice-2), var(--ice-1)); border-color: transparent; }
.tag { align-self: flex-start; padding: 6px 12px; border-radius: 99px; background: var(--green); font: 600 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; }
.custom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 16px; padding: 28px; border-radius: var(--radius); background: var(--lav); }
.custom h3 { font: 500 28px/1.1 var(--sans); letter-spacing: -.02em; }
.custom p { margin-top: 8px; max-width: 60ch; }

/* ===== Agent IA en direct ===== */
.agent-shell { max-width: 900px; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid rgba(11,11,11,.08); }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px; background: linear-gradient(180deg, var(--ice-2), #e7eef0); overflow-y: auto; height: min(56vh, 460px); }
.msg { max-width: 80%; padding: 12px 16px; border-radius: 18px; font-size: 15px; white-space: pre-line; animation: pop .35s ease-out; }
.msg.agent { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; }
.msg.user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.msg.typing { color: var(--muted); font-style: italic; }
.msg.error { background: #fff3d6; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.lead-card { align-self: stretch; padding: 16px; border-radius: 16px; background: #fff; border: 2px solid var(--green); }
.lead-title { font-weight: 600; }
.lead-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 10px 0 14px; font-size: 14px; }
.lead-card dt { color: var(--muted); }
.lead-card dd { margin: 0; overflow-wrap: anywhere; }
.chips[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { padding: 8px 14px; border-radius: 99px; border: 1px solid rgba(11,11,11,.2); background: #fff; font: 500 14px/1.2 var(--sans); color: var(--ink); cursor: pointer; }
.chip:hover { background: var(--green); border-color: transparent; }
.chat-form { display: flex; gap: 10px; margin-top: 12px; }
.chat-form textarea { flex: 1; min-height: 48px; max-height: 140px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(11,11,11,.18); font: 400 16px/1.4 var(--sans); resize: vertical; }
.chat-form.is-busy button { opacity: .5; pointer-events: none; }
.chat-note { margin-top: 10px; font-size: 12px; color: var(--muted); }
.chat-note a { color: inherit; }

/* ===== FAQ ===== */
.faq-list { border-top: 1px solid var(--rule); max-width: 1100px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font: 500 clamp(20px, 2vw, 28px)/1.2 var(--sans); letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green); font-size: 22px; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; max-width: 70ch; color: var(--muted); font-size: 17px; }

/* ===== Contact ===== */
.contact { padding: 16px 16px 90px; }
.contact-panel {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px);
  padding: clamp(28px, 6vw, 88px) clamp(20px, 5vw, 72px); border-radius: var(--radius);
  background: radial-gradient(120% 100% at 20% 0%, var(--ice-2), var(--ice-1) 80%);
}
.ring-echo { position: absolute; width: 70vmin; aspect-ratio: 1; right: -18vmin; bottom: -30vmin; border-radius: 50%; border: 5vmin solid rgba(255,255,255,.3); box-shadow: inset 0 0 40px rgba(255,255,255,.5); pointer-events: none; }
.contact-intro, .form { position: relative; }
.contact h2 { margin-top: 16px; font: 500 clamp(40px, 5.6vw, 84px)/1 var(--sans); letter-spacing: -.04em; }
.contact .lede { color: #2d3a3e; }
.contact-lines { margin-top: 32px; border-top: 1px solid var(--rule); }
.contact-lines a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); font: 500 clamp(20px, 2vw, 28px)/1.2 var(--sans); text-decoration: none; overflow-wrap: anywhere; }
.contact-lines a:hover { color: var(--teal); }
.form { display: grid; gap: 14px; align-content: start; padding: 24px; border-radius: 18px; background: rgba(255,255,255,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form small { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(11,11,11,.18); background: #fff;
  font: 400 16px/1.4 var(--sans); color: var(--ink);
}
.form textarea { resize: vertical; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; color: var(--muted); }
.form .consent input { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 22px 8px 0; font-size: 13px; color: var(--muted); }

/* ===== Page mentions légales ===== */
.legal { max-width: 860px; margin: 0 auto; padding: 12vh clamp(16px, 4vw, 56px) 40px; }
.legal h1 { margin-top: 16px; font: 500 clamp(40px, 5.6vw, 72px)/1 var(--sans); letter-spacing: -.04em; }
.legal .updated { margin-top: 12px; color: var(--muted); font-size: 14px; }
.legal section { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); }
.legal h2 { font: 500 26px/1.2 var(--sans); letter-spacing: -.02em; }
.legal p, .legal dl { margin-top: 14px; }
.legal dt { margin-top: 14px; font-weight: 600; }
.legal dd { margin: 2px 0 0; color: #3a3836; }
.legal a { color: var(--teal); }
mark.todo { background: #ffe08a; padding: 1px 6px; border-radius: 6px; }
.thanks .btn { margin-top: 28px; }
.thanks a:not(.btn) { color: var(--teal); }
.legal-footer { max-width: 860px; margin: 0 auto; padding: 20px clamp(16px, 4vw, 56px) 100px; }
.pill-back { padding: 0 20px; }
.footer a { color: inherit; }

/* ===== Tablette / mobile ===== */
@media (max-width: 1080px) {
  .pill-group a:not(.pill-cta) { padding: 0 10px; }
}
@media (max-width: 900px) {
  .module, .agents-stage, .contact-panel { grid-template-columns: 1fr; }
  .module-media { aspect-ratio: 4 / 3; order: 2; }
  .work { order: 3; }
  .work-card { grid-template-columns: 1fr; }
  .work-card img { aspect-ratio: 16 / 10; }
  .agents { height: auto; }
  .agents-stage { position: static; height: auto; padding-block: 12vh 0; }
  .stream-panel { height: 60vh; }
  .why-grid, .cards { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .why-grid article + article { padding-left: 0; border-left: 0; border-top: 1px solid rgba(11,11,11,.15); }
  .cap-list li { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }

  /* Dock : marque + menu ; les liens s'ouvrent en feuille au-dessus */
  .pill-menu { display: inline-flex; }
  .pill-group {
    position: absolute; right: 0; bottom: 56px; flex-direction: column; align-items: stretch; min-width: 230px;
    padding: 10px; border-radius: 22px; visibility: hidden; opacity: 0; transform: translateY(8px); transition: .2s;
  }
  .pill-group.is-open { visibility: visible; opacity: 1; transform: none; }
  .pill-group a { min-height: 44px; padding: 0 14px !important; }
  .pill-group .pill-cta { margin: 6px 0 0; justify-content: center; }
  .edge-badge { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { height: 170vh; }
  .hero-stage { padding: 10px; }
  .hero-copy { left: 16px; right: 16px; bottom: 84px; }
  .hero-lede { display: none; }
  .scroll-hint { display: none; }
  .wordmark { top: 18px; font-size: 15.2vw; }
  .field-row { grid-template-columns: 1fr; }
  .contact { padding: 10px 10px 84px; }
  .form { padding: 16px; }
  .agent-shell { padding: 10px; }
  .msg { max-width: 90%; }
}

/* ===== Mouvement réduit : états statiques lisibles ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero, .agents { height: auto; }
  .hero-stage { position: relative; }
  .agents-stage { position: static; height: auto; padding-block: 12vh; }
}
