/* ==========================================================================
   Invenio — « Une journée »
   Clair = la journée ; sombre = la même journée vue en fin de soirée.
   ========================================================================== */

/* jetons communs : css/socle.css ; ici seulement ce que pilote la journée */
:root {
  /* pilotées par le défilement (js) */
  --sky-ink: #1E1A16;
  --sky-ink-soft: rgba(30, 26, 22, .72);
  --sky-shadow: rgba(255, 240, 225, .55);
  --stage-dim: 1;
}

@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --stage-dim: .86; } }
:root[data-theme="dark"] { --stage-dim: .86; }

/* ==========================================================================
   LA JOURNÉE — scène collante + chapitres qui défilent par-dessus
   ========================================================================== */
.journey { position: relative; }

.stage { display: none; }
.motion .stage {
  display: block;
  position: sticky; top: 0;
  height: 100vh; height: 100lvh;
  overflow: hidden;
  z-index: 0;
  filter: brightness(var(--stage-dim));
  contain: strict;
}
.sky { position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--s0, #d4bcc4) 0%, var(--s1, #f3d6d4) 42%, var(--s2, #fde3d8) 72%, var(--s3, #fdeede) 100%); }
.sun {
  position: absolute; left: 0; top: 0; width: 90vmax; height: 90vmax; margin: -45vmax 0 0 -45vmax;
  background: radial-gradient(circle at center, var(--sun-core, rgba(255,240,220,.95)) 0, var(--sun-c, rgba(255,210,170,.6)) 9%, transparent 52%);
  transform: translate3d(var(--sun-x, 8vw), var(--sun-y, 60vh), 0);
  opacity: var(--sun-o, 1);
  mix-blend-mode: screen;
  will-change: transform, opacity;
}
.stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--stars, 0); }
.stars-b { animation: twinkle 5.5s ease-in-out infinite alternate; }
@keyframes twinkle { from { filter: brightness(.6); } to { filter: brightness(1.25); } }
.moon {
  position: absolute; left: 42vw; top: 13vh; width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fffaf0, #f2e7cf 60%, #d8ccb4);
  box-shadow: 0 0 40px 12px rgba(255, 244, 220, .22), 0 0 120px 40px rgba(180, 190, 255, .08);
  opacity: var(--moon, 0);
}
.birds { position: absolute; left: 0; top: 14vh; width: 220px; color: rgba(40, 34, 30, .55); opacity: var(--birds, 0);
  animation: fly 26s linear infinite; }
.birds svg { width: 100%; overflow: visible; }
.bird { animation: flap .9s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.b2 { animation-delay: -.3s; } .b3 { animation-delay: -.6s; }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.45); } }
@keyframes fly { from { transform: translate3d(-260px, 4vh, 0); } to { transform: translate3d(105vw, -2vh, 0); } }

.big-clock {
  position: absolute; right: var(--gutter); top: 86px;
  font: 300 clamp(64px, 9.5vw, 168px)/1 var(--serif);
  font-variation-settings: "opsz" 144;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums lining-nums;
  color: var(--sky-ink); opacity: .82;
  text-shadow: 0 2px 30px var(--sky-shadow);
}

.scene {
  position: absolute; left: 0; top: 0;
  width: var(--scene-w, 110vw); aspect-ratio: 16 / 9;
  transform-origin: 0 0;
  transform: translate3d(var(--scene-x, 0px), var(--scene-y, 0px), 0) scale(var(--scene-s, 1));
  will-change: transform;
}
.scene::after { /* ombre portée du socle sur le fond */
  content: ""; position: absolute; left: 6%; right: -4%; bottom: -3%; height: 9%;
  background: radial-gradient(ellipse at 50% 30%, rgba(20, 14, 8, .38), transparent 70%);
  filter: blur(12px); z-index: -1;
}
.shot { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.shot.s0 { opacity: 1; }
.mist { position: absolute; border-radius: 50%; pointer-events: none; opacity: var(--mist, 0);
  background: radial-gradient(ellipse at center, rgba(255, 250, 244, .85), rgba(255, 250, 244, 0) 70%); filter: blur(8px); }
.m1 { left: -8%; top: 40%; width: 60%; height: 34%; animation: drift 40s ease-in-out infinite alternate; }
.m2 { left: 30%; top: 54%; width: 70%; height: 30%; animation: drift 52s ease-in-out infinite alternate-reverse; z-index: 2; opacity: calc(var(--mist, 0) * .55); }
@keyframes drift { from { transform: translateX(-4%); } to { transform: translateX(6%); } }

.smoke { position: absolute; left: 65.6%; top: 18.6%; width: 0; height: 0; opacity: var(--smoke, .4); }
.smoke i {
  position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle, var(--smoke-c, rgba(214, 208, 202, .95)), rgba(214, 208, 202, 0) 68%);
  filter: blur(4px); opacity: 0;
  animation: puff 7s linear infinite;
}
.smoke i:nth-child(2) { animation-delay: -1.15s; } .smoke i:nth-child(3) { animation-delay: -2.3s; }
.smoke i:nth-child(4) { animation-delay: -3.45s; } .smoke i:nth-child(5) { animation-delay: -4.6s; }
.smoke i:nth-child(6) { animation-delay: -5.75s; }
@keyframes puff {
  0% { transform: translate(0, 0) scale(.35); opacity: 0; }
  12% { opacity: .9; }
  100% { transform: translate(var(--wind, 90px), -230px) scale(3.8); opacity: 0; }
}
.glow { position: absolute; width: 22%; aspect-ratio: 1; margin: -11% 0 0 -11%; border-radius: 50%; mix-blend-mode: screen; pointer-events: none; }
.glow-street { left: 14.1%; top: 49.6%; opacity: var(--lamp1, 0);
  background: radial-gradient(circle, rgba(255, 214, 140, .95) 0, rgba(255, 170, 80, .45) 10%, rgba(255, 150, 60, 0) 55%); }
.glow-wall { left: 72.4%; top: 56.6%; width: 16%; margin: -8% 0 0 -8%; opacity: var(--lamp2, 0);
  background: radial-gradient(circle, rgba(255, 220, 150, .95) 0, rgba(255, 180, 90, .45) 9%, rgba(255, 160, 70, 0) 55%); }
.glow.flicker { animation: flicker 1.1s steps(1) 1; }
@keyframes flicker { 0% { filter: brightness(.2); } 18% { filter: brightness(1); } 30% { filter: brightness(.35); } 46% { filter: brightness(1.1); } 62% { filter: brightness(.7); } 100% { filter: brightness(1); } }

.tilt { position: absolute; left: 0; right: 0; pointer-events: none; }
.tilt-top { top: 0; height: 16%; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.tilt-bottom { bottom: 0; height: 24%; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  -webkit-mask-image: linear-gradient(transparent, #000 85%); mask-image: linear-gradient(transparent, #000 85%); }
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Le contenu défile par-dessus la scène collante */
.motion .journey > .hero { margin-top: -100vh; margin-top: -100lvh; }
.hero, .chapter { position: relative; z-index: 2; }

/* ---------- Ouverture ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  padding: 128px var(--gutter) 40px;
  display: grid; grid-template-columns: minmax(0, 560px) 1fr; grid-template-rows: 1fr auto;
  column-gap: 40px;
}
.hero-copy { grid-column: 1; align-self: center; }
.eyebrow { font-size: 15px; font-weight: 500; color: var(--sky-ink-soft); margin-bottom: 22px; max-width: 30em; }
h1 {
  font: 300 clamp(44px, 5.6vw, 84px)/1.02 var(--serif);
  font-variation-settings: "opsz" 144;
  letter-spacing: -.025em; color: var(--sky-ink);
  text-wrap: balance;
}
.ch-head h2 em { font-style: italic; color: var(--violet); }
.journey h1 em, .eyebrow .prompt { color: var(--accent-word, #4E33CC); }
.lead { margin-top: 24px; font-size: 19px; line-height: 1.55; color: var(--sky-ink); max-width: 33em; }
.lead strong { font-weight: 600; }
.typer { margin-top: 30px; display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 12px 18px; border-radius: 14px; font: 500 15px/1.3 var(--mono); color: var(--ink);
  background: var(--card-a); box-shadow: var(--shadow-soft); }
.typer-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caret { width: 9px; height: 1.15em; background: var(--violet); border-radius: 2px; animation: caret 1s steps(1) infinite; flex: none; }
@keyframes caret { 50% { opacity: 0; } }

.programme { grid-column: 1 / -1; grid-row: 2; align-self: end; margin-top: 40px; }
.programme-title { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sky-ink-soft); margin-bottom: 12px; }
.programme ol { list-style: none; margin: 0; padding: 6px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px;
  background: var(--card-a); border-radius: 16px; box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.programme a { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.3; height: 100%; }
.programme a:hover { background: var(--violet-tint); }
.programme time { font: 500 13px/1 var(--mono); color: var(--violet); }
.scroll-cue { display: none; }

/* ---------- Chapitres ---------- */
.chapter { padding: 0 var(--gutter); }
.ch-photo { display: none; }
.ch-head { min-height: 64vh; padding-top: 22vh; max-width: 760px; }
.ch-time { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; color: var(--sky-ink); }
.ch-time time { font: 300 clamp(36px, 3.4vw, 50px)/1 var(--serif); font-variation-settings: "opsz" 144; letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; }
.ch-time span { font: 500 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sky-ink-soft); }
.ch-head h2 { font: 300 clamp(34px, 3.9vw, 58px)/1.06 var(--serif); font-variation-settings: "opsz" 144; letter-spacing: -.02em; color: var(--sky-ink); text-wrap: balance; text-shadow: 0 1px 24px var(--sky-shadow); }
.ch-head h2 em { color: inherit; }

.ch-body { display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.card { background: var(--card-a); border-radius: var(--radius); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border: 1px solid var(--line); }
.ch-card { padding: 32px 34px 30px; }
.ch-card p { color: var(--ink-2); }
.ch-card p strong { color: var(--ink); font-weight: 600; }
.k-inv { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink); }
.ch-card .fine { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line-2); }

.ch-ui { display: grid; gap: 28px; justify-items: start; padding-top: 18vh; }
.ch-rest { height: 72vh; }
.ch-rest-last { height: 40vh; }

/* Objets : intérieurs détourés posés sur un socle de papier */
.object { position: relative; margin: 0 0 0 auto; width: min(100%, 640px); padding: 0 0 18px;
  justify-self: end; }
.object::before { content: ""; position: absolute; left: 4%; right: 4%; bottom: 0; height: 46%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--card) 92%, transparent), var(--card)); border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.object img { position: relative; width: 100%; filter: drop-shadow(0 26px 22px rgba(40, 26, 12, .38)) drop-shadow(0 6px 6px rgba(40, 26, 12, .22)); }
.object figcaption { position: relative; display: flex; justify-content: space-between; align-items: baseline; margin: 6px 9% 0; font: 300 26px/1.1 var(--serif); color: var(--ink); }
.object figcaption time { font: 500 13px/1 var(--mono); color: var(--violet); }

/* ---------- Fragments d'interface ---------- */
.ui { width: min(100%, 500px); background: var(--card); color: var(--ink); border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; font-size: 14px; line-height: 1.45; }
.ui-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper-2) 55%, var(--card)); }
.ui-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.bot-ico { width: 18px; height: auto; color: var(--violet); }
.ui-btn { font: 600 13px/1 var(--sans); padding: 9px 13px; border-radius: 9px; border: 0; background: color-mix(in srgb, var(--stone) 16%, transparent); color: var(--ink); cursor: default; }
.ui-primary { background: var(--violet); color: #fff; }
:root:not([data-theme="light"]) .ui-primary { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ui-primary { background: #6E55F0; } }
.ui-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); }
.ui-note { padding: 10px 16px 0; color: var(--stone); font-size: 13px; }
.fine-ui { font-size: 12.5px; color: var(--stone); }

.inbox { list-style: none; margin: 0; padding: 6px 0; }
.inbox li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: start; padding: 11px 16px; }
.inbox li + li { border-top: 1px solid var(--line); }
.inbox b { display: block; font-weight: 600; }
.inbox div span { display: block; color: var(--ink-2); }
.inbox .act { display: inline-block; margin-top: 6px; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--violet); background: var(--violet-tint); padding: 4px 8px; border-radius: 7px; }
.inbox .dim b, .inbox .dim div span { color: var(--stone); }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--sans); background: #E7D7C1; color: #5B4428; }
.av-2 { background: #D8E3D2; color: #2F5130; } .av-3 { background: #DCD6F2; color: #3D2E86; } .av-4 { background: #E4E0DA; color: #57514A; }
.fold { font-size: 11.5px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line-2); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }

.msgs { padding: 16px; display: grid; gap: 12px; }
.msg { max-width: 92%; }
.msg.me { justify-self: end; background: var(--user); color: var(--user-fg); padding: 11px 14px; border-radius: 16px 16px 4px 16px; }
.msg.bot { justify-self: start; }
.msg.bot > p { color: var(--ink); }
.att { display: flex; align-items: center; gap: 6px; margin-top: 8px; font: 500 12px/1 var(--mono); opacity: .85; }
.ico { width: 15px; height: 15px; flex: none; display: inline-block; vertical-align: -2px; }
.msg .ico-mic { margin-right: 6px; }
.doc { margin-top: 10px; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--paper) 40%, var(--card)); }
.doc-h { display: flex; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc-h span { color: var(--stone); }
.doc table { width: 100%; border-collapse: collapse; font-size: 13px; }
.doc td { padding: 7px 12px; border-bottom: 1px solid var(--line); }
.doc td:nth-child(2) { color: var(--stone); text-align: center; white-space: nowrap; }
.doc td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc .tot td { font-weight: 700; border-bottom: 0; }
.acts { display: flex; gap: 8px; margin-top: 12px; }

.call { padding: 14px 16px 16px; }
.call-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.call-h span:last-child { color: var(--stone); font-size: 13px; }
.call-ico { width: 26px; height: 26px; border-radius: 50%; background: var(--ok-tint); position: relative; }
.call-ico::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--ok); }
.call h4 { margin: 14px 0 6px; font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--stone); }
.call > p { color: var(--ink-2); }
.rdv { margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: var(--violet-tint); color: var(--ink) !important; }
.rdv b { color: var(--violet); margin-right: 6px; }
.tr { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13px; color: var(--ink-2); }
.tr b { display: inline-block; min-width: 82px; font-weight: 600; color: var(--ink); }
.call .fine-ui { margin-top: 10px; }

.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 14px 16px 16px; }
.wd { font: 500 11px/1 var(--mono); color: var(--stone); text-transform: uppercase; letter-spacing: .08em; }
.ev { font-size: 12.5px; font-weight: 600; padding: 8px 10px; border-radius: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-a { background: #E9DBC3; color: #5A4020; } .ev-b { background: #DCD6F2; color: #3D2E86; } .ev-c { background: #D8E3D2; color: #2F5130; }

.op { padding: 12px 16px; }
.op + .op { border-top: 1px solid var(--line); }
.op-h { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.op-h .in { color: var(--ok); white-space: nowrap; } .op-h .out { color: var(--bad); white-space: nowrap; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .op-h .out { color: #F0A27F; } }
.sug { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 8px; font-size: 13px; }
.sug a { font-weight: 600; text-decoration: underline; }
.sug .why { color: var(--stone); flex-basis: 100%; }
.pill { font: 700 11.5px/1 var(--mono); padding: 5px 8px; border-radius: 999px; }
.pill-ok { background: var(--ok-tint); color: var(--ok); } .pill-mid { background: var(--warn-tint); color: var(--warn); }
.rel { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rel th { text-align: left; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--stone); padding: 12px 16px 8px; }
.rel td { padding: 10px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.rel td span { display: block; color: var(--stone); font-size: 12.5px; }
.rel td:nth-child(2) { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--warn); font-weight: 600; }

.stock { list-style: none; margin: 0; padding: 8px 16px; }
.stock li { display: grid; grid-template-columns: 1fr 110px 70px; gap: 12px; align-items: center; padding: 9px 0; }
.stock li + li { border-top: 1px solid var(--line); }
.stock b { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
.bar { height: 6px; border-radius: 9px; background: color-mix(in srgb, var(--stone) 18%, transparent); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--warn); border-radius: 9px; }
.stock .ok .bar i { background: var(--ok); }
.kv { margin: 0; display: grid; gap: 0; min-width: 260px; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 12px; }
.kv div + div { border-top: 1px solid var(--line); }
.kv dt { color: var(--ink-2); } .kv dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.kv .hl { background: var(--violet-tint); } .kv .hl dd { color: var(--violet); }
.ui-marge .fine-ui { margin-top: 8px; }

.missions { list-style: none; margin: 0; padding: 4px 0; }
.missions li { display: grid; gap: 3px; padding: 12px 16px; }
.missions li + li { border-top: 1px solid var(--line); }
.missions span { color: var(--ink-2); font-size: 13px; }
.missions em { font-style: normal; font: 500 12px/1.4 var(--mono); color: var(--violet); }
.ui-missions .fine-ui { padding: 0 16px 14px; }
.files { list-style: none; margin: 0; padding: 8px 16px; display: grid; gap: 2px; }
.files li { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.f { width: 40px; text-align: center; font: 700 10.5px/1 var(--mono); padding: 7px 0; border-radius: 7px; background: color-mix(in srgb, var(--stone) 16%, transparent); color: var(--ink-2); }

/* décalages en quinconce des fragments (bureau) */
.ch-ui .ui:nth-child(odd) { justify-self: start; }
@media (min-width: 1100px) {
  .ch-ui .object + .ui { margin-top: -120px; margin-left: -60px; position: relative; z-index: 2; }
  .ch-ui .ui + .ui { justify-self: end; margin-top: -10px; }
}

/* ==========================================================================
   Sections après la journée
   ========================================================================== */

.assist-grid { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.convo { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.convo-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 600; }
.convo-bar .tag { margin-left: auto; }
.convo-list { list-style: none; margin: 0; padding: 20px 18px; display: grid; gap: 14px; min-height: 460px; align-content: start; }
.convo-list .msg.bot { background: color-mix(in srgb, var(--paper) 50%, var(--card)); border: 1px solid var(--line); padding: 12px 14px; border-radius: 16px 16px 16px 4px; }
.mini { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.mini b { color: var(--ink); }
.convo-input { display: flex; align-items: center; gap: 10px; margin: 0 14px 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); }
.ph { color: var(--stone); flex: 1; }
.mic-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--violet); position: relative; }
.mic-btn { display: grid; place-items: center; color: #fff; }
.mic-btn .ico { width: 16px; height: 16px; }
.motion .convo [data-step] { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s cubic-bezier(.2,.7,.2,1); }
.motion .convo [data-step].on { opacity: 1; transform: none; }

.modes { display: grid; grid-template-columns: 1fr; gap: 12px; }
.mode { padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.mode h3 { font: 400 24px/1.15 var(--serif); margin-bottom: 8px; }
.mode p { color: var(--ink-2); font-size: 15.5px; }
.mode-rule { background: var(--violet-tint); border-color: transparent; }
.mode { display: grid; grid-template-columns: 170px 1fr; gap: 6px 20px; align-items: baseline; }
.mode h3 { margin: 0; }
.asks { margin-top: 56px; }
.asks-title { font: 500 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--stone); margin-bottom: 14px; }
.asks-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.asks-list li { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); font: 500 14.5px/1.45 var(--mono); color: var(--ink); }

.capot-grid { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.ui-droits { width: 100%; }
.droits { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.droits th, .droits td { padding: 12px 12px; text-align: left; border-top: 1px solid var(--line); }
.droits thead th { border-top: 0; font: 500 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--stone); }
.droits tbody th { font-weight: 600; }
.lv { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 7px; white-space: nowrap; }
.lv-w { background: var(--ok-tint); color: var(--ok); } .lv-r { background: var(--violet-tint); color: var(--violet); } .lv-n { background: color-mix(in srgb, var(--stone) 14%, transparent); color: var(--stone); }



/* ---------- Nuit : appel final ---------- */


/* ---------- Apparitions (pilotées par GSAP) ---------- */
.motion [data-reveal] { opacity: 0; }

/* ==========================================================================
   Version statique (mouvement réduit ou sans JS) : complète et posée
   ========================================================================== */
html:not(.motion) .hero { min-height: auto; padding-top: 120px; padding-bottom: 72px; --sky-ink: var(--ink); --sky-ink-soft: var(--stone);
  background: linear-gradient(180deg, color-mix(in srgb, #f6dcd4 50%, var(--paper)) 0%, var(--paper) 100%); }
html:not(.motion) .journey { --sky-ink: var(--ink); --sky-ink-soft: var(--stone); --sky-shadow: transparent; }
html:not(.motion) .chapter { padding-top: 72px; padding-bottom: 24px; }
html:not(.motion) .ch-photo { display: block; margin: 0 0 32px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); max-width: 1100px; }
html:not(.motion) .ch-photo img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
html:not(.motion) .ch-head { min-height: 0; padding-top: 0; margin-bottom: 32px; }
html:not(.motion) .ch-ui { padding-top: 0; }
html:not(.motion) .ch-rest { display: none; }
html:not(.motion) .card { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--card); }
html:not(.motion) .typer .caret { animation: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .programme ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .hero { grid-template-columns: 1fr; }
  .ch-body { grid-template-columns: 1fr; }
  .ch-ui { padding-top: 0; justify-items: stretch; }
  .ui { width: 100%; max-width: 560px; }
  .object { margin: 0 auto; }
  .assist-grid, .capot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 699px) {
  .big-clock { display: none; }
  .programme { display: none; }
  .hero { padding: 88px 16px 28px; }
  .hero-copy { align-self: start; }
  .eyebrow { font-size: 14px; margin-bottom: 14px; }
  h1 { font-size: 40px; }
  .lead { font-size: 17px; margin-top: 16px; }
  .typer { display: none; }
  .programme { margin-top: 28px; }
  .programme ol { grid-template-columns: 1fr 1fr; }
  .programme a { padding: 10px; font-size: 13.5px; }
  .chapter { padding: 0 16px; }
  .ch-head { padding-top: 16vh; min-height: 52vh; }
  .ch-card { padding: 24px 20px; }
  .ch-ui { gap: 20px; margin-top: 20px; }
  .ch-rest { height: 60vh; }
  .ui { font-size: 13.5px; }
  .inbox li { grid-template-columns: 30px 1fr; }
  .inbox .fold { grid-column: 2; justify-self: start; }
  .av { width: 30px; height: 30px; }
  .stock li { grid-template-columns: 1fr 64px 60px; }
  .tilt { display: none; }
  .mode { grid-template-columns: 1fr; }
  .asks-list { grid-template-columns: 1fr; }
  .droits { font-size: 12px; }
  .droits th, .droits td { padding: 9px 6px; }
  .ui-droits { overflow-x: auto; }
}
@media (max-width: 380px) {
  h1 { font-size: 36px; }
}

/* le premier chapitre laisse l'ouverture sortir de l'écran avant d'entrer */
.motion .hero + .chapter .ch-head { padding-top: 48vh; }

/* ==========================================================================
   Après la journée : la nuit continue
   ========================================================================== */
.nightfall { position: relative; z-index: 3; height: 82vh; margin-top: -36vh; margin-bottom: -1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,10,30,0) 0%, rgba(0,10,30,.85) 26%, #031a3a 46%, #3a3550 66%, color-mix(in srgb, #E9B98A 30%, var(--paper)) 86%, var(--paper) 100%); overflow: hidden; }
.nightfall .stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 1;
  -webkit-mask-image: linear-gradient(#000 0%, transparent 60%); mask-image: linear-gradient(transparent 10%, #000 34%, transparent 72%); }
.nf-lamp { position: absolute; left: 50%; top: 70%; width: 70vw; height: 70vw; margin: -35vw 0 0 -35vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 120, .45), rgba(255, 170, 90, .12) 30%, transparent 62%); mix-blend-mode: screen; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nightfall { background: linear-gradient(180deg, rgba(0,10,30,0) 0%, rgba(0,10,30,.85) 26%, #031a3a 46%, #2a2230 72%, var(--paper) 100%); } }
:root[data-theme="dark"] .nightfall { background: linear-gradient(180deg, rgba(0,10,30,0) 0%, rgba(0,10,30,.85) 26%, #031a3a 46%, #2a2230 72%, var(--paper) 100%); }


/* ==========================================================================
   Page des offres : le voyage de la camionnette
   ========================================================================== */
.offres-more { margin-top: 18px; }
.road { position: relative; z-index: 1; padding-top: 68px; background: var(--paper); }
.road-view { position: relative; height: clamp(360px, 62vh, 620px); overflow: hidden; background: #EDE3D6; isolation: isolate; }
.trip-scene { position: absolute; inset: 0; overflow: hidden; }
.trip-static { opacity: 0; transition: opacity .6s; }
.trip-static.is-on { opacity: 1; }
.trip-static img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 72%; }
html:not(.js) .trip-static { opacity: 1; }
.trip-cam { position: absolute; inset: 0; }
.trip-world { position: absolute; left: 0; top: 0; width: 3072px; height: 1728px; /* 1536 × 864 × WK (js/offres.js) */ transform-origin: 0 0; will-change: transform; }
.trip-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  }
.trip-van { position: absolute; left: 0; top: 0; height: 0; transform-origin: 0 0; will-change: transform; }
.trip-van3d { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; display: none; will-change: transform; }
.van-3d .trip-van3d { display: block; }
.van-3d .trip-van { display: none; }
.trip-van-turn { position: absolute; left: -50%; bottom: -4%; width: 100%; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.trip-van-body { position: relative; animation: bump 1.5s ease-in-out infinite; }
.trip-van-body img { display: block; width: 100%; height: auto; transition: opacity .35s; filter: drop-shadow(0 1px 1px rgba(20, 14, 8, .35)); }
.trip-van-body .v-34 { position: absolute; left: 6%; bottom: 0; width: 84%; opacity: 0; }
.trip-van.is-34 .v-profil { opacity: 0; }
.trip-van.is-34 .v-34 { opacity: 1; }
.trip-van-shadow { position: absolute; left: 4%; right: 4%; bottom: -5%; height: 16%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(20, 14, 6, .55), rgba(20, 14, 6, 0) 70%); filter: blur(1.5px); }
@keyframes bump { 0%, 100% { transform: translateY(0) rotate(0); } 23% { transform: translateY(-2.2%) rotate(-.35deg); }
  41% { transform: translateY(.6%) rotate(.15deg); } 67% { transform: translateY(-1.2%) rotate(.2deg); } 82% { transform: translateY(.4%) rotate(0); } }
html:not(.motion) .trip-van-body { animation: none; }
.trip-label { position: absolute; z-index: 5; left: var(--gutter); bottom: 22px; margin: 0; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: #FFF8EE; background: rgba(30, 26, 22, .42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 8px 12px; border-radius: 999px; }
.trip-label.pop { animation: pop .8s cubic-bezier(.2,.7,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
html:not(.motion) .trip-label { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .road-view { background: #1B2236; }
  :root:not([data-theme="light"]) .trip-van-body img { filter: brightness(.78) saturate(.9) drop-shadow(0 1px 1px rgba(0,0,0,.5)); } }

@media (max-width: 699px) {
  .road { padding-top: 60px; }
  .road-view { height: 46vh; min-height: 300px; }
  .trip-label { left: 16px; bottom: 14px; }
}

/* raccord du voyage : fondu enchaîné */
.trip-scene { will-change: opacity; }

/* ==========================================================================
   Deux écrans : étiquettes d'écran, cadres de fenêtre (ordinateur) et de téléphone,
   ligne des supports en haut de page, section « un compte, deux écrans ».
   CSS seulement : aucun visuel inventé, les fragments d'interface restent les mêmes.
   ========================================================================== */
.ico-ecran { width: 18px; height: 18px; flex: none; }
.ecran { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 8px 14px 8px 11px; border-radius: 999px;
  font: 500 13px/1.25 var(--mono); letter-spacing: .02em; color: var(--ink); background: var(--card-a); border: 1px solid var(--line-2); box-shadow: var(--shadow-soft); max-width: 100%; }
.ecran .ico-ecran { color: var(--violet); }
.ecran-nuit { background: #1B2236; color: #EDE6D8; border-color: rgba(237, 230, 216, .25); }
.ecran-nuit .ico-ecran { color: #CFC3FF; }
.legende { font: 500 12.5px/1.3 var(--mono); letter-spacing: .02em; color: var(--ink); background: var(--card-a); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 13px; margin: 6px 0 -12px; max-width: 100%; }
.ch-ui .legende { justify-self: start; }

/* ligne des supports, sous les boutons */
.supports { margin-top: 20px; display: grid; gap: 8px; max-width: 34em; }
.support { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.4; color: var(--sky-ink); }
.support .ico-ecran { margin-top: 1px; color: var(--accent-word, #4E33CC); }
.support b { font-weight: 600; }
.support-badge { margin: 2px 0 0; line-height: 0; }
.support-badge a { display: inline-block; }
.support-badge img { display: block; width: 114px; height: 44px; }

/* fenêtre d'ordinateur */
.ui.ui-win { border-radius: 10px; border-color: var(--line-2); }
.ui-win > .ui-bar { justify-content: flex-start; padding-left: 14px; }
.ui-win > .ui-bar::before { content: ""; flex: none; width: 10px; height: 10px; margin-right: 38px; border-radius: 50%;
  background: #E36B5D; box-shadow: 16px 0 0 #E8B84B, 32px 0 0 #5BBE6A; }
.ui-win > .ui-bar .tag { margin-left: auto; }

/* téléphone : rendu de la vraie application, thème clair (voir .tel plus bas) */
@media (max-width: 1023px) {
  .ch-ui .tel-chap { justify-self: center; }
  .ecran { font-size: 12.5px; }
}
@media (max-width: 699px) {
  .support { font-size: 14px; }
  .legende { margin-bottom: -8px; }
}

/* un compte, deux écrans */
.duo { container-type: inline-size; position: relative; margin: 48px auto 0; max-width: 1040px; padding-bottom: 64px; }
.lap { width: 69%; margin: 56px 0 0; filter: drop-shadow(0 34px 30px rgba(40, 26, 12, .30)) drop-shadow(0 8px 8px rgba(40, 26, 12, .18)); }
.lap-lid { position: relative; background: #2A2621; border-radius: 14px 14px 3px 3px; padding: 2.2cqw 2cqw 2.4cqw; box-shadow: 0 0 0 1px #4A4339 inset; }
.lap-cam { position: absolute; top: .9cqw; left: 50%; width: .6cqw; height: .6cqw; min-width: 3px; min-height: 3px; margin-left: -.3cqw; border-radius: 50%; background: #0D0B09; box-shadow: 0 0 0 1px #4A4339; }
.lap-screen { background: var(--card); color: var(--ink); border-radius: 4px; overflow: hidden; font-size: clamp(6px, 1.3cqw, 13.5px); line-height: 1.4; aspect-ratio: 16 / 8.9; display: flex; flex-direction: column; }
.lap-base { position: relative; height: clamp(8px, 1.9cqw, 17px); width: 112%; margin-left: -6%; background: linear-gradient(180deg, #D8D0C3, #B5AB9B 70%, #8F8678); border-radius: 0 0 16px 16px / 0 0 12px 12px; box-shadow: 0 1px 0 rgba(255,255,255,.5) inset; }
.lap-base span { position: absolute; top: 0; left: 50%; width: 16%; height: 52%; margin-left: -8%; background: #9C9282; border-radius: 0 0 8px 8px; }
/* écran d'ordinateur = le vrai écran de devis de l'ERP, thème clair (jetons de la palette chaleureuse et du rail de l'ERP) */
.erp { --e-bg: #F4EEE3; --e-card: #FFFCF6; --e-champ: #F7F1E6; --e-ligne: #E2D8C6; --e-tx: #1E1A16; --e-tx3: #5F574D; --e-rail: #3D559E; --e-ac: #3D559E; --e-btn: #EFE7DA; --e-state: #A8401F;
  position: relative; flex: 1; min-height: 0; background: var(--e-bg); color: var(--e-tx); font-family: var(--sans); overflow: hidden; }
.erp-nav { position: relative; height: 2.3em; display: flex; align-items: center; justify-content: center; }
.erp-tabs { display: flex; gap: 2.1em; color: var(--e-tx3); font-weight: 500; font-size: .92em; }
.erp-user { position: absolute; right: 1.2em; top: .5em; display: flex; align-items: center; gap: .6em; color: var(--e-tx3); }
.erp-av { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: #1E2A4A; color: #fff; font-size: .78em; font-weight: 700; }
.ei { width: 1.5em; height: 1.5em; flex: none; }
.ei-sm { width: 1.15em; height: 1.15em; } .ei-bell { width: 1.35em; height: 1.35em; }
.erp-rail { position: absolute; left: 0; top: 1.9em; bottom: .9em; width: 3.7em; color: var(--e-rail); }
.erp-wave { position: absolute; inset: 0; width: 100%; height: 100%; }
.erp-ic { position: absolute; left: 0; right: .4em; top: 50%; transform: translateY(-52%); display: flex; flex-direction: column; align-items: center; gap: .85em; color: #fff; }
.erp-ic hr { width: 1.3em; margin: 0; border: 0; border-top: 1px solid rgba(255, 255, 255, .5); }
.erp-logo { position: absolute; left: .6em; bottom: .9em; width: 2em; height: 1.17em; background: linear-gradient(100deg, #A68BFF, #4A5BE8); }
.erp-page { position: absolute; left: 4.3em; right: 1.1em; top: 2.3em; bottom: 0; }
.erp-head { display: flex; align-items: center; gap: .6em; padding: .55em 1em; background: var(--e-card); border: 1px solid var(--e-ligne); border-radius: .9em; }
.erp-hico { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: .5em; background: #fff; border: 1px solid var(--e-ligne); }
.erp-crumb, .erp-sep { color: var(--e-tx3); }
.erp-title { font-size: 1.55em; font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.erp-state { padding: .25em .65em; border-radius: .4em; background: var(--e-state); color: #fff; font-size: .85em; font-weight: 600; }
.erp-hact { margin-left: auto; display: flex; align-items: center; gap: .8em; color: var(--e-tx); }
.erp-sel { padding: .45em .9em; border-radius: .6em; background: var(--e-btn); font-size: .92em; }
.erp-sel i { font-style: normal; font-size: .8em; margin-left: .4em; }
.erp-dots { padding: .25em .8em; border-radius: .6em; background: var(--e-btn); letter-spacing: .1em; }
.erp-col { width: 68%; margin: .65em auto 0; display: grid; gap: .6em; }
.erp-card { padding: .8em 1em; background: var(--e-card); border: 1px solid var(--e-ligne); border-radius: .9em; display: grid; gap: .6em; }
.erp-f label { display: block; margin-bottom: .35em; font-size: .88em; font-weight: 500; color: var(--e-tx3); }
.erp-f p { margin: 0; padding: .45em .8em; background: var(--e-champ); border: 1px solid var(--e-ligne); border-radius: .5em; font-weight: 500; }
.erp-three { grid-template-columns: 1.3fr 1fr 1fr; gap: .8em; }
.erp-two { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; }
.erp-ah { display: flex; justify-content: space-between; align-items: center; }
.erp-ah b { font-weight: 600; }
.erp-fill { display: inline-flex; align-items: center; gap: .35em; padding: .3em .8em; border-radius: 99px; background: color-mix(in srgb, var(--e-ac) 12%, transparent); border: 1px solid color-mix(in srgb, var(--e-ac) 35%, transparent); color: var(--e-ac); font-size: .9em; font-weight: 600; }
.erp-tab { width: 100%; border-collapse: collapse; background: var(--e-champ); border-radius: .5em; }
.erp-tab td { padding: .38em .6em; white-space: nowrap; border-top: 1px solid var(--e-ligne); }
.erp-tab td + td { text-align: right; width: 17%; font-variant-numeric: tabular-nums; }
.erp-tab td:first-child { text-align: left; width: auto; }
.erp-tab .th td { border-top: 0; color: var(--e-tx3); font-size: .9em; }
.erp-af { display: flex; justify-content: space-between; align-items: center; }
.erp-add { padding: .4em .8em; border-radius: .5em; background: var(--e-btn); font-size: .92em; }
.erp-sum { color: var(--e-tx3); } .erp-sum b { margin-left: .5em; color: var(--e-tx); font-size: 1.15em; }
.erp-save { position: absolute; left: 22%; right: 22%; bottom: .8em; padding: .5em; background: color-mix(in srgb, var(--e-card) 85%, transparent); border-radius: .9em; }
.erp-save span { display: block; text-align: center; padding: .7em; border-radius: .6em; background: var(--e-ac); color: #fff; font-weight: 600; }
/* téléphone posé devant le portable */
.phone { position: absolute; right: 22%; bottom: 0; width: 284px; zoom: .6; }
.duo { min-height: 740px; }

/* ===== écran de téléphone = la vraie application, thème clair (couleurs de l'application) ===== */
.tel { --a-bg: #F5F1E8; --a-surf: #FFFDF8; --a-bd: #E3DBCB; --a-tx: #1D1B18; --a-tx2: #4A453D; --a-tx3: #6A6255; --a-user: #26231F; --a-userfg: #F5F1E8;
  --a-btn: #EEE8DB; --a-pillbar: #E9E3D6; --a-ac: #23448F; --a-tint: rgba(35, 68, 143, .1); --a-onac: #fff; --a-ph: #8E8678;
  position: relative; width: 100%; max-width: 340px; font-family: var(--sans); color: var(--a-tx); }
.tel-chap { width: min(100%, 320px); }
.tel-scr { position: relative; display: flex; flex-direction: column; min-height: 560px; background: var(--a-bg); border: 6px solid #1D1B18; border-radius: 40px; overflow: hidden;
  font-size: 13px; line-height: 1.4; padding-bottom: 20px;
  box-shadow: 0 0 0 1px #4A4339, 0 36px 36px -18px rgba(40, 26, 12, .5), 0 10px 14px -8px rgba(40, 26, 12, .3); }
.tel-isle { position: absolute; top: 8px; left: 50%; width: 70px; height: 20px; margin-left: -35px; border-radius: 12px; background: #1D1B18; z-index: 2; }
.tel-status { display: flex; justify-content: space-between; align-items: center; height: 38px; padding: 8px 22px 0; font: 600 12px/1 var(--sans); }
.tel-sic { display: inline-flex; gap: 5px; align-items: center; }
.tel-sic svg { height: 10px; width: auto; }
.tel-top { display: flex; align-items: center; gap: 8px; padding: 6px 10px 4px; }
.tel-pill { display: inline-flex; align-items: center; justify-content: space-between; flex: 1 1 auto; min-width: 0; padding: 0 9px; height: 34px; border-radius: 14px; background: var(--a-pillbar); color: var(--a-tx3); }
.tic { width: 17px; height: 17px; flex: none; }
.tic.on { color: var(--a-ac); }
.tel-logo { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--a-pillbar); }
.bot-m { display: block; width: 22px; height: 13px; background: linear-gradient(100deg, #8C6BFF, #2F3FD6); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.tel-more { flex: none; width: 22px; color: var(--a-tx3); display: grid; place-items: center; }
.tel-body { flex: 1; display: flex; flex-direction: column; gap: 9px; padding: 12px 10px 8px; }
.tel-me { align-self: flex-end; max-width: 88%; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.tel-bub { margin: 0; padding: 8px 12px; background: var(--a-user); color: var(--a-userfg); border-radius: 17px 17px 5px 17px; font-size: 13px; line-height: 1.4; }
.tic-mic { width: 13px; height: 13px; margin: 0 5px 0 0; vertical-align: -2px; opacity: .85; }
.tel-photo { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.tel-photo svg { width: 64px; height: 64px; border-radius: 12px; border: 1px solid var(--a-bd); display: block; }
.tel-photo b { font: 500 10.5px/1.2 var(--sans); color: var(--a-tx3); }
.tel-bot { margin: 2px 2px 0; font-size: 13.5px; line-height: 1.5; color: var(--a-tx); }
.tc { border: 1px solid var(--a-bd); border-radius: 14px; background: var(--a-surf); box-shadow: 0 10px 26px -16px rgba(60, 45, 20, .4); overflow: hidden; }
.tc-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 0; }
.tc-k { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--a-tx3); }
.tc-pill { padding: 2px 8px; border-radius: 999px; background: var(--a-tint); color: var(--a-ac); font-size: 11px; font-weight: 600; white-space: nowrap; }
.tc-b { padding: 4px 12px 10px; }
.tc-t { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.tc-s { margin: 1px 0 0; font-size: 11.5px; line-height: 1.35; color: var(--a-tx3); }
.tc-tot { margin: 8px 0 0; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tc-tot span { font-size: 12px; color: var(--a-tx3); }
.tc-tot strong { font-size: 19px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.tc-l { list-style: none; margin: 0; padding: 9px 12px 10px; border-top: 1px solid var(--a-bd); display: grid; gap: 5px; font-size: 12px; }
.tc-l li { display: flex; justify-content: space-between; gap: 10px; }
.tc-l li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tc-a { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 9px 12px 11px; border-top: 1px solid var(--a-bd); }
.tc-go, .tc-bt { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 10px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tc-go { background: var(--a-ac); color: var(--a-onac); }
.tc-bt { background: var(--a-btn); color: var(--a-tx); }
.tc-link { margin: 0 auto; font-size: 12.5px; font-weight: 500; color: var(--a-tx3); }
.tel-miss .tel-h { margin: 4px 4px 2px; font-size: 15px; font-weight: 600; }
.tc-m { list-style: none; margin: 0; padding: 2px 0; }
.tc-m li { display: grid; gap: 2px; padding: 10px 12px; }
.tc-m li + li { border-top: 1px solid var(--a-bd); }
.tc-m b { font-size: 13px; font-weight: 600; }
.tc-m span { font-size: 11.5px; color: var(--a-tx3); }
.tc-m em { font-style: normal; font: 500 11px/1.4 var(--mono); color: var(--a-ac); }
.tel-fine { margin: 2px 4px 0; font-size: 11.5px; color: var(--a-tx3); }
.tel-input { margin: 0 10px; padding: 11px 12px 8px; border: 1px solid var(--a-bd); border-radius: 22px; background: var(--a-surf); box-shadow: 0 8px 22px -14px rgba(60, 45, 20, .45); }
.tel-ph { margin: 0 0 10px; font-size: 13.5px; color: var(--a-ph); }
.tel-tools { display: flex; align-items: center; justify-content: space-between; color: var(--a-tx3); }
.tel-t { display: inline-flex; align-items: center; gap: 13px; }
.tel-t .tic { width: 19px; height: 19px; }
.tel-send { display: grid; place-items: center; width: 32px; height: 32px; margin-left: -3px; border-radius: 50%; background: var(--a-pillbar); }
.tel-send .tic { width: 16px; height: 16px; }
.tel-home { position: absolute; bottom: 7px; left: 50%; width: 88px; height: 4px; margin-left: -44px; border-radius: 4px; background: var(--a-tx); opacity: .75; }
/* thème sombre du site : l'application et l'ERP s'affichent dans leur mode sombre */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tel { --a-bg: #151516; --a-surf: #1D1D1F; --a-bd: #313134; --a-tx: #EDEDEF; --a-tx2: #C9C9CD; --a-tx3: #9E9EA4; --a-user: #343438; --a-userfg: #EDEDEF; --a-btn: #28282B; --a-pillbar: #1F1F22; --a-ac: #9DB8F2; --a-tint: rgba(157, 184, 242, .14); --a-onac: #14224A; --a-ph: #8A8A90; } :root:not([data-theme="light"]) .erp { --e-bg: #17120E; --e-card: #241C16; --e-champ: #2C231B; --e-ligne: #3A3027; --e-tx: #F1E8DB; --e-tx3: #AD9F8C; --e-rail: #3F6AA5; --e-ac: #3F6AA5; --e-btn: #30261D; --e-state: #C2461C; } :root:not([data-theme="light"]) .tc-go { color: var(--a-onac); } }
:root[data-theme="dark"] .tel { --a-bg: #151516; --a-surf: #1D1D1F; --a-bd: #313134; --a-tx: #EDEDEF; --a-tx2: #C9C9CD; --a-tx3: #9E9EA4; --a-user: #343438; --a-userfg: #EDEDEF; --a-btn: #28282B; --a-pillbar: #1F1F22; --a-ac: #9DB8F2; --a-tint: rgba(157, 184, 242, .14); --a-onac: #14224A; --a-ph: #8A8A90; }
:root[data-theme="dark"] .erp { --e-bg: #17120E; --e-card: #241C16; --e-champ: #2C231B; --e-ligne: #3A3027; --e-tx: #F1E8DB; --e-tx3: #AD9F8C; --e-rail: #3F6AA5; --e-ac: #3F6AA5; --e-btn: #30261D; --e-state: #C2461C; }
:root[data-theme="dark"] .tc-go { color: var(--a-onac); }
.tel-cap { width: max-content; max-width: 100%; margin: 10px auto 0; padding: 4px 12px 4px 5px; text-align: center; font-size: 12px; color: var(--ink-2); background: var(--card-a); border: 1px solid var(--line-2); border-radius: 999px; }
.tel-cap .tag { margin-right: 4px; }
.tel-duo .tel-cap { margin-top: 8px; }
.tel-duo .tel-scr { min-height: 0; aspect-ratio: 9 / 19.5; }
.tel-duo .tel-body { min-height: 0; overflow: hidden; justify-content: flex-end; }
.tel-duo .tel-body > * { flex-shrink: 0; }

.ecrans { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); align-items: start; }
.ecran-col { display: grid; gap: 16px; justify-items: start; align-content: start; }
.ecran-col > .ecran { margin-bottom: 0; }
.ecran-col > p { margin: 0; }
.ecran-col > p:not(.ecran):not(.support-badge):not(.dl) { color: var(--ink-2); font-size: 16px; max-width: 32em; }
.ecran-col .dl { display: grid; gap: 8px; justify-items: start; line-height: 1.3; }
.ecran-col .dl small { font-size: 13px; color: var(--stone); }
.btn-dl { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 12px; background: var(--violet); color: #fff; font: 600 15px/1 var(--sans); text-decoration: none; }
.btn-dl:hover { background: color-mix(in srgb, var(--violet) 88%, #000); }
.btn-dl:focus-visible { outline: 3px solid var(--violet-2); outline-offset: 3px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-dl { background: #6E55F0; } }
:root[data-theme="dark"] .btn-dl { background: #6E55F0; }
.ecran-col > .ecran-soon { font-size: 15px; color: var(--stone); }
.support-badge img { width: 135px; height: 52px; }
.ecrans-note { margin-top: 36px; font-size: 14px; color: var(--stone); }
@media (max-width: 899px) { .ecrans { grid-template-columns: 1fr; } }
@media (max-width: 699px) {
  .duo { padding-bottom: 0; }
  .lap { width: 100%; margin: 0; }
  .lap-screen { font-size: 7.4px; }
  .erp-col { width: 74%; }
  .erp-tabs { gap: 1.4em; }
  .lap-lid { padding: 8px 8px 9px; }
  .lap-base { width: 106%; margin-left: -3%; }
  .duo { min-height: 0; }
  .phone { position: relative; right: auto; bottom: auto; display: block; margin: -18px auto 0; width: min(100%, 300px); zoom: 1; }
}
