/* Page d'accueil de ma-tribu.com : bandeau corail, typo d'affiche, la tribu qui vit, et des
   téléphones de démonstration animés par accueil.js. Générée en 6 langues par tool/site/accueil.py. */

@font-face { font-family: "Tribu Display"; src: url("/fonts/TribuDisplay-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Tribu Display"; src: url("/fonts/TribuDisplay-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Tribu Display"; src: url("/fonts/TribuDisplay-Italic-600.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/PlusJakartaSans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/PlusJakartaSans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/PlusJakartaSans-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --canvas: #F8F3EC;
  --card: #FFFFFF;
  --ink: #1E1A2E;
  --text: #1E1A2E;
  --muted: #6B6478;
  --line: #EDE3D7;
  --coral: #FF6B57;
  --coral-deep: #E8503C;
  --coral-text: #D9442F;
  --sun: #FFC53D;
  --mint: #2FB389;
  --sky: #5B8DEF;
  --purple: #9B6BF2;
  --pink: #FF7EB0;
  --radius: 28px;
  --shadow: 0 18px 50px rgba(30, 26, 46, .10), 0 2px 6px rgba(30, 26, 46, .05);
  --display: "Tribu Display", Georgia, "Times New Roman", serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --grain: 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");
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #14111F;
    --card: #211D2D;
    --text: #F5EFE8;
    --muted: #B4ABBF;
    --line: #332D42;
    --coral-text: #FF8E7A;
    --shadow: 0 18px 50px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--coral-text); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(32px, 5.4vw, 52px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 12px 0 0; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip:focus { left: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- Barre du haut */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 30;
  display: flex; align-items: center; gap: 18px;
  padding: 12px max(20px, calc((100% - 1160px) / 2));
  padding-top: calc(12px + env(safe-area-inset-top));
  transition: background .35s, box-shadow .35s, color .35s;
  color: #fff;
}
.bar.scrolled {
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--text);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none;
  font: 700 23px/1 var(--display); letter-spacing: -.02em;
}
.brand img { width: 36px; height: 36px; border-radius: 11px; box-shadow: 0 6px 16px rgba(30, 26, 46, .18); transition: transform .5s var(--spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.links { display: none; list-style: none; margin: 0 0 0 auto; padding: 0; gap: 6px; }
.links a { color: inherit; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; transition: background .2s; }
.links a:hover { background: rgba(255, 255, 255, .18); }
.bar.scrolled .links a:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.cta-mini {
  margin-left: auto; padding: 10px 18px; border-radius: 999px; font-weight: 800; font-size: 15px;
  background: var(--ink); color: #fff; text-decoration: none; white-space: nowrap;
  transition: transform .3s var(--spring), background .3s;
}
.cta-mini:hover { transform: translateY(-2px) scale(1.03); }
.bar.scrolled .cta-mini { background: var(--coral); color: var(--ink); }
@media (min-width: 900px) {
  .links { display: flex; }
  .cta-mini { margin-left: 8px; }
}

/* ---------------------------------------------------------------- Bandeau d'accueil */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff;
  background: linear-gradient(150deg, #FF7A62 0%, #F4604B 46%, #DF4834 100%);
  border-radius: 0 0 48px 48px;
  padding: calc(104px + env(safe-area-inset-top)) 0 0;
}
.hero::before, .final::before { /* grain, comme dans l'app */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .09; pointer-events: none; background-image: var(--grain);
}
.glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(10px); pointer-events: none; will-change: transform; }
.glow.g1 { width: 520px; height: 520px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(255, 255, 255, .34), transparent 68%); }
.glow.g2 { width: 560px; height: 560px; left: -220px; top: 360px; background: radial-gradient(circle, rgba(255, 197, 61, .32), transparent 68%); }
.glow.g3 { width: 300px; height: 300px; left: 42%; top: 140px; background: radial-gradient(circle, rgba(255, 126, 176, .22), transparent 70%); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: end; }
.hero-text { padding-bottom: 8px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(30, 26, 46, .82);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.hero h1 {
  margin-top: 18px;
  font-size: clamp(50px, 11.5vw, 104px); font-weight: 900; line-height: .96; letter-spacing: -.035em;
  color: var(--ink);
}
.hero h1 em { display: block; font-style: italic; font-weight: 600; color: #fff; letter-spacing: -.02em; }
.hero h1 .w { display: inline-block; animation: word-in .9s var(--ease-out) both; animation-delay: calc(var(--k) * 70ms + 120ms); }
@keyframes word-in { from { opacity: 0; transform: translateY(45%) rotate(3deg); filter: blur(6px); } }
.hero-text .eyebrow, .hero-text .lead, .hero-text .stores, .hero-text .free { animation: fade-up .9s var(--ease-out) both; }
.hero-text .eyebrow { animation-delay: .05s; }
.hero-text .lead { animation-delay: .55s; }
.hero-text .stores { animation-delay: .7s; }
.hero-text .free { animation-delay: .8s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }
.lead { font-size: clamp(17px, 2.1vw, 20px); max-width: 560px; margin-top: 22px; color: rgba(30, 26, 46, .88); font-weight: 600; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 190px; padding: 11px 20px 11px 16px; border-radius: 18px;
  background: var(--ink); color: #fff; text-decoration: none; line-height: 1.2;
  box-shadow: 0 10px 26px rgba(30, 26, 46, .22);
  transition: transform .35s var(--spring), box-shadow .35s;
}
.store svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store span { display: flex; flex-direction: column; }
.store small { font-size: 12px; opacity: .72; }
.store strong { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.store:not([aria-disabled="true"]):hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 34px rgba(30, 26, 46, .3); }
.store[aria-disabled="true"] { cursor: default; }
.free {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-weight: 800; font-size: 15px; color: var(--ink);
}
.free svg { width: 18px; height: 18px; fill: var(--sun); }

/* La scène : la maison et la tribu, en calques (positions : tool/site/site_assets_test.dart). */
.scene {
  position: relative; width: min(560px, 100%); aspect-ratio: 1 / .78; margin: 34px auto 0;
  transform-style: preserve-3d; will-change: transform;
}
.scene .layer { position: absolute; display: block; height: auto; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.scene .maison { left: 13%; bottom: 7.69%; width: 74%; }
.buddy {
  position: absolute; display: block; aspect-ratio: 1; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transform-origin: 50% 82%; animation: breathe 3.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.9s);
}
.buddy .in { display: block; width: 100%; height: 100%; animation: drop-in 1s var(--spring) both; animation-delay: calc(.35s + var(--i) * .11s); }
.buddy img { width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; transform-origin: 50% 82%; }
.scene .maison { animation: house-in 1s var(--ease-out) both; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-38%) scale(.7); } }
@keyframes house-in { from { opacity: 0; transform: translateY(8%) scale(.96); } }
.buddy.parent-1 { left: -8.26%; bottom: -9.1%; width: 42.59%; --i: 0; }
.buddy.parent-2 { left: 16.04%; bottom: -9.1%; width: 42.59%; --i: 1; }
.buddy.ado { left: 41.34%; bottom: -7.83%; width: 36.63%; --i: 2; }
.buddy.enfant { left: 62.66%; bottom: -6.55%; width: 30.66%; --i: 3; }
.buddy.chien { left: 79.87%; bottom: -5.46%; width: 25.55%; --i: 4; }
.buddy img.hop { animation: hop .62s var(--ease-out); }
@keyframes breathe {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  50% { transform: translateY(-1.6%) scale(.992, 1.014); }
}
@keyframes hop {
  0% { transform: translateY(0) scale(1, 1); }
  18% { transform: translateY(2%) scale(1.08, .9); }
  45% { transform: translateY(-26%) scale(.94, 1.08) rotate(-4deg); }
  72% { transform: translateY(0) scale(1.06, .93); }
  86% { transform: translateY(-4%) scale(.98, 1.02); }
  100% { transform: translateY(0) scale(1, 1); }
}
.smoke {
  position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .62); pointer-events: none;
  left: 60.9%; bottom: 67%; width: 2.6%; aspect-ratio: 1; opacity: 0;
  animation: smoke 4.2s ease-out infinite; animation-delay: calc(var(--d) * 1.4s);
}
@keyframes smoke {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  15% { opacity: .9; }
  100% { opacity: 0; transform: translate(220%, -420%) scale(2.2); }
}
.particle { position: absolute; z-index: 5; pointer-events: none; width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.particle svg { width: 100%; height: 100%; }

/* Les nouvelles de la tribu, en bulles autour de la scène. */
.bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.bubble {
  position: absolute; display: flex; align-items: center; gap: 8px; max-width: 240px;
  padding: 7px 14px 7px 7px; border-radius: 999px; background: #fff; color: var(--ink);
  font-size: 13.5px; font-weight: 700; line-height: 1.25; box-shadow: 0 14px 30px rgba(30, 26, 46, .18);
  opacity: 0; transform: translateY(10px) scale(.8); transition: opacity .45s, transform .6s var(--spring);
}
.bubble.on { opacity: 1; transform: none; }
.bubble img { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.bubble.p0 { left: 0; top: 0; }
.bubble.p1 { right: 0; top: 4%; }
.bubble.p2 { left: 3%; top: 13%; }
.bubble.p3 { right: 2%; top: 15%; }
@media (max-width: 600px) { .bubble { font-size: 12px; max-width: 210px; padding: 6px 12px 6px 6px; } .bubble img { width: 24px; height: 24px; } }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; }
  .hero h1 { font-size: clamp(64px, 5.6vw, 84px); }
  .hero-text { padding-bottom: 92px; }
  .scene { margin: 0 0 -4px; width: 100%; }
}

/* ---------------------------------------------------------------- Sections */
main { position: relative; overflow-x: clip; }
.section { position: relative; padding: clamp(72px, 11vw, 128px) 0 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px;
  font-size: 14px; font-weight: 800; letter-spacing: .02em;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: color-mix(in srgb, var(--accent) 40%, #1E1A2E);
}
@media (prefers-color-scheme: dark) { .kicker { color: color-mix(in srgb, var(--accent) 62%, #fff); } }
.kicker svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.section h2 { margin-top: 16px; }
.section .intro { font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 560px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-weight: 600; }
.ticks li::before {
  content: ""; width: 26px; height: 26px; border-radius: 9px; margin-top: 1px;
  background: color-mix(in srgb, var(--accent) 18%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E1A2E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}
@media (prefers-color-scheme: dark) {
  .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5EFE8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
}
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .split.reverse .copy { order: 2; }
}
.blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); pointer-events: none;
  width: min(520px, 100vw); aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%;
  background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 66%); }

/* Apparition au défilement. */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Téléphones de démonstration */
.stage { position: relative; display: grid; place-items: center; min-height: 560px; perspective: 1400px; }
.phone {
  --w: min(312px, 78vw);
  position: relative; width: var(--w); aspect-ratio: 9 / 19.2; border-radius: calc(var(--w) * .15);
  background: #F8F3EC; border: calc(var(--w) * .032) solid #15121F;
  box-shadow: 0 50px 90px -20px rgba(30, 26, 46, .45), 0 0 0 1.5px #3a3448 inset, var(--shadow);
  overflow: hidden; color: #1E1A2E; font-size: calc(var(--w) * .043);
  transform: rotateY(var(--ry, -8deg)) rotateX(4deg); transition: transform 1.2s var(--ease-out);
  animation: float 7s ease-in-out infinite;
}
.split.reverse .phone { --ry: 8deg; }
.phone.in-view { --ry: 0deg; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.phone::before { /* l'île dynamique */
  content: ""; position: absolute; z-index: 6; left: 50%; top: 2.2%; width: 30%; height: 3.6%; translate: -50% 0;
  border-radius: 999px; background: #15121F;
}
.screen { position: absolute; inset: 0; padding: 15% 6% 6%; overflow: hidden; }
.app-eyebrow { font-size: .62em; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #6B6478; display: flex; align-items: center; gap: .5em; }
.app-eyebrow::before { content: ""; width: .55em; height: .55em; border-radius: 2px; background: currentColor; }
.app-title { font: 900 2.05em/1 var(--display); letter-spacing: -.03em; margin: .25em 0 .5em; }
.app-card { background: #fff; border-radius: 1.15em; box-shadow: 0 .4em 1.2em rgba(30, 26, 46, .06); }
.app-section { font: 700 1.05em/1.1 var(--display); margin: .9em 0 .45em; display: flex; justify-content: space-between; align-items: center; }
.app-section small { font: 700 .62em/1 var(--body); color: #6B6478; background: #EFE7DC; border-radius: 999px; padding: .35em .6em; }
.row { display: flex; align-items: center; gap: .6em; padding: .62em .8em; position: relative; }
.row + .row { border-top: 1px solid #F1EAE0; }
.row .name { flex: 1; font-weight: 600; font-size: .92em; line-height: 1.2; transition: color .3s; }
.row .label { position: relative; }
.row .label::after { content: ""; position: absolute; left: 0; top: 52%; height: 2px; width: 0; background: #6B6478; border-radius: 2px; transition: width .45s var(--ease-out); }
.row.done .name { color: #A39CAE; }
.row.done .label::after { width: 100%; }
.check {
  width: 1.35em; height: 1.35em; border-radius: 50%; border: 2px solid #CFC6BA; flex: none; display: grid; place-items: center;
  transition: background .25s, border-color .25s, transform .4s var(--spring);
}
.check svg { width: 70%; height: 70%; stroke: #fff; stroke-width: 3.4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .35s .1s; }
.row.done .check { background: var(--coral); border-color: var(--coral); transform: scale(1.12); }
.row.done .check svg { stroke-dashoffset: 0; }
.qty { font-size: .66em; font-weight: 800; color: #6B6478; background: #F1EAE0; border-radius: 999px; padding: .25em .55em; }
.av { width: 1.55em; height: 1.55em; border-radius: 50%; flex: none; }
.row.new { animation: arrive .7s var(--spring); }
.row.new::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(255, 197, 61, .22); animation: glow 1.8s ease-out forwards; pointer-events: none; }
@keyframes arrive { from { opacity: 0; transform: translateX(-12%) scale(.94); } }
@keyframes glow { to { opacity: 0; } }
.pill-star { display: inline-flex; align-items: center; gap: .2em; font-size: .7em; font-weight: 800; color: #9A6A00; background: #FFF1CC; border-radius: 999px; padding: .2em .5em; }
.pill-star svg, .star-count svg { width: 1em; height: 1em; fill: var(--sun); }
.meta { display: block; font-size: .7em; color: #6B6478; font-weight: 600; margin-top: .15em; }
.toast {
  position: absolute; z-index: 7; left: 5%; right: 5%; top: 9%; display: flex; align-items: center; gap: .6em;
  padding: .7em .8em; border-radius: 1.2em; background: rgba(255, 255, 255, .92); color: #1E1A2E;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 .8em 2em rgba(30, 26, 46, .18); font-size: .82em; font-weight: 700; line-height: 1.25;
  opacity: 0; transform: translateY(-140%); transition: transform .6s var(--spring), opacity .4s;
}
.toast.on { opacity: 1; transform: none; }
.toast .icon { width: 2.2em; height: 2.2em; border-radius: .6em; flex: none; }
.toast small { display: block; font-weight: 600; color: #6B6478; font-size: .86em; }
.progress { display: block; height: .4em; border-radius: 999px; background: #EFE7DC; overflow: hidden; margin-top: .5em; }
.progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--mint); transition: width .8s var(--ease-out); }
.big-count { display: flex; align-items: center; gap: .8em; padding: .9em 1em; }
.big-count b { font: 900 2.6em/1 var(--display); letter-spacing: -.03em; min-width: 1.2em; }
.big-count span { flex: 1; font-weight: 700; font-size: .85em; }
.go-btn { display: inline-block; margin-top: .2em; padding: .55em 1em; border-radius: 999px; background: #1E1A2E; color: #fff; font-weight: 800; font-size: .8em; transition: transform .3s var(--spring), background .3s; }
.go-btn.pressed { transform: scale(.92); background: var(--coral); }
.kids { display: flex; gap: .5em; margin-bottom: .2em; }
.kid { flex: 1; display: flex; align-items: center; gap: .5em; padding: .6em .7em; }
.kid b { font-weight: 800; font-size: .9em; display: block; }
.star-count { display: inline-flex; align-items: center; gap: .25em; font: 900 1.2em/1 var(--display); }
.star-count.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.35); } }
.reward { padding: .8em .9em; margin-top: .7em; position: relative; overflow: hidden; }
.reward b { font-weight: 800; font-size: .9em; }
.reward.unlocked { animation: bump .6s var(--spring); }
.reward .badge { position: absolute; right: .8em; top: .8em; font-size: .62em; font-weight: 800; padding: .3em .6em; border-radius: 999px; background: var(--mint); color: #fff; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .5s var(--spring); }
.reward.unlocked .badge { opacity: 1; transform: none; }
.fly-star { position: fixed; z-index: 60; width: 22px; height: 22px; pointer-events: none; }
.fly-star svg { width: 100%; height: 100%; fill: var(--sun); filter: drop-shadow(0 2px 4px rgba(154, 106, 0, .4)); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3em; padding: .7em .6em; text-align: center; background: #1E1A2E; color: #fff; border-radius: 1.15em; }
.week span { font-size: .62em; font-weight: 800; opacity: .6; }
.week b { display: grid; place-items: center; width: 1.9em; height: 1.9em; margin: .2em auto 0; border-radius: 50%; font: 800 .95em/1 var(--body); }
.week b.today { background: var(--coral); }
.week i { display: block; width: .32em; height: .32em; border-radius: 50%; margin: .3em auto 0; background: var(--sky); }
.event { display: flex; gap: .7em; padding: .7em .8em; align-items: stretch; }
.event time { min-width: 3em; flex: none; font: 900 1.05em/1.1 var(--display); }
.event time.allday { font: 800 .72em/1.2 var(--body); align-self: center; max-width: 4.6em; }
.event time small { display: block; font: 600 .62em/1.4 var(--body); color: #6B6478; }
.event .bar-line { width: .22em; border-radius: 999px; background: var(--accent-ev, var(--sky)); flex: none; }
.event .what { flex: 1; font-weight: 700; font-size: .88em; line-height: 1.25; }
.event + .event { margin-top: .5em; }
.event.new { animation: arrive .7s var(--spring); }
.day-label { font-size: .62em; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #6B6478; margin: .9em 0 .4em; }

/* ---------------------------------------------------------------- Deux maisons */
.homes-card { position: relative; padding: clamp(20px, 4vw, 34px); border-radius: 36px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.segmented { display: inline-flex; padding: 5px; border-radius: 999px; background: color-mix(in srgb, var(--text) 7%, transparent); position: relative; }
.segmented button { position: relative; z-index: 1; border: 0; background: none; font: 800 15px/1 var(--body); color: var(--text); padding: 11px 18px; border-radius: 999px; cursor: pointer; transition: color .3s; }
.segmented button[aria-pressed="true"] { color: #fff; }
.segmented .thumb { position: absolute; top: 5px; bottom: 5px; border-radius: 999px; background: var(--ink); transition: left .5s var(--spring), width .5s var(--spring); }
@media (prefers-color-scheme: dark) {
  .segmented .thumb { background: #F5EFE8; }
  .segmented button[aria-pressed="true"] { color: #1E1A2E; }
  .valise li.packed { background: var(--mint); border-color: var(--mint); color: #1E1A2E; }
  .valise li.packed i { background: #1E1A2E; border-color: #1E1A2E; }
}
.houses { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12%; align-items: end; margin-top: 26px; padding: 0 2%; }
.houses figure { margin: 0; text-align: center; transition: transform .6s var(--spring), filter .6s; }
.houses figure img { width: 100%; height: auto; display: block; }
.houses figcaption { margin-top: 6px; font-weight: 800; font-size: 15px; }
.houses figure.dim { filter: saturate(.55) opacity(.6); transform: scale(.94); }
.walker { position: absolute; bottom: -4%; width: 24%; aspect-ratio: 1; left: 11%; z-index: 2; pointer-events: none; }
.walker img { width: 100%; height: 100%; }
.path { position: absolute; left: 30%; right: 30%; bottom: 30%; height: 28%; border: 3px dashed color-mix(in srgb, var(--purple) 55%, transparent); border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; pointer-events: none; }
.where { margin-top: 18px; font-weight: 700; font-size: 17px; min-height: 1.6em; }
.where b { color: color-mix(in srgb, var(--purple) 62%, #1E1A2E); }
@media (prefers-color-scheme: dark) { .where b { color: color-mix(in srgb, var(--purple) 70%, #fff); } }
.weeks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.weeks span { padding: 9px 4px; border-radius: 14px; text-align: center; font-size: 12.5px; font-weight: 700; line-height: 1.3; background: color-mix(in srgb, var(--coral) 16%, transparent); transition: background .5s, color .5s; }
.weeks span.other { background: color-mix(in srgb, var(--purple) 20%, transparent); }
.weeks span.now { outline: 2.5px solid var(--text); outline-offset: 2px; }
.valise { margin-top: 18px; padding: 16px 18px; border-radius: 22px; background: color-mix(in srgb, var(--purple) 9%, var(--card)); border: 1px solid var(--line); }
.valise h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.valise h3 svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; }
.valise p { margin: 2px 0 10px; color: var(--muted); font-size: 14px; font-weight: 600; }
.valise ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.valise li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px 8px 9px; border-radius: 999px; background: var(--card); font-weight: 700; font-size: 14px; border: 1px solid var(--line); transition: background .35s, color .35s, border-color .35s; }
.valise li i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #CFC6BA; display: grid; place-items: center; transition: all .3s var(--spring); }
.valise li.packed { background: var(--ink); color: #fff; border-color: var(--ink); }
.valise li.packed i { background: var(--mint); border-color: var(--mint); transform: scale(1.1); }
.valise li.packed i::after { content: ""; width: 8px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }

/* ---------------------------------------------------------------- Personnage à habiller */
.dress { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
@media (min-width: 960px) { .dress { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.mirror { position: relative; display: grid; place-items: center; }
.disc { width: min(380px, 84vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 32% 28%, color-mix(in srgb, #fff 28%, var(--disc, var(--sky))), var(--disc, var(--sky)) 70%); transition: background .6s; box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--disc, var(--sky)) 70%, transparent); display: grid; place-items: center; overflow: visible; position: relative; }
.disc img { width: 88%; height: auto; margin-top: -6%; transition: transform .5s var(--spring); }
.disc img.pop { animation: pop .55s var(--spring); }
@keyframes pop { 0% { transform: scale(.7) rotate(-6deg); } 60% { transform: scale(1.08) rotate(3deg); } 100% { transform: none; } }
.disc .pet { position: absolute; right: -2%; bottom: 2%; width: 32%; filter: drop-shadow(0 10px 16px rgba(30, 26, 46, .2)); animation: breathe 3s ease-in-out infinite; transform-origin: 50% 90%; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip { border: 1.5px solid var(--line); background: var(--card); color: var(--text); font: 700 15px/1 var(--body); padding: 12px 16px; border-radius: 999px; cursor: pointer; transition: transform .3s var(--spring), background .25s, color .25s, border-color .25s; }
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (prefers-color-scheme: dark) { .chip[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); color: var(--ink); } }
.chip.surprise { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.swatches { display: flex; gap: 10px; margin-top: 16px; align-items: center; flex-wrap: wrap; }
.swatches span { font-weight: 700; font-size: 14px; color: var(--muted); margin-right: 4px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--card); box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; transition: transform .3s var(--spring), box-shadow .3s; padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--text); transform: scale(1.1); }

/* ---------------------------------------------------------------- Et aussi */
.more-grid { display: grid; gap: 14px; margin-top: 34px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.tile { position: relative; padding: 22px 22px 20px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(30, 26, 46, .05); transition: transform .45s var(--spring), box-shadow .45s; overflow: hidden; }
.tile:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow); }
.tile .ico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: color-mix(in srgb, var(--accent) 70%, var(--text)); }
.tile .ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { margin-top: 14px; font-size: 20px; }
.tile p { color: var(--muted); font-size: 15.5px; margin-top: 6px; }

/* ---------------------------------------------------------------- Promesse */
.promise { position: relative; margin-top: clamp(72px, 11vw, 128px); padding: clamp(40px, 7vw, 72px) 0; color: #fff; background: #1E1A2E; border-radius: 48px; overflow: hidden; isolation: isolate; }
.promise .kicker { --accent: var(--sun); color: var(--sun); background: rgba(255, 197, 61, .14); }
.promise h2 { color: #fff; max-width: 760px; }
.promise .intro { color: #CFC6DA; }
.promise-grid { display: grid; gap: 14px; margin-top: 34px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.promise-grid div { padding: 20px; border-radius: 24px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.promise-grid svg { width: 28px; height: 28px; stroke: var(--sun); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.promise-grid h3 { font-size: 19px; margin-top: 10px; color: #fff; }
.promise-grid p { color: #CFC6DA; font-size: 15px; margin-top: 6px; }
.promise a { color: var(--sun); font-weight: 700; }
.promise .glow.g1 { background: radial-gradient(circle, rgba(255, 107, 87, .35), transparent 68%); }
.promise .glow.g2 { background: radial-gradient(circle, rgba(91, 141, 239, .28), transparent 68%); }

/* ---------------------------------------------------------------- Questions */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 64px; }
.faq-layout .intro a { font-weight: 700; }
@media (min-width: 960px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); align-items: start; }
  .faq-layout > div:first-child { position: sticky; top: 110px; }
  .faq-layout .faq-list { margin-top: 0; }
}
.faq-list { margin-top: 30px; display: grid; gap: 12px; }
.faq-list details { border-radius: 22px; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .3s; }
.faq-list details[open] { box-shadow: var(--shadow); }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 22px; position: relative; font: 700 19px/1.3 var(--display); letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: color-mix(in srgb, var(--coral) 14%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8503C' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .4s var(--spring); }
.faq-list details[open] summary::after { transform: rotate(135deg); }
.faq-list .answer { padding: 0 22px 20px; color: var(--muted); }
.faq-list .answer p { margin: 0; }

/* ---------------------------------------------------------------- Appel final */
.final { position: relative; margin: clamp(72px, 11vw, 128px) auto 0; width: min(1160px, 100% - 24px); border-radius: 48px; overflow: hidden; isolation: isolate; color: #fff; text-align: center;
  background: linear-gradient(150deg, #FF7A62 0%, #F4604B 46%, #DF4834 100%); padding: clamp(48px, 8vw, 84px) 20px 0; }
.final h2 { color: var(--ink); font-weight: 900; font-size: clamp(38px, 7vw, 72px); }
.final p { max-width: 520px; margin: 14px auto 0; font-size: 18px; font-weight: 600; color: rgba(30, 26, 46, .88); }
.final .stores { justify-content: center; }
.final .free { justify-content: center; }
.final .crew { display: flex; justify-content: center; align-items: flex-end; gap: 0; margin: 30px auto -6px; width: min(520px, 100%); }
.final .crew img { width: 22%; height: auto; margin: 0 -2%; animation: wave 4.8s ease-in-out infinite; animation-delay: calc(var(--i) * .22s); transform-origin: 50% 90%; }
.final .crew img:nth-child(4) { width: 18%; }
.final .crew img:nth-child(5) { width: 15%; }
@keyframes wave { 0%, 70%, 100% { transform: translateY(0); } 78% { transform: translateY(-16%) rotate(-3deg); } 86% { transform: translateY(0) scale(1.04, .96); } }

/* ---------------------------------------------------------------- Pied de page, langues */
footer { padding: 54px 0 calc(40px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 15px; }
.foot { display: grid; gap: 22px; }
.foot .brand { color: var(--text); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.foot nav a:hover { color: var(--coral-text); }
.langs { display: flex; flex-wrap: wrap; gap: 8px; }
.langs a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.langs a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (prefers-color-scheme: dark) { .langs a[aria-current="page"] { background: var(--coral); border-color: var(--coral); color: var(--ink); } }
@media (min-width: 860px) { .foot { grid-template-columns: auto 1fr; align-items: center; } .foot .langs, .foot nav { justify-content: flex-end; } }

/* La page existe dans la langue du navigateur. */
.lang-hint { position: fixed; z-index: 40; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); translate: -50% 0; width: min(520px, 100% - 24px);
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; border-radius: 20px; background: var(--ink); color: #fff; box-shadow: 0 20px 50px rgba(30, 26, 46, .35);
  font-weight: 600; font-size: 15px; animation: rise .6s var(--spring); }
.lang-hint[hidden] { display: none; }
.lang-hint span { flex: 1; }
.lang-hint a { padding: 9px 14px; border-radius: 999px; background: var(--coral); color: var(--ink); text-decoration: none; font-weight: 800; white-space: nowrap; }
.lang-hint button { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 18px; cursor: pointer; }
@keyframes rise { from { opacity: 0; translate: -50% 30px; } }

.no-js .stage, .no-js .bubbles { display: none; }

/* Moins d'animations si le téléphone le demande. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
