/* Vidbrio: vif, franc, joueur. Encre aubergine sur papier beurre, vermillon
   et jaune soleil, bordures épaisses et ombres dures. Rien de commun avec
   les autres sites de la famille : ni les polices, ni la palette, ni la grille. */

:root {
  --ink: #1c1233;
  --paper: #fff4dc;
  --card: #ffffff;
  --hot: #ff4d2e;
  --sun: #ffc531;
  --violet: #6b3cff;
  --mint: #12c296;
  --muted: #5b5170;
  --line: 2.5px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --radius: 22px;
  --display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.7rem, 7.4vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.35rem; line-height: 1.15; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 34em; }

.hl { background: var(--sun); padding: 0 .18em; border-radius: 10px; display: inline-block; transform: rotate(-1.5deg); }
.hl-hot { background: var(--hot); color: #fff; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; text-decoration: none; }
.logo svg { width: 34px; height: 34px; }
.nav { display: flex; gap: 24px; margin-left: auto; font-weight: 500; }
.nav a { text-decoration: none; border-bottom: 2.5px solid transparent; }
.nav a:hover { border-color: var(--hot); }

.lang { font-family: var(--display); font-weight: 700; text-decoration: none; border: var(--line); border-radius: 999px; padding: 6px 12px; background: var(--card); font-size: .9rem; }
.lang:hover { background: var(--sun); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  padding: 12px 20px; border: var(--line); border-radius: 999px;
  background: var(--hot); color: #fff; text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-plain { background: var(--card); color: var(--ink); }
.btn-lg { padding: 16px 26px; font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 84px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.stage { position: relative; }
.page-card { background: var(--card); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; transform: rotate(1.6deg); }
.screen {
  position: relative; aspect-ratio: 16 / 9; border: var(--line); border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, var(--violet), #3a1fb8);
}
.screen .bar { position: absolute; left: 7%; height: 9px; border-radius: 9px; background: rgba(255,255,255,.85); }
.screen .b1 { top: 14%; width: 46%; }
.screen .b2 { top: 24%; width: 30%; background: var(--sun); }
.screen .cols { position: absolute; left: 7%; right: 34%; bottom: 14%; height: 38%; display: flex; align-items: flex-end; gap: 7%; }
.screen .cols i { flex: 1; background: rgba(255,255,255,.3); border-radius: 6px 6px 0 0; }
.screen .cols i.on { background: var(--hot); }
.screen .cam { position: absolute; right: 5%; bottom: 9%; width: 24%; aspect-ratio: 1; border-radius: 50%; border: var(--line); background: radial-gradient(circle at 50% 38%, #ffd9c2 0 24%, transparent 25%), radial-gradient(circle at 50% 96%, #ffd9c2 0 38%, transparent 39%), var(--sun); }
.screen .play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; background: #fff; border: var(--line); display: grid; place-items: center; box-shadow: 4px 4px 0 var(--ink); }
.screen .play::after { content: ""; border-left: 20px solid var(--hot); border-block: 13px solid transparent; margin-left: 6px; }

.page-meta { display: flex; align-items: center; gap: 12px; padding: 14px 6px 4px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; border: var(--line); background: var(--mint); flex: none; }
.page-meta b { display: block; font-family: var(--display); line-height: 1.2; }
.page-meta span { font-size: .88rem; color: var(--muted); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 6px 4px; }
.pill { border: var(--line); border-radius: 999px; padding: 6px 13px; font-size: .88rem; font-weight: 600; background: var(--paper); }
.pill.go { background: var(--ink); color: #fff; }

.sticker { position: absolute; z-index: 2; border: var(--line); border-radius: 999px; padding: 8px 16px; font-family: var(--display); font-weight: 700; font-size: .95rem; box-shadow: 3px 3px 0 var(--ink); }
.st-1 { top: -18px; left: -14px; background: var(--sun); transform: rotate(-7deg); }
.st-2 { bottom: -16px; right: 18px; background: var(--mint); transform: rotate(4deg); }

/* ---------- Bandeau ---------- */
.band { background: var(--ink); color: var(--paper); border-block: var(--line); overflow: hidden; }
.band-in { display: flex; gap: 44px; padding: 16px 0; white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: 1.15rem; animation: slide 26s linear infinite; }
.band-in span::before { content: "✦"; color: var(--sun); margin-right: 44px; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .band-in { animation: none; } }

/* ---------- Sections ---------- */
.sec { padding: 92px 0; }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head h2 { margin-bottom: 18px; }
.tag { display: inline-block; font-family: var(--display); font-weight: 700; font-size: .9rem; border: var(--line); border-radius: 999px; padding: 4px 14px; margin-bottom: 18px; background: var(--card); }

.got { background: var(--sun); border-block: var(--line); }
.got-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.box { background: var(--card); border: var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.box h3 { margin-bottom: 10px; }
.box p { color: var(--muted); }
.box .num { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--hot); margin-bottom: 14px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { border: var(--line); border-radius: var(--radius); padding: 26px 22px; background: var(--card); counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border: var(--line); border-radius: 50%; font-family: var(--display); font-weight: 800; background: var(--violet); color: #fff; margin-bottom: 16px; }
.step:nth-child(2)::before { background: var(--hot); }
.step:nth-child(3)::before { background: var(--mint); color: var(--ink); }
.step:nth-child(4)::before { background: var(--sun); color: var(--ink); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .98rem; }

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat { border: var(--line); border-radius: var(--radius); padding: 26px; background: var(--card); transition: transform .15s, box-shadow .15s; }
.feat:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); }
.feat .ico { width: 48px; height: 48px; border: var(--line); border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: var(--paper); font-size: 1.4rem; }
.feat h3 { margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: .98rem; }

.quiet { background: var(--ink); color: var(--paper); }
.quiet .lede, .quiet li { color: #cfc6e6; }
.quiet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.quiet ul { list-style: none; display: grid; gap: 16px; }
.quiet li { padding-left: 34px; position: relative; }
.quiet li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--mint); border: 2.5px solid var(--paper); }
.quiet li b { color: var(--paper); }

.cta { text-align: center; }
.cta-box { background: var(--hot); color: #fff; border: var(--line); border-radius: 32px; padding: 64px 28px; box-shadow: var(--shadow); }
.cta-box h2 { margin-bottom: 16px; }
.cta-box p { max-width: 34em; margin: 0 auto 28px; font-size: 1.12rem; }

/* ---------- Footer ---------- */
.foot { border-top: var(--line); padding: 34px 0 44px; font-size: .95rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; }
.foot-in .links { margin-left: auto; display: flex; gap: 22px; }
.foot-in small { color: var(--muted); font-size: .9rem; }

/* ---------- Pages de texte ---------- */
.text { padding: 72px 0 96px; }
.text-in { max-width: 760px; }
.text h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 18px; }
.text h2 { font-size: 1.6rem; margin: 44px 0 12px; }
.text p, .text li { color: #3a3050; margin-bottom: 12px; }
.text ul { padding-left: 22px; }
.text .date { color: var(--muted); font-size: .92rem; margin-top: 10px; }
.text a { text-decoration-color: var(--hot); text-decoration-thickness: 2.5px; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-in, .quiet-grid { grid-template-columns: 1fr; }
  .got-grid, .feats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .top-in .lang { margin-left: auto; }
  .hero { padding-top: 44px; }
  .sec { padding: 64px 0; }
  .st-1 { left: 0; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .wrap { width: calc(100% - 32px); }
}

/* ---------- Finitions ---------- */
html { scroll-padding-top: 88px; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }

/* Le bandeau défile d'une demi-largeur exacte : la boucle ne saute plus. */
.band-in { width: max-content; padding-right: 44px; }

.st-2 { bottom: -30px; right: -12px; }
.pill { display: inline-flex; align-items: center; gap: 7px; }
.pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--hot); border: 2px solid var(--ink); }
.pill:nth-child(2)::before { background: var(--violet); }
.pill.go::before { display: none; }

.step { transition: transform .15s, box-shadow .15s; }
.step:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); }

.feat .ico svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.feat:nth-child(1) .ico { background: var(--sun); }
.feat:nth-child(2) .ico { background: #d9ccff; }
.feat:nth-child(3) .ico { background: #b9f0df; }
.feat:nth-child(4) .ico { background: #ffd3c9; }
.feat:nth-child(5) .ico { background: #b9f0df; }
.feat:nth-child(6) .ico { background: var(--sun); }

.quiet .tag { color: var(--ink); }
.quiet a { text-decoration-color: var(--mint); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.foot .links a { text-decoration: none; border-bottom: 2.5px solid transparent; }
.foot .links a:hover { border-color: var(--hot); }

@media (max-width: 900px) {
  .st-2 { right: 8px; }
  .hero-in { gap: 44px; }
  .stage { margin-inline: 6px; }
}
@media (max-width: 520px) {
  .top-in { gap: 10px; height: 62px; }
  .logo { font-size: 1.3rem; }
  .logo svg { width: 28px; height: 28px; }
  .top .btn { padding: 9px 14px; font-size: .9rem; box-shadow: 3px 3px 0 var(--ink); }
  .box, .feat, .step { padding: 22px; }
  .cta-box { padding: 44px 20px; border-radius: 24px; }
  .foot-in .links { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .feat, .step { transition: none; }
}
