/* ==========================================================================
   GOBI — système de design mobile
   Les couleurs viennent de la palette choisie dans l'administration, qui
   injecte --color-teal / --color-teal-dark / --color-gold sur :root.
   ========================================================================== */

:root {
    --g-dark: var(--color-teal-dark, #0f4a33);
    --g-primary: var(--color-teal, #1f6e4d);
    --g-gold: var(--color-gold, #f2cf4a);

    --g-ink: #0b1b3a;
    --g-muted: #6a7a90;
    --g-soft: #8a97a8;
    --g-line: #e6ebe8;
    --g-surface: #fff;

    --g-ok: #2c9a52;
    --g-warn: #f37a14;
    --g-err: #ee2a3a;

    --g-radius: 18px;
    --g-shadow: 0 4px 16px rgba(15, 60, 40, .06);
    --g-shadow-lg: 0 10px 24px rgba(15, 60, 40, .16);
}

* { box-sizing: border-box; }

/* Jamais de défilement horizontal, quel que soit le téléphone. */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: #e9eee8;
    font-family: 'Nunito Sans', system-ui, sans-serif;
    color: var(--g-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Les médias ne dépassent jamais leur conteneur. */
img, svg, video, canvas, iframe {
    max-width: 100%;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* Coque de l'application, centrée sur grand écran */
.app {
    width: 100%;
    max-width: 440px;
    min-height: 100vh;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
    padding: 12px 0 108px;
    background: linear-gradient(180deg,
        color-mix(in oklab, var(--g-primary) 2%, #fff) 0%,
        color-mix(in oklab, var(--g-primary) 5%, #fff) 45%,
        color-mix(in oklab, var(--g-primary) 7%, #fff) 100%);
}
.app.app--plain { padding-bottom: 24px; }

/* ---------- Barre du haut ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: block; flex-shrink: 0; }
.brand-logo img, .brand-logo svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-name { font-family: Outfit, sans-serif; font-weight: 800; font-size: 21px; color: var(--g-dark); letter-spacing: .4px; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.bell { position: relative; color: var(--g-dark); display: flex; }
.bell svg { width: 25px; height: 25px; }
.bell-dot { position: absolute; top: -2px; right: -3px; min-width: 10px; height: 10px; border-radius: 999px; background: var(--g-err); border: 2px solid #fff; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--g-gold); background: #fff; display: flex; align-items: center; justify-content: center; font-family: Outfit, sans-serif; font-weight: 700; font-size: 15px; color: var(--g-dark); flex-shrink: 0; }

/* En-tête de page secondaire */
.pagebar { display: flex; align-items: center; gap: 12px; padding: 2px 18px 0; position: relative; z-index: 2; }
.pagebar .back { width: 38px; height: 38px; border-radius: 12px; background: #fff; box-shadow: var(--g-shadow); display: flex; align-items: center; justify-content: center; color: var(--g-dark); flex-shrink: 0; }
.pagebar .back svg { width: 18px; height: 18px; stroke-width: 2.6; }
.pagebar h1 { font-family: Outfit, sans-serif; font-weight: 800; font-size: 19px; margin: 0; flex: 1; min-width: 0; color: var(--g-dark); }
.pagebar .act { font-size: 12px; font-weight: 700; color: var(--g-primary); flex-shrink: 0; }

/* ---------- Salutation + décor ---------- */
.greeting { padding: 20px 18px 0; position: relative; z-index: 2; }
.greeting p, .greeting h1 { margin: 0; }
.greeting-hello { font-size: 15px; color: #5b6b80; }
.greeting-name { font-family: Outfit, sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -.5px; margin-top: 2px !important; overflow-wrap: anywhere; padding-right: 104px; color: var(--g-ink); }
.greeting-sub { font-size: 13px; color: #4b5a70; margin-top: 3px !important; }

.hero-deco { position: absolute; right: 0; top: 34px; width: 168px; height: 150px; pointer-events: none; z-index: 1; opacity: .95; }
.hero-deco svg { width: 100%; height: 100%; display: block; }

/* ---------- Bannière promotionnelle ---------- */
.promo { margin: 18px 18px 0; min-height: 150px; border-radius: 20px; position: relative; overflow: hidden; display: block;
    background: linear-gradient(120deg, var(--g-primary) 0%, var(--g-dark) 58%, color-mix(in oklab, var(--g-primary) 80%, #fff) 100%);
    box-shadow: var(--g-shadow-lg); }
.promo-coins { position: absolute; right: 16px; bottom: 10px; width: 118px; height: 104px; pointer-events: none; }
.promo-coins svg { width: 100%; height: 100%; display: block; }
.promo-body { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 17px; max-width: 232px; }
.promo-eyebrow { display: flex; align-items: center; gap: 9px; font-size: 9.5px; letter-spacing: 1.1px; color: #e7f1ea; font-weight: 700; }
.promo-eyebrow:before { content: ""; width: 2px; height: 11px; background: var(--g-gold); flex-shrink: 0; }
.promo-title { font-family: Outfit, sans-serif; font-weight: 700; font-size: 19px; line-height: 1.14; color: #fff; }
.promo-title em { font-style: normal; color: var(--g-gold); }
.promo-text { font-size: 11.5px; line-height: 1.35; color: #e7f1ea; }
.promo-arrow { position: absolute; right: 12px; bottom: 12px; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--g-dark); display: flex; align-items: center; justify-content: center; }
.promo-arrow svg { width: 15px; height: 15px; stroke-width: 2.6; }

/* ---------- Cartes ---------- */
.card { display: flex; background: var(--g-surface); border-radius: var(--g-radius); box-shadow: var(--g-shadow); margin: 11px 18px 0; }
.card small { font-size: 12px; color: var(--g-muted); }
.card strong { font-family: Outfit, sans-serif; font-weight: 700; }
.chev { color: var(--g-dark); display: flex; }
.chev svg { width: 15px; height: 15px; stroke-width: 2.6; }
.chev-orange { color: var(--g-warn); }

.ic { width: 42px; height: 42px; border-radius: 11px; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ic svg { width: 21px; height: 21px; stroke-width: 2.2; }
.ic-yellow { background: linear-gradient(160deg, color-mix(in oklab, var(--g-gold) 82%, #fff), var(--g-gold)); width: 54px; height: 54px; border-radius: 14px; }
.ic-yellow svg { width: 26px; height: 26px; }
.ic-green { background: linear-gradient(160deg, color-mix(in oklab, var(--g-primary) 78%, #fff), var(--g-primary)); }
.ic-orange { background: linear-gradient(160deg, #ff9a3c, #f37a14); }
.ic-dark { background: linear-gradient(160deg, var(--g-primary), var(--g-dark)); }

.card-total { margin-top: 13px; padding: 14px; align-items: center; gap: 14px; }
.card-total-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.card-total-text strong { font-size: 15px; }
.card-total-text small { font-size: 12px; }
.card-total-amount { text-align: right; display: flex; flex-direction: column; }
.card-total-amount small { font-size: 10.5px; }
.card-total-amount b { font-family: Outfit, sans-serif; font-weight: 800; font-size: 30px; line-height: 1; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin: 11px 18px 0; }
.grid-2 .card { margin: 0; }
.card-mini { flex-direction: column; gap: 2px; padding: 13px 14px; box-shadow: none; }
.card-mini .ic { margin-bottom: 7px; }
.card-mini strong { font-size: 14px; }
.card-mini small { font-size: 11.5px; }
.card-green { background: color-mix(in oklab, var(--g-primary) 4%, #fff); border: 1px solid color-mix(in oklab, var(--g-primary) 12%, #fff); }
.card-orange { background: #fff8f1; border: 1px solid #fbeadb; }
.mini-amount { display: flex; align-items: center; gap: 7px; margin-top: 5px; }
.mini-amount b { font-family: Outfit, sans-serif; font-weight: 800; font-size: 25px; line-height: 1; flex: 1; min-width: 0; }
.mini-amount .chev svg { width: 13px; height: 13px; }

/* ---------- Graphique ---------- */
.card-chart { flex-direction: column; padding: 14px 14px 2px; overflow: visible; position: relative; }
.chart-head { display: flex; align-items: center; gap: 12px; }
.chart-head strong { flex: 1; font-size: 14px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 19px; flex-shrink: 0; }
.bars i { width: 5px; background: var(--g-primary); border-radius: 1px; }
.bars i:nth-child(1) { height: 9px; } .bars i:nth-child(2) { height: 14px; } .bars i:nth-child(3) { height: 19px; }
.dropdown { position: relative; }
.dropdown-btn { display: flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--g-line); border-radius: 12px; background: #fff; font-size: 11px; color: var(--g-ink); cursor: pointer; }
.dropdown-btn svg { width: 10px; height: 10px; stroke-width: 3; }
.dropdown-menu { display: none; position: absolute; right: 0; top: 34px; min-width: 128px; background: #fff; border: 1px solid var(--g-line); border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,.08); padding: 4px; z-index: 5; }
.dropdown.is-open .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 7px 10px; font-size: 12px; border-radius: 8px; }
.dropdown-menu a:hover, .dropdown-menu a.is-active { background: color-mix(in oklab, var(--g-primary) 7%, #fff); }
.chart-value { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-top: 2px; }
.chart-value b { font-family: Outfit, sans-serif; font-weight: 800; font-size: 34px; }
.chart-value span { font-size: 14px; color: var(--g-muted); }
.chart { width: 100%; height: 66px; display: block; margin-top: 2px; }

/* ---------- Listes et lignes ---------- */
.section { margin: 16px 18px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.section-head h2 { font-family: Outfit, sans-serif; font-weight: 800; font-size: 16px; margin: 0; color: var(--g-dark); }
.section-head a { font-size: 12px; font-weight: 700; color: var(--g-primary); }

.list { background: #fff; border-radius: var(--g-radius); box-shadow: var(--g-shadow); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid color-mix(in oklab, var(--g-line) 60%, #fff); }
.row:last-child { border-bottom: 0; }
.row-body { flex: 1; min-width: 0; }
.row-title { font-family: Outfit, sans-serif; font-weight: 700; font-size: 14px; margin: 0; color: var(--g-ink); }
.row-sub { font-size: 11.5px; color: var(--g-muted); margin: 1px 0 0; }
.row-amount { font-family: Outfit, sans-serif; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.row-amount.up { color: var(--g-ok); }
.row-amount.down { color: var(--g-ink); }

/* ---------- Personnages ---------- */
.char { display: flex; background: #fff; border-radius: 16px; box-shadow: var(--g-shadow); overflow: hidden; }
.char + .char { margin-top: 10px; }
.char-art { width: 96px; flex-shrink: 0; position: relative; background: linear-gradient(180deg, color-mix(in oklab, var(--g-primary) 8%, #fff), color-mix(in oklab, var(--g-gold) 16%, #fff)); }
.char-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.char-art .initial { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: Outfit, sans-serif; font-weight: 800; font-size: 34px; color: color-mix(in oklab, var(--g-dark) 30%, #fff); }
.char-badge { position: absolute; top: 6px; left: 6px; padding: 2px 7px; border-radius: 999px; background: var(--g-gold); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .3px; }
.char-body { flex: 1; min-width: 0; padding: 10px 12px; display: flex; flex-direction: column; }
.char-name { font-family: Outfit, sans-serif; font-weight: 800; font-size: 16px; margin: 0; color: var(--g-ink); line-height: 1.1; }
.char-tag { font-size: 11px; color: var(--g-muted); margin: 1px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.char-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 8px; }
.char-stat { background: color-mix(in oklab, var(--g-primary) 5%, #fff); border-radius: 9px; padding: 5px 4px; text-align: center; }
.char-stat.is-gold { background: color-mix(in oklab, var(--g-gold) 16%, #fff); }
.char-stat span { display: block; font-size: 8.5px; font-weight: 800; letter-spacing: .3px; color: var(--g-muted); text-transform: uppercase; line-height: 1; }
.char-stat b { display: block; font-family: Outfit, sans-serif; font-weight: 800; font-size: 13px; margin-top: 2px; line-height: 1; }
.char-stat.is-gold b { color: color-mix(in oklab, var(--g-gold) 70%, #000); }
.char-actions { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.char-actions form { flex: 1; min-width: 0; }

/* ---------- Boutons ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px 18px; border: 0; border-radius: 999px; font-family: Outfit, sans-serif; font-weight: 700; font-size: 15px; cursor: pointer; position: relative; }
.btn-primary { background: var(--g-primary); color: #fff; box-shadow: 0 6px 16px color-mix(in oklab, var(--g-primary) 30%, transparent); }
.btn-gold { background: var(--g-gold); color: #fff; box-shadow: 0 6px 16px color-mix(in oklab, var(--g-gold) 38%, transparent); }
.btn-dark { background: var(--g-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--g-primary); box-shadow: var(--g-shadow); }
.btn-sm { padding: 9px 12px; font-size: 12.5px; border-radius: 11px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- Formulaires ---------- */
.field { display: block; margin-top: 12px; }
.field > span { display: block; font-size: 12px; font-weight: 700; color: var(--g-dark); margin-bottom: 6px; }
.field .hint { display: block; font-size: 11px; font-weight: 400; color: var(--g-muted); margin-top: 5px; }
.input, .select, .textarea {
    width: 100%; padding: 13px 14px; border: 1.5px solid var(--g-line); border-radius: 13px;
    background: #fff; font-family: Outfit, sans-serif; font-weight: 600; font-size: 16px; color: var(--g-ink);
}
/* 16px minimum sur tout champ de saisie : empêche le zoom automatique du
   téléphone quand on clique dans un champ. Les champs plus grands (montant)
   gardent leur taille grâce à leur sélecteur plus spécifique. */
input:not([type=checkbox]):not([type=radio]):not([type=range]),
textarea, select { font-size: 16px; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--g-primary); }
.input::placeholder { color: #b3bdc9; font-weight: 500; }
.input[readonly] { background: #f5f7f6; color: var(--g-muted); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a7a90' stroke-width='3' 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; background-size: 13px; padding-right: 38px; }
.input-gold { background: color-mix(in oklab, var(--g-gold) 12%, #fff); border-color: color-mix(in oklab, var(--g-gold) 55%, #fff); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Messages ---------- */
.alert { display: flex; gap: 9px; align-items: flex-start; padding: 11px 13px; border-radius: 13px; font-size: 12.5px; font-weight: 600; line-height: 1.4; margin: 11px 18px 0; }
.alert svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.alert-ok { background: #effaf2; border: 1px solid #c9ecd5; color: #176b37; }
.alert-err { background: #fef2f3; border: 1px solid #fad4d8; color: #a51524; }
.alert-info { background: color-mix(in oklab, var(--g-primary) 6%, #fff); border: 1px solid color-mix(in oklab, var(--g-primary) 16%, #fff); color: var(--g-dark); }
.alert-warn { background: #fff8ed; border: 1px solid #fae0bb; color: #96530a; }
.alert ul { margin: 0; padding-left: 16px; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 800; }
.pill-ok { background: #e4f6ea; color: #176b37; }
.pill-wait { background: #fff4e2; color: #96530a; }
.pill-err { background: #fdecee; color: #a51524; }
.pill-info { background: color-mix(in oklab, var(--g-primary) 10%, #fff); color: var(--g-dark); }
.pill-gray { background: #f0f2f4; color: #5e6b7c; }

/* ---------- Barre de progression ---------- */
.bar { height: 6px; border-radius: 999px; background: color-mix(in oklab, var(--g-primary) 10%, #fff); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--g-primary), var(--g-gold)); }

/* ---------- Navigation du bas ---------- */
.bottom-nav {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: 12px;
    width: calc(100% - 20px); max-width: 420px; height: 68px; border-radius: 22px;
    background: #fff; box-shadow: 0 -4px 24px rgba(15, 60, 40, .12);
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; z-index: 30;
}
.nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%; color: var(--g-soft); font-size: 10.5px; font-weight: 700; position: relative; }
.nav-item svg { width: 22px; height: 22px; }
.nav-item.is-active { color: var(--g-dark); }
.nav-item.is-active:after { content: ""; position: absolute; bottom: 5px; width: 26px; height: 3px; border-radius: 2px; background: var(--g-dark); }
.nav-center { justify-self: center; width: 62px; height: 62px; margin-top: -32px; border-radius: 50%; border: 4px solid #fff; overflow: hidden; box-shadow: 0 0 0 3px var(--g-gold), 0 8px 18px rgba(15, 60, 40, .25); display: block; }
.nav-center img, .nav-center svg { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Page « Le projet » ---------- */
.steps { counter-reset: step; }
.step { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid color-mix(in oklab, var(--g-line) 70%, #fff); }
.step:last-child { border-bottom: 0; }
.step-num { counter-increment: step; width: 28px; height: 28px; border-radius: 50%; background: var(--g-primary); color: #fff; font-family: Outfit, sans-serif; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-num:before { content: counter(step); }
.step h3 { font-family: Outfit, sans-serif; font-weight: 700; font-size: 14px; margin: 3px 0 0; color: var(--g-ink); }
.step p { font-size: 12.5px; color: var(--g-muted); margin: 3px 0 0; line-height: 1.45; }

/* ---------- Fenêtre modale ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-back { position: absolute; inset: 0; background: color-mix(in oklab, var(--g-dark) 55%, transparent); backdrop-filter: blur(3px); }
.sheet-panel { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 22px 22px 0 0; padding: 18px 18px 26px; animation: sheet-up .28s cubic-bezier(.22,1,.36,1); max-height: 88vh; overflow-y: auto; }
@keyframes sheet-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet-head h2 { font-family: Outfit, sans-serif; font-weight: 800; font-size: 18px; margin: 0; color: var(--g-dark); }
.sheet-head p { font-size: 11.5px; color: var(--g-muted); margin: 2px 0 0; }
.sheet-close { width: 34px; height: 34px; border-radius: 11px; border: 0; background: #f2f5f3; color: var(--g-dark); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.sheet-close svg { width: 16px; height: 16px; stroke-width: 2.6; }

.choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 13px 14px; border: 2px solid var(--g-line); border-radius: 15px; background: #fff; text-align: left; cursor: pointer; }
.choice + .choice { margin-top: 9px; }
.choice.is-on { border-color: var(--g-gold); background: color-mix(in oklab, var(--g-gold) 9%, #fff); }
.choice b { display: block; font-family: Outfit, sans-serif; font-weight: 800; font-size: 15px; color: var(--g-ink); }
.choice small { display: block; font-size: 12.5px; color: var(--g-muted); font-weight: 600; margin-top: 1px; }
.choice-check { color: #d7dee6; flex-shrink: 0; }
.choice.is-on .choice-check { color: var(--g-gold); }
.choice-check svg { width: 22px; height: 22px; }

/* ---------- Bandeau d'activité ---------- */
.feed {
    position: fixed; left: 10px; bottom: 158px; z-index: 25;
    max-width: min(262px, calc(100vw - 30px)); pointer-events: none;
}
.feed-card {
    display: flex; align-items: center; gap: 9px;
    background: rgba(255, 255, 255, .97); border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 60, 40, .16);
    border: 1px solid color-mix(in oklab, var(--g-primary) 10%, #fff);
    padding: 8px 11px 8px 9px;
}
.feed[hidden] { display: none; }
.feed-ic { width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.feed-ic svg { width: 15px; height: 15px; stroke-width: 2.4; }
.feed-ic.k-purchase { background: var(--g-primary); }
.feed-ic.k-withdrawal { background: #3f7fd1; }
.feed-ic.k-recharge { background: var(--g-gold); }
.feed-ic.k-earning { background: var(--g-ok); }
.feed-text { min-width: 0; }
.feed-text b { display: block; font-family: Outfit, sans-serif; font-weight: 700; font-size: 11.5px; line-height: 1.25; color: var(--g-ink); text-wrap: balance; }
.feed-text span { display: block; font-size: 9.5px; color: var(--g-soft); margin-top: 1px; }
@keyframes feed-in { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: translateX(0); } }
@keyframes feed-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(-22px); } }
.feed-in { animation: feed-in .4s cubic-bezier(.22,1,.36,1) both; }
.feed-out { animation: feed-out .32s ease-in both; }

/* ---------- Divers ---------- */
.muted { color: var(--g-muted); }
.center { text-align: center; }
.empty { background: #fff; border-radius: var(--g-radius); box-shadow: var(--g-shadow); padding: 26px 20px; text-align: center; }
.empty p { font-size: 13px; color: var(--g-muted); margin: 0 0 14px; }
.spacer { height: 12px; }
.copy-btn { width: 50px; height: 50px; border-radius: 14px; border: 0; background: var(--g-gold); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer; flex-shrink: 0; }
.copy-btn svg { width: 17px; height: 17px; stroke-width: 2.2; }
.copy-btn span { font-size: 8.5px; font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Ligne d'en-tête d'un personnage */
.char-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.char-row-main { min-width: 0; }
.char-progress { margin-top: 8px; }
.char-progress .char-tag { margin-top: 5px; }

/* ---------- Équipe ---------- */
.ref-head { display: flex; align-items: center; gap: 12px; }
.ref-code { flex: 1; min-width: 0; }
.ref-code strong { display: block; font-size: 13px; color: var(--g-muted); font-weight: 700; }
.ref-code b { font-family: Outfit, sans-serif; font-weight: 800; font-size: 21px; letter-spacing: 1.4px; color: var(--g-dark); }
.ref-share { margin-top: 11px; }

.lvl { width: 34px; height: 34px; border-radius: 10px; font-family: Outfit, sans-serif; font-weight: 800; font-size: 12px; }
.lvl-group > summary { cursor: pointer; list-style: none; }
.lvl-group > summary::-webkit-details-marker { display: none; }
.lvl-members { background: color-mix(in oklab, var(--g-primary) 3%, #fff); }
.lvl-members .row { padding-left: 52px; }
.row-title.sm { font-size: 13px; }
.note { font-size: 11.5px; margin: 9px 2px 0; line-height: 1.45; }

/* ---------- Profil ---------- */
.profile-head { flex-direction: column; align-items: center; text-align: center; padding: 20px 18px; }
.profile-avatar { width: 70px; height: 70px; border-radius: 50%; background: linear-gradient(160deg, var(--g-primary), var(--g-dark)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: Outfit, sans-serif; font-weight: 800; font-size: 28px; }
.profile-name { font-family: Outfit, sans-serif; font-weight: 800; font-size: 19px; margin: 10px 0 0; color: var(--g-ink); }
.profile-meta { font-size: 12px; color: var(--g-muted); margin: 2px 0 0; }
.profile-pills { display: flex; gap: 6px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 11px 18px 0; }
.quick a { background: #fff; border-radius: 15px; box-shadow: var(--g-shadow); padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.quick .ic { width: 38px; height: 38px; border-radius: 11px; }
.quick .ic svg { width: 18px; height: 18px; }
.quick b { font-family: Outfit, sans-serif; font-weight: 700; font-size: 11.5px; color: var(--g-ink); }

.stat-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 11px 18px 0; }
.stat-3 div { background: #fff; border-radius: 14px; box-shadow: var(--g-shadow); padding: 11px 6px; text-align: center; }
.stat-3 b { display: block; font-family: Outfit, sans-serif; font-weight: 800; font-size: 17px; color: var(--g-dark); }
.stat-3 span { display: block; font-size: 10.5px; color: var(--g-muted); margin-top: 2px; }

/* ---------- Numéro de dépôt ---------- */
.paynum { display: flex; align-items: center; gap: 12px; }
.paynum-main { flex: 1; min-width: 0; }
.paynum-main b { display: block; font-family: Outfit, sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -.3px; color: var(--g-ink); }
.paynum-main span { display: block; font-size: 12.5px; color: var(--g-muted); font-weight: 600; margin-top: 2px; }
.paynum-main span em { font-style: normal; color: var(--g-dark); font-weight: 800; }
.paynum-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.paynum-head > span { font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--g-muted); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; border: 0; background: color-mix(in oklab, var(--g-primary) 10%, #fff); color: var(--g-dark); font-size: 11.5px; font-weight: 800; cursor: pointer; }
.chip svg { width: 12px; height: 12px; stroke-width: 3; }
.paynum-amount { display: flex; align-items: center; gap: 11px; margin-top: 11px; padding-top: 11px; border-top: 1.5px dashed color-mix(in oklab, var(--g-primary) 18%, #fff); }
.paynum-amount .thumb { width: 42px; height: 42px; border-radius: 11px; overflow: hidden; position: relative; background: linear-gradient(180deg, color-mix(in oklab, var(--g-primary) 8%, #fff), color-mix(in oklab, var(--g-gold) 16%, #fff)); flex-shrink: 0; }
.paynum-amount .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.paynum-amount .thumb .initial { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: Outfit, sans-serif; font-weight: 800; font-size: 17px; color: color-mix(in oklab, var(--g-dark) 35%, #fff); }
.paynum-amount p { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 700; color: var(--g-muted); margin: 0; }
.paynum-amount b { font-family: Outfit, sans-serif; font-weight: 800; font-size: 20px; color: var(--g-ink); }

.steps-mini { margin: 11px 18px 0; padding: 11px 13px; border-radius: 14px; background: color-mix(in oklab, var(--g-primary) 5%, #fff); border: 1px solid color-mix(in oklab, var(--g-primary) 13%, #fff); }
.steps-mini p { font-size: 12px; font-weight: 600; color: var(--g-dark); margin: 0; line-height: 1.5; white-space: pre-line; }

/* ---------- Couverture d'inscription ---------- */
.cover { position: relative; height: 164px; border-radius: 0 0 26px 26px; overflow: hidden; background: linear-gradient(140deg, var(--g-primary), var(--g-dark)); margin: -12px 0 0; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-deco { position: absolute; right: -10px; bottom: -6px; width: 190px; height: 160px; opacity: .9; }
.cover-deco svg { width: 100%; height: 100%; }
.cover-body { position: absolute; left: 20px; bottom: 18px; right: 120px; }
.cover-body .brand-logo { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; display: block; background: #fff; }
.cover-body h1 { font-family: Outfit, sans-serif; font-weight: 800; font-size: 25px; color: #fff; margin: 9px 0 0; letter-spacing: .3px; }
.cover-body p { font-size: 12.5px; color: rgba(255,255,255,.85); margin: 2px 0 0; font-weight: 600; }

.auth { padding: 0 18px; }
.auth-title { font-family: Outfit, sans-serif; font-weight: 800; font-size: 20px; color: var(--g-dark); margin: 18px 0 0; }
.auth-sub { font-size: 12.5px; color: var(--g-muted); margin: 2px 0 0; }
.auth-foot { text-align: center; font-size: 12.5px; color: var(--g-muted); font-weight: 600; margin: 18px 0 0; }
.auth-foot a { color: var(--g-gold); font-weight: 800; }
.auth-legal { text-align: center; font-size: 11px; color: var(--g-soft); font-weight: 600; margin: 22px 0 8px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: transparent; color: var(--g-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pw-toggle svg { width: 19px; height: 19px; }
.ref-on { background: #effaf2; border-color: #a8dcbc; }

/* ---------- Utilitaires de mise en page ---------- */
.row-ic { width: 36px; height: 36px; border-radius: 10px; }
.quick-ic { width: 38px; height: 38px; border-radius: 11px; }
.pager { margin-top: 12px; }
.form-card { flex-direction: column; padding: 14px; }
.form-send { margin-top: 12px; }
.field.no-top { margin-top: 0; }
.soon-ic { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px; }
.soon-title { font-family: Outfit, sans-serif; font-weight: 800; font-size: 18px; color: var(--g-dark); margin: 0 0 8px; }
.empty .btn + .btn { margin-top: 9px; }
.soon-alt { margin-top: 9px; }
.paynum-card { flex-direction: column; padding: 14px; }
.sheet-go { margin-top: 14px; }

.op-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.op-pick { padding: 11px 8px; border: 2px solid var(--g-line); border-radius: 12px; background: #fff; font-family: Outfit, sans-serif; font-weight: 800; font-size: 12.5px; color: var(--g-muted); cursor: pointer; }
.op-pick.is-on { border-color: var(--g-gold); background: color-mix(in oklab, var(--g-gold) 10%, #fff); color: var(--g-ink); }

.amount-wrap { position: relative; display: block; }
.amount-wrap .input { padding-right: 56px; }
.amount-all { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); padding: 5px 8px; border: 0; border-radius: 8px; background: color-mix(in oklab, var(--g-primary) 12%, #fff); color: var(--g-dark); font-size: 10px; font-weight: 800; cursor: pointer; }

/* Fiche de suivi */
.status-head { flex-direction: column; align-items: center; text-align: center; padding: 22px 18px; }
.status-ic { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.status-amount { font-family: Outfit, sans-serif; font-weight: 800; font-size: 30px; color: var(--g-ink); margin: 10px 0 2px; }
.status-ref { font-size: 11px; color: var(--g-soft); margin: 0; }
.status-text { font-size: 12.5px; color: var(--g-muted); line-height: 1.5; margin: 12px 0 0; font-weight: 600; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid color-mix(in oklab, var(--g-line) 60%, #fff); font-size: 12.5px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--g-muted); font-weight: 600; }
.kv b { font-family: Outfit, sans-serif; font-weight: 700; text-align: right; color: var(--g-ink); }

/* Fiche personnage */
.hero-char { position: relative; height: 180px; border-radius: 20px; overflow: hidden; margin: 11px 18px 0; background: linear-gradient(180deg, color-mix(in oklab, var(--g-primary) 10%, #fff), color-mix(in oklab, var(--g-gold) 20%, #fff)); }
.hero-char img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.hero-char .initial { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: Outfit, sans-serif; font-weight: 800; font-size: 62px; color: color-mix(in oklab, var(--g-dark) 28%, #fff); }
.hero-char .char-badge { top: 10px; left: 10px; font-size: 10px; padding: 3px 9px; }
.hero-char .pill { position: absolute; top: 10px; right: 10px; }
.row.is-unread { border-left: 3px solid var(--g-gold); background: color-mix(in oklab, var(--g-gold) 5%, #fff); }

/* ---------- Assistant ---------- */
.bot { position: fixed; right: 12px; bottom: 92px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

.bot-panel { display: flex; flex-direction: column; width: min(21rem, calc(100vw - 24px)); max-height: min(34rem, calc(100vh - 120px)); max-height: min(34rem, calc(100dvh - 120px)); background: #fff; border-radius: 20px; box-shadow: 0 14px 34px rgba(15,60,40,.24); overflow: hidden; }
.bot-panel[hidden] { display: none; }

.bot-head { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: var(--g-primary); color: #fff; }
.bot-face { position: relative; width: 38px; height: 38px; border-radius: 50%; overflow: visible; flex-shrink: 0; }
.bot-face img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; display: block; border: 2px solid rgba(255,255,255,.4); }
.bot-initial { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-family: Outfit, sans-serif; font-weight: 800; font-size: 16px; }
.bot-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; border: 2px solid var(--g-primary); }
.bot-dot-lg { right: 1px; bottom: 1px; width: 14px; height: 14px; border: 3px solid #fff; animation: bot-pulse 2s infinite; }
@keyframes bot-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.7); } 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }
.bot-id { flex: 1; min-width: 0; }
.bot-id b { display: block; font-family: Outfit, sans-serif; font-weight: 700; font-size: 13.5px; }
.bot-id > span { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: rgba(255,255,255,.75); }
.bot-id > span i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
.bot-close { width: 30px; height: 30px; border: 0; border-radius: 9px; background: rgba(255,255,255,.16); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }

.bot-msgs { flex: 1 1 auto; min-height: 0; height: 16rem; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 13px; background: color-mix(in oklab, var(--g-primary) 4%, #fff); display: flex; flex-direction: column; gap: 8px; }
.bot-msg { max-width: 85%; align-self: flex-start; }
.bot-msg.is-me { align-self: flex-end; }
.bot-msg p { margin: 0; background: #fff; border-radius: 14px 14px 14px 4px; padding: 9px 12px; font-size: 13px; line-height: 1.45; color: var(--g-ink); box-shadow: 0 2px 6px rgba(15,60,40,.07); white-space: pre-line; }
.bot-msg.is-me p { background: var(--g-primary); color: #fff; border-radius: 14px 14px 4px 14px; }
.bot-typing { display: flex; gap: 4px; align-items: center; }
.bot-typing i { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in oklab, var(--g-primary) 45%, #fff); animation: bot-bounce 1.1s infinite; }
.bot-typing i:nth-child(2) { animation-delay: .15s; }
.bot-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bot-bounce { 0%,80%,100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }

.bot-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid var(--g-line); background: #fff; }
.bot-form textarea { flex: 1; min-width: 0; resize: none; max-height: 5rem; padding: 10px 12px; border: 1.5px solid var(--g-line); border-radius: 14px; font-family: inherit; font-size: 16px; line-height: 1.3; color: var(--g-ink); background: color-mix(in oklab, var(--g-primary) 3%, #fff); }
.bot-form textarea:focus { outline: 0; border-color: var(--g-primary); }
.bot-form button { width: 40px; height: 40px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--g-primary); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.bot-form button:disabled { opacity: .45; }

.bot-launch { display: flex; align-items: center; gap: 8px; }
.bot-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.97); color: var(--g-dark); font-size: 11px; font-weight: 800; padding: 6px 11px; border-radius: 999px; box-shadow: 0 4px 12px rgba(15,60,40,.18); }
.bot-pill[hidden] { display: none; }
.bot-pill i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
@keyframes pill-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pill-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(14px); } }
.bot-pill.is-in { animation: pill-in .4s cubic-bezier(.22,1,.36,1) both; }
.bot-pill.is-out { animation: pill-out .34s ease-in both; }

.bot-btn { position: relative; width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff; background: var(--g-primary); color: #fff; box-shadow: 0 8px 20px rgba(15,60,40,.3); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; overflow: visible; }
.bot-btn img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.alert.refuse { margin: 0 0 12px; text-align: left; }

/* ---------- Bonus de bienvenue ---------- */
.bonus { display: flex; align-items: center; gap: 11px; margin: 11px 18px 0; padding: 11px 12px; border-radius: 16px;
    background: linear-gradient(110deg, color-mix(in oklab, var(--g-gold) 18%, #fff), #fff 70%);
    border: 1.5px solid color-mix(in oklab, var(--g-gold) 45%, #fff); }
.bonus-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--g-gold); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bonus-body { flex: 1; min-width: 0; }
.bonus-label { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; color: var(--g-muted); flex-wrap: wrap; }
.bonus-amount { display: block; font-family: Outfit, sans-serif; font-weight: 800; font-size: 19px; color: var(--g-ink); margin-top: 1px; }
.bonus-btn { width: auto; padding: 9px 14px; }
.bonus.is-locked .bonus-ic { background: color-mix(in oklab, var(--g-gold) 70%, #9a7b1a); }
.bonus-steps { margin: 12px 0 0; }

/* ---------- Choix du solde à retirer ---------- */
.src-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.src { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border: 2px solid var(--g-line); border-radius: 15px; background: #fff; text-align: left; cursor: pointer; }
.src.is-on { border-color: var(--g-primary); background: color-mix(in oklab, var(--g-primary) 6%, #fff); }
.src-label { font-size: 11px; font-weight: 800; color: var(--g-muted); }
.src-amount { font-family: Outfit, sans-serif; font-weight: 800; font-size: 18px; color: var(--g-ink); }
.src-min { font-size: 10.5px; font-weight: 700; color: var(--g-soft); }
.src.is-short .src-min { color: #b45309; }
.op-grid + .field-row { margin-top: 2px; }

/* ==========================================================================
   Parcours de dépôt : réseau → montant → paiement
   ========================================================================== */
.dep { margin: 12px 18px 0; }

.dep-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dep-steps li { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11.5px; font-weight: 800; color: var(--g-soft); }
.dep-steps li span { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #eef2ef; color: var(--g-soft); font-family: Outfit, sans-serif; font-size: 11.5px; transition: all .25s; }
.dep-steps li.is-on { color: var(--g-dark); }
.dep-steps li.is-on span { background: var(--g-gold); color: #fff; box-shadow: 0 0 0 4px color-mix(in oklab, var(--g-gold) 25%, transparent); }
.dep-steps li.is-done { color: var(--g-primary); }
.dep-steps li.is-done span { background: var(--g-primary); color: #fff; }
.dep-bar { height: 4px; border-radius: 999px; background: #e9eeea; margin: 10px 0 0; overflow: hidden; }
.dep-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--g-primary), var(--g-gold)); transition: width .35s cubic-bezier(.22,1,.36,1); }

.dep-panel { margin-top: 16px; animation: dep-in .32s cubic-bezier(.22,1,.36,1) both; }
@keyframes dep-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.dep-title { font-family: Outfit, sans-serif; font-weight: 800; font-size: 21px; line-height: 1.15; margin: 0; color: var(--g-ink); }
.dep-sub { font-size: 12.5px; font-weight: 600; color: var(--g-muted); margin: 4px 0 0; }
.link { border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--g-primary); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* Étape 1 : réseaux */
.nets { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.net { display: flex; align-items: center; gap: 13px; width: 100%; padding: 13px 14px; border: 2px solid var(--g-line); border-radius: 18px; background: #fff; box-shadow: var(--g-shadow); cursor: pointer; text-align: left; transition: transform .15s, border-color .2s; }
.net:active { transform: scale(.98); }
.net.is-on { border-color: var(--g-gold); background: color-mix(in oklab, var(--g-gold) 8%, #fff); }
.net-badge { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-family: Outfit, sans-serif; font-weight: 800; font-size: 15px; letter-spacing: .5px; flex-shrink: 0; }
.net-name { flex: 1; min-width: 0; font-family: Outfit, sans-serif; font-weight: 800; font-size: 17px; color: var(--g-ink); }
.net-go { width: 30px; height: 30px; border-radius: 50%; background: color-mix(in oklab, var(--g-primary) 9%, #fff); color: var(--g-dark); display: flex; align-items: center; justify-content: center; }

/* Étape 2 : montant */
.dep-need { display: flex; align-items: center; gap: 11px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: color-mix(in oklab, var(--g-gold) 12%, #fff); border: 1px solid color-mix(in oklab, var(--g-gold) 40%, #fff); }
.dep-need .thumb { width: 40px; height: 40px; border-radius: 11px; overflow: hidden; position: relative; flex-shrink: 0; background: #fff; }
.dep-need .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.dep-need .thumb .initial { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: Outfit, sans-serif; font-weight: 800; color: var(--g-dark); }
.dep-need p { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--g-ink); line-height: 1.4; }

.dep-amount { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: 18px; padding: 16px 12px; border-radius: 20px; background: #fff; box-shadow: var(--g-shadow); border: 2px solid transparent; }
.dep-amount:focus-within { border-color: var(--g-primary); }
.dep-amount input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; text-align: right; font-family: Outfit, sans-serif; font-weight: 800; font-size: 40px; color: var(--g-ink); padding: 0; -moz-appearance: textfield; }
.dep-amount input::-webkit-outer-spin-button, .dep-amount input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dep-amount input::placeholder { color: #c9d1da; }
.dep-amount span { font-family: Outfit, sans-serif; font-weight: 800; font-size: 15px; color: var(--g-muted); flex-shrink: 0; width: 46%; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; justify-content: center; }
.chip-amt { padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--g-line); background: #fff; font-family: Outfit, sans-serif; font-weight: 800; font-size: 13.5px; color: var(--g-ink); cursor: pointer; transition: all .15s; }
.chip-amt.is-on { background: var(--g-dark); border-color: var(--g-dark); color: #fff; }
.dep-hint { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--g-soft); margin: 11px 0 14px; }
.dep-hint.is-bad { color: #c2410c; }

/* Étape 3 : ticket récapitulatif */
.ticket { margin-top: 16px; background: #fff; border-radius: 20px; box-shadow: var(--g-shadow-lg); overflow: hidden; }
.ticket-top { padding: 16px 16px 14px; text-align: center; background: linear-gradient(135deg, var(--g-primary), var(--g-dark)); color: #fff; }
.ticket-label { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; opacity: .75; }
.ticket-amount { display: block; font-family: Outfit, sans-serif; font-weight: 800; font-size: 34px; line-height: 1.1; margin-top: 4px; }
.ticket-op { display: block; font-size: 12px; font-weight: 600; opacity: .85; margin-top: 4px; }
.ticket-op .link { color: var(--g-gold); }
.ticket-cut { height: 0; border-top: 1.5px dashed color-mix(in oklab, var(--g-primary) 22%, #fff); margin: 0 14px; }
.ticket-row { display: flex; flex-direction: column; gap: 4px; padding: 11px 16px; }
.ticket-row + .ticket-row { border-top: 1px solid #f0f3f1; padding-bottom: 14px; }
.ticket-key { font-size: 10.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--g-muted); }
.ticket-val { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ticket-val b { font-family: Outfit, sans-serif; font-weight: 800; font-size: 21px; color: var(--g-ink); letter-spacing: -.2px; overflow-wrap: anywhere; }
.mini-copy { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border: 0; border-radius: 999px; background: var(--g-gold); color: #fff; font-size: 11.5px; font-weight: 800; cursor: pointer; flex-shrink: 0; }

.dep-check { display: flex; gap: 8px; align-items: flex-start; margin: 12px 2px 0; font-size: 12px; font-weight: 600; color: var(--g-dark); line-height: 1.45; }
.dep-check svg { flex-shrink: 0; margin-top: 2px; color: var(--g-primary); }
.dep-tx { font-size: 17px; letter-spacing: .5px; text-align: center; }
.dep-help { margin-top: 10px; font-size: 12px; color: var(--g-muted); }
.dep-help summary { cursor: pointer; font-weight: 800; color: var(--g-primary); text-align: center; }
.dep-help p { white-space: pre-line; margin: 8px 0 0; line-height: 1.5; }
.note svg { vertical-align: -2px; }

/* ---------- Compte à rebours de validation du dépôt ---------- */
.countdown { position: relative; width: 132px; height: 132px; margin: 2px auto 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.countdown svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.cd-track { fill: none; stroke: color-mix(in oklab, var(--g-primary) 10%, #fff); stroke-width: 9; }
.cd-fill { fill: none; stroke: var(--g-gold); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.cd-time { position: relative; font-family: Outfit, sans-serif; font-weight: 800; font-size: 30px; color: var(--g-dark); line-height: 1; }
.cd-label { position: relative; font-size: 10.5px; font-weight: 800; color: var(--g-muted); margin-top: 3px; }

/* ---------- Accueil : carte message avec le dromadaire à l'intérieur ---------- */
.promo--camel { margin-top: 14px; min-height: 142px; }
.promo--camel .promo-body { max-width: 60%; padding: 16px 0 16px 17px; gap: 6px; }
.promo--camel .promo-title { font-size: 16.5px; line-height: 1.22; }
.promo-art { position: absolute; right: 0; bottom: 0; width: 46%; height: 100%; pointer-events: none; }
.promo-art svg { width: 100%; height: 100%; display: block; }
.promo-cta { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; margin-top: 4px; padding: 6px 11px; border-radius: 999px; background: #fff; color: var(--g-dark); font-size: 11.5px; font-weight: 800; }
.promo-cta svg { stroke-width: 3; }

/* ---------- Accueil : carte Déposer, bien lisible ---------- */
.card-deposit { background: linear-gradient(150deg, var(--g-primary), var(--g-dark)); border: 0; color: #fff; box-shadow: 0 8px 18px color-mix(in oklab, var(--g-primary) 30%, transparent); }
.card-deposit strong { font-size: 19px; color: #fff; }
.card-deposit small { color: rgba(255, 255, 255, .8); font-weight: 600; }
.ic-deposit { background: var(--g-gold); color: #fff; }
.ic-deposit svg { stroke-width: 3; }
.deposit-go { display: inline-flex; align-items: center; gap: 3px; align-self: flex-start; margin-top: 7px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 11px; font-weight: 800; color: #fff; }
.deposit-go svg { stroke-width: 3; }

/* ---------- Solde insuffisant ---------- */
.need { display: flex; align-items: center; gap: 13px; }
.need-art { width: 78px; height: 92px; flex-shrink: 0; position: relative; border-radius: 16px; overflow: hidden;
    background: linear-gradient(180deg, color-mix(in oklab, var(--g-primary) 8%, #fff), color-mix(in oklab, var(--g-gold) 20%, #fff)); }
.need-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.need-art .initial { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: Outfit, sans-serif; font-weight: 800; font-size: 34px; color: color-mix(in oklab, var(--g-dark) 35%, #fff); }
.need-lines { flex: 1; min-width: 0; }
.need-missing span { color: #b45309; font-weight: 800; }
.need-missing b { color: #b45309; font-size: 16px; }
.need-later { margin-top: 9px; }

/* ==========================================================================
   « Je travaille pour toi » : le personnage apparaît dans la lumière
   ========================================================================== */
.hired { position: relative; min-height: 100vh; margin: -12px 0 -24px; padding: 70px 22px 30px; overflow: hidden; text-align: center;
    background: radial-gradient(120% 70% at 50% 28%, color-mix(in oklab, var(--g-primary) 70%, #0b2a20) 0%, var(--g-dark) 55%, #071a14 100%);
    color: #fff; display: flex; flex-direction: column; align-items: center; }

.hired-rays { position: absolute; left: 50%; top: 210px; width: 760px; height: 760px; margin: -380px 0 0 -380px; border-radius: 50%; opacity: .35;
    background: repeating-conic-gradient(from 0deg, color-mix(in oklab, var(--g-gold) 60%, transparent) 0deg 7deg, transparent 7deg 22deg);
    -webkit-mask: radial-gradient(circle, #000 0, transparent 62%); mask: radial-gradient(circle, #000 0, transparent 62%);
    animation: hired-spin 26s linear infinite; }
@keyframes hired-spin { to { transform: rotate(360deg); } }

.hired-glow { position: absolute; left: 50%; top: 210px; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in oklab, var(--g-gold) 85%, #fff) 0%, color-mix(in oklab, var(--g-gold) 40%, transparent) 38%, transparent 70%);
    animation: hired-breathe 3.2s ease-in-out infinite; }
@keyframes hired-breathe { 0%, 100% { transform: scale(.92); opacity: .8; } 50% { transform: scale(1.08); opacity: 1; } }

.hired-stars span { position: absolute; width: 14px; height: 14px; background: #fff;
    clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
    animation: hired-twinkle 2.6s ease-in-out infinite both; }
.hired-stars span:nth-child(3n) { width: 9px; height: 9px; background: var(--g-gold); }
.hired-stars span:nth-child(4n) { width: 18px; height: 18px; }
@keyframes hired-twinkle { 0%, 100% { opacity: .15; transform: scale(.5) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(25deg); } }

.hired-close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; z-index: 3; }

.hired-figure { position: relative; z-index: 2; width: 220px; height: 240px; display: flex; align-items: flex-end; justify-content: center;
    animation: hired-rise .9s cubic-bezier(.22,1,.36,1) both, hired-float 4s ease-in-out .9s infinite; }
.hired-figure img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 12px 28px rgba(0,0,0,.35)) drop-shadow(0 0 22px color-mix(in oklab, var(--g-gold) 55%, transparent)); }
.hired-initial { width: 170px; height: 170px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, color-mix(in oklab, var(--g-gold) 80%, #fff), var(--g-gold)); color: var(--g-dark);
    font-family: Outfit, sans-serif; font-weight: 800; font-size: 80px; box-shadow: 0 0 40px color-mix(in oklab, var(--g-gold) 60%, transparent); }
@keyframes hired-rise { from { opacity: 0; transform: translateY(60px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes hired-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hired-bubble { position: relative; z-index: 2; margin-top: 18px; max-width: 360px; background: #fff; color: var(--g-ink); border-radius: 22px; padding: 16px 18px;
    box-shadow: 0 16px 36px rgba(0,0,0,.3); animation: hired-pop .6s cubic-bezier(.22,1.4,.36,1) .55s both; }
.hired-bubble:before { content: ""; position: absolute; top: -9px; left: 50%; margin-left: -10px; border: 10px solid transparent; border-top: 0; border-bottom-color: #fff; }
@keyframes hired-pop { from { opacity: 0; transform: scale(.85) translateY(10px); } to { opacity: 1; transform: none; } }
.hired-hello { font-family: Outfit, sans-serif; font-weight: 800; font-size: 26px; margin: 0; color: var(--g-dark); }
.hired-text { font-size: 14.5px; line-height: 1.5; font-weight: 600; margin: 6px 0 0; }
.hired-gold { color: color-mix(in oklab, var(--g-gold) 75%, #6b4a00); }

.hired-facts { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 360px; margin-top: 14px; animation: hired-pop .6s ease .8s both; }
.hired-facts span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 9px 4px; font-size: 10.5px; font-weight: 700; color: rgba(255,255,255,.75); }
.hired-facts b { display: block; font-family: Outfit, sans-serif; font-weight: 800; font-size: 14px; color: #fff; margin-bottom: 2px; }

.hired-actions { position: relative; z-index: 2; width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 9px; margin-top: 20px; animation: hired-pop .6s ease 1s both; }
.hired-ghost { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Équipe : principe du parrainage ---------- */
.team-hero { display: flex; align-items: center; gap: 12px; margin: 12px 18px 0; padding: 13px 14px; border-radius: 18px; background: linear-gradient(120deg, var(--g-primary), var(--g-dark)); color: #fff; box-shadow: var(--g-shadow-lg); }
.team-hero-ic { width: 44px; height: 44px; border-radius: 13px; background: var(--g-gold); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.team-hero b { font-family: Outfit, sans-serif; font-weight: 800; font-size: 17px; }
.team-hero p { margin: 2px 0 0; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.82); }
.row-ic { font-family: Outfit, sans-serif; font-weight: 800; font-size: 14px; }

/* ---------- « Je travaille pour toi » : le message s'écrit ---------- */
.hired-typing { display: inline-flex; gap: 5px; padding: 6px 4px; }
.hired-typing[hidden] { display: none; }
.hired-typing i { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in oklab, var(--g-primary) 55%, #fff); animation: hired-dot 1s ease-in-out infinite; }
.hired-typing i:nth-child(2) { animation-delay: .15s; }
.hired-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hired-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-5px); opacity: 1; } }

.hired-say.is-typing .is-caret::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -3px; background: var(--g-dark); animation: hired-caret .8s steps(1) infinite; }
@keyframes hired-caret { 50% { opacity: 0; } }

/* Les chiffres et les boutons arrivent une fois le message écrit */
.hired:not(.is-done) .hired-facts,
.hired:not(.is-done) .hired-actions { opacity: 0; animation: none; pointer-events: none; }
.hired.is-done .hired-facts { animation: hired-pop .6s ease both; }
.hired.is-done .hired-actions { animation: hired-pop .6s ease .2s both; }

/* Carte message : le texte s'allonge vers le dromadaire, qui marche sur la droite */
.promo--camel .promo-body { position: relative; z-index: 1; max-width: 68%; }
.promo--camel .promo-title { font-size: 16px; line-height: 1.24; }
.promo--camel .promo-art { width: 42%; height: 92%; top: auto; }
.gobi-scene { width: 100%; height: 100%; display: block; }

/* ---------- « Comment fonctionne GOBI ? » ---------- */
/* Fenêtre centrée, compacte : de l'air en haut et en bas, le contenu défile à l'intérieur */
.howto { align-items: center; padding: 32px 18px; }
.howto-card { position: relative; width: 100%; max-width: 370px; max-height: min(600px, calc(100vh - 110px)); max-height: min(600px, calc(100dvh - 110px)); display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: 24px; box-shadow: 0 24px 60px rgba(8, 30, 20, .35); animation: howto-in .42s cubic-bezier(.22,1.3,.36,1); }
.howto-head { flex-shrink: 0; position: relative; overflow: hidden; padding: 18px 18px 20px; text-align: center; color: #fff; background: radial-gradient(120% 90% at 50% 0%, color-mix(in oklab, var(--g-gold) 55%, var(--g-primary)) 0%, var(--g-primary) 45%, var(--g-dark) 100%); }
.howto-head::before { content: ""; position: absolute; inset: -60%; background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.09) 0 10deg, transparent 10deg 24deg); animation: hired-spin 28s linear infinite; }
.howto-head::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -26px; height: 52px; background: #fff; border-radius: 50%; }
.howto-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); background: rgba(255,255,255,.18); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(4px); transition: transform .2s; }
.howto-close:active { transform: scale(.9); }
.howto-close svg { stroke-width: 2.8; }
.howto-logo { position: relative; z-index: 1; display: inline-flex; padding: 8px; border-radius: 50%; background: rgba(255,255,255,.16); box-shadow: 0 0 0 6px rgba(255,255,255,.08), 0 10px 26px rgba(0,0,0,.18); animation: hired-float 3.2s ease-in-out infinite; }
.howto-title { position: relative; z-index: 1; margin: 8px 0 2px; font-family: Outfit, sans-serif; font-weight: 900; font-size: 19px; line-height: 1.15; letter-spacing: .3px; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,.2); }
.howto-spark { position: absolute; z-index: 1; width: 10px; height: 10px; background: var(--g-gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: hired-twinkle 2.4s ease-in-out infinite; }
.howto-spark.s1 { top: 18px; left: 22px; }
.howto-spark.s2 { top: 54px; left: 58px; width: 7px; height: 7px; animation-delay: .5s; background: #fff; }
.howto-spark.s3 { top: 30px; right: 64px; width: 8px; height: 8px; animation-delay: 1s; }
.howto-spark.s4 { top: 80px; right: 26px; width: 12px; height: 12px; animation-delay: 1.5s; background: #fff; }
.howto-spark.s5 { top: 96px; left: 18px; width: 6px; height: 6px; animation-delay: .8s; }

.howto-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 18px 16px; }
.howto-step { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; }
.howto-num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: Outfit, sans-serif; font-weight: 900; font-size: 15px; color: #fff; background: linear-gradient(135deg, var(--g-gold), color-mix(in oklab, var(--g-gold) 60%, var(--g-warn))); box-shadow: 0 4px 10px color-mix(in oklab, var(--g-gold) 40%, transparent); }
.howto-step h3 { margin: 4px 0 0; font-family: Outfit, sans-serif; font-weight: 800; font-size: 15px; color: var(--g-dark); }
.howto-step p { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: #34465e; font-weight: 600; }
.howto-step b { color: var(--g-primary); }

.howto-ladder { margin: 12px 0 0 42px; padding: 10px 12px; border-radius: 14px; background: #f4f8f5; border: 1px solid var(--g-line); display: grid; gap: 7px; }
.howto-rung { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; opacity: 0; animation: howto-rung .5s ease-out forwards; animation-delay: calc(.35s + var(--d)); }
.howto-rung-name { color: var(--g-dark); font-family: Outfit, sans-serif; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.howto-rung-bar { height: 8px; border-radius: 99px; background: #e2ebe5; overflow: hidden; }
.howto-rung-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--g-primary), var(--g-gold)); transform-origin: left; animation: howto-grow .9s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(.45s + var(--d)); }
.howto-rung-gain { color: var(--g-ok); font-weight: 800; white-space: nowrap; }
.howto-rung-gain small { font-size: 10px; color: var(--g-muted); margin-left: 1px; }

.howto-gifts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 0; }
.howto-gift { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 14px 8px 12px; border-radius: 16px; color: #fff; background: linear-gradient(140deg, var(--g-gold), color-mix(in oklab, var(--g-gold) 55%, var(--g-warn))); box-shadow: 0 8px 18px color-mix(in oklab, var(--g-gold) 35%, transparent); }
.howto-gift.is-team { background: linear-gradient(140deg, var(--g-primary), var(--g-dark)); box-shadow: 0 8px 18px color-mix(in oklab, var(--g-primary) 35%, transparent); }
.howto-gift::after { content: ""; position: absolute; top: -40%; left: -60%; width: 40%; height: 180%; background: rgba(255,255,255,.28); transform: rotate(20deg); animation: howto-shine 3.2s ease-in-out infinite; }
.howto-gift-ic { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.howto-gift b { font-family: Outfit, sans-serif; font-weight: 900; font-size: 18px; }
.howto-gift span:last-child { font-size: 11.5px; font-weight: 700; opacity: .92; }

.howto-foot { flex-shrink: 0; padding: 10px 18px 10px; background: #fff; border-top: 1px solid var(--g-line); box-shadow: 0 -8px 16px rgba(255,255,255,.9); }
.howto-go { margin-top: 0; }
.howto-later { display: block; margin: 4px auto 0; border: 0; background: none; color: var(--g-muted); font-weight: 700; font-size: 13px; cursor: pointer; padding: 6px 12px; }
.howto-open { margin: 12px 18px 0; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; border: 0; width: calc(100% - 36px); cursor: pointer; text-align: left; background: linear-gradient(120deg, color-mix(in oklab, var(--g-gold) 22%, #fff), #fff); box-shadow: var(--g-shadow); color: var(--g-dark); font-family: Outfit, sans-serif; font-weight: 800; font-size: 14.5px; }
.howto-open .ic-q { width: 34px; height: 34px; border-radius: 11px; background: var(--g-gold); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; flex-shrink: 0; }
.howto-open em { margin-left: auto; font-style: normal; color: var(--g-primary); font-size: 12.5px; }

@keyframes howto-in { from { opacity: 0; transform: scale(.86) translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes howto-rung { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes howto-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes howto-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .howto-card, .howto-rung, .howto-rung-bar i, .howto-head::before, .howto-gift::after, .howto-logo, .howto-spark { animation: none !important; opacity: 1; } }

/* ---------- Page du projet : section « À propos » ---------- */
.about { margin-top: 12px; }
.about-cover { position: relative; margin: 0 18px; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--g-dark); box-shadow: var(--g-shadow-lg); }
.about-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-cover::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgba(8, 28, 20, .45), transparent); pointer-events: none; }
.about-cover--art { background: radial-gradient(90% 120% at 15% 0%, color-mix(in oklab, var(--g-gold) 45%, var(--g-primary)) 0%, var(--g-primary) 45%, var(--g-dark) 100%); }
.about-cover-art { position: absolute; right: 0; bottom: 0; width: 72%; height: 94%; }
.about-card { position: relative; z-index: 1; margin: -30px 28px 0; padding: 16px 18px 16px; background: #fff; border-radius: 20px; box-shadow: var(--g-shadow-lg); }
.about-eyebrow { display: inline-flex; padding: 4px 10px; border-radius: 99px; font-size: 10.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--g-primary); background: color-mix(in oklab, var(--g-primary) 10%, #fff); }
.about-title { margin: 10px 0 0; font-family: Outfit, sans-serif; font-weight: 900; font-size: 22px; line-height: 1.15; letter-spacing: .3px; text-transform: uppercase; color: var(--g-dark); }
.about-rule { display: block; width: 46px; height: 4px; margin: 10px 0 12px; border-radius: 99px; background: linear-gradient(90deg, var(--g-gold), color-mix(in oklab, var(--g-gold) 50%, var(--g-warn))); }
.about-card p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.62; font-weight: 600; color: #2f4058; }
.about-card p:first-of-type::first-letter { float: left; margin: 3px 7px 0 0; font-family: Outfit, sans-serif; font-weight: 900; font-size: 40px; line-height: .85; color: var(--g-primary); }
.about-countries { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--g-line); }
.about-label { font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--g-muted); }
.about-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.about-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: #f2f6f3; border: 1px solid var(--g-line); font-size: 12px; font-weight: 700; color: var(--g-dark); }
.about-blocks { display: grid; gap: 12px; margin: 14px 18px 0; }
.about-block { padding: 14px; background: #fff; border-radius: 18px; box-shadow: var(--g-shadow); }
.about-block h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-family: Outfit, sans-serif; font-weight: 800; font-size: 16px; line-height: 1.25; color: var(--g-dark); }
.about-block-num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; color: var(--g-gold); background: var(--g-dark); }
.about-block img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-top: 12px; border-radius: 14px; background: #eef2ef; }
.about-block p { margin: 10px 0 0; font-size: 13px; line-height: 1.55; font-weight: 600; color: #3a4b62; }
.about-block h3 + p { margin-top: 8px; }

/* ---------- « Actif depuis » sous le nom ---------- */
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-since { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 10.5px; font-weight: 800; letter-spacing: .2px; color: var(--g-primary); white-space: nowrap; }
.brand-since i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.7); animation: bot-pulse 2s infinite; }

/* ---------- Fenêtre d'annonce (fond blanc, titre, deux images) ---------- */
/* Fenêtre d'annonce : carte blanche, tout centré, bouton toujours visible */
.announce { align-items: center; padding: 32px 18px; }
.announce-card { position: relative; width: 100%; max-width: 370px; max-height: min(640px, calc(100vh - 110px)); max-height: min(640px, calc(100dvh - 110px)); display: flex; flex-direction: column; overflow: hidden; text-align: center; background: #fff; border-radius: 26px; box-shadow: 0 24px 60px rgba(8, 30, 20, .35); animation: announce-in .45s cubic-bezier(.22,1.3,.36,1); }
.announce-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; pointer-events: none; background: radial-gradient(90% 100% at 50% 0%, color-mix(in oklab, var(--g-gold) 22%, #fff) 0%, #fff 75%); }
.announce-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f1f4f2; color: var(--g-dark); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .2s; }
.announce-close:active { transform: scale(.9); }
.announce-close svg { stroke-width: 2.8; }
.announce-body { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 22px 20px 14px; }
.announce-head { display: flex; flex-direction: column; align-items: center; }
.announce-mark { display: inline-flex; padding: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px color-mix(in oklab, var(--g-gold) 35%, #fff), 0 8px 18px rgba(15, 60, 40, .14); animation: announce-down .5s .05s both cubic-bezier(.22,1,.36,1); }
.announce-eyebrow { margin-top: 12px; padding: 4px 12px; border-radius: 99px; font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--g-dark); background: color-mix(in oklab, var(--g-gold) 30%, #fff); animation: announce-down .5s .1s both cubic-bezier(.22,1,.36,1); }
.announce-title { margin: 10px 0 0; max-width: 300px; font-family: Outfit, sans-serif; font-weight: 900; font-size: 22px; line-height: 1.2; color: var(--g-dark); overflow-wrap: anywhere; animation: announce-down .5s .15s both cubic-bezier(.22,1,.36,1); }
.announce-rule { display: block; width: 46px; height: 4px; margin: 12px auto 0; border-radius: 99px; background: linear-gradient(90deg, var(--g-gold), color-mix(in oklab, var(--g-gold) 50%, var(--g-warn))); animation: announce-grow .6s .25s both cubic-bezier(.22,1,.36,1); }
.announce-text { margin: 12px 0 0; max-width: 310px; font-size: 14px; line-height: 1.55; font-weight: 600; color: #34465e; overflow-wrap: anywhere; animation: announce-down .5s .2s both cubic-bezier(.22,1,.36,1); }
.announce-text b, .announce-item figcaption b { color: var(--g-dark); }
.announce-item { margin: 18px 0 0; animation: announce-up .6s var(--d, .3s) both cubic-bezier(.22,1,.36,1); }
.announce-img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: cover; border-radius: 18px; background: #eef2ef; box-shadow: 0 8px 22px rgba(15, 60, 40, .14); }
.announce-item figcaption { margin: 10px auto 0; max-width: 300px; font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--g-muted); overflow-wrap: anywhere; }
.announce-img[hidden] + figcaption { margin-top: 0; }
.announce-foot { position: relative; flex-shrink: 0; padding: 12px 20px 16px; background: #fff; border-top: 1px solid var(--g-line); }
.announce-foot .btn { width: 100%; }
@keyframes announce-in { from { opacity: 0; transform: scale(.84) translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes announce-down { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes announce-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes announce-up { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .announce-card, .announce-mark, .announce-eyebrow, .announce-title, .announce-rule, .announce-text, .announce-item, .brand-since i { animation: none !important; } }

/* ---------- Assistant : aperçu d'un nouveau message (bulle fermée) ---------- */
.bot-preview { display: none; align-items: flex-start; gap: 9px; width: min(19rem, calc(100vw - 24px)); padding: 10px 12px; background: #fff; border-radius: 16px 16px 16px 6px; box-shadow: 0 10px 28px rgba(15,60,40,.26); cursor: pointer; text-align: left; border: 0; animation: bot-preview-in .45s cubic-bezier(.22,1.3,.36,1); }
.bot-preview.is-on { display: flex; }
.bot-preview-face { position: relative; width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; overflow: hidden; background: var(--g-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: Outfit, sans-serif; font-weight: 800; font-size: 15px; }
.bot-preview-face img { width: 100%; height: 100%; object-fit: cover; }
.bot-preview-body { flex: 1; min-width: 0; }
.bot-preview-name { display: flex; align-items: center; gap: 5px; font-family: Outfit, sans-serif; font-weight: 800; font-size: 12.5px; color: var(--g-dark); }
.bot-preview-name i { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.bot-preview-text { margin: 2px 0 0; font-size: 12.5px; line-height: 1.35; color: #44586e; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bot-preview-cta { margin-top: 3px; font-size: 11px; font-weight: 800; color: var(--g-primary); }
@keyframes bot-preview-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Assistant : plein écran confortable sur petit téléphone ---------- */
@media (max-width: 480px) {
    /* bottom à 92px : le bouton reste au-dessus de la barre de navigation */
    .bot { left: 12px; right: 12px; bottom: 92px; align-items: stretch; }
    .bot-panel { width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
    .bot-msgs { height: auto; }
    .bot-launch { justify-content: flex-end; }
    .bot-preview { width: 100%; }
}

/* ==========================================================================
   Personnage au travail (page Personnages)
   ========================================================================== */
.work-section { margin-bottom: 0; }
.work-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 18px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.work-track::-webkit-scrollbar { display: none; }
.work { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; position: relative; overflow: hidden; padding: 12px; background: #fff; border-radius: 22px; box-shadow: var(--g-shadow-lg); }
.work-track.is-multi .work { flex-basis: calc(100% - 26px); }

/* Couleur propre à chaque niveau */
.work.s0 { --w1: #16a06c; --w2: #0b6b47; }
.work.s1 { --w1: #3b7ddd; --w2: #1c4c9a; }
.work.s2 { --w1: #f08a24; --w2: #b0560a; }
.work.s3 { --w1: #7c4dff; --w2: #4a24bd; }
.work.s4 { --w1: #e0a800; --w2: #946400; box-shadow: 0 0 0 2px color-mix(in oklab, #e0a800 45%, transparent), var(--g-shadow-lg); }

.work-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.work-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: var(--w2); background: color-mix(in oklab, var(--w1) 12%, #fff); }
.work-status i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: bot-pulse 2s infinite; }
.work-level { padding: 4px 11px; border-radius: 999px; font-family: Outfit, sans-serif; font-weight: 800; font-size: 11.5px; color: #fff; background: linear-gradient(135deg, var(--w1), var(--w2)); }

/* Scène */
.work-stage { position: relative; height: 190px; overflow: hidden; border-radius: 18px;
    background: radial-gradient(120% 95% at 50% 100%, color-mix(in oklab, var(--w1) 30%, #fff) 0%, color-mix(in oklab, var(--w1) 9%, #fff) 58%, #fff 100%); }
.work-avatar { position: absolute; left: 50%; bottom: 6px; z-index: 3; width: 130px; height: 150px; margin-left: -65px; display: flex; align-items: flex-end; justify-content: center; animation: work-bob 2.6s ease-in-out infinite; }
.work-avatar img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0,0,0,.22)); }
.work-initial { width: 100px; height: 100px; margin-bottom: 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: Outfit, sans-serif; font-weight: 900; font-size: 48px; color: #fff; background: linear-gradient(150deg, var(--w1), var(--w2)); box-shadow: 0 10px 24px color-mix(in oklab, var(--w1) 45%, transparent); }
@keyframes work-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.ws { position: absolute; inset: 0; z-index: 1; color: var(--w1); }
@keyframes ws-spin { to { transform: rotate(360deg); } }

/* Niveau 1 : les pièces tombent dans la jarre */
.ws-coin { position: absolute; top: -20px; right: 44px; width: 18px; height: 18px; border-radius: 50%; opacity: 0;
    background: radial-gradient(circle at 35% 35%, #ffe680, #f2b705 60%, #c98a00); box-shadow: inset 0 0 0 2px rgba(255,255,255,.45);
    animation: ws-drop 2.4s cubic-bezier(.55,0,.75,.4) infinite; }
.ws-coin.c2 { right: 58px; animation-delay: .6s; }
.ws-coin.c3 { right: 34px; animation-delay: 1.2s; }
.ws-coin.c4 { right: 50px; animation-delay: 1.8s; }
@keyframes ws-drop { 0% { transform: translateY(0) rotateY(0); opacity: 0; } 10% { opacity: 1; } 72% { transform: translateY(148px) rotateY(540deg); opacity: 1; } 100% { transform: translateY(150px); opacity: 0; } }
.ws-jar { position: absolute; right: 24px; bottom: 8px; width: 58px; height: 50px; overflow: hidden; border-radius: 10px 10px 16px 16px; background: rgba(255,255,255,.6); border: 2px solid color-mix(in oklab, var(--w1) 55%, #fff); }
.ws-jar-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 52%; background: linear-gradient(180deg, #ffd84d, #e0a000); animation: ws-fill 2.4s ease-in-out infinite; }
@keyframes ws-fill { 0%, 100% { height: 46%; } 50% { height: 62%; } }
.ws-pile { position: absolute; left: 22px; bottom: 10px; display: flex; flex-direction: column-reverse; }
.ws-pile i { display: block; width: 36px; height: 10px; margin-top: -3px; border-radius: 50%; background: linear-gradient(180deg, #ffe066, #e3a400); box-shadow: 0 1px 0 #b77f00; }

/* Niveau 2 : les engrenages tournent */
.ws-gear { position: absolute; color: color-mix(in oklab, var(--w1) 70%, #fff); }
.ws-gear-hole { fill: #fff; }
.ws-gear.g1 { left: 12px; top: 14px; width: 78px; height: 78px; animation: ws-spin 6s linear infinite; }
.ws-gear.g2 { left: 78px; top: 66px; width: 46px; height: 46px; color: color-mix(in oklab, var(--w1) 48%, #fff); animation: ws-spin 3.6s linear infinite reverse; }
.ws-gear.g3 { right: 12px; top: 20px; width: 62px; height: 62px; color: color-mix(in oklab, var(--w2) 45%, #fff); animation: ws-spin 5s linear infinite reverse; }
.ws-spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #ffd54a; box-shadow: 0 0 8px #ffd54a; animation: ws-spark 1.6s ease-out infinite; }
.ws-spark.s1 { left: 86px; top: 62px; }
.ws-spark.s2 { right: 44px; top: 74px; animation-delay: .8s; }
@keyframes ws-spark { 0% { transform: scale(.3); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(10px, -18px) scale(.2); opacity: 0; } }

/* Niveau 3 : la chaîne de production */
.ws-belt { position: absolute; left: 0; right: 0; bottom: 10px; height: 14px;
    background: repeating-linear-gradient(90deg, color-mix(in oklab, var(--w2) 75%, #000) 0 10px, color-mix(in oklab, var(--w2) 40%, #fff) 10px 20px);
    animation: ws-belt .8s linear infinite; }
@keyframes ws-belt { to { background-position: 20px 0; } }
.ws-roller { position: absolute; bottom: 5px; width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff; background: conic-gradient(var(--w2) 0 290deg, #fff 290deg 360deg); animation: ws-spin 1s linear infinite; }
.ws-roller.r1 { left: 6px; }
.ws-roller.r2 { right: 6px; }
.ws-box { position: absolute; bottom: 24px; left: -40px; width: 30px; height: 26px; border-radius: 5px; display: flex; align-items: center; justify-content: center;
    font-style: normal; font-family: Outfit, sans-serif; font-weight: 900; font-size: 13px; color: #fff;
    background: linear-gradient(160deg, var(--w1), var(--w2)); box-shadow: 0 4px 8px rgba(0,0,0,.18); animation: ws-ride 4.5s linear infinite; }
.ws-box.b2 { animation-delay: 1.5s; }
.ws-box.b3 { animation-delay: 3s; }
@keyframes ws-ride { from { transform: translateX(0); } to { transform: translateX(460px); } }

/* Niveau 4 : la courbe de croissance */
.ws-bars { position: absolute; right: 18px; bottom: 10px; height: 112px; display: flex; align-items: flex-end; gap: 5px; }
.ws-bars i { width: 12px; border-radius: 4px 4px 2px 2px; transform-origin: bottom; background: linear-gradient(180deg, var(--w1), var(--w2)); animation: ws-grow 2.4s ease-in-out infinite; }
.ws-bars i:nth-child(1) { height: 30%; }
.ws-bars i:nth-child(2) { height: 46%; animation-delay: .2s; }
.ws-bars i:nth-child(3) { height: 40%; animation-delay: .4s; }
.ws-bars i:nth-child(4) { height: 70%; animation-delay: .6s; }
.ws-bars i:nth-child(5) { height: 96%; animation-delay: .8s; }
@keyframes ws-grow { 0%, 100% { transform: scaleY(.74); } 50% { transform: scaleY(1); } }
.ws-arrow { position: absolute; left: 12px; top: 16px; width: 120px; height: 60px; overflow: visible; color: var(--w1); }
.ws-arrow polyline { stroke-dasharray: 200; stroke-dashoffset: 200; animation: ws-draw 3s ease-in-out infinite; }
@keyframes ws-draw { 0% { stroke-dashoffset: 200; opacity: 1; } 60%, 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.ws-dot { position: absolute; left: 124px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--w1); animation: ws-ping 1.6s infinite; }
@keyframes ws-ping { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--w1) 60%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }

/* Niveau 5 : le trésor royal */
.ws-rays { position: absolute; left: 50%; top: 55%; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; opacity: .7;
    background: repeating-conic-gradient(from 0deg, color-mix(in oklab, var(--w1) 45%, transparent) 0deg 8deg, transparent 8deg 22deg);
    -webkit-mask: radial-gradient(circle, #000 0, transparent 60%); mask: radial-gradient(circle, #000 0, transparent 60%);
    animation: ws-spin 18s linear infinite; }
.ws-crown { position: absolute; left: 50%; top: 8px; z-index: 4; width: 54px; height: 40px; margin-left: -27px; color: #f2b705; filter: drop-shadow(0 4px 8px rgba(224,168,0,.5)); animation: ws-float 2.6s ease-in-out infinite; }
.ws-gem { fill: #e0245e; }
@keyframes ws-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-6px) rotate(4deg); } }
.ws-star { position: absolute; top: -12px; width: 10px; height: 10px; opacity: 0; background: #ffd54a; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: ws-fall 3.2s linear infinite; }
.ws-star.t1 { left: 12%; }
.ws-star.t2 { left: 28%; animation-delay: .7s; }
.ws-star.t3 { left: 64%; animation-delay: 1.4s; }
.ws-star.t4 { left: 82%; animation-delay: 2.1s; }
.ws-star.t5 { left: 46%; animation-delay: 2.6s; }
@keyframes ws-fall { 0% { transform: translateY(0) rotate(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(210px) rotate(180deg); opacity: 0; } }

/* Nom */
.work-name { margin-top: 10px; text-align: center; }
.work-name b { display: block; font-family: Outfit, sans-serif; font-weight: 900; font-size: 20px; color: var(--g-dark); }
.work-name span { font-size: 12px; font-weight: 600; color: var(--g-muted); }

/* Compteur des gains */
.work-counter { margin-top: 12px; padding: 12px 10px 10px; text-align: center; border-radius: 16px;
    background: linear-gradient(160deg, color-mix(in oklab, var(--w1) 10%, #fff), #fff); border: 1px solid color-mix(in oklab, var(--w1) 18%, #fff); }
.work-label { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--g-muted); }
.work-amount { margin-top: 4px; display: flex; align-items: baseline; justify-content: center; font-family: Outfit, sans-serif; color: var(--g-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
.work-amount b { font-weight: 900; font-size: clamp(26px, 8.5vw, 36px); line-height: 1; letter-spacing: -.5px; display: inline-block; }
.work-amount small { font-weight: 800; font-size: clamp(14px, 4.4vw, 18px); color: var(--w2); opacity: .85; }
.work-amount em { font-style: normal; font-weight: 800; font-size: clamp(14px, 4.4vw, 18px); }
.work-amount b.is-up { animation: work-up .5s ease; }
@keyframes work-up { 0% { color: var(--w1); transform: translateY(-2px) scale(1.04); } 100% { color: var(--g-dark); transform: none; } }
.work-today { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 700; color: var(--g-muted); }
.work-today b { color: var(--g-ok); font-variant-numeric: tabular-nums; }

/* Fin du contrat */
.work-end { margin-top: 12px; }
.work-timer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; }
.work-timer span { padding: 8px 4px 6px; text-align: center; color: #fff; border-radius: 12px; background: linear-gradient(160deg, var(--w2), var(--g-dark)); }
.work-timer b { display: block; font-family: Outfit, sans-serif; font-weight: 900; font-size: 20px; line-height: 1; font-variant-numeric: tabular-nums; }
.work-timer small { font-size: 9.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; opacity: .72; }
.work-progress { margin-top: 9px; }
.work-progress .bar { display: block; height: 8px; overflow: hidden; border-radius: 99px; background: #e8eeea; }
.work-progress .bar i { display: block; position: relative; width: 0; height: 100%; overflow: hidden; border-radius: inherit; background: linear-gradient(90deg, var(--w1), var(--g-gold)); }
.work-progress .bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-100%); animation: work-shine 2.2s ease-in-out infinite; }
@keyframes work-shine { 60%, 100% { transform: translateX(100%); } }
.work-pct { display: block; margin-top: 5px; font-size: 11px; font-weight: 700; color: var(--g-muted); }
.work-pct b { color: var(--g-dark); font-variant-numeric: tabular-nums; }

/* Repères */
.work-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.work-facts div { min-width: 0; padding: 8px 6px; text-align: center; border-radius: 12px; background: #f5f8f6; }
.work-facts span { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: var(--g-muted); }
.work-facts b { display: block; margin-top: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: Outfit, sans-serif; font-weight: 800; font-size: 13px; color: var(--g-dark); }
.work-facts small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; font-weight: 700; color: var(--g-ok); }

/* Versements */
.work-pay { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11.5px; font-weight: 700; color: var(--g-muted); }
.work-dots { flex: 1; display: flex; flex-wrap: wrap; gap: 4px; }
.work-dots i { width: 16px; height: 6px; border-radius: 99px; background: #e3e9e5; }
.work-dots i.is-done { background: var(--w1); }
.work-dots i.is-next { background: color-mix(in oklab, var(--w1) 35%, #fff); animation: ws-blink 1.4s infinite; }
@keyframes ws-blink { 50% { opacity: .4; } }
.work-pay b { color: var(--g-dark); }

/* Contrat terminé */
.work.is-finished .work-status i { background: var(--g-soft); animation: none; }
.work.is-finished .ws *, .work.is-finished .ws, .work.is-finished .work-avatar { animation-play-state: paused; }

/* Points du carrousel (plusieurs personnages actifs) */
.work-nav { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.work-nav i { width: 7px; height: 7px; border-radius: 99px; cursor: pointer; background: color-mix(in oklab, var(--g-primary) 25%, #fff); transition: width .25s, background .25s; }
.work-nav i.is-on { width: 20px; background: var(--g-primary); }

@media (prefers-reduced-motion: reduce) {
    .ws, .ws *, .work-avatar, .work-amount b, .work-progress .bar i::after { animation: none !important; }
    .ws-coin, .ws-star { opacity: 1; }
}

/* ---------- Barre de chargement entre deux pages ---------- */
.nav-load { position: fixed; top: 0; left: 0; z-index: 200; height: 3px; width: 0; pointer-events: none; opacity: 0; background: linear-gradient(90deg, var(--g-gold), color-mix(in oklab, var(--g-gold) 50%, var(--g-warn))); box-shadow: 0 0 8px color-mix(in oklab, var(--g-gold) 70%, transparent); border-radius: 0 3px 3px 0; }
.nav-load.is-on { opacity: 1; animation: nav-load 9s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes nav-load { 0% { width: 0; } 10% { width: 45%; } 40% { width: 75%; } 100% { width: 92%; } }
@media (prefers-reduced-motion: reduce) { .nav-load.is-on { animation: none; width: 70%; } }

/* ---------- Nos partenaires (page du projet) ---------- */
.partners-text { margin: -4px 2px 10px; font-size: 12.5px; line-height: 1.5; color: var(--g-muted); }
.partners-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 6px; padding: 16px 8px 14px; background: #fff; border-radius: var(--g-radius); box-shadow: var(--g-shadow); }
.partner { flex: 0 0 calc((100% - 24px) / 5); min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.partner-logo { width: min(58px, 100%); aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; border: 2px solid color-mix(in oklab, var(--g-gold) 55%, #fff); box-shadow: 0 6px 14px rgba(15, 60, 40, .12); font-family: Outfit, sans-serif; font-weight: 800; font-size: 20px; color: var(--g-primary); animation: partner-in .5s cubic-bezier(.22,1.3,.36,1) both; }
.partner:nth-child(2) .partner-logo { animation-delay: .08s; }
.partner:nth-child(3) .partner-logo { animation-delay: .16s; }
.partner:nth-child(4) .partner-logo { animation-delay: .24s; }
.partner:nth-child(5) .partner-logo { animation-delay: .32s; }
.partner-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.partner-name { max-width: 100%; font-size: 10.5px; font-weight: 800; line-height: 1.25; color: var(--g-ink); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@keyframes partner-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .partner-logo { animation: none; } }

/* ---------- Photo de profil (en-tête de l'accueil) ---------- */
.avatar { overflow: hidden; }
.avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Page « Moi » ---------- */
/* Carte du membre : compacte et fixe (pas d'animation), pensée pour la capture d'écran */
.me-card { position: relative; overflow: hidden; margin: 8px 18px 0; padding: 14px 14px 10px; border-radius: 22px; color: #fff; background: radial-gradient(130% 110% at 0% 0%, color-mix(in oklab, var(--g-gold) 38%, var(--g-primary)) 0%, var(--g-primary) 45%, var(--g-dark) 100%); box-shadow: var(--g-shadow-lg); }
.me-card::before { content: ""; position: absolute; right: -60px; top: -70px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--g-gold) 45%, transparent), transparent 70%); pointer-events: none; }
.me-card::after { content: ""; position: absolute; left: -40px; bottom: -80px; width: 180px; height: 180px; border-radius: 50%; border: 22px solid rgba(255,255,255,.05); pointer-events: none; }
.me-card > * { position: relative; }
.me-card-top { display: flex; align-items: center; gap: 12px; }
.me-avatar { position: relative; flex-shrink: 0; display: block; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.me-avatar:active .me-avatar-img { transform: scale(.95); }
.me-avatar-img { width: 66px; height: 66px; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; color: var(--g-primary); font-family: Outfit, sans-serif; font-weight: 800; font-size: 28px; border: 3px solid var(--g-gold); box-shadow: 0 0 0 4px rgba(255,255,255,.14), 0 8px 18px rgba(0,0,0,.22); transition: transform .15s; }
.me-avatar-img img { width: 100%; height: 100%; object-fit: cover; }
.me-avatar-edit { position: absolute; right: -3px; bottom: -1px; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--g-gold); color: var(--g-dark); border: 2px solid #fff; }
.me-avatar-edit svg { stroke-width: 2.6; }
.me-card-id { flex: 1; min-width: 0; }
.me-card-id h2 { margin: 0; font-family: Outfit, sans-serif; font-weight: 800; font-size: 19px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-card-id p { margin: 2px 0 0; font-size: 11.5px; opacity: .88; }
.me-card-pill { display: inline-block; margin-top: 6px; padding: 2px 9px; border-radius: 99px; font-size: 10.5px; font-weight: 800; color: var(--g-dark); background: var(--g-gold); }
.me-card-pill.is-off { background: #fdecee; color: #a51524; }
.me-card-brand { align-self: flex-start; flex-shrink: 0; padding: 4px; border-radius: 50%; background: rgba(255,255,255,.14); }
.me-card-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; border-radius: 16px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); }
.me-card-stats div { padding: 10px 6px; text-align: center; min-width: 0; }
.me-card-stats div + div { border-left: 1px solid rgba(255,255,255,.16); }
.me-card-stats span { display: block; font-size: 10.5px; font-weight: 700; opacity: .85; }
.me-card-stats b { display: block; margin-top: 2px; font-family: Outfit, sans-serif; font-weight: 800; font-size: 19px; line-height: 1.1; overflow-wrap: anywhere; }
.me-card-stats b.is-up { color: var(--g-gold); }
.me-card-stats small { margin-left: 3px; font-size: 10.5px; font-weight: 700; opacity: .8; }
.me-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; font-size: 11px; }
.me-card-foot span { display: flex; align-items: center; gap: 6px; min-width: 0; opacity: .9; }
.me-card-foot b { flex-shrink: 0; color: var(--g-gold); letter-spacing: .3px; }
.me-live-dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: #5ee08a; box-shadow: 0 0 0 3px rgba(94,224,138,.25); }

.me-next { display: flex; align-items: center; gap: 12px; margin: 10px 18px 0; padding: 11px 12px; border-radius: 16px; background: color-mix(in oklab, var(--g-gold) 18%, #fff); box-shadow: var(--g-shadow); }
.me-next .ic { flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; }
.me-next > span:nth-child(2) { flex: 1; min-width: 0; }
.me-next small { display: block; font-size: 11px; font-weight: 700; color: var(--g-muted); }
.me-next b { display: block; font-family: Outfit, sans-serif; font-weight: 800; font-size: 15px; color: var(--g-dark); }

.me-run { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px; background: #fff; border-radius: 16px; box-shadow: var(--g-shadow); }
.me-run-av { position: relative; flex-shrink: 0; width: 50px; height: 50px; border-radius: 15px; display: flex; align-items: center; justify-content: center; color: #fff; font-family: Outfit, sans-serif; font-weight: 800; font-size: 20px; background: linear-gradient(160deg, var(--g-primary), var(--g-dark)); }
.me-run-av img { width: 100%; height: 100%; object-fit: contain; animation: me-bob 2.4s ease-in-out infinite; }
.me-run-dot { position: absolute; top: -3px; right: -3px; width: 13px; height: 13px; border-radius: 50%; background: var(--g-ok); border: 2px solid #fff; animation: me-pulse 1.8s ease-out infinite; }
.me-run-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.me-run-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.me-run-top b { font-family: Outfit, sans-serif; font-weight: 800; font-size: 15px; color: var(--g-ink); }
.me-run-top em { font-style: normal; font-weight: 800; font-size: 13px; color: var(--g-ok); white-space: nowrap; }
.me-run-bar { height: 7px; border-radius: 99px; overflow: hidden; background: #e6eee9; }
.me-run-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--g-primary), var(--g-gold)); }
.me-run-sub { font-size: 11px; color: var(--g-muted); }
.me-empty { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 14px; background: #fff; border-radius: 16px; box-shadow: var(--g-shadow); font-size: 13px; color: var(--g-muted); }
.me-empty b { display: block; margin-top: 2px; color: var(--g-primary); }

.me-records { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.me-record { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; column-gap: 10px; row-gap: 1px; padding: 11px 12px; background: #fff; border-radius: 16px; box-shadow: var(--g-shadow); }
.me-record-ic { grid-row: span 2; width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--g-dark); }
.me-record.is-gold .me-record-ic { background: linear-gradient(135deg, var(--g-gold), color-mix(in oklab, var(--g-gold) 60%, var(--g-warn))); }
.me-record.is-green .me-record-ic { background: var(--g-primary); }
.me-record-label { font-size: 10.5px; font-weight: 700; line-height: 1.25; color: var(--g-muted); }
.me-record b { font-family: Outfit, sans-serif; font-weight: 800; font-size: 16px; line-height: 1.2; color: var(--g-ink); overflow-wrap: anywhere; }
.me-record b small { font-size: 11px; font-weight: 700; color: var(--g-muted); }

/* Choix de la photo de profil */
.me-upload .btn { width: 100%; cursor: pointer; }
.me-pick-title { margin: 16px 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--g-muted); }
.me-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.me-pick button { aspect-ratio: 1; padding: 0; border: 3px solid transparent; border-radius: 50%; background: none; cursor: pointer; transition: transform .15s; }
.me-pick button:active { transform: scale(.92); }
.me-pick button.is-on { border-color: var(--g-gold); box-shadow: 0 0 0 3px color-mix(in oklab, var(--g-gold) 35%, transparent); }
.me-pick img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.me-remove { display: block; width: 100%; margin-top: 14px; padding: 8px; border: 0; background: none; cursor: pointer; color: #c42132; font-weight: 700; font-size: 13px; }

@keyframes me-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes me-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--g-ok) 60%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
@media (prefers-reduced-motion: reduce) { .me-run-av img, .me-run-dot { animation: none; } }

/* ---------- Lien d'invitation (page Équipe) et arrivée par invitation ---------- */
.invite-card { flex-direction: column; gap: 0; }
.invite-top { display: flex; align-items: center; gap: 12px; }
.invite-top-text { flex: 1; min-width: 0; }
.invite-top-text strong { display: block; font-family: Outfit, sans-serif; font-weight: 800; font-size: 15px; color: var(--g-dark); }
.invite-top-text span { display: block; margin-top: 1px; font-size: 11.5px; line-height: 1.4; color: var(--g-muted); }
.invite-link { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: color-mix(in oklab, var(--g-gold) 16%, #fff); border: 1px dashed color-mix(in oklab, var(--g-gold) 70%, #fff); font-family: Outfit, sans-serif; font-weight: 800; font-size: 14px; color: var(--g-dark); text-align: center; overflow-wrap: anywhere; }
.invite-label { margin: 12px 0 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--g-muted); }
.invite-msg { margin: 0; padding: 10px 12px; border-radius: 12px; background: #f4f8f5; font-size: 12.5px; line-height: 1.5; color: var(--g-ink); white-space: pre-line; overflow-wrap: anywhere; }
.invite-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.invite-actions .btn { width: 100%; }
.invite-note { display: flex; align-items: center; gap: 10px; margin: 12px 0 2px; padding: 10px 12px; border-radius: 14px; background: color-mix(in oklab, var(--g-gold) 16%, #fff); font-size: 12.5px; line-height: 1.4; color: var(--g-ink); }
.invite-note .ic { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; }
.welcome-more { display: block; margin-top: 16px; padding: 12px 14px; border-radius: 14px; text-align: center; font-size: 13px; color: var(--g-muted); background: color-mix(in oklab, var(--g-gold) 14%, #fff); }
.welcome-more b { color: var(--g-primary); }

/* ---------- Participer (fenêtre d'annonce) ---------- */
.announce-pane { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.announce-pane[hidden] { display: none; }
.announce-foot .btn + .btn { margin-top: 8px; }
.join-back { display: flex; width: max-content; align-items: center; gap: 4px; margin: -6px auto 6px 0; padding: 6px 8px 6px 2px; border: 0; background: none; cursor: pointer; font-weight: 800; font-size: 13px; color: var(--g-primary); }
.join-head { display: flex; flex-direction: column; align-items: center; margin-bottom: 6px; }
.join-ic { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(140deg, var(--g-gold), color-mix(in oklab, var(--g-gold) 55%, var(--g-warn))); box-shadow: 0 0 0 6px color-mix(in oklab, var(--g-gold) 22%, #fff); }
.join-head h3 { margin: 12px 0 0; font-family: Outfit, sans-serif; font-weight: 900; font-size: 20px; color: var(--g-dark); }
.join-head p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--g-muted); }
.join-head p b { color: var(--g-dark); }
[data-pane="join"] .field { text-align: left; }
.join-pref { font-style: normal; font-weight: 700; font-size: 11px; color: var(--g-ok); }
.join-same { display: flex; align-items: center; gap: 8px; margin-top: 10px; text-align: left; font-size: 12.5px; font-weight: 700; color: var(--g-ink); cursor: pointer; }
.join-same input { width: 18px; height: 18px; accent-color: var(--g-primary); }
.join-error { margin: 12px 0 0; padding: 9px 12px; border-radius: 12px; background: #fdecee; color: #a51524; font-size: 12.5px; font-weight: 700; text-align: left; }
.join-result { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 4px 6px; }
.join-result p { margin: 0; font-size: 14px; line-height: 1.55; font-weight: 600; color: var(--g-ink); }
.join-result p b { color: var(--g-dark); }
.join-result .btn { width: 100%; }
.join-result-ic { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: Outfit, sans-serif; font-weight: 900; font-size: 30px; color: #fff; animation: announce-in .45s cubic-bezier(.22,1.3,.36,1); }
.join-result-ic.is-ok { background: var(--g-ok); box-shadow: 0 0 0 8px color-mix(in oklab, var(--g-ok) 18%, #fff); }
.join-result-ic.is-no { background: var(--g-warn); box-shadow: 0 0 0 8px color-mix(in oklab, var(--g-warn) 18%, #fff); }

/* Page du projet : carte « À propos » sans photo de couverture au-dessus */
.about-card--alone { margin-top: 0; }
.about-countries--alone { margin-top: 0; padding-top: 0; border-top: 0; }
