/* Grizz — site vitrine. Pensé d'abord pour le téléphone : c'est là qu'on l'ouvre (lien TikTok).
   DA « Tactile Arcade » : aplats, ombres dures sans flou, aucun dégradé, aucun verre flou.
   Couleurs = branding/tokens/grizz-tokens.ts */

:root {
  --night: #0F151C;
  --night2: #18212B;
  --night3: #223040;
  --night-line: #2C3A4A;
  --night-lip: #0A0F14;
  --deep: #070B10;
  --cream: #FFF3E0;
  --cream2: #FFF9F0;
  --cream-inset: #F3DFC2;
  --cream-line: #E6D2B5;
  --bark: #2A1D14;
  --ink: #1B130D;
  --honey: #FFB020;
  --honey-shadow: #C77D00;
  --honey-text: #9A6400;
  --ember: #FF5A36;
  --ember-shadow: #B8341A;
  --ember-text: #B8341A;
  --mint: #4FD18B;
  --mint-shadow: #23915A;
  --mint-text: #1E7A4B;
  --sky: #7CC4FF;
  --text-night2: #A9B6C3;
  --text-night3: #8593A0;
  --text-day2: #6B5647;

  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: 20px;
  --max: 1120px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--deep); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--deep);
  color: var(--cream);
  font: 400 17px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; }
p { margin: 0; }
button { font: inherit; color: inherit; }

/* Grain de la charte : bruit fin, opacité ~3 % (sans mix-blend-mode pour scroll 120 FPS sur iOS) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .03;
  transform: translateZ(0);
  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");
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ typo */

.overline { font: 700 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--honey); }
.day .overline { color: var(--honey-text); }
.h1 { font-size: clamp(40px, 11vw, 92px); line-height: .92; letter-spacing: -.04em; }
.h2 { font-size: clamp(34px, 9.4vw, 62px); line-height: .98; letter-spacing: -.035em; }
.lead { font-size: 17px; line-height: 1.5; color: var(--text-night2); }
.day .lead { color: var(--text-day2); }

/* ------------------------------------------------------------ logo */

.logo {
  display: inline-flex;
  align-items: flex-end;
  font: 800 30px/1 var(--display);
  letter-spacing: -.02em;
  color: var(--honey);
  text-decoration: none;
  /* relief léger : à 3 px, l'ombre se mêlait aux lettres et « grizz » se lisait mal */
  text-shadow: 0 .05em 0 var(--honey-shadow);
}
.logo .dot { color: var(--ember); text-shadow: 0 .05em 0 var(--ember-shadow); }
.logo span { display: inline-block; }
.logo.is-intro span { animation: letter-in .7s var(--spring) both; }
.logo.is-intro span:nth-child(2) { animation-delay: .055s; }
.logo.is-intro span:nth-child(3) { animation-delay: .11s; }
.logo.is-intro span:nth-child(4) { animation-delay: .165s; }
.logo.is-intro span:nth-child(5) { animation-delay: .22s; }
.logo.is-intro span:nth-child(6) { animation-delay: .275s; }
@keyframes letter-in { from { opacity: 0; transform: translateY(24px) scale(.5) rotate(-12deg); } }

/* ------------------------------------------------------------ boutons à lèvre */

.btn {
  --lip: 7px;
  --bg: var(--honey);
  --fg: var(--bark);
  --shadow: var(--honey-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 26px;
  border: 0;
  border-radius: 20px;
  background: var(--bg);
  color: var(--fg);
  font: 800 19px/1 var(--display);
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 var(--lip) 0 var(--shadow);
  transition: transform .08s ease-out, box-shadow .08s ease-out;
  user-select: none;
}
.btn:active { transform: translateY(var(--lip)); box-shadow: 0 0 0 var(--shadow); }
.btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-wide { width: 100%; }
.btn-small { --lip: 5px; min-height: 46px; padding: 0 16px; border-radius: 15px; font-size: 16px; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); box-shadow: 0 calc(var(--lip) + 1px) 0 var(--shadow); }
  .btn:active { transform: translateY(var(--lip)); box-shadow: 0 0 0 var(--shadow); }
}

.card {
  background: var(--night2);
  border-radius: 24px;
  box-shadow: 0 6px 0 var(--night-lip);
  padding: 20px;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.day .card { background: #fff; box-shadow: 0 6px 0 var(--cream-line); }

/* ------------------------------------------------------------ apparition au scroll */

.reveal {
  opacity: 0;
  transform: translateY(16px) translateZ(0);
  transition: opacity .35s ease-out, transform .35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay='1'] { transition-delay: .06s; }

/* ------------------------------------------------------------ ciel */

.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; contain: paint; }
.star { position: absolute; border-radius: 50%; background: var(--cream); animation: twinkle var(--t, 4s) ease-in-out var(--d, 0s) infinite; will-change: opacity; transform: translateZ(0); }
@keyframes twinkle { 50% { opacity: .25; } }
.moon {
  position: absolute;
  top: auto;
  bottom: 30%;
  right: 5%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: inset -9px -4px 0 #E8D8BD;
}
.firs { position: relative; z-index: 3; height: 84px; margin-top: -70px; pointer-events: none; contain: paint; }
.firs svg { position: absolute; bottom: 0; left: 50%; width: 100%; min-width: 1800px; max-width: none; height: 120px; transform: translate3d(-50%, 0, 0); will-change: transform; }
.firs .back { fill: #121A22; }
.firs .front { fill: var(--night2); }

/* ============================================================ EN-TÊTE */

.top { position: absolute; inset: 0 0 auto; z-index: 10; padding-top: var(--safe-t); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.top-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 10px;
  border-radius: 12px;
  background: var(--night3);
  color: var(--text-night2);
  font: 600 14px/1 var(--body);
}
.top-chip svg { width: 15px; height: 15px; color: var(--honey); }

/* ============================================================ HÉROS */

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--deep); padding-top: calc(92px + var(--safe-t)); }
.hero-grid { display: grid; gap: 34px; }
.hero-text { display: grid; justify-items: center; gap: 18px; text-align: center; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 12px;
  background: var(--night3);
  font: 700 13px/1 var(--body);
  color: var(--cream);
}
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--honey); box-shadow: 0 0 0 4px rgba(255, 176, 32, .22); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 7px rgba(255, 176, 32, 0); } }
.hero .h1 em { font-style: normal; color: var(--honey); display: block; }
.hero .lead { max-width: 32ch; }
.cta-block { width: 100%; max-width: 380px; display: grid; gap: 12px; justify-items: center; margin-top: 6px; }
.trust { display: flex; gap: 14px; font: 600 14px/1 var(--body); color: var(--text-night2); }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }

/* le téléphone sort de la forêt : on n'en montre que le haut */
.hero-stage { position: relative; justify-self: center; width: min(310px, 80vw); }
.hero-crop { height: calc(min(310px, 80vw) * 844 / 390 * .6); overflow: hidden; border-radius: 0; }
.hero-crop .phone { --w: min(310px, 80vw); }
.hero-grizz { position: absolute; z-index: 4; left: -26px; bottom: 4px; width: 118px; }
.grizz-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.grizz-btn img { width: 100%; transform-origin: 50% 90%; transition: transform .5s var(--spring); }
.grizz-btn:active img { transform: scale(.94) rotate(-2deg); }
.grizz-btn.is-booped img { animation: boop .5s var(--spring); }
@keyframes boop { 30% { transform: scale(1.08, .92); } }

.bubble {
  position: absolute;
  left: 6px;
  bottom: 96%;
  width: max-content;
  max-width: min(250px, 66vw);
  padding: 11px 14px 12px;
  border-radius: 18px;
  background: var(--cream);
  color: var(--bark);
  font: 600 16px/1.3 var(--body);
  box-shadow: 0 5px 0 var(--ink);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bubble::after {
  content: '';
  position: absolute;
  left: 40px;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: var(--cream);
  transform: rotate(45deg);
  border-radius: 3px;
  box-shadow: 5px 5px 0 var(--ink);
  z-index: -1;
}
.bubble.pop { animation: pop .45s var(--spring); }
@keyframes pop { from { transform: scale(.6) translateY(10px); opacity: 0; } }
.bubble .time {
  flex: none;
  padding: 4px 7px 2px;
  border-radius: 8px;
  background: var(--bark);
  color: var(--honey);
  font: 800 13px/1.2 var(--display);
  font-variant-numeric: tabular-nums;
}

/* ============================================================ SECTIONS */

.section { position: relative; padding: 76px 0; }
.night { background: var(--night2); color: var(--cream); }
.day { background: var(--cream); color: var(--bark); }
.day-2 { background: var(--cream2); }
.head { display: grid; gap: 14px; justify-items: center; text-align: center; margin-bottom: 34px; }
.head .lead { max-width: 34ch; }

/* ------------------------------------------------------------ rails qui glissent au doigt */

.rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  padding: 4px var(--gutter) 22px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: center; flex: none; }
.rail:focus-visible { outline: 3px solid var(--sky); outline-offset: -3px; }
.rail-dots { display: flex; justify-content: center; gap: 8px; margin-top: 2px; }
.rail-dots i {
  position: relative;
  cursor: pointer;
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: var(--night3);
  transition: width .3s var(--spring), background .2s;
}
.rail-dots i::after {
  content: '';
  position: absolute;
  inset: -12px -5px;
}
.rail-dots i.on { width: 26px; background: var(--honey); }
.day .rail-dots i { background: var(--cream-line); }
.day .rail-dots i.on { background: var(--honey); }

.ranks-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 6px;
}
.ranks-dots {
  padding: 4px 0;
}

.swipe-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 13px/1 var(--body);
  color: var(--text-night2);
}
.swipe-hint svg {
  width: 16px;
  height: 16px;
  animation: nudge 1.6s ease-in-out infinite;
}
@keyframes nudge { 50% { transform: translateX(6px); } }

.day .swipe-hint {
  color: var(--text-day2);
  background: #fff;
  padding: 7px 15px 7px 12px;
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--cream-line);
}
.day .swipe-hint svg {
  color: var(--honey-text);
}

/* ------------------------------------------------------------ une nuit avec Grizz */

.slide {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(84vw, 360px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 20px 0;
  border-radius: 30px;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.slide.s-night { background: var(--deep); color: var(--cream); box-shadow: 0 6px 0 #000; }
.slide.s-day { background: var(--cream); color: var(--bark); box-shadow: 0 6px 0 var(--cream-line); }
.slide.s-honey { background: var(--honey); color: var(--bark); box-shadow: 0 6px 0 var(--honey-shadow); }
.slide-time {
  padding: 8px 11px 5px;
  border-radius: 11px;
  font: 800 15px/1 var(--display);
  font-variant-numeric: tabular-nums;
  background: var(--night3);
  color: var(--honey);
}
.s-day .slide-time { background: var(--bark); }
.s-honey .slide-time { background: var(--bark); color: var(--honey); }
.slide-title { margin-top: 14px; font-size: 28px; line-height: 1.02; letter-spacing: -.03em; }
.slide-text { margin-top: 10px; font-size: 15px; line-height: 1.45; opacity: .82; max-width: 30ch; }
.slide-phone { margin: 20px 0 24px; }
.slide-phone .phone { --w: min(214px, 55vw); }
.s-honey .phone { background: var(--ink); box-shadow: 0 .7em 0 var(--honey-shadow), inset 0 0 0 .14em #3A2C22; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 44px; }
.stats div { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 16px 8px; border-radius: 20px; background: var(--night3); box-shadow: 0 5px 0 var(--night-lip); }
.stats b { font: 800 40px/1 var(--display); letter-spacing: -.04em; color: var(--honey); }
.stats span { font: 600 13px/1.3 var(--body); color: var(--text-night2); }

/* ------------------------------------------------------------ missions qui défilent */

.marquee { display: grid; gap: 12px; overflow: hidden; padding: 6px 0 10px; }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: slide-left 44s linear infinite; will-change: transform; }
.marquee-track.reverse { animation-name: slide-right; animation-duration: 38s; }
@keyframes slide-left { to { transform: translateX(-50%); } }
@keyframes slide-right { from { transform: translateX(-50%); } }
.m-pill {
  display: grid;
  gap: 3px;
  min-width: 170px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 0 var(--cream-line);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.m-pill b { font: 800 18px/1.1 var(--display); letter-spacing: -.01em; }
.m-pill span { font-size: 13px; line-height: 1.3; color: var(--text-day2); }
.m-pill.up { background: var(--honey); box-shadow: 0 5px 0 var(--honey-shadow); }
.m-pill.up span { color: var(--bark); }
.legend { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--text-day2); text-align: left; }
.legend i { flex: none; margin-top: 3px; width: 14px; height: 14px; border-radius: 4px; background: var(--honey); box-shadow: 0 2px 0 var(--honey-shadow); }

/* ------------------------------------------------------------ rangs */

.rank {
  width: 132px;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 18px 10px 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 5px 0 var(--cream-line);
  text-align: center;
  transition: transform .18s ease-out, box-shadow .18s ease-out;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.rank b { margin-top: 6px; font: 800 19px/1 var(--display); letter-spacing: -.01em; }
.rank > span:last-child { font: 600 12px/1.2 var(--body); color: var(--text-day2); font-variant-numeric: tabular-nums; }

/* Conteneur de l'insigne 3D officiel de l'app (overflow libre : aucune bordure ne coupe le badge) */
.badge-wrap {
  position: relative;
  width: 76px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.badge-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform .18s ease-out;
}
@media (hover: hover) {
  .rank:hover {
    transform: translateY(-4px);
    box-shadow: 0 9px 0 var(--cream-line);
  }
  .rank.legende:hover {
    box-shadow: 0 9px 0 var(--ink);
  }
  .rank:hover .badge-wrap img {
    transform: translateY(-2px);
  }
}

.rank.legende {
  background: var(--bark);
  color: var(--honey);
  box-shadow: 0 5px 0 var(--ink), inset 0 0 0 1.5px rgba(255, 176, 32, .25);
}
.rank.legende:hover {
  box-shadow: 0 9px 0 var(--ink), inset 0 0 0 1.5px rgba(255, 176, 32, .45);
}
.rank.legende > span:last-child { color: var(--cream-line); }

.facts { display: grid; gap: 12px; margin-top: 30px; }
.fact-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 20px; background: #fff; box-shadow: 0 5px 0 var(--cream-line); }
.fact-row .ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--cream-inset); color: var(--honey-text); }
.fact-row .ico svg { width: 22px; height: 22px; }
.fact-row b { display: block; font: 800 18px/1.2 var(--display); }
.fact-row span { display: block; margin-top: 3px; font-size: 15px; line-height: 1.4; color: var(--text-day2); }

/* ------------------------------------------------------------ potes */

.split { display: grid; gap: 8px; }
.board-wrap { display: grid; gap: 18px; justify-items: center; }
.board { width: 100%; max-width: 440px; display: grid; gap: 8px; padding: 14px; }
.board-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 10px; }
.board-head b { font: 800 20px/1 var(--display); }
.board-head span { font-size: 13px; color: var(--text-day2); }
.row { display: grid; grid-template-columns: 22px 40px 1fr auto; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--cream2); }
.row.me { background: var(--honey); box-shadow: 0 4px 0 var(--honey-shadow); }
.row .pos { font: 800 18px/1 var(--display); text-align: center; }
.row .av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 800 18px/1 var(--display); color: var(--ink); }
.row .who b { display: block; font-weight: 700; }
.row .who span { font-size: 13px; color: var(--text-day2); }
.row.me .who span { color: var(--bark); }
.row .pts { font: 800 18px/1 var(--display); font-variant-numeric: tabular-nums; }
.row .flame { color: var(--ember-text); font-weight: 700; }
.row.late { opacity: .72; }
.code-line { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--text-day2); }
.code-chip { display: inline-flex; padding: 10px 14px; border-radius: 14px; background: var(--bark); color: var(--honey); font: 800 22px/1 var(--display); letter-spacing: .12em; box-shadow: 0 5px 0 var(--ink); }

/* ------------------------------------------------------------ tons */

.tone { width: min(80vw, 330px); display: grid; gap: 14px; text-align: left; border: 0; cursor: pointer; }
.tone-top { display: flex; align-items: center; gap: 12px; }
.tone-top img { width: 64px; }
.tone-top b { display: block; font: 800 22px/1.1 var(--display); }
.tone-top span { font-size: 14px; color: var(--text-night2); }
.tone-top .tag { font-size: 11px; color: var(--bark); }
.tone .say { padding: 14px 16px; border-radius: 16px; background: var(--cream); color: var(--bark); font-weight: 600; min-height: 4.4em; display: flex; align-items: center; }
.tone.hot { box-shadow: 0 6px 0 var(--night-lip), inset 0 0 0 2px var(--honey); }
.tag { display: inline-block; padding: 3px 8px; border-radius: 8px; background: var(--honey); font: 700 11px/1.3 var(--body); letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; margin-left: 6px; }

/* ------------------------------------------------------------ manifeste */

.manifesto { text-align: center; }
.manifesto .wrap { display: grid; gap: 18px; justify-items: center; }
.manifesto .big { font: 800 clamp(36px, 10vw, 60px)/1 var(--display); letter-spacing: -.035em; max-width: 12em; }
.manifesto .big s { text-decoration-thickness: 5px; text-decoration-color: var(--ember); color: var(--text-day2); }
.manifesto .lead { max-width: 32ch; }
.nos { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.nos span { padding: 10px 14px; border-radius: 14px; background: var(--cream-inset); font-weight: 600; font-size: 15px; }

/* ------------------------------------------------------------ FAQ */

#faq .h2 { text-align: center; }
.faq { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq details { border-radius: 18px; background: #fff; box-shadow: 0 5px 0 var(--cream-line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px; cursor: pointer; list-style: none; font: 800 18px/1.25 var(--display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--cream-inset); font: 800 22px/1 var(--display); transition: transform .3s var(--spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 18px; }
.faq .answer { padding: 0 18px 18px; color: var(--text-day2); }

/* ------------------------------------------------------------ dernier appel + pied */

.final { position: relative; isolation: isolate; overflow: hidden; background: var(--deep); padding: 84px 0 0; text-align: center; }
.final-inner { display: grid; gap: 18px; justify-items: center; }
.final .lead { max-width: 30ch; }
.final .sleeper { width: 130px; }
.final .firs { margin-top: 30px; }
.final .firs .front { fill: var(--night); }
.moon-final { top: 30px; bottom: auto; right: 10%; }

.foot { background: var(--night); color: var(--text-night2); padding: 30px 0 calc(110px + var(--safe-b)); font-size: 14px; }
.foot .wrap { display: grid; gap: 16px; justify-items: center; text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.foot a { text-decoration: none; padding: 6px 0; }
.foot a:hover { color: var(--cream); text-decoration: underline; }
.foot .logo { font-size: 26px; }

/* ------------------------------------------------------------ le dock : l'App Store sous le pouce */

.dock {
  position: fixed;
  z-index: 60;
  left: 10px;
  right: 10px;
  bottom: calc(10px + var(--safe-b));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 24px;
  background: var(--night2);
  box-shadow: 0 6px 0 #000, inset 0 0 0 1.5px var(--night-line);
  transform: translate3d(0, calc(100% + 150px), 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), opacity .25s ease, visibility .4s;
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.dock.show {
  transform: translate3d(0, calc((100dvh - 100vh) * 0.28), 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.dock img { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.dock p { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dock p b { font: 800 18px/1 var(--display); }
.dock p span { font-size: 13px; color: var(--text-night2); white-space: nowrap; }
.dock .btn { flex: none; }

/* ============================================================ GRANDS ÉCRANS */

@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .section { padding: 110px 0; }
  .head { margin-bottom: 48px; }
  .rail { justify-content: safe center; }
  .stats { max-width: 720px; margin-left: auto; margin-right: auto; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .dock { left: 50%; right: auto; width: 440px; margin-left: -220px; }
}

@media (min-width: 1000px) {
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: end; }
  .hero-text { justify-items: start; text-align: left; padding-bottom: 130px; }
  .hero .lead { font-size: 20px; }
  .hero .h1 { font-size: 78px; }
  .cta-block { justify-items: start; }
  .hero-stage, .hero-crop .phone { width: 340px; --w: 340px; }
  .hero-crop { height: calc(340px * 844 / 390 * .7); }
  .hero-grizz { width: 160px; left: -110px; bottom: 60px; }
  .moon { width: 64px; height: 64px; top: 120px; bottom: auto; box-shadow: inset -14px -6px 0 #E8D8BD; }
  .rail { overflow: visible; }
  .rail.ranks { overflow-x: auto; }
  .rail-dots, .swipe-hint, .ranks-controls { display: none; }
  .slide { width: 340px; }
  .split { grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
  #potes .head { justify-items: start; text-align: left; }
  .dock { display: none; }
  .foot { padding-bottom: 40px; }
}

@media (min-width: 1200px) {
  .rail.ranks { overflow: visible; justify-content: center; }
}

/* ============================================================ MOINS D'ANIMATIONS */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; padding: 0 var(--gutter); }
  .marquee-track [aria-hidden='true'] { display: none; }
}

/* ============================================================ FAUX ÉCRANS D'IPHONE
   Tout est en em : 1em = 16 points iOS sur un écran de 390 de large. Changer --w
   redimensionne tout l'écran d'un coup. Reproduit les vrais écrans de l'app (grizz-app/src/app). */

.phone {
  --w: 290px;
  position: relative;
  flex: none;
  width: var(--w);
  aspect-ratio: 390 / 844;
  font-size: calc(var(--w) / 390 * 16);
  padding: .75em;
  border-radius: 3.6em;
  background: #05080B;
  box-shadow: 0 .7em 0 #000, inset 0 0 0 .14em #2C3A4A;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  contain: layout style;
}
.day .phone { background: var(--ink); box-shadow: 0 .7em 0 #000, inset 0 0 0 .14em #3A2C22; }
.screen {
  position: relative;
  height: 100%;
  border-radius: 2.85em;
  overflow: hidden;
  background: var(--night);
  color: var(--cream);
  font: 500 1em/1.25 var(--body);
  display: flex;
  flex-direction: column;
}
.screen.cream { background: var(--cream); color: var(--bark); }
.screen.deep { background: var(--deep); }
.island { position: absolute; top: .7em; left: 50%; width: 7.6em; height: 2.2em; border-radius: 2em; background: #000; transform: translateX(-50%); z-index: 5; }
.status { position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: center; height: 3.4em; padding: .3em 1.9em 0 2.3em; font: 700 1em/1 var(--body); flex: none; }
.status .sys { display: flex; gap: .35em; align-items: center; }
.status .bars { display: flex; gap: .12em; align-items: flex-end; height: .75em; }
.status .bars i { width: .2em; background: currentColor; border-radius: .06em; }
.status .bars i:nth-child(1) { height: 35%; }
.status .bars i:nth-child(2) { height: 55%; }
.status .bars i:nth-child(3) { height: 78%; }
.status .bars i:nth-child(4) { height: 100%; }
.status .batt { width: 1.55em; height: .78em; border-radius: .25em; border: .09em solid currentColor; padding: .09em; opacity: .9; }
.status .batt i { display: block; width: 70%; height: 100%; border-radius: .1em; background: currentColor; }
.home-ind { position: absolute; bottom: .5em; left: 50%; width: 8.6em; height: .32em; border-radius: 1em; background: currentColor; opacity: .55; transform: translateX(-50%); z-index: 6; }
.screen .body { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; gap: .75em; padding: .4em 1.25em 0; min-height: 0; }
.screen .dots { position: absolute; inset: 0; z-index: 0; }
.screen .dots i { position: absolute; width: .14em; height: .14em; border-radius: 50%; background: var(--cream); opacity: .6; }

/* éléments de l'app */
.p-over { font: 700 .7em/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.p-t1 { font: 800 1.9em/1.05 var(--display); letter-spacing: -.02em; }
.p-t2 { font: 800 1.5em/1.1 var(--display); letter-spacing: -.02em; }
.p-t3 { font: 700 1.2em/1.15 var(--display); letter-spacing: -.01em; }
.p-cap { font: 500 .8em/1.3 var(--body); color: var(--text-night2); }
.cream .p-cap { color: var(--text-day2); }
.p-card { background: var(--night2); border-radius: 1.4em; box-shadow: 0 .3em 0 var(--night-lip); padding: .95em 1em; }
.cream .p-card { background: #fff; box-shadow: 0 .3em 0 var(--cream-line); }
.p-row { display: flex; align-items: center; gap: .8em; }
.p-ico { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: .9em; background: var(--night3); flex: none; }
.p-ico svg { width: 1.35em; height: 1.35em; }
.p-pill { display: inline-flex; align-items: center; gap: .4em; height: 2.25em; padding: 0 .85em; border-radius: 2em; background: rgba(34, 48, 64, .72); box-shadow: inset 0 0 0 .06em rgba(255, 243, 224, .1); font: 700 .8em/1 var(--body); }
.p-pill svg { width: 1.05em; height: 1.05em; }
.p-chip { display: inline-flex; align-items: center; gap: .35em; padding: .45em .7em; border-radius: .8em; font: 700 .72em/1 var(--body); letter-spacing: .08em; background: var(--night3); }
.p-chip svg { width: 1.1em; height: 1.1em; }
.p-chip.loss { background: var(--ember); color: var(--bark); box-shadow: 0 .25em 0 var(--ember-shadow); }
.p-btn { display: grid; place-items: center; height: 3.4em; border-radius: 1.2em; background: var(--honey); color: var(--bark); box-shadow: 0 .4em 0 var(--honey-shadow); font: 800 1.1em/1 var(--display); text-align: center; padding: 0 1em; }
.p-btn.dark { background: var(--bark); color: var(--cream); box-shadow: 0 .4em 0 var(--ink); }
.p-bar { height: .55em; border-radius: 1em; background: var(--night3); overflow: hidden; }
.p-bar i { display: block; height: 100%; border-radius: 1em; background: var(--honey); }
.p-forest { position: absolute; left: 0; right: 0; bottom: 0; height: 8em; z-index: 1; }
.p-forest svg { width: 100%; height: 100%; }

/* l'insigne officiel du rang sur l'écran d'accueil */
.p-badge {
  width: 4.2em;
  height: 4.5em;
  flex: none;
  display: block;
}

/* la semaine */
.p-week { display: flex; justify-content: space-between; margin-top: .6em; }
.p-day { display: grid; justify-items: center; gap: .3em; font: 700 .72em/1 var(--body); color: var(--text-night3); }
.p-day span { display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 50%; background: var(--mint); color: var(--night); box-shadow: 0 .18em 0 var(--mint-shadow); }
.p-day span svg { width: 1.1em; height: 1.1em; }
.p-day.today { color: var(--cream); }
.p-day.today span { background: none; box-shadow: inset 0 0 0 .2em var(--honey); }
.p-day.today span::after { content: ''; width: .6em; height: .6em; border-radius: 50%; background: var(--honey); }

/* barre d'onglets iOS 26 */
.p-tabs { position: absolute; z-index: 3; left: .9em; right: .9em; bottom: 1.5em; height: 4.2em; display: flex; justify-content: space-around; align-items: center; border-radius: 2.2em; background: rgba(24, 33, 43, .92); box-shadow: inset 0 0 0 .06em rgba(255, 243, 224, .12); }
.p-tab { display: grid; justify-items: center; gap: .25em; font: 600 .6em/1 var(--body); color: var(--text-night2); }
.p-tab svg { width: 2.2em; height: 2.2em; }
.p-tab.on { color: var(--honey); }

/* écran de blocage d'iOS, réglé par Grizz */
.p-shield { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 5em 1.6em 2.6em; }
.p-shield img { width: 7.5em; }
.p-shield .p-t2 { margin-top: .9em; font-size: 1.75em; }
.p-shield p { margin-top: .6em; color: rgba(255, 243, 224, .8); font-size: .95em; line-height: 1.35; }
.p-shield .p-btn { margin-top: auto; width: 100%; font: 700 1em/1.2 var(--body); height: 3.3em; border-radius: 1.1em; box-shadow: none; }
.p-shield .sec { margin-top: 1.1em; font-size: .88em; color: var(--text-night2); font-weight: 600; }

/* mission */
.p-bear { display: flex; align-items: center; gap: .7em; }
.p-bear img { width: 4.3em; flex: none; }
.p-bubble { padding: .7em .9em; border-radius: 1.1em; background: #fff; box-shadow: 0 .25em 0 var(--cream-line); font: 600 .9em/1.3 var(--body); }
.p-prompt { flex: 1; display: flex; justify-content: center; align-items: center; gap: .3em; min-height: 0; }
.p-prompt .q { font: 800 2.7em/1 var(--display); letter-spacing: -.03em; white-space: nowrap; }
.p-prompt .a { min-width: 2.4em; padding: .2em .35em; border-radius: .5em; background: #fff; box-shadow: 0 .12em 0 var(--cream-line); font: 800 2.7em/1 var(--display); text-align: center; color: var(--honey-text); }
.p-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55em; padding-bottom: 2.4em; }
.p-pad span { display: grid; place-items: center; height: 2.4em; border-radius: .75em; background: #fff; box-shadow: 0 .22em 0 var(--cream-line); font: 800 1.35em/1 var(--display); transition: transform .08s, box-shadow .08s; }
.p-pad span.ok { background: var(--honey); box-shadow: 0 .22em 0 var(--honey-shadow); font-size: 1.1em; height: 2.95em; border-radius: .9em; }
.p-pad span.del { background: var(--cream-inset); }
.p-pad span.del svg { width: .9em; height: .9em; }
.p-pad span.hit { transform: translateY(.22em); box-shadow: none; }

/* résultat du matin */
.p-result { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 1.6em 1.25em 2.4em; text-align: center; }
.p-result > img { width: 7em; }
.p-result .p-t1 { margin-top: .4em; font-size: 2.05em; }
.p-lines { width: 100%; margin-top: .9em; text-align: left; }
.p-line { display: flex; justify-content: space-between; gap: .8em; align-items: center; padding: .55em 0; border-bottom: .12em dashed var(--cream-line); font-size: .88em; }
.p-line b { font: 800 1.15em/1 var(--display); color: var(--mint-text); }
.p-line.total { border: 0; padding-top: .8em; }
.p-line.total span { font: 800 1.4em/1 var(--display); }
.p-line.total b { font-size: 1.7em; }
.p-result .p-btn { margin-top: auto; width: 100%; }


/* ============================================================ PAGES DE TEXTE (confidentialité, aide, mentions) */

.doc-page { background: var(--cream); color: var(--bark); }
.doc-top { background: var(--deep); padding-top: var(--safe-t); }
.doc-top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.doc-top a.back { color: var(--text-night2); font-size: 15px; text-decoration: none; }
.doc-top a.back:hover { color: var(--cream); }
.doc { max-width: 720px; padding-top: 56px; padding-bottom: 96px; }
.doc h1 { font-size: clamp(36px, 7vw, 52px); line-height: 1; letter-spacing: -.03em; }
.doc .updated { margin-top: 12px; color: var(--text-day2); font-size: 15px; }
.doc .intro { margin-top: 24px; font-size: 19px; line-height: 1.5; }
.doc h2 { margin: 48px 0 12px; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; }
.doc h3 { margin: 28px 0 8px; font-size: 19px; }
.doc p, .doc li { line-height: 1.6; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; margin: 10px 0; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--honey-text); font-weight: 600; }
.doc .box { margin: 20px 0; padding: 18px 20px; border-radius: 18px; background: #fff; box-shadow: 0 5px 0 var(--cream-line); }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 2px solid var(--cream-line); }
.doc th { font-family: var(--display); font-weight: 800; }
/* à remplir avant la mise en ligne : visible exprès */
.todo { background: var(--honey); color: var(--bark); padding: 1px 6px; border-radius: 6px; font-weight: 700; }


.doc-page .foot { padding-bottom: calc(40px + var(--safe-b)); }

@media (max-width: 999px) { .hero .moon { display: none; } }

/* Les chiffres de Bricolage laissent plus de vide sous la ligne qu'au-dessus : dans une
   pastille, le texte paraît trop haut. On rogne la boîte du texte à la hauteur des capitales
   (Safari iOS 18.2+, Chrome 133+) et on remet des marges égales. Sinon, les marges
   inégales ci-dessus compensent. */
@supports (text-box: trim-both cap alphabetic) {
  .bubble .time, .slide-time, .code-chip, .tag, .kicker, .p-chip, .top-chip { text-box: trim-both cap alphabetic; }
  .bubble .time { padding: 5px 7px; }
  .slide-time { padding: 8px 11px; }
  .code-chip { padding: 13px 14px; }
  .tag { padding: 5px 8px; }
  .kicker { padding: 10px 13px; }
  .top-chip { padding: 9px 12px 9px 10px; }
  .p-chip { padding: .6em .7em; }
}
