/* Le site public : la présentation de l'appli (maquette « Encre »), les plans des incursions, la connexion. */

/* En-tête */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; height: 68px; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  justify-self: start;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo:hover { color: var(--ink); }
.logo svg { width: 26px; height: 26px; color: var(--acc); }
.nav { display: flex; gap: 2px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--mute);
  text-decoration: none;
  font-weight: 600;
  font-size: 15.5px;
  transition: color .2s, background-color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--wash) 70%, transparent); }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.top-dl svg.i { width: 18px; height: 18px; }

/* Héros */
.hero { position: relative; padding: 84px 0 40px; text-align: center; overflow-x: clip; }
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 280px;
  width: 1200px;
  height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}
.hero-text { position: relative; display: grid; justify-items: center; }
.hero-text > * { animation: rise .9s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; }
.hero-text > :nth-child(3) { animation-delay: .16s; }
.hero-text > :nth-child(4) { animation-delay: .24s; }
.hero-text > :nth-child(5) { animation-delay: .3s; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 80%, transparent);
  font-size: 14px;
  font-weight: 600;
  color: var(--mute);
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--gain); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.h1 {
  margin: 0;
  max-width: 13em;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 5.6vw + 6px, 86px);
  line-height: 1.02;
  letter-spacing: .3px;
  text-wrap: balance;
}
.h1 em { font-style: normal; color: var(--acc); }
.lead { margin: 26px auto 36px; max-width: 36em; font-size: 20.5px; color: var(--mute); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.meta { margin: 20px 0 0; font-size: 14.5px; color: var(--mute); font-feature-settings: "tnum"; }

.stage { position: relative; max-width: 1000px; margin: 72px auto 0; }
@keyframes tilt { from { transform: perspective(1600px) rotateX(26deg) scale(.88); opacity: .55; } to { transform: none; opacity: 1; } }
@supports (animation-timeline: view()) {
  .tilt { animation: tilt linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; transform-origin: 50% 100%; }
}
.device { position: relative; padding: 10px; border-radius: 34px; background: var(--bezel); box-shadow: 0 0 0 1px rgba(255, 255, 255, .07) inset, var(--shadow-lg); }
.device img { display: block; width: 100%; height: auto; aspect-ratio: 20 / 9; object-fit: cover; border-radius: 25px; }
.reading-icon {
  position: absolute;
  left: calc(10px + 4%);
  top: calc(10px + 4%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bubble-bg);
  border: 1.5px solid var(--acc);
  color: var(--acc);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
}
.reading-icon.is-pulse { animation: ring 1.2s ease-out infinite; }
@keyframes ring { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--acc) 60%, transparent); } to { box-shadow: 0 0 0 18px transparent; } }
.hero-bubble { position: absolute; left: calc(10px + 4%); top: calc(10px + 4% + 48px); z-index: 3; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .45)); }
.caption { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 30px; font-size: 15px; color: var(--mute); }
.caption span { display: inline-flex; align-items: center; gap: 8px; }
.caption svg.i { width: 18px; height: 18px; color: var(--acc); }

/* Sections */
.sec { padding-top: 128px; }
.head { display: grid; justify-items: center; margin-bottom: 48px; text-align: center; }
.kicker { margin: 0 0 14px; font-size: 12.5px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; color: var(--acc); }
.h2 {
  margin: 0;
  max-width: 18em;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 2.6vw + 10px, 50px);
  line-height: 1.1;
  text-wrap: balance;
}
.sub { margin: 16px 0 0; max-width: 36em; font-size: 19px; color: var(--mute); }

/* Mosaïque des fonctions */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative;
  padding: 26px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  transition: transform .45s var(--ease), border-color .3s;
}
.tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); }
.tile h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.2; }
.tile p { margin: 0; font-size: 16px; color: var(--mute); }
.tile .ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 14px; background: var(--wash); color: var(--acc); }
.s2 { grid-column: span 2; }
.s3 { grid-column: span 3; }
.s6 { grid-column: 1 / -1; }
.tile.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; padding: 28px; }
.tile.demo:hover { transform: none; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 20px; }
.tab {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--mute);
  font: 600 15px var(--sans);
  cursor: pointer;
  transition: background-color .3s, border-color .3s, color .3s;
}
.tab:hover { color: var(--ink); border-color: var(--outline); }
.tab[aria-selected="true"] { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.demo-text { animation: rise .5s var(--ease) both; }
.demo-text h4 { margin: 0 0 8px; font-family: var(--serif); font-size: 19px; color: var(--acc); }
.demo-text p { font-size: 16.5px; }
.demo-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 450px;
  padding: 24px 12px;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
}
.demo-stage::before {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -2;
  background: url("/assets/jeu-siphon-960-bbd3559d.webp") 22% 50% / cover;
  filter: blur(5px) saturate(.8);
}
.demo-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 8, 6, .5); }
/* Centré par ses marges : la propriété translate sert à son animation d'entrée. */
.demo-stage .toast {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 16px;
  width: fit-content;
  margin: 0 auto;
  padding: 10px 16px;
  border-radius: 18px;
  background: var(--acc);
  color: var(--on-acc);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: rise .35s var(--ease) both;
}
.rates { display: grid; gap: 12px; margin-top: 20px; }
.rates div { display: flex; align-items: center; gap: 8px; }
.rates b { width: 58px; font-family: var(--serif); font-size: 15px; }
.rates span { display: grid; place-items: center; min-width: 52px; height: 38px; padding: 0 10px; border-radius: 9px; background: var(--wash); font-weight: 600; font-feature-settings: "tnum"; }
.rates span.add { background: transparent; border: 1.5px dashed var(--line); color: var(--acc); font-weight: 400; font-size: 20px; }
.mini { display: block; width: 100%; height: 110px; margin-top: 20px; }
.mini .area { fill: var(--acc); fill-opacity: .16; }
.mini .line { fill: none; stroke: var(--acc); stroke-width: 2.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.bars { display: grid; gap: 10px; margin-top: 20px; }
.bars > div { display: grid; grid-template-columns: 76px 1fr; align-items: end; gap: 10px; font-size: 14px; color: var(--mute); }
.bars .me { color: var(--acc); font-weight: 600; }
.bars .b { display: flex; align-items: flex-end; gap: 3px; height: 28px; border-bottom: 1px solid var(--line); }
.bars .b i { flex: 1; border-radius: 2px 2px 0 0; background: var(--acc); }
.links { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 12px; }
.swatch { display: flex; gap: 10px; margin-top: 20px; }
.swatch span { flex: 1; display: grid; place-items: center; height: 64px; border-radius: 14px; border: 1px solid var(--line); font-family: var(--serif); font-weight: 700; font-size: 14px; }
.swatch .d { background: #171410; color: #E2A140; }
.swatch .l { background: #F3ECDF; color: #8F5712; }

/* Les téléphones */
.phones { display: flex; justify-content: center; align-items: flex-start; gap: 36px; }
.phone { margin: 0; transition: transform .6s var(--ease); }
.phone:nth-child(2) { transform: translateY(-28px); }
.phone:hover { transform: translateY(-36px); }
.frame { width: 360px; padding: 10px; border-radius: 48px; background: var(--bezel); box-shadow: 0 0 0 1px rgba(255, 255, 255, .07) inset, var(--shadow-lg); }
.frame > .scr { border-radius: 38px; }

/* Installer */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 31px; height: 1.5px; background: linear-gradient(90deg, var(--acc), var(--line)); }
.step { position: relative; display: grid; justify-items: center; padding: 0 20px; text-align: center; }
.step b { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--acc); background: var(--bg); font-family: var(--serif); font-size: 26px; color: var(--acc); }
.step h3 { margin: 20px 0 6px; font-size: 20px; font-weight: 600; }
.step p { margin: 0; max-width: 20em; color: var(--mute); }
.dl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 56px; padding: 26px 30px; border-radius: 26px; border: 1px solid var(--line); background: var(--card); }
.dl-id { display: flex; align-items: center; gap: 16px; }
.dl-id .app { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; border: 1px solid var(--line); background: #1A1712; }
.dl-id .app svg { width: 34px; height: 34px; color: #E2A140; }
.dl-id strong { display: block; font-family: var(--serif); font-size: 20px; }
.dl-id span { font-size: 14.5px; color: var(--mute); }
.faq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; margin-top: 16px; }
.faq details { border-radius: 20px; border: 1px solid var(--line); background: var(--card); overflow: hidden; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; padding: 14px 20px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg.i { color: var(--acc); transition: transform .35s var(--ease); }
.faq details[open] summary svg.i { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 20px; font-size: 16px; color: var(--mute); }
.faq details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { height: auto; }

/* Me contacter */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); border-radius: 32px; border: 1px solid var(--line); background: var(--card); overflow: hidden; }
.contact-side { padding: 44px; background: linear-gradient(160deg, color-mix(in srgb, var(--wash) 70%, transparent), transparent 70%); }
.contact-side .h2 { font-size: clamp(28px, 2.2vw + 8px, 42px); }
.contact-side p { margin: 16px 0 0; font-size: 18px; color: var(--mute); }
.contact-side .kicker { margin: 0 0 14px; font-size: 12.5px; color: var(--acc); }
.contact-side ul { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.contact-side li { display: flex; gap: 12px; font-size: 16px; }
.contact-side li svg.i { margin-top: 2px; color: var(--acc); }
.form { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 44px; }
.field { display: grid; gap: 7px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14.5px; font-weight: 600; }
.field label small { font-size: 14px; font-weight: 400; color: var(--mute); }
.field input, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--mute); opacity: .8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 22%, transparent); }
.fields { display: contents; }
.fields[hidden] { display: none; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.count { font-size: 13.5px; color: var(--mute); font-feature-settings: "tnum"; }
.form-error { grid-column: 1 / -1; margin: 0; color: var(--loss); font-weight: 600; }
.form-error:empty { display: none; }
.form .flash { grid-column: 1 / -1; margin: 0; }
.sent { grid-column: 1 / -1; display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 340px; text-align: center; animation: rise .5s var(--ease) both; }
.sent[hidden] { display: none; }
.sent .ok { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: color-mix(in srgb, var(--gain) 16%, transparent); color: var(--gain); }
.sent .ok svg.i { width: 32px; height: 32px; stroke-width: 2.4; }
.sent h3 { margin: 12px 0 0; font-family: var(--serif); font-size: 26px; }
.sent p { margin: 0 0 10px; color: var(--mute); }

/* Pied de page */
.foot { margin-top: 128px; padding: 44px 0 52px; border-top: 1px solid var(--line); background: var(--bg2); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.foot p { margin: 0; font-size: 14px; color: var(--mute); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mute); text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: var(--ink); }
.foot .dot { color: var(--mute); opacity: .4; text-decoration: none; }

/* La bulle de l'appli, recréée */
.bubble {
  width: 252px;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid var(--outline);
  background: var(--bubble-bg);
  color: var(--ink);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45);
  font-family: var(--sans);
  line-height: 1.3;
  text-align: left;
  transform-origin: 30% 0;
}
.bubble.is-in { animation: bubble-pop .6s var(--ease) both; }
.bubble.is-in .brow { animation: bubble-row .5s var(--ease) both; animation-delay: calc(.22s + var(--i) * .07s); }
@keyframes bubble-pop { from { opacity: 0; scale: .6; translate: 0 -10px; } to { opacity: 1; scale: 1; translate: none; } }
@keyframes bubble-row { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: none; } }
.bubble-head { padding: 12px 14px 10px; }
.bubble-title { font-size: 17.5px; font-weight: 600; line-height: 1.25; }
.bubble-meta { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 13.5px; color: var(--mute); white-space: nowrap; }
.bubble-chip { padding: 2px 9px; border-radius: 9px; background: var(--wash); color: var(--ink); font-weight: 600; }
.bubble-chip.outlined { background: none; border: 1.5px solid var(--line); }
.bubble-progress { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; font-size: 13.5px; color: var(--mute); font-feature-settings: "tnum"; }
.bubble-rate { display: inline-flex; align-items: center; gap: 1px; padding: 3px 5px 3px 10px; border-radius: 10px; background: var(--wash); color: var(--acc); font-size: 18px; font-weight: 600; }
.bubble-rate svg { width: 18px; height: 18px; }
.bubble-cols, .brow { display: grid; grid-template-columns: 38px 1fr 1fr; column-gap: 8px; align-items: center; padding: 0 14px; text-align: right; }
.bubble-cols { padding-top: 6px; padding-bottom: 6px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mute); }
.brow { width: 100%; min-height: 44px; margin: 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: inherit; font: inherit; font-size: 16px; font-feature-settings: "tnum"; transition: background-color .3s; }
button.brow { cursor: pointer; }
button.brow:hover, .brow.hi { background: var(--wash); }
.brow.sub { border-top: 0; }
.brow .p { text-align: left; font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--acc); }
.brow .a, .brow .b { display: flex; align-items: center; justify-content: flex-end; gap: 5px; font-weight: 500; }
.brow .span { grid-column: 2 / 4; color: var(--mute); }
.brow .gain { color: var(--gain); font-weight: 600; }
.brow .mute { color: var(--mute); font-weight: 400; }
.brow svg { width: 17px; height: 17px; color: var(--acc); }
.brow svg.i { stroke-width: 2.4; }

/* Les écrans de l'appli, recréés */
.scr { position: relative; width: 340px; height: 720px; overflow: hidden; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.35; text-align: left; }
.scr-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: 54px; border-bottom: 1px solid var(--line); }
.scr-tabs span { position: relative; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 13.5px; letter-spacing: .6px; color: var(--mute); }
.scr-tabs .on { color: var(--acc); }
.scr-tabs .on::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--acc); }
.scr-body { padding: 16px; }
.scr-card { border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.scr-label { display: flex; align-items: center; gap: 12px; margin: 22px 0 10px; font-size: 11.5px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--mute); }
.scr-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.scr-serif { font-family: var(--serif); font-weight: 700; }
.scr-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.scr-mute { color: var(--mute); }
.scr-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.scr-slots span { display: grid; place-items: center; height: 44px; border-radius: 9px; background: var(--bg); font-weight: 600; font-feature-settings: "tnum"; }
.scr-slots .rate { background: var(--wash); }
.scr-slots .add { color: var(--acc); font-size: 22px; font-weight: 400; }
.scr-switch { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.scr-switch + .scr-switch { border-top: 1px solid var(--line); }
.scr-switch div { flex: 1; }
.scr-switch small { display: block; font-size: 13.5px; color: var(--mute); }
.scr-toggle { position: relative; flex: none; width: 46px; height: 28px; border-radius: 14px; background: var(--acc); }
.scr-toggle::after { content: ""; position: absolute; right: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--on-acc); }
.scr-worlds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.scr-worlds span { display: grid; place-items: center; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); font-family: var(--serif); font-weight: 700; font-size: 15px; color: var(--mute); }
.scr-worlds .on { background: var(--wash); border-color: var(--acc); color: var(--ink); }
.scr-figure { font-size: 24px; font-weight: 600; font-feature-settings: "tnum"; }
.scr-small { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; color: var(--mute); }
.scr-chart { display: block; width: 308px; margin-top: 8px; }
.scr-chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.scr-chart .area { fill: var(--acc); fill-opacity: .14; }
.scr-chart .line { fill: none; stroke: var(--acc); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.scr-chart .dot { fill: var(--acc); }
.scr-dates { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; color: var(--mute); }
.scr-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12.5px; color: var(--mute); }
.scr-legend span { display: inline-flex; align-items: center; gap: 5px; }
.scr-legend i { display: inline-block; width: 5px; height: 11px; border-radius: 1px; }
.day { display: block; flex: 1; border-radius: 1px 1px 0 0; }
.day.fight, .scr-legend .fight { background: var(--acc); }
.day.farm, .scr-legend .farm { height: 7px; border: 1.2px solid var(--acc); border-bottom: 0; }
.day.none, .scr-legend .none { height: 12px; background: repeating-linear-gradient(135deg, var(--mute) 0 1.2px, transparent 1.2px 4px); opacity: .55; }
.scr-legend .none { width: 9px; }
.scr-legend .farm { height: 11px; border-bottom: 1.2px solid var(--acc); }
.member { margin-top: 4px; padding: 7px 10px 8px; border-radius: 12px; border: 1.5px solid transparent; }
.member.me { background: var(--wash); border-color: var(--acc); }
.member .me-tag { margin-left: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; color: var(--acc); }
.member .zero { color: var(--mute); font-weight: 400; }
.member-days { display: flex; align-items: flex-end; gap: 2px; height: 22px; margin-top: 4px; border-bottom: 1px solid var(--line); }
.scr-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 16px 18px; background: var(--bg); border-top: 1px solid var(--line); }
.scr-open { display: flex; align-items: center; justify-content: flex-end; gap: 6px; height: 40px; font-family: var(--serif); font-weight: 700; font-size: 13.5px; letter-spacing: .8px; color: var(--acc); }
.scr-open svg.i { width: 16px; height: 16px; stroke-width: 2.2; }
.scr-start { display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border-radius: 12px; background: var(--acc); color: var(--on-acc); font-family: var(--serif); font-weight: 700; font-size: 14.5px; letter-spacing: 1.2px; }
.scr-start svg { width: 18px; height: 18px; }

/*
 * Le guide d'incursion, dessiné comme dans l'appli. Le plan est une légende, pas une surface du thème : ses couleurs,
 * ses traits et les contours des changements restent les mêmes en clair et en sombre.
 */
.plan-card {
  display: inline-grid;
  justify-items: center;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bubble-bg) 95%, transparent);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: rise .4s var(--ease) both;
}
.plan-card-h { display: flex; justify-content: space-between; gap: 18px; width: 100%; padding: 4px 10px; font-size: 12.5px; color: var(--mute); font-feature-settings: "tnum"; }
.town { --cell: 15px; display: grid; grid-template-columns: repeat(var(--cols), var(--cell)); grid-template-rows: repeat(var(--rows), var(--cell)); margin: 4px; }
.town > * { min-width: 0; min-height: 0; }
.town-free { background: var(--card); box-shadow: inset 0 0 0 .5px var(--outline); }
.town-b {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--color);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .7);
  font: 600 calc(var(--cell) * .75 * var(--s, 1)) / 1 var(--sans);
  white-space: nowrap;
}
.town-add, .town-del { z-index: 1; pointer-events: none; border: calc(var(--cell) * .2) solid #2E6B30; }
.town-del { border-color: #B3261E; border-style: dashed; }
.plan-legend { display: flex; justify-content: center; gap: 12px; margin: 0; padding: 0 10px 6px; font-size: 12.5px; }
.plan-legend .add { color: var(--gain); }
.plan-legend .del { color: var(--loss); }

.guide { border-radius: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bubble-bg) 95%, transparent); box-shadow: var(--shadow-lg); overflow: hidden; text-align: left; }
.guide-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--mute); font-feature-settings: "tnum"; }
.guide-h b { font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; }
.guide-list { padding-bottom: 4px; }
.guide-day { display: flex; justify-content: space-between; padding: 9px 12px 3px; font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--acc); }
.guide-day span + span { letter-spacing: 0; color: var(--mute); font-weight: 400; }
.guide-step { display: flex; align-items: center; gap: 7px; width: 100%; min-height: 30px; margin: 0; padding: 3px 10px; border: 0; background: transparent; color: var(--ink); font: 15px / 1.3 var(--sans); text-align: left; transition: background-color .25s, color .25s; }
button.guide-step { min-height: 34px; cursor: pointer; }
button.guide-step:hover { background: color-mix(in srgb, var(--wash) 55%, transparent); }
.guide-step .mark { display: grid; place-items: center; width: 16px; height: 16px; flex: none; }
.guide-step .mark svg { display: none; width: 16px; height: 16px; stroke-width: 2.4; }
.guide-step.done .mark .ok { display: block; color: var(--gain); }
.guide-step.next .mark .go { display: block; color: var(--acc); }
.guide-step .sw { width: 10px; height: 10px; flex: none; }
.guide-step .sw[style], .town-legend .sw { border-radius: 2px; background: var(--color); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .7); }
.guide-step.done { color: var(--mute); text-decoration: line-through; }
.guide-step.done .sw { opacity: .45; }
.guide-step.next { background: var(--wash); font-weight: 600; }

/* L'aperçu de l'accueil : l'icône, le bouton IQ ouvert, la liste et le plan, sur le jeu. */
.try { display: flex; align-items: center; gap: 8px; margin: 14px 0 0 !important; color: var(--acc) !important; font-weight: 600; }
.iq-stage { display: flex; align-items: flex-start; justify-content: center; gap: 10px; }
.iq-side { display: grid; gap: 10px; }
.iq-round { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--acc); background: var(--bubble-bg); color: var(--acc); font-family: var(--serif); font-weight: 700; font-size: 18px; }
.iq-round.open { border-width: 1px; border-color: var(--outline); background: var(--wash); }
.iq-round.open svg { rotate: 45deg; width: 20px; height: 20px; }
.iq-stage .guide { width: 232px; flex: none; }
.iq-stage .guide-list { max-height: 248px; overflow-y: auto; scrollbar-width: thin; }
.iq-plans { --plan-cell: 11px; }
.iq-plans .town { --cell: var(--plan-cell); }

/* La page du guide */
.page-head { padding-top: 56px; padding-bottom: 8px; }
.page-head .h2 { max-width: none; }
.halfdays { display: flex; gap: 6px; margin: 24px -4px 0; padding: 4px 4px 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.halfdays a { display: grid; justify-items: center; gap: 1px; flex: none; min-width: 74px; padding: 8px 10px; border-radius: 14px; border: 1.5px solid var(--line); color: var(--mute); text-decoration: none; font-size: 13px; scroll-snap-align: center; transition: background-color .25s, border-color .25s, color .25s; }
.halfdays a b { font-family: var(--serif); font-size: 20px; line-height: 1.1; color: var(--ink); }
.halfdays a:hover { border-color: var(--outline); color: var(--ink); }
.halfdays a[aria-current] { border-color: var(--acc); background: var(--wash); color: var(--ink); }
.halfday { padding: 22px 0 8px; scroll-margin-top: 90px; }
.halfday-h { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 22px; }
.halfday-h h2 { margin: 0; font-family: var(--serif); font-size: 28px; }
.halfday-h h2 span { margin-left: 6px; font-family: var(--sans); font-size: 16px; font-weight: 400; color: var(--mute); }
.round { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--ink); transition: border-color .2s, background-color .2s; }
.round:hover { border-color: var(--acc); background: var(--wash); color: var(--ink); }
.round[hidden] { display: grid; visibility: hidden; }
.halfday-body { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 24px; }
.halfday-body .guide { flex: 0 1 340px; animation: rise .4s var(--ease) both; }
.halfday-body .town { --cell: 20px; }
.town-legend { margin-top: 56px; }
.town-legend ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.town-legend li { display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: 15.5px; }
.town-legend .sw { width: 18px; height: 18px; flex: none; border-radius: 4px; }
.town-legend small { margin-left: auto; color: var(--mute); font-feature-settings: "tnum"; }

/* Connexion */
.auth { display: grid; place-items: center; padding: 72px 18px 0; }
.auth-card { width: 100%; max-width: 420px; padding: 36px; border-radius: 28px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); animation: rise .5s var(--ease) both; }
.auth-card h1 { margin: 0 0 6px; font-family: var(--serif); font-size: 28px; }
.auth-card > p { margin: 0 0 24px; color: var(--mute); }
.auth-card form { display: grid; gap: 18px; }
.auth-card .check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; }
.auth-card .check input { width: 20px; height: 20px; accent-color: var(--acc); }
.auth-card .btn { width: 100%; }

@media (max-width: 1060px) {
  .hero-bubble { left: 50%; top: auto; bottom: -330px; translate: -50% 0; }
  .stage { margin-bottom: 340px; }
  .tile.demo { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 880px) {
  .top-in { grid-template-columns: 1fr auto; height: 60px; }
  .nav { display: none; }
  .hero { padding: 44px 0 16px; }
  .pill { margin-bottom: 20px; font-size: 13px; }
  .lead { margin: 18px auto 28px; font-size: 18px; }
  .cta .btn, .cta .ghost { flex: 1 1 100%; }
  .stage { margin-top: 44px; }
  .device { padding: 7px; border-radius: 24px; }
  .device img { border-radius: 18px; }
  .reading-icon { width: 28px; height: 28px; font-size: 13px; }
  .caption { justify-content: flex-start; gap: 10px 18px; }
  .sec { padding-top: 88px; }
  .head { margin-bottom: 32px; }
  .sub { font-size: 17.5px; }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .s2, .s3, .s6 { grid-column: auto; }
  .tile { padding: 22px 18px; }
  .tile.demo { padding: 20px 14px; }
  .demo-stage { min-height: 440px; padding: 20px 8px 60px; }
  .phones { justify-content: flex-start; gap: 16px; margin: 0 -18px; padding: 36px 18px 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .phone { flex: none; scroll-snap-align: center; }
  .phone:nth-child(2) { transform: none; }
  .frame { zoom: .88; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps::before { left: 31px; right: auto; top: 32px; bottom: 32px; width: 1.5px; height: auto; background: linear-gradient(180deg, var(--acc), var(--line)); }
  .step { grid-template-columns: 64px 1fr; justify-items: start; column-gap: 18px; padding: 0; text-align: left; }
  .step b { grid-row: span 2; }
  .step h3 { margin: 6px 0 4px; }
  .dl { padding: 20px 18px; }
  .dl .btn { flex: 1 1 100%; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr); border-radius: 26px; }
  .contact-side { padding: 26px 20px 8px; }
  .form { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .foot { margin-top: 88px; }
  .iq-stage { flex-wrap: wrap; padding: 18px 8px 60px; }
  .iq-stage .guide { flex: 1 1 232px; }
  .halfday-h { gap: 10px; }
  .halfday-h h2 { font-size: 22px; text-align: center; }
  .halfday-body .guide { flex: 1 1 100%; }
  .halfday-body .town { --cell: 15px; }
  .auth { padding-top: 40px; }
  .auth-card { padding: 26px 20px; }
}

@media (max-width: 480px) {
  .logo { font-size: 14px; letter-spacing: 1.6px; }
  .top-dl { width: 44px; min-height: 44px; padding: 0; }
  .top-dl span { display: none; }
}
