/* ==========================================================================
   DJOSSI — Système de design
   Direction : fintech verte inspirée de Paya · police Figtree (variable)
   Mobile d'abord · animations sur transform/opacity · prefers-reduced-motion respecté
   ========================================================================== */

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin.woff2") format("woff2-variations"),
       url("../fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-ext.woff2") format("woff2-variations"),
       url("../fonts/figtree-latin-ext.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Couleurs */
  --forest-950: #06281B;
  --forest-900: #0A3A27;
  --forest-800: #0D4A32;
  --forest-700: #10593B;
  --green-600: #157A4D;
  --green-500: #1C9A5E;
  --green-400: #3DB87A;
  --green-300: #86D3A9;
  --mint-200: #CDE8D8;
  --mint-100: #E5F3EA;
  --mint-50: #F2F8F4;
  --ink: #10201A;
  --ink-2: #3B4C44;
  --ink-3: #5F6F67;
  --line: #DCE7E0;
  --line-2: #EAF1EC;
  --white: #FFFFFF;
  --gold-600: #C98A1C;
  --gold-500: #E3A12F;
  --gold-400: #F0B64B;
  --gold-100: #FCF1DC;
  --red-600: #C0392B;
  --red-100: #FBE9E6;
  --amber-700: #8A5300;
  --amber-100: #FDF1DC;
  --blue-700: #1F55A0;
  --blue-100: #E4EEFA;

  /* Typographie */
  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Formes */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(10, 58, 39, .06), 0 2px 10px rgba(10, 58, 39, .05);
  --sh-2: 0 6px 16px rgba(10, 58, 39, .07), 0 18px 44px rgba(10, 58, 39, .09);
  --sh-3: 0 30px 70px rgba(6, 40, 27, .22), 0 10px 24px rgba(6, 40, 27, .12);

  /* Mouvement */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-std: cubic-bezier(.2, 0, 0, 1);
  --spring: linear(0, 0.0192, 0.0707, 0.1456, 0.2364, 0.3362, 0.4395, 0.5418, 0.6394, 0.7298, 0.8111, 0.8822, 0.9427, 0.9925, 1.0321, 1.0622, 1.0836, 1.0974, 1.1047, 1.1065, 1.1041, 1.0983, 1.0901, 1.0803, 1.0696, 1.0586, 1.0477, 1.0374, 1.0278, 1.0193, 1.0118, 1.0055, 1.0003, 0.9962, 0.9931, 0.9909, 0.9895, 0.9888, 0.9887, 0.989, 0.9896, 0.9905, 0.9916, 0.9927, 0.9939, 0.995, 0.9961, 0.9971, 1);
  --spring-soft: linear(0, 0.018, 0.0656, 0.1341, 0.2161, 0.3056, 0.3977, 0.4886, 0.5755, 0.6563, 0.7297, 0.795, 0.8517, 0.9001, 0.9403, 0.9731, 0.9989, 1.0187, 1.0331, 1.0429, 1.0489, 1.0518, 1.0522, 1.0507, 1.0478, 1.044, 1.0395, 1.0348, 1.03, 1.0253, 1.0208, 1.0167, 1.013, 1.0097, 1.0069, 1.0045, 1.0025, 1.0009, 0.9997, 0.9988, 0.9981, 0.9976, 0.9974, 0.9973, 0.9973, 0.9974, 0.9976, 0.9978, 1);
  --spring-bouncy: linear(0, 0.0444, 0.1604, 0.3222, 0.5058, 0.6907, 0.8609, 1.0051, 1.1169, 1.1938, 1.2371, 1.2506, 1.2397, 1.2108, 1.1704, 1.1244, 1.0781, 1.0353, 0.9991, 0.971, 0.9516, 0.9407, 0.9372, 0.9399, 0.9471, 0.9572, 0.9687, 0.9803, 0.991, 1.0001, 1.0072, 1.0121, 1.0149, 1.0157, 1.0151, 1.0133, 1.0108, 1.0079, 1.005, 1.0023, 1, 0.9982, 0.997, 0.9963, 0.9961, 0.9962, 0.9967, 0.9973, 1);
  --d-quick: 160ms;
  --d-std: 320ms;
  --d-slow: 640ms;

  /* Mise en page */
  --container: 1200px;
  --gutter: clamp(18px, 4.5vw, 40px);
  --header-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest-700); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1, h2, .display {
  font-weight: 750;
  letter-spacing: -0.032em;
  line-height: 1.06;
}
h1 { font-size: clamp(2.45rem, 9.2vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 5.2vw, 2.85rem); }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
h4 { font-size: 1rem; font-weight: 700; }
small { font-size: .875rem; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
::selection { background: var(--green-300); color: var(--forest-950); }
:focus-visible { outline: 3px solid var(--green-400); outline-offset: 2px; border-radius: 6px; }

.num, .money { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -0.25em; }
.flag { display: inline-block; vertical-align: -0.22em; width: 24px; height: 18px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgba(16, 32, 26, .08); flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--forest-900); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.muted { color: var(--ink-3); }
.text-green { color: var(--green-500); }
.nowrap { white-space: nowrap; }

/* --------------------------------------------------------------------------
   Mise en page
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.container--text { max-width: 720px; }
.section { padding-block: clamp(64px, 10vw, 120px); }
.section--tight { padding-block: clamp(44px, 7vw, 80px); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section-head p { color: var(--ink-2); font-size: 1.075rem; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 600; color: var(--green-600);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 4px var(--mint-100); }
.panel {
  background: var(--mint-50);
  border-radius: var(--r-2xl);
  margin-inline: clamp(8px, 2vw, 24px);
  border: 1px solid var(--line-2);
}
.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--forest-700);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--d-quick) var(--ease-std), background-color var(--d-std) var(--ease-std), box-shadow var(--d-std) var(--ease-std), color var(--d-std);
  touch-action: manipulation;
  user-select: none;
}
.btn:hover { color: var(--btn-fg); box-shadow: 0 10px 24px -10px rgba(10, 58, 39, .55); }
.btn:active { transform: scale(.97); transition-duration: 90ms; }
.btn .icon { width: 1.15em; height: 1.15em; transition: transform var(--d-std) var(--spring); }
.btn:hover .icon--move { transform: translateX(3px); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .22) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 700ms var(--ease-out);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:hover { --btn-bg: var(--forest-800); }
.btn--outline { --btn-bg: #fff; --btn-fg: var(--ink); border-color: #C9D6CE; }
.btn--outline:hover { --btn-bg: var(--mint-50); border-color: var(--green-400); box-shadow: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--forest-700); }
.btn--ghost:hover { --btn-bg: var(--mint-100); box-shadow: none; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--forest-900); }
.btn--light:hover { --btn-bg: var(--mint-100); --btn-fg: var(--forest-900); }
.btn--gold { --btn-bg: var(--gold-500); --btn-fg: var(--forest-950); }
.btn--gold:hover { --btn-bg: var(--gold-400); --btn-fg: var(--forest-950); }
.btn--danger { --btn-bg: var(--red-600); }
.btn--danger:hover { --btn-bg: #a83224; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .92rem; border-radius: 10px; }
.btn--xs { min-height: 32px; padding: 0 12px; font-size: .84rem; border-radius: 8px; gap: 6px; }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::before {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn--outline.is-loading::before, .btn--light.is-loading::before { border-color: rgba(10, 58, 39, .2); border-top-color: var(--forest-700); }
.link-btn { background: none; border: 0; padding: 0; color: var(--green-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Badges, puces, avatars
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: .78rem; font-weight: 650; line-height: 1.5; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--green { background: var(--mint-100); color: var(--green-600); }
.badge--amber { background: var(--amber-100); color: var(--amber-700); }
.badge--red { background: var(--red-100); color: var(--red-600); }
.badge--blue { background: var(--blue-100); color: var(--blue-700); }
.badge--grey { background: #EEF1EF; color: var(--ink-3); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px; border-radius: var(--r-pill);
  background: var(--mint-50); border: 1px solid var(--line);
  font-size: .86rem; font-weight: 550; color: var(--ink-2);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); position: relative; }
.pill__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--green-400); opacity: 0; animation: ping 2.4s var(--ease-out) infinite; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: #fff;
  font-size: .9rem; font-weight: 600; color: var(--ink-2); text-decoration: none;
  transition: background var(--d-std), border-color var(--d-std), color var(--d-std), transform var(--d-quick);
}
.chip:hover { border-color: var(--green-400); color: var(--forest-700); }
.chip:active { transform: scale(.96); }
.chip.is-active { background: var(--forest-700); border-color: var(--forest-700); color: #fff; }
.chip__count { font-size: .76rem; opacity: .7; }
.reward {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--gold-100); color: #7A4D00;
  font-weight: 750; font-size: .88rem; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.reward .icon { color: var(--gold-500); width: 1.05em; height: 1.05em; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-grid; place-items: center; flex: none;
  background: var(--mint-100); color: var(--forest-700);
  font-weight: 750; font-size: .95rem;
}
.avatar--lg { width: 64px; height: 64px; font-size: 1.3rem; }
.avatar--dark { background: var(--forest-700); color: #fff; }
.icon-tile {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; flex: none;
  background: var(--forest-700); color: #fff;
}
.icon-tile .icon { width: 24px; height: 24px; --icon-sw: 1.9; }
.icon-tile--soft { background: var(--mint-100); color: var(--forest-700); }
.icon-tile--gold { background: var(--gold-100); color: var(--gold-600); }

/* --------------------------------------------------------------------------
   Cartes, alertes, états vides
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(18px, 3vw, 26px);
}
.card--flat { border-color: var(--line-2); background: var(--mint-50); }
.card--shadow { border-color: transparent; box-shadow: var(--sh-2); }
.card__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card__title h2, .card__title h3 { margin: 0; font-size: 1.12rem; letter-spacing: -0.01em; }
.alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r-md);
  font-size: .95rem; line-height: 1.5; border: 1px solid transparent;
}
.alert .icon { margin-top: 2px; }
.alert--success { background: var(--mint-100); color: var(--forest-800); border-color: var(--mint-200); }
.alert--error { background: var(--red-100); color: #8C2A1F; border-color: #F3CFC9; }
.alert--info { background: var(--blue-100); color: #17437E; border-color: #CFE0F5; }
.alert--warning { background: var(--amber-100); color: var(--amber-700); border-color: #F5DEB3; }
.alert p:last-child { margin-bottom: 0; }
.empty {
  text-align: center; padding: clamp(32px, 6vw, 56px) 20px;
  border: 1.5px dashed var(--mint-200); border-radius: var(--r-lg); background: var(--mint-50);
}
.empty .icon-tile { margin: 0 auto 16px; }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--ink-3); max-width: 420px; margin: 0 auto 18px; }

/* --------------------------------------------------------------------------
   Formulaires
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; position: relative; }
.field > label, .label { font-weight: 600; font-size: .93rem; color: var(--ink); }
.field .hint { font-size: .84rem; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1.5px solid #D3DED7;
  border-radius: var(--r-sm);
  background: #fff;
  font-size: 1rem;
  transition: border-color var(--d-std) var(--ease-std), box-shadow var(--d-std) var(--ease-std), background-color var(--d-std);
  appearance: none;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%233B4C44' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.input:hover, .select:hover, .textarea:hover { border-color: #B6C8BD; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(28, 154, 94, .14); }
.input::placeholder, .textarea::placeholder { color: #8C9A93; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--red-600); background: #FFFBFA; }
.field-error { display: flex; gap: 6px; align-items: flex-start; color: var(--red-600); font-size: .86rem; font-weight: 550; }
.field-error .icon { margin-top: 2px; width: 1em; height: 1em; }
.field.has-error { animation: shake 360ms var(--ease-io); }
.input-group { display: flex; align-items: stretch; }
.input-group__prefix {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 14px;
  border: 1.5px solid #D3DED7; border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm);
  background: var(--mint-50); font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap;
}
.input-group .input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 52px; }
.input-action {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 10px; border: 0; background: transparent;
  display: grid; place-items: center; color: var(--ink-3);
}
.input-action:hover { background: var(--mint-100); color: var(--forest-700); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: var(--ink-2); cursor: pointer; line-height: 1.45; }
.check input { appearance: none; width: 22px; height: 22px; flex: none; margin: 0; border: 1.5px solid #B9CBBF; border-radius: 7px; background: #fff; display: grid; place-items: center; transition: background var(--d-quick), border-color var(--d-quick); }
.check input::after { content: ""; width: 11px; height: 6px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -3px; transition: transform var(--d-std) var(--spring); }
.check input:checked { background: var(--forest-700); border-color: var(--forest-700); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 2px; }
.strength span { height: 5px; border-radius: 4px; background: var(--line); transition: background var(--d-std), transform var(--d-std) var(--spring); transform-origin: left; }
.strength[data-score="1"] span:nth-child(-n+1) { background: var(--red-600); }
.strength[data-score="2"] span:nth-child(-n+2) { background: var(--gold-500); }
.strength[data-score="3"] span:nth-child(-n+3) { background: var(--green-400); }
.strength[data-score="4"] span { background: var(--green-500); }
.segmented {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; background: var(--mint-50); border: 1px solid var(--line); border-radius: 14px;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; border-radius: 10px; font-weight: 650; font-size: .93rem; color: var(--ink-3); cursor: pointer;
  transition: color var(--d-std);
}
.segmented input:checked + label { color: var(--forest-900); }
.segmented__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 6px);
  background: #fff; border-radius: 10px; box-shadow: var(--sh-1);
  transition: transform 500ms var(--spring);
}
.segmented[data-value="1"] .segmented__thumb { transform: translateX(calc(100% + 4px)); }

/* Sélecteur de pays (amélioré en JavaScript) */
.country-btn {
  width: 100%; min-height: 52px; display: flex; align-items: center; gap: 12px;
  padding: 0 14px; border: 1.5px solid #D3DED7; border-radius: var(--r-sm); background: #fff; text-align: left;
  transition: border-color var(--d-std), box-shadow var(--d-std);
}
.country-btn:hover { border-color: #B6C8BD; }
.country-btn:focus-visible { border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(28, 154, 94, .14); outline: none; }
.country-btn__name { flex: 1; font-weight: 600; }
.country-btn__dial { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.country-btn .icon { color: var(--ink-3); }

/* --------------------------------------------------------------------------
   Feuilles (bottom sheets) et modales
   -------------------------------------------------------------------------- */
.sheet { position: fixed; inset: 0; z-index: 120; display: grid; align-items: end; pointer-events: none; }
.sheet[hidden] { display: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(6, 40, 27, .42); opacity: 0; transition: opacity 360ms var(--ease-out); backdrop-filter: blur(2px); }
.sheet__panel {
  position: relative; pointer-events: auto;
  width: 100%; max-height: min(86vh, 720px); overflow: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 26px 26px 0 0; padding: 10px 20px calc(24px + var(--safe-b));
  transform: translateY(104%); transition: transform 520ms var(--spring-soft);
  box-shadow: 0 -20px 60px rgba(6, 40, 27, .18);
}
.sheet__grip { width: 44px; height: 5px; border-radius: 4px; background: var(--line); margin: 4px auto 14px; }
.sheet.is-open { pointer-events: auto; }
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
@media (min-width: 720px) {
  .sheet { align-items: center; justify-items: center; padding: 24px; }
  .sheet__panel { max-width: 480px; border-radius: 26px; transform: translateY(24px) scale(.96); opacity: 0; transition: transform 460ms var(--spring-soft), opacity 260ms var(--ease-out); }
  .sheet.is-open .sheet__panel { transform: none; opacity: 1; }
  .sheet__grip { display: none; }
}
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sheet__head h2 { font-size: 1.25rem; margin: 0; letter-spacing: -0.015em; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--ink-2);
  display: inline-grid; place-items: center; position: relative; text-decoration: none;
  transition: background var(--d-quick), transform var(--d-quick);
}
.icon-btn:hover { background: var(--mint-100); color: var(--forest-700); }
.icon-btn:active { transform: scale(.92); }
.icon-btn .icon { width: 22px; height: 22px; }
.country-search { position: sticky; top: -10px; background: #fff; padding: 4px 0 10px; z-index: 1; }
.country-list { list-style: none; margin: 0; padding: 0; }
.country-list__group { font-size: .8rem; font-weight: 700; color: var(--ink-3); padding: 14px 4px 6px; }
.country-list button {
  width: 100%; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px;
  border: 0; border-radius: 12px; background: transparent; text-align: left; font-weight: 550;
  transition: background var(--d-quick);
}
.country-list button:hover, .country-list button:focus-visible { background: var(--mint-50); outline: none; }
.country-list button[aria-selected="true"] { background: var(--mint-100); color: var(--forest-900); }
.country-list .dial { margin-left: auto; color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: .92rem; }
.country-list .flag { width: 28px; height: 21px; }

/* --------------------------------------------------------------------------
   Notifications éphémères (toasts) et messages flash
   -------------------------------------------------------------------------- */
.toasts { position: fixed; z-index: 150; left: 50%; top: calc(12px + var(--safe-t)); transform: translateX(-50%); width: min(94vw, 440px); display: grid; gap: 10px; pointer-events: none; }
.toast {
  pointer-events: auto; position: relative; overflow: hidden;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 44px 14px 16px; border-radius: 16px;
  background: var(--forest-900); color: #fff; box-shadow: var(--sh-3);
  font-size: .95rem; line-height: 1.45;
  animation: toast-in 560ms var(--spring) both;
}
.toast .icon { margin-top: 1px; color: var(--green-300); }
.toast--error { background: #4A1610; }
.toast--error .icon { color: #FFB4A8; }
.toast--info .icon { color: #A8CBF5; }
.toast__close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: rgba(255, 255, 255, .7); display: grid; place-items: center; }
.toast__close:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.toast__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(255, 255, 255, .35); transform-origin: left; animation: toast-bar 6s linear forwards; }
.toast.is-leaving { animation: toast-out 280ms var(--ease-in) forwards; }
.toast a { color: #fff; word-break: break-all; }

/* --------------------------------------------------------------------------
   En-tête du site
   -------------------------------------------------------------------------- */
.announce { background: var(--forest-900); color: rgba(255, 255, 255, .9); font-size: .84rem; }
.announce__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.announce__msg { display: flex; align-items: center; gap: 8px; }
.announce__msg .icon { color: var(--gold-400); width: 16px; height: 16px; }
.announce__flags { display: none; align-items: center; gap: 10px; }
.announce__flags .flags { display: flex; }
.announce__flags .flag { width: 18px; height: 13.5px; border-radius: 3px; margin-left: -4px; box-shadow: 0 0 0 1.5px var(--forest-900); }
@media (min-width: 760px) { .announce__flags { display: flex; } }

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--d-std), box-shadow var(--d-std), transform 420ms var(--ease-out);
  view-transition-name: site-header;
}
.site-header.is-scrolled { border-color: var(--line-2); box-shadow: 0 6px 20px -14px rgba(10, 58, 39, .25); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest-900); flex: none; }
.logo:hover { color: var(--forest-900); }
.logo__mark { width: 36px; height: 36px; flex: none; }
.logo__word { font-weight: 800; font-size: 1.42rem; letter-spacing: -0.035em; line-height: 1; }
.nav { display: none; margin-inline: auto; gap: 4px; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem;
  transition: color var(--d-quick), background var(--d-quick);
}
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--green-500); transform: scaleX(0); transform-origin: left; transition: transform 380ms var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--forest-700); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-actions .login-link { display: none; color: var(--ink); font-weight: 600; text-decoration: none; padding: 8px 12px; border-radius: 10px; }
.header-actions .login-link:hover { background: var(--mint-50); }
.burger { display: inline-grid; }
.burger__lines { position: relative; width: 22px; height: 14px; }
.burger__lines span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform 420ms var(--spring), opacity 200ms, top 300ms var(--ease-out); }
.burger__lines span:nth-child(1) { top: 0; }
.burger__lines span:nth-child(2) { top: 6px; }
.burger__lines span:nth-child(3) { top: 12px; }
.menu-open .burger__lines span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-open .burger__lines span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.menu-open .burger__lines span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
@media (min-width: 1000px) {
  .nav { display: flex; }
  .header-actions .login-link { display: inline-flex; }
  .burger { display: none; }
}
@media (max-width: 420px) { .header-actions .btn--sm { padding: 0 12px; } }

.mobile-menu {
  position: fixed; inset: 0; z-index: 95; background: var(--forest-900); color: #fff;
  display: flex; flex-direction: column; padding: calc(var(--header-h) + 24px + var(--safe-t)) var(--gutter) calc(28px + var(--safe-b));
  clip-path: circle(0% at calc(100% - 44px) 34px);
  visibility: hidden;
  transition: clip-path 640ms var(--ease-io), visibility 0s 640ms;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 34px); visibility: visible; transition: clip-path 720ms var(--ease-io), visibility 0s; }
.menu-open .site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; box-shadow: none; }
.menu-open .site-header .logo, .menu-open .site-header .burger { color: #fff; }
.menu-open .header-actions .btn { opacity: 0; pointer-events: none; }
.menu-open { overflow: hidden; }
.mobile-menu nav { display: grid; gap: 4px; }
.mobile-menu nav a {
  color: #fff; text-decoration: none; font-size: clamp(1.9rem, 8vw, 2.4rem); font-weight: 750; letter-spacing: -0.03em;
  padding: 8px 0; display: flex; align-items: center; justify-content: space-between;
  opacity: 0; transform: translateY(26px);
  transition: opacity 300ms, transform 500ms var(--ease-out);
}
.mobile-menu nav a .icon { width: 26px; height: 26px; color: var(--green-300); }
.menu-open .mobile-menu nav a { opacity: 1; transform: none; transition-delay: calc(180ms + var(--i, 0) * 60ms); }
.mobile-menu__foot { margin-top: auto; display: grid; gap: 12px; opacity: 0; transform: translateY(20px); transition: opacity 300ms, transform 500ms var(--ease-out); }
.menu-open .mobile-menu__foot { opacity: 1; transform: none; transition-delay: 520ms; }

/* --------------------------------------------------------------------------
   Accueil — héros
   -------------------------------------------------------------------------- */
.hero { position: relative; padding: clamp(28px, 6vw, 72px) 0 clamp(48px, 7vw, 80px); overflow: clip; }
.hero__grid { display: grid; gap: clamp(36px, 6vw, 56px); align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.12fr .88fr; } .hero { padding-top: 44px; } }
.hero__copy { position: relative; z-index: 2; }
.hero__title { margin: 18px 0 20px; font-size: clamp(2.7rem, 10.5vw, 4.35rem); line-height: .98; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .word { display: inline-block; will-change: transform; }
.hero__brand { position: relative; color: var(--green-500); white-space: nowrap; }
.hero__swoosh { position: absolute; left: -2%; right: -4%; bottom: -.08em; width: 106%; height: .32em; overflow: visible; color: var(--gold-500); }
.hero__swoosh path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero__lead { font-size: clamp(1.06rem, 2.6vw, 1.2rem); color: var(--ink-2); max-width: 540px; margin-bottom: 30px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__ctas .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .hero__ctas .btn { flex: 0 0 auto; } }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding: 0; list-style: none; }
.trust li { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-2); font-weight: 500; }
.trust .icon { color: var(--forest-700); width: 20px; height: 20px; }
.trust li + li { position: relative; }
@media (min-width: 760px) { .trust li + li::before { content: ""; position: absolute; left: -12px; top: 50%; width: 1px; height: 18px; background: var(--line); transform: translateY(-50%); } }

/* Scène du téléphone 3D */
.hero__visual { position: relative; min-height: 560px; display: grid; place-items: center; perspective: 1600px; }
@media (max-width: 999px) { .hero__visual { min-height: 520px; margin-inline: calc(var(--gutter) * -1); } }
.hero__blob {
  position: absolute; width: min(92%, 520px); aspect-ratio: 1 / 1.08;
  background: radial-gradient(120% 90% at 30% 20%, #DDF0E4 0%, var(--mint-100) 45%, #D3EBDD 100%);
  border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%;
  transform: rotate(-8deg);
}
.hero__rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.hero__rings span { position: absolute; border-radius: 50%; border: 1px dashed rgba(16, 89, 59, .18); }
.hero__rings span:nth-child(1) { width: 420px; height: 420px; }
.hero__rings span:nth-child(2) { width: 560px; height: 560px; border-style: solid; border-color: rgba(16, 89, 59, .07); }
.phone-stage { position: relative; transform-style: preserve-3d; will-change: transform; }
.phone {
  --pw: 276px;
  position: relative; width: var(--pw); aspect-ratio: 9 / 19.2;
  border-radius: calc(var(--pw) * .16);
  padding: calc(var(--pw) * .035);
  background: linear-gradient(145deg, #2B332F, #0B100E 40%, #1C2320);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .12),
    inset 0 0 0 5px #0B0F0D,
    1px 1px 0 #2A322E, 2px 2px 0 #262D2A, 3px 3px 0 #222926, 4px 4px 0 #1E2522, 5px 5px 0 #1A201E, 6px 6px 0 #161B19,
    30px 40px 60px -10px rgba(6, 40, 27, .45);
  transform-style: preserve-3d;
}
.phone::before { content: ""; position: absolute; top: calc(var(--pw) * .055); left: 50%; width: 30%; height: calc(var(--pw) * .075); transform: translateX(-50%); background: #070A09; border-radius: 20px; z-index: 3; }
.phone__screen { position: relative; height: 100%; border-radius: calc(var(--pw) * .13); background: #F6FAF7; overflow: hidden; }
.phone__glare { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, rgba(255, 255, 255, .0) 40%, rgba(255, 255, 255, .25) 52%, rgba(255, 255, 255, 0) 64%); pointer-events: none; z-index: 4; mix-blend-mode: soft-light; }
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px 0; font-size: 11px; font-weight: 700; color: #fff; }
.ph-status .icon { width: 13px; height: 13px; }
.ph-status__icons { display: flex; gap: 4px; }
.ph-top { background: linear-gradient(160deg, var(--forest-800), var(--forest-950)); padding-bottom: 54px; border-radius: 0 0 22px 22px; color: #fff; position: relative; }
.ph-top::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(70% 60% at 85% 0%, rgba(61, 184, 122, .35), transparent 70%); pointer-events: none; }
.ph-hello { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 0; position: relative; z-index: 1; }
.ph-hello b { display: block; font-size: 13px; }
.ph-hello small { font-size: 10.5px; opacity: .7; }
.ph-hello .icon { width: 17px; height: 17px; opacity: .85; }
.ph-balance {
  position: relative; z-index: 1; margin: -40px 14px 0; padding: 14px 16px;
  background: #fff; border-radius: 16px; box-shadow: 0 10px 30px -10px rgba(6, 40, 27, .35);
}
.ph-balance small { font-size: 10px; color: var(--ink-3); font-weight: 600; }
.ph-balance strong { display: block; font-size: 25px; font-weight: 800; letter-spacing: -0.03em; color: var(--forest-900); font-variant-numeric: tabular-nums; line-height: 1.15; }
.ph-balance .ph-gain { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 10.5px; font-weight: 700; color: var(--green-600); }
.ph-balance .ph-gain .icon { width: 12px; height: 12px; }
.ph-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 14px 14px 6px; }
.ph-actions div { display: grid; justify-items: center; gap: 4px; font-size: 9.5px; font-weight: 600; color: var(--ink-2); }
.ph-actions span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--mint-100); color: var(--forest-700); }
.ph-actions .icon { width: 17px; height: 17px; }
.ph-list { padding: 8px 14px; }
.ph-list h5 { margin: 4px 2px 8px; font-size: 11.5px; font-weight: 750; display: flex; justify-content: space-between; }
.ph-list h5 span { color: var(--green-600); font-weight: 600; }
.ph-task { display: flex; align-items: center; gap: 9px; padding: 9px; background: #fff; border-radius: 13px; margin-bottom: 7px; box-shadow: 0 1px 2px rgba(10, 58, 39, .06); }
.ph-task__ic { width: 30px; height: 30px; border-radius: 9px; background: var(--mint-100); color: var(--forest-700); display: grid; place-items: center; flex: none; }
.ph-task__ic .icon { width: 15px; height: 15px; }
.ph-task div { flex: 1; min-width: 0; }
.ph-task b { display: block; font-size: 10.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-task small { font-size: 9px; color: var(--ink-3); }
.ph-task em { font-style: normal; font-size: 10.5px; font-weight: 800; color: #7A4D00; background: var(--gold-100); padding: 2px 7px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.ph-task.is-done .ph-task__ic { background: var(--green-500); color: #fff; }
.phone-shadow { position: absolute; left: 50%; bottom: -36px; width: 70%; height: 40px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(6, 40, 27, .32), transparent); filter: blur(6px); z-index: -1; }

.float-card {
  position: absolute; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 16px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -12px rgba(6, 40, 27, .3), 0 0 0 1px rgba(16, 89, 59, .06);
  font-size: .82rem; line-height: 1.3; white-space: nowrap;
}
.float-card b { display: block; font-size: .86rem; color: var(--ink); }
.float-card small { color: var(--ink-3); font-size: .76rem; }
.float-card .icon-tile { width: 36px; height: 36px; border-radius: 11px; }
.float-card .icon-tile .icon { width: 18px; height: 18px; }
.float-card--notif { top: 10%; left: 2%; }
.float-card--payout { bottom: 13%; right: 0; }
.float-card--ref { bottom: 30%; left: -2%; }
@media (max-width: 999px) {
  .float-card--notif { top: 4%; left: 4%; }
  .float-card--payout { bottom: 6%; right: 4%; }
  .float-card--ref { display: none; }
}
.notif-stack { position: absolute; top: 6%; left: -7%; z-index: 6; width: 250px; }
@media (max-width: 999px) { .notif-stack { left: 3%; top: 2%; width: 232px; } }
.notif-stack .float-card { position: absolute; top: 0; left: 0; }

/* Bande défilante des moyens de paiement */
.marquee { position: relative; overflow: hidden; padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 12px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--ink-2); white-space: nowrap; }
.marquee__item .flag { width: 20px; height: 15px; }
.payments-strip { border-block: 1px solid var(--line-2); background: linear-gradient(180deg, #fff, var(--mint-50)); }
.payments-strip__label { text-align: center; font-size: .84rem; color: var(--ink-3); font-weight: 600; padding-top: 20px; }

/* --------------------------------------------------------------------------
   Accueil — fonctionnalités (cartes animées)
   -------------------------------------------------------------------------- */
.features { padding: clamp(40px, 6vw, 72px) clamp(18px, 4vw, 48px); }
.features__grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .features__grid { grid-template-columns: repeat(3, 1fr); gap: 26px; } }
.feature__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.feature__head h3 { margin-bottom: 6px; }
.feature__head p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.mock {
  position: relative; height: 272px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, #fff, #F4F9F6);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-1);
}
.mock--dark { background: linear-gradient(160deg, var(--forest-800), var(--forest-950)); border-color: transparent; color: #fff; }

/* Maquette 1 : missions du jour */
.mock-tasks { padding: 18px; display: grid; gap: 10px; }
.mock-tasks__top { display: flex; align-items: center; justify-content: space-between; }
.mock-tasks__top b { font-size: .95rem; }
.ring { --p: 0; --size: 56px; width: var(--size); height: var(--size); position: relative; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring .ring__bg { stroke: var(--mint-100); }
.ring .ring__fg { stroke: var(--green-500); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p)); transition: stroke-dashoffset 900ms var(--ease-out); }
.ring__label { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: .78rem; font-variant-numeric: tabular-nums; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line-2); }
.mock-row__ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--mint-100); color: var(--forest-700); flex: none; transition: background 300ms, color 300ms; }
.mock-row__ic .icon { width: 16px; height: 16px; }
.mock-row div { flex: 1; min-width: 0; }
.mock-row b { display: block; font-size: .84rem; line-height: 1.2; }
.mock-row small { font-size: .74rem; color: var(--ink-3); }
.mock-row.is-done .mock-row__ic { background: var(--green-500); color: #fff; }
.mock-check { width: 16px; height: 16px; }
.mock-check path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 500ms var(--ease-out) 120ms; }
.mock-row.is-done .mock-check path { stroke-dashoffset: 0; }
.gain-pop { position: absolute; right: 18px; top: 50%; padding: 6px 12px; border-radius: 99px; background: var(--gold-500); color: var(--forest-950); font-weight: 800; font-size: .9rem; font-variant-numeric: tabular-nums; box-shadow: 0 10px 24px -8px rgba(201, 138, 28, .7); opacity: 0; transform: translateY(10px) scale(.6); }
.gain-pop.is-on { animation: gain-pop 1600ms var(--spring-bouncy) forwards; }

/* Maquette 2 : parrainage */
.mock-ref { display: grid; place-items: center; height: 100%; }
.mock-ref svg.mock-ref__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.mock-ref__lines path { fill: none; stroke: var(--green-300); stroke-width: 2; stroke-dasharray: 4 6; }
.mock-ref__me { position: relative; z-index: 2; display: grid; justify-items: center; gap: 6px; }
.mock-ref__me .avatar { width: 58px; height: 58px; background: var(--forest-700); color: #fff; box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--mint-200); }
.mock-ref__code { font-weight: 800; font-size: .76rem; letter-spacing: .08em; padding: 3px 10px; border-radius: 99px; background: var(--forest-900); color: #fff; }
.mock-ref__friend { position: absolute; z-index: 2; display: grid; justify-items: center; gap: 4px; }
.mock-ref__friend .avatar { width: 40px; height: 40px; font-size: .8rem; box-shadow: 0 0 0 4px #fff; }
.mock-ref__friend .reward { font-size: .72rem; padding: 2px 8px; }
.mock-ref__friend:nth-of-type(1) { left: 12%; top: 14%; }
.mock-ref__friend:nth-of-type(2) { right: 12%; top: 18%; }
.mock-ref__friend:nth-of-type(3) { left: 14%; bottom: 8%; }

/* Maquette 3 : retrait */
.mock-pay { padding: 18px; display: grid; gap: 12px; }
.mock-pay__amount { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.mock-pay__amount small { font-size: .9rem; color: rgba(255, 255, 255, .6); font-weight: 600; }
.mock-pay__op { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .08); font-size: .86rem; }
.mock-pay__op .flag { width: 22px; height: 16px; }
.mock-pay__btn { position: relative; height: 46px; border-radius: 12px; background: var(--gold-500); color: var(--forest-950); font-weight: 750; display: grid; place-items: center; overflow: hidden; transition: background 400ms, transform 160ms; }
.mock-pay__btn span { transition: transform 420ms var(--spring), opacity 240ms; }
.mock-pay__btn .done { position: absolute; display: flex; align-items: center; gap: 8px; transform: translateY(140%); opacity: 0; }
.mock-pay.is-sent .mock-pay__btn { background: var(--green-400); }
.mock-pay.is-sent .mock-pay__btn .label { transform: translateY(-140%); opacity: 0; }
.mock-pay.is-sent .mock-pay__btn .done { transform: none; opacity: 1; }
.mock-pay.is-pressing .mock-pay__btn { transform: scale(.95); }
.caret { display: inline-block; width: 2px; height: 1em; background: currentColor; margin-left: 2px; vertical-align: -0.12em; animation: blink 1s steps(1) infinite; }

/* --------------------------------------------------------------------------
   Types de missions
   -------------------------------------------------------------------------- */
.types { display: grid; gap: 16px; grid-auto-flow: column; grid-auto-columns: minmax(260px, 82%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 18px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
.types::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .types { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; } }
.type-card {
  position: relative; scroll-snap-align: start;
  padding: 24px; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; min-height: 250px;
  transition: transform 500ms var(--spring-soft), box-shadow 500ms var(--ease-out), border-color 300ms;
}
.type-card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); border-color: transparent; }
.type-card h3 { margin: 4px 0 0; }
.type-card p { color: var(--ink-2); font-size: .95rem; margin: 0; flex: 1; }
.type-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.type-card__time { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--ink-3); font-weight: 600; }
.type-card__time .icon { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   Étapes
   -------------------------------------------------------------------------- */
.steps { position: relative; display: grid; gap: 34px; max-width: 980px; margin: 0 auto; }
.steps__track { position: absolute; left: 31px; top: 36px; bottom: 36px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps__fill { position: absolute; inset: 0; background: var(--green-500); transform-origin: top; transform: scaleY(var(--progress, 0)); }
.step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; }
.step__icon {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: var(--mint-100); color: var(--forest-700);
  box-shadow: 0 0 0 8px #fff;
  transition: background 500ms var(--ease-out), color 500ms, transform 600ms var(--spring-bouncy);
}
.step__icon .icon { width: 28px; height: 28px; --icon-sw: 1.8; }
.step.is-reached .step__icon { background: var(--forest-700); color: #fff; transform: scale(1.06); }
.step__num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--forest-900); color: #fff; font-size: .8rem; font-weight: 800; margin-right: 8px; vertical-align: 2px; }
.step h3 { margin: 6px 0 6px; font-size: 1.15rem; }
.step p { color: var(--ink-2); margin: 0; font-size: .97rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .steps__track { left: 16%; right: 16%; top: 31px; bottom: auto; width: auto; height: 2px; }
  .steps__fill { transform-origin: left; transform: scaleX(var(--progress, 0)); }
  .step { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .step__icon { margin-bottom: 6px; }
}

/* --------------------------------------------------------------------------
   Circuit de l'argent
   -------------------------------------------------------------------------- */
.flow { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .flow { grid-template-columns: 1fr 1fr; } }
.flow__copy h2 { margin-bottom: 18px; }
.flow__copy > p { color: var(--ink-2); font-size: 1.05rem; }
.flow__facts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.flow__facts li { display: flex; gap: 14px; align-items: flex-start; }
.flow__facts .icon-tile { width: 40px; height: 40px; border-radius: 12px; }
.flow__facts .icon-tile .icon { width: 20px; height: 20px; }
.flow__facts b { display: block; }
.flow__facts span { color: var(--ink-2); font-size: .95rem; }
.flow__diagram { background: var(--forest-900); border-radius: var(--r-2xl); padding: clamp(16px, 3vw, 28px); color: #fff; position: relative; overflow: hidden; }
.flow__diagram::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 80% 0%, rgba(61, 184, 122, .25), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(227, 161, 47, .14), transparent 70%); }
.flow__svg { position: relative; width: 100%; height: auto; }
.flow__svg .path { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 2; stroke-dasharray: 6 8; }
.flow__svg .path--gold { stroke: rgba(240, 182, 75, .45); }
.flow__node rect { fill: rgba(255, 255, 255, .07); stroke: rgba(255, 255, 255, .14); }
.flow__node--core rect { fill: var(--green-500); stroke: none; }
.flow__node text { fill: #fff; font-family: var(--font); }
.flow__node .t1 { font-size: 15px; font-weight: 750; }
.flow__node .t2 { font-size: 11.5px; fill: rgba(255, 255, 255, .7); font-weight: 500; }
.flow__node--core .t2 { fill: rgba(255, 255, 255, .9); }
.flow__coin { fill: var(--gold-400); filter: drop-shadow(0 0 6px rgba(240, 182, 75, .8)); }
.flow__legend { position: relative; display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: .82rem; color: rgba(255, 255, 255, .72); }
.flow__legend i { display: inline-block; width: 18px; height: 2px; vertical-align: middle; margin-right: 6px; background: rgba(255, 255, 255, .5); }
.flow__legend i.gold { background: var(--gold-400); }

/* --------------------------------------------------------------------------
   Pays couverts
   -------------------------------------------------------------------------- */
.countries__group + .countries__group { margin-top: 30px; }
.countries__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 14px; }
.countries__label h3 { margin: 0; font-size: 1.05rem; }
.countries__label span { font-size: .88rem; color: var(--ink-3); }
.countries__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .countries__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .countries__grid { grid-template-columns: repeat(4, 1fr); } }
.country {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 16px; background: #fff; border: 1px solid var(--line);
  transition: transform 420ms var(--spring-soft), border-color 300ms, box-shadow 400ms;
}
.country:hover { transform: translateY(-3px); border-color: var(--green-300); box-shadow: var(--sh-1); }
.country .flag { width: 34px; height: 25.5px; border-radius: 6px; }
.country b { display: block; font-size: .95rem; line-height: 1.25; }
.country small { display: block; color: var(--ink-3); font-size: .76rem; line-height: 1.35; }

/* --------------------------------------------------------------------------
   Simulateur de commissions
   -------------------------------------------------------------------------- */
.calc { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .calc { grid-template-columns: 1fr 1.05fr; gap: 56px; } }
.calc__card { padding: clamp(22px, 4vw, 34px); border-radius: var(--r-2xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2); }
.range { display: grid; gap: 10px; margin-bottom: 22px; }
.range__top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.range__top output { font-size: 1.3rem; font-weight: 800; color: var(--forest-700); font-variant-numeric: tabular-nums; }
.range input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--green-500) var(--fill, 30%), var(--mint-100) var(--fill, 30%)); outline: none; }
.range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--forest-700); box-shadow: 0 4px 12px rgba(10, 58, 39, .25); cursor: grab; transition: transform 200ms var(--spring); }
.range input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
.range input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--forest-700); cursor: grab; }
.calc__result { margin-top: 6px; padding: 20px; border-radius: 20px; background: var(--forest-900); color: #fff; }
.calc__result small { color: rgba(255, 255, 255, .7); font-weight: 600; }
.calc__result strong { display: block; font-size: clamp(2.2rem, 7vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--gold-400); }
.calc__note { font-size: .84rem; color: var(--ink-3); margin: 14px 0 0; }

.levels { display: grid; gap: 10px; margin-top: 18px; }
.level { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--mint-50); border: 1px solid var(--line-2); }
.level strong { font-size: 1.4rem; font-weight: 800; color: var(--forest-700); min-width: 72px; white-space: nowrap; }
.level span { font-size: .93rem; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Chiffres, bandeau annonceurs, FAQ, appel final
   -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat { padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(1.9rem, 5vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; color: var(--forest-900); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { color: var(--ink-3); font-size: .92rem; }
.adv-band { display: grid; gap: 22px; align-items: center; padding: clamp(26px, 5vw, 44px); border-radius: var(--r-2xl); background: linear-gradient(120deg, var(--mint-100), var(--mint-50)); border: 1px solid var(--mint-200); }
@media (min-width: 860px) { .adv-band { grid-template-columns: auto 1fr auto; gap: 28px; } }
.adv-band h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); margin-bottom: 6px; }
.adv-band p { margin: 0; color: var(--ink-2); }
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: border-color 300ms, box-shadow 400ms, background 300ms; }
.faq__item.is-open, html:not(.js) .faq__item[open] { border-color: var(--mint-200); box-shadow: var(--sh-1); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-weight: 650; font-size: 1.02rem; line-height: 1.4;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon-btn { width: 34px; height: 34px; border-radius: 10px; background: var(--mint-50); flex: none; transition: transform 500ms var(--spring), background 300ms; }
.faq__item.is-open summary .icon-btn, html:not(.js) .faq__item[open] summary .icon-btn { transform: rotate(45deg); background: var(--forest-700); color: #fff; }
.faq__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 500ms var(--ease-out); }
.faq__item.is-open .faq__body, html:not(.js) .faq__item[open] .faq__body { grid-template-rows: 1fr; }
.faq__body > div { overflow: hidden; }
.faq__body p { padding: 0 20px 20px; margin: 0; color: var(--ink-2); }
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  margin-inline: clamp(8px, 2vw, 24px); border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  background: var(--forest-900); color: #fff;
  padding: clamp(48px, 8vw, 88px) 0 clamp(40px, 6vw, 64px);
}
.cta-band__glow { position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(40% 50% at 20% 30%, rgba(61, 184, 122, .35), transparent 70%), radial-gradient(35% 40% at 85% 20%, rgba(227, 161, 47, .22), transparent 70%); z-index: -1; animation: drift 18s var(--ease-io) infinite alternate; }
.cta-band h2 { color: #fff; max-width: 640px; }
.cta-band p { color: rgba(255, 255, 255, .78); max-width: 560px; font-size: 1.06rem; }
.cta-band__inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .cta-band__inner { grid-template-columns: 1.2fr .8fr; } }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.site-footer { background: var(--forest-950); color: rgba(255, 255, 255, .74); padding: clamp(44px, 7vw, 72px) 0 calc(28px + var(--safe-b)); font-size: .94rem; }
.site-footer--joined { margin-inline: clamp(8px, 2vw, 24px); border-radius: 0 0 var(--r-2xl) var(--r-2xl); margin-bottom: clamp(8px, 2vw, 24px); background: var(--forest-900); border-top: 1px solid rgba(255, 255, 255, .08); }
.footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; } }
.footer__brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer__brand { grid-column: auto; } }
.footer__brand .logo { color: #fff; margin-bottom: 14px; }
.footer__brand p { max-width: 320px; }
.site-footer h3 { color: #fff; font-size: .98rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .74); text-decoration: none; transition: color var(--d-quick); }
.site-footer a:hover { color: #fff; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .icon { color: var(--green-300); margin-top: 3px; width: 18px; height: 18px; }
.footer__social { display: flex; gap: 8px; margin-top: 18px; }
.footer__social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.footer__social a:hover { background: rgba(255, 255, 255, .16); }
.footer__social .icon { width: 18px; height: 18px; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Pages intérieures
   -------------------------------------------------------------------------- */
.page-hero { padding: clamp(36px, 7vw, 84px) 0 clamp(28px, 5vw, 48px); text-align: center; }
.page-hero h1 { font-size: clamp(2.2rem, 7vw, 3.8rem); margin: 10px auto 16px; max-width: 900px; }
.page-hero p { color: var(--ink-2); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }
.page-hero .hero__ctas { justify-content: center; margin-top: 28px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; font-size: .86rem; color: var(--ink-3); margin: 0; padding: 0; list-style: none; }
.breadcrumbs a { color: var(--ink-3); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.prose { font-size: 1.06rem; line-height: 1.75; color: #22322B; }
.prose h2 { font-size: clamp(1.45rem, 3.6vw, 1.85rem); margin: 1.8em 0 .6em; scroll-margin-top: 90px; }
.prose h3 { margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--green-500); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--green-400); color: var(--ink-2); font-style: italic; }
.prose a { font-weight: 600; }
.post-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; color: var(--ink-3); font-size: .9rem; margin-top: 18px; }
.post-meta span { display: inline-flex; gap: 6px; align-items: center; }
.post-meta .icon { width: 16px; height: 16px; }
.posts { display: grid; gap: 20px; }
@media (min-width: 760px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post-card {
  display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--r-xl);
  background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: transform 500ms var(--spring-soft), box-shadow 500ms var(--ease-out), border-color 300ms;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); border-color: transparent; color: inherit; }
.post-card__cover { height: 150px; border-radius: 16px; background: var(--forest-900); position: relative; overflow: hidden; display: grid; place-items: center; }
.post-card__cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 80% 10%, rgba(61, 184, 122, .45), transparent 70%), radial-gradient(40% 50% at 10% 100%, rgba(227, 161, 47, .3), transparent 70%); }
.post-card__cover .icon { position: relative; width: 44px; height: 44px; color: #fff; --icon-sw: 1.5; }
.post-card h2 { font-size: 1.22rem; line-height: 1.3; margin: 0; letter-spacing: -0.015em; }
.post-card p { color: var(--ink-2); font-size: .95rem; margin: 0; flex: 1; }
.post-card small { color: var(--ink-3); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 36px; } }
.contact-tile { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform 400ms var(--spring-soft), border-color 300ms; }
.contact-tile:hover { transform: translateY(-3px); border-color: var(--green-300); color: inherit; }
.contact-tile b { display: block; }
.contact-tile span { color: var(--ink-3); font-size: .92rem; word-break: break-word; }
.price-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.price-card { padding: 22px; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); display: grid; gap: 10px; }
.price-card strong { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--forest-900); font-variant-numeric: tabular-nums; line-height: 1; }
.price-card strong small { font-size: .9rem; color: var(--ink-3); font-weight: 600; letter-spacing: 0; }
.split { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--green-500); margin-top: 3px; }

/* --------------------------------------------------------------------------
   Authentification
   -------------------------------------------------------------------------- */
.auth { min-height: 100dvh; display: grid; }
@media (min-width: 1000px) { .auth { grid-template-columns: .92fr 1.08fr; } }
.auth__aside { display: none; }
@media (min-width: 1000px) {
  .auth__aside {
    position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; justify-content: space-between;
    padding: 36px 44px; background: var(--forest-900); color: #fff; overflow: hidden; isolation: isolate;
  }
  .auth__aside::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 80% 10%, rgba(61, 184, 122, .3), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(227, 161, 47, .16), transparent 70%); }
  .auth__aside .logo { color: #fff; }
  .auth__aside h2 { color: #fff; font-size: 2.3rem; max-width: 460px; }
  .auth__aside p { color: rgba(255, 255, 255, .75); max-width: 420px; }
  .auth__aside .phone { --pw: 210px; margin: 0 auto; transform: rotate(-6deg); }
}
.auth__main { display: flex; flex-direction: column; padding: 18px var(--gutter) calc(32px + var(--safe-b)); }
.auth__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
@media (min-width: 1000px) { .auth__top .logo { visibility: hidden; } }
.auth__card { width: 100%; max-width: 480px; margin: clamp(16px, 4vw, 40px) auto auto; }
.auth__card h1 { font-size: clamp(1.9rem, 6vw, 2.45rem); margin-bottom: 8px; }
.auth__card > p { color: var(--ink-2); margin-bottom: 24px; }
.auth__alt { text-align: center; margin-top: 22px; color: var(--ink-2); font-size: .95rem; }
.sponsor-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--gold-100); border: 1px solid #F3DDB0; margin-bottom: 20px; }
.sponsor-card b { display: block; }
.sponsor-card span { font-size: .88rem; color: #6B4A12; }

/* --------------------------------------------------------------------------
   Mouvement : transitions de pages, apparitions, keyframes
   -------------------------------------------------------------------------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 220ms var(--ease-in) both vt-out; }
::view-transition-new(root) { animation: 460ms var(--ease-out) both vt-in; }
::view-transition-group(site-header), ::view-transition-group(app-tabbar), ::view-transition-group(app-sidebar) { animation-duration: 0s; }
::view-transition-group(balance-card), ::view-transition-group(tab-indicator) { animation-duration: 560ms; animation-timing-function: var(--spring-soft); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px) scale(.99); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

.no-vt main { animation: page-in 520ms var(--ease-out) both; }
.no-vt.is-leaving main { animation: page-out 200ms var(--ease-in) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes page-out { to { opacity: 0; transform: translateY(-8px); } }

.motion [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
.motion [data-reveal="left"] { transform: translateX(-26px); }
.motion [data-reveal="scale"] { transform: scale(.94); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion-failsafe [data-reveal], .motion-failsafe [data-hero] { opacity: 1 !important; transform: none !important; }
.motion [data-hero] { opacity: 0; }
.motion .hero__title .word, .motion [data-phone-stage] .phone, .motion [data-phone-stage] .phone-shadow { opacity: 0; }
.motion-failsafe .hero__title .word, .motion-failsafe [data-phone-stage] .phone, .motion-failsafe [data-phone-stage] .phone-shadow { opacity: 1 !important; }
.motion-failsafe .hero__swoosh path { stroke-dashoffset: 0 !important; }

/* Intro au premier chargement */
.intro { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; background: var(--forest-900); color: #fff; }
.intro-on .intro { display: grid; }
.intro-on body { overflow: hidden; }
.motion-failsafe .intro { display: none !important; }
.intro__mark { width: 74px; height: 74px; overflow: visible; }
.intro__mark .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro__mark .coin { transform-origin: 19.6px 20.5px; transform: scale(0); }
.intro__word { font-weight: 800; font-size: clamp(2.6rem, 12vw, 4.4rem); letter-spacing: -0.04em; display: flex; overflow: hidden; margin-top: 8px; }
.intro__word span { display: inline-block; transform: translateY(105%); }
.intro__inner { display: grid; justify-items: center; }
.intro__bar { width: 120px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .15); margin-top: 22px; overflow: hidden; }
.intro__bar i { display: block; height: 100%; width: 100%; background: var(--gold-400); transform: scaleX(0); transform-origin: left; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(2.2); opacity: 0; } }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-18px) scale(.94); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-14px) scale(.96); } }
@keyframes toast-bar { to { transform: scaleX(0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes drift { to { transform: translate3d(4%, 6%, 0) rotate(4deg); } }
@keyframes gain-pop {
  0% { opacity: 0; transform: translateY(10px) scale(.6); }
  25% { opacity: 1; transform: translateY(-50%) scale(1); }
  75% { opacity: 1; transform: translateY(-50%) scale(1); }
  100% { opacity: 0; transform: translateY(-120%) scale(.9); }
}
@keyframes float-y { 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .marquee__track { animation: none; }
}
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }

/* Inscription : champs selon le type de compte */
.only-adv { display: none; }
[data-register].is-adv .only-adv, [data-register]:has(#t-adv:checked) .only-adv { display: grid; }
[data-register].is-adv .only-member, [data-register]:has(#t-adv:checked) .only-member { display: none; }
.js [data-country-select].is-enhanced { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }

/* --------------------------------------------------------------------------
   Personnages (illustrations vectorielles animées, générées par App\Core\Art)
   -------------------------------------------------------------------------- */
.chr { display: block; width: 100%; height: auto; overflow: visible; }
.chr text { user-select: none; }
.chr-eyes { animation: chr-blink 5.6s infinite; }
.chr-fig:nth-of-type(2) .chr-eyes { animation-delay: -2.2s; }
.chr-fig:nth-of-type(3) .chr-eyes { animation-delay: -3.9s; }
.chr--welcome .chr-eyes, .chr--empty .chr-eyes { animation-delay: -1.3s; }
@keyframes chr-blink { 0%, 92%, 100% { transform: scaleY(1); } 94.5% { transform: scaleY(.08); } }

/* Salut de la main (avant-bras autour du coude) */
.chr-wave { animation: chr-wave 2.8s var(--ease-io) infinite; }
@keyframes chr-wave {
  0%, 58%, 100% { transform: rotate(0); }
  10% { transform: rotate(-18deg); } 22% { transform: rotate(13deg); }
  34% { transform: rotate(-15deg); } 46% { transform: rotate(7deg); }
}
/* Poing levé : anticipation, coup vers le haut, retour amorti */
.chr-pump { animation: chr-pump 1.6s cubic-bezier(.3, 0, .2, 1) infinite; }
@keyframes chr-pump { 0%, 100% { transform: rotate(0); } 16% { transform: rotate(9deg); } 38% { transform: rotate(-16deg); } 58% { transform: rotate(-3deg); } 72% { transform: rotate(-6deg); } }
/* Saut de joie avec écrasement / étirement, l'ombre suit */
.chr-jump .chr-body { animation: chr-jump 1.3s cubic-bezier(.33, 0, .2, 1) infinite; }
.chr-jump .chr-shadow { animation: chr-jump-shadow 1.3s cubic-bezier(.33, 0, .2, 1) infinite; }
@keyframes chr-jump {
  0%, 14%, 100% { transform: translateY(0) scale(1.05, .94); }
  42% { transform: translateY(-24px) scale(.96, 1.05); }
  64% { transform: translateY(-3px) scale(1, 1); }
  76% { transform: translateY(0) scale(1.03, .97); }
  88% { transform: translateY(0) scale(1, 1); }
}
@keyframes chr-jump-shadow { 0%, 14%, 76%, 100% { transform: scale(1); opacity: .13; } 42% { transform: scale(.7); opacity: .06; } }
.chr--hero .chr-head, .chr--welcome .chr-head, .chr--success .chr-head { animation: chr-tilt 5.2s var(--ease-io) infinite; }
@keyframes chr-tilt { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-3.5deg); } 64% { transform: rotate(2.5deg); } }

/* Pièces */
.chr-coin { animation: chr-coin 3.2s var(--ease-io) infinite; animation-delay: calc(var(--i, 0) * -.8s); }
@keyframes chr-coin { 0%, 100% { transform: translateY(0) rotate(-10deg); } 50% { transform: translateY(-10px) rotate(10deg); } }
.chr-held-coin { animation: chr-flip 3.4s var(--ease-io) infinite; }
@keyframes chr-flip { 0%, 40%, 60%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.12); } }
.chr-bcoin { opacity: 0; }
.is-cheer .chr-bcoin { animation: chr-burst 1.5s cubic-bezier(.15, .7, .3, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes chr-burst {
  0% { opacity: 0; transform: translate(0, 0) scale(.3); }
  14% { opacity: 1; }
  72% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx, 0), -92px) scale(1.05) rotate(25deg); }
}
.chr--hero .chr-pump { animation: none; }
.is-cheer .chr--hero .chr-pump { animation: chr-pump 1.2s cubic-bezier(.3, 0, .2, 1) 1; }

/* Accessoires */
.chr-waves path { opacity: 0; animation: chr-waves 1.7s var(--ease-out) infinite; }
.chr-waves path:nth-child(2) { animation-delay: .28s; }
@keyframes chr-waves { 0% { opacity: 0; transform: translateX(-5px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(7px); } }
.chr-steam path { animation: chr-steam 2.6s var(--ease-io) infinite; }
.chr-steam path:nth-child(2) { animation-delay: .9s; }
@keyframes chr-steam { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-7px); } }
.chr-sparkles path { transform-box: fill-box; transform-origin: center; animation: chr-twinkle 2.4s var(--ease-io) infinite; }
.chr-sparkles path:nth-child(2) { animation-delay: -1.2s; }
@keyframes chr-twinkle { 0%, 100% { transform: scale(.4) rotate(0); opacity: .4; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
.chr-q { transform-box: fill-box; transform-origin: 50% 100%; animation: chr-q 2.6s var(--ease-io) infinite; }
@keyframes chr-q { 0%, 100% { transform: rotate(-10deg) translateY(0); } 50% { transform: rotate(10deg) translateY(-6px); } }
.chr-bars rect { transform-box: fill-box; transform-origin: 50% 100%; }
.motion [data-reveal] .chr-bars rect { transform: scaleY(0); transition: transform 900ms var(--spring-soft); }
.motion [data-reveal] .chr-bars rect:nth-child(2) { transition-delay: 90ms; }
.motion [data-reveal] .chr-bars rect:nth-child(3) { transition-delay: 180ms; }
.motion [data-reveal] .chr-bars rect:nth-child(4) { transition-delay: 270ms; }
.motion [data-reveal].is-in .chr-bars rect { transform: none; }
.chr-trend { stroke-dasharray: 1; stroke-dashoffset: 0; }
.motion [data-reveal] .chr-trend { stroke-dashoffset: 1; transition: stroke-dashoffset 1100ms var(--ease-io) 450ms; }
.motion [data-reveal].is-in .chr-trend { stroke-dashoffset: 0; }

/* Pause hors écran (économie de batterie) et mouvement réduit */
.chr.is-paused, .chr.is-paused * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .chr, .chr * { animation: none !important; transition: none !important; }
  .chr-bars rect { transform: none !important; }
  .chr-trend { stroke-dashoffset: 0 !important; }
}
.motion-failsafe .chr-bars rect { transform: none !important; }
.motion-failsafe .chr-trend { stroke-dashoffset: 0 !important; }

/* Personnages : intégrations dans les pages */
.hero__buddy { position: absolute; z-index: 4; left: -4%; bottom: -1%; width: clamp(150px, 37%, 212px); pointer-events: none; }
@media (min-width: 1000px) { .float-card--ref { left: auto; right: -5%; bottom: 33%; } }
@media (max-width: 999px) { .hero__buddy { left: 0; bottom: -2%; width: clamp(122px, 33vw, 176px); } }

.steps { --art: 96px; }
.step { grid-template-columns: var(--art) 1fr; align-content: start; }
.steps__track { left: calc(var(--art) / 2 - 1px); top: calc(var(--art) * .725); }
.step__art { position: relative; z-index: 1; display: block; width: var(--art); transition: transform 700ms var(--spring-bouncy); }
.step__art .chr-medal__bg { transition: fill 500ms var(--ease-out); }
.step.is-reached .step__art { transform: scale(1.06); }
.step.is-reached .chr-medal__bg { fill: #CDE8D8; }
@media (min-width: 900px) {
  .steps { --art: 132px; }
  .step { grid-template-columns: 1fr; }
  .steps__track { left: 16%; right: 16%; top: calc(var(--art) * .725); }
  .step__art { margin-bottom: 4px; }
}

.adv-band__art { display: block; width: 118px; margin: -12px 0 -6px; }
@media (min-width: 860px) { .adv-band__art { width: 136px; margin: -26px 0 -30px; } }

.avatar--art { padding: 0; background: none !important; overflow: hidden; }
.avatar--art .chr { width: 100%; height: 100%; }

.page-hero--split { text-align: left; }
.page-hero__grid { display: grid; gap: 16px; align-items: center; grid-template-columns: minmax(0, 1fr) auto; }
.page-hero--split .breadcrumbs { justify-content: flex-start; }
.page-hero--split h1 { margin: 10px 0 14px; }
.page-hero--split p { margin: 0; }
.page-hero--split .hero__ctas { justify-content: flex-start; }
.page-hero__art { width: clamp(84px, 24vw, 120px); }
.page-hero__art--wide, .page-hero__art--tall { grid-column: 1 / -1; justify-self: center; width: min(100%, 330px); margin-top: 8px; }
.page-hero__art--tall { width: min(62%, 220px); }
@media (min-width: 960px) {
  .page-hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; }
  .page-hero__art, .page-hero__art--wide, .page-hero__art--tall { grid-column: 2; grid-row: 1; justify-self: center; width: 100%; max-width: 250px; margin: 0; }
  .page-hero__art--wide { max-width: 440px; }
  .page-hero__art--small { max-width: 190px; }
}

.cta-art { width: min(100%, 440px); margin-inline: auto; }
@media (max-width: 959px) { .cta-art { width: min(94%, 360px); } }

.auth-art { float: right; width: 88px; margin: -10px -6px 4px 12px; }
@media (min-width: 1000px) {
  .auth-art { display: none; }
  .auth__stage { position: relative; display: flex; justify-content: flex-end; align-items: flex-end; padding-right: 6%; }
  .auth__aside .auth__stage .phone { --pw: 196px; margin: 0; }
  .auth__buddy { position: absolute; left: 6%; bottom: -14px; width: 158px; z-index: 2; }
}

.empty__art { display: block; height: 168px; margin: 0 auto 10px; }
.empty__art .chr { width: auto; height: 100%; margin-inline: auto; }
.empty__art .chr-medal { height: 128px; margin-top: 30px; }
.error-art { width: min(36vw, 150px); margin: 0 auto 12px; }
