/* Design sobre : une police (Inter), bleu principal, vert du logo réservé à l'argent et aux succès. Aucun dégradé. */
@font-face { font-family: 'Inter'; src: url('../Inter.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }

:root {
  --primary: #1d4ed8; --primary-hover: #1e40af; --primary-soft: #eff6ff; --primary-ring: rgba(29, 78, 216, .18);
  --accent: #15803d; --accent-soft: #f0fdf4;
  --ink: #0f172a; --muted: #64748b; --line: #e2e8f0; --bg: #f8fafc;
}

body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--ink); }
.card, input, select, textarea, button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
a.card:hover { border-color: #cbd5e1; }
.card-hero { background: var(--primary); color: #fff; border-radius: 12px; padding: 24px; }
.muted { color: var(--muted); }
.title { font-size: 1.125rem; font-weight: 700; }
.logo-mark { height: 32px; width: auto; display: block; }
.amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount-pos { color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 10px 18px; min-height: 44px;
       font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; text-align: center; }
.btn > svg { flex-shrink: 0; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #166534; }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid #cbd5e1; }
.btn-outline:hover { background: #f1f5f9; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--primary-soft); }
.btn-ghost-light { color: #fff; border: 1px solid rgba(255, 255, 255, .6); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); }
.btn-danger-outline { background: #fff; color: #b91c1c; border: 1px solid #fca5a5; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { background: #cbd5e1; color: #fff; cursor: not-allowed; border-color: #cbd5e1; transform: none; }

.chip { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
        font-size: 13px; font-weight: 600; color: #475569; background: #fff; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { background: #f1f5f9; }
.chip-on { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

.label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 4px; }
.survey-field ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.survey-field ul label { display: flex; align-items: center; gap: 8px; font-size: 14px; border: 1px solid var(--line);
                          border-radius: 10px; padding: 9px 12px; cursor: pointer; transition: background .15s, border-color .15s; }
.survey-field ul label:hover { background: #f8fafc; }
.survey-field ul input { accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }
.survey-field textarea.input { resize: vertical; }
.field ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.field ul label { display: flex; align-items: center; gap: 6px; font-size: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.field ul input { accent-color: var(--primary); }
.input { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; background: #fff; font-size: 15px; min-height: 44px; }
.input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-ring); }
.error { color: #b91c1c; font-size: 13px; margin-top: 4px; }
.alert { display: block; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-info { background: var(--primary-soft); border: 1px solid #bfdbfe; color: #1e3a8a; }
.alert-ok { background: var(--accent-soft); border: 1px solid #bbf7d0; color: #14532d; }

.badge { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; background: var(--line); color: #334155; white-space: nowrap; }
.badge-ok { background: #dcfce7; color: #166534; }
.badge-wait { background: #fef3c7; color: #92400e; }
.badge-bad { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }

/* Chiffre clé : libellé au-dessus, valeur en dessous (soldes, devis, statistiques) */
.stat { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fff; min-width: 0; }
.stat dt, .stat .stat-label { font-size: 12px; color: var(--muted); }
.stat dd, .stat .stat-value { font-weight: 700; font-size: 1.05rem; margin-top: 2px; overflow-wrap: anywhere; }
.stat .stat-help { font-size: 12px; color: var(--muted); margin-top: 2px; }

.progress { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); }

.tab { padding: 10px 4px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.tab[aria-selected=true] { color: var(--primary); border-bottom-color: var(--primary); }

.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #f1f5f9; transition: background .15s; }
.row:first-child { border-top: 0; }
a.row:hover { background: #f8fafc; margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 8px; }

.skeleton { background: var(--line); border-radius: 12px; animation: sk 1.4s ease-in-out infinite; }
@keyframes sk { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
dialog { border: 0; border-radius: 12px; padding: 24px; }
dialog::backdrop { background: rgba(15, 23, 42, .5); }

/* Notification flottante (fil d'activité réel) */
.activity-toast { position: absolute; top: calc(100% + 8px); left: 50%; z-index: 25; max-width: min(28rem, calc(100vw - 32px));
                   padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--ink);
                   white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
                   background: rgba(255, 255, 255, .82); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
                   backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
                   transform: translate(-50%, -6px); opacity: 0; pointer-events: none; transition: transform .3s ease, opacity .3s ease; }
.activity-toast.show { transform: translate(-50%, 0); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .activity-toast { transition: opacity .2s; } }

/* Menus déroulants <details> sans triangle natif */
.dropdown > summary, .menu-toggle > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker, .menu-toggle > summary::-webkit-details-marker { display: none; }

/* Bouton central de la barre du bas (mobile), surélevé */
.nav-fab { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); width: 56px; height: 56px;
           border-radius: 999px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
           box-shadow: 0 2px 8px rgba(29, 78, 216, .25); border: 4px solid #fff; transition: background .15s, transform .1s; }
.nav-fab:hover { background: var(--primary-hover); }
.nav-fab:active { transform: translateX(-50%) scale(.96); }

/* ------------------------------------------------------------------ Site public (landing, pages d'information) */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.nav-link { display: block; padding: 8px 12px; border-radius: 8px; font-weight: 500; color: #334155; }
.nav-link:hover { background: #f1f5f9; color: var(--ink); }
.nav-link[aria-current=page] { color: var(--primary); background: var(--primary-soft); }
.menu-toggle[open] > summary .icon-open { display: none; }
.menu-toggle:not([open]) > summary .icon-close { display: none; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 768px) { .wrap { padding-left: 32px; padding-right: 32px; } }
.section { padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 768px) { .section { padding-top: 80px; padding-bottom: 80px; } }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.lead { font-size: 1.125rem; line-height: 1.65; color: #475569; }
.prose-page p, .prose-page li { line-height: 1.7; }
.prose-page h2 { font-size: 1.15rem; font-weight: 700; margin-top: 1.5rem; }

.icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px;
             background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.icon-tile-accent { background: var(--accent-soft); color: var(--accent); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px;
            background: var(--primary); color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; border-radius: 999px;
                         background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:first-child { border-top: 0; }
.faq-item > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 600; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--muted); }
.faq-item[open] > summary::after { content: "−"; }
.faq-item > div { padding-bottom: 16px; color: #475569; line-height: 1.65; }
.cta-band { background: var(--primary); color: #fff; border-radius: 16px; padding: 32px 24px; }
@media (min-width: 768px) { .cta-band { padding: 48px; } }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* Inscription : icône / drapeau dans le champ, préfixe indicatif pour le téléphone */
.input-icon { position: relative; }
.input-icon > .input { padding-left: 42px; }
.input-icon-lead { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; display: flex; }
.flag { width: 22px; height: 16px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .12); }
.phone-field { display: flex; }
.phone-prefix { display: flex; align-items: center; gap: 6px; padding: 0 12px; border: 1px solid #cbd5e1; border-right: 0;
                border-radius: 10px 0 0 10px; background: var(--bg); font-size: 15px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.phone-field > .input { border-radius: 0 10px 10px 0; min-width: 0; }

/* Héros de l'accueil : contenu centré sur un fond décoratif flou (logos réseaux sociaux + badges de retrait) */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 72px 0 80px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::after { content: ""; position: absolute; inset: 0; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
                  background: rgba(248, 250, 252, .62); }
.hero-logo { position: absolute; width: var(--s); height: var(--s); background: var(--c); opacity: .5; filter: blur(2.5px);
             -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
             animation: hero-float 9s ease-in-out infinite; animation-delay: var(--d); }
.hero-chip { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
             background: rgba(255, 255, 255, .7); border: 1px solid var(--line); color: var(--accent); font-size: 13px; font-weight: 600;
             filter: blur(1.5px); box-shadow: 0 6px 20px rgba(15, 23, 42, .08); animation: hero-float 11s ease-in-out infinite; animation-delay: var(--d); }
.hero-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(90px); opacity: .35; }
.hero-glow-a { background: #93c5fd; top: -120px; left: -80px; }
.hero-glow-b { background: #86efac; bottom: -140px; right: -60px; }
.hero-inner { text-align: center; max-width: 52rem; }
.hero-inner .lead { max-width: 40rem; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
.btn-apk, .btn-apk:disabled { background: rgba(255, 255, 255, .6); border: 1px dashed #94a3b8; color: var(--muted); cursor: not-allowed; gap: 8px;
           backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-apk .badge { background: var(--primary-soft); color: var(--primary); }
@keyframes hero-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(4deg); } }
@media (max-width: 640px) {
  .hero { padding: 48px 0 56px; }
  .hero-actions > * { width: 100%; }
  .hero-logo { --s: 40px !important; }
  .hero-chip { font-size: 11px; padding: 5px 10px; }
}
@media (prefers-reduced-motion: reduce) { .hero-logo, .hero-chip { animation: none; } }

/* Connexion / inscription : plein écran, formulaire à gauche, visuel bleu à droite (dès 1024 px) */
.auth-page { background: #fff; }
.auth-shell { min-height: 100vh; min-height: 100dvh; display: grid; }
@media (min-width: 1024px) { .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.auth-main { display: flex; flex-direction: column; padding: 20px 16px 24px; width: 100%; max-width: 30rem; margin: 0 auto; }
@media (min-width: 640px) { .auth-main { padding: 32px 32px; } }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.auth-brand img { border-radius: 10px; }
.auth-form { margin: auto 0; padding: 28px 0 20px; }
.auth-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.auth-sub { color: var(--muted); margin-top: 6px; }
.auth-switch { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; text-align: center; font-size: 14px; color: var(--muted); }
.auth-legal { font-size: 12px; color: var(--muted); text-align: center; }
.auth-legal a:hover { color: var(--ink); }
.auth-bonus-pill { margin-top: 16px; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
                   background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; }
@media (min-width: 1024px) { .auth-bonus-pill { display: none; } }

.auth-visual { display: none; position: relative; overflow: hidden; isolation: isolate; background: var(--primary); color: #fff; }
@media (min-width: 1024px) { .auth-visual { display: flex; align-items: center; justify-content: center; padding: 48px; } }
.auth-visual .hero-logo { opacity: .22; }
.auth-visual .hero-bg::after { display: none; }
.auth-visual .hero-glow-a { background: #60a5fa; opacity: .55; }
.auth-visual .hero-glow-b { background: #4ade80; opacity: .35; }
.auth-visual-inner { width: 100%; max-width: 26rem; display: grid; gap: 18px; }
.auth-kicker { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 6px 12px; border-radius: 999px;
               background: rgba(255, 255, 255, .14); font-size: 13px; font-weight: 600; }
.auth-visual-title { font-size: 2.25rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.auth-glass { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: 18px; padding: 20px;
              backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.auth-bonus { display: grid; gap: 2px; }
.auth-bonus-label { font-size: 13px; opacity: .85; }
.auth-bonus-amount { font-size: 2.5rem; font-weight: 800; letter-spacing: -.02em; color: #bbf7d0; font-variant-numeric: tabular-nums; }
.auth-bonus-conv { font-size: 13px; opacity: .75; }
.auth-withdraw-title { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.auth-methods { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.auth-methods li { padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; }
.auth-mins { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-mins dt { font-size: 12px; opacity: .75; }
.auth-mins dd { font-weight: 700; margin-top: 2px; }

/* ===================== Espace membre : en-tête, menu profil, barre du bas, tableau de bord ===================== */
.app-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .85); border-bottom: 1px solid var(--line);
              backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.app-header-inner { height: 64px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1140px; margin: 0 auto; }
@media (min-width: 768px) { .app-header-inner { padding: 0 32px; } }
.app-hello { display: flex; align-items: center; gap: 10px; min-width: 0; }
.app-hello-logo { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
.app-hello-sub { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; }
.app-hello-name { display: block; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; line-height: 1.25; }
.app-icon-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: #475569; border: 1px solid var(--line); background: #fff; }
.app-icon-btn:hover { background: var(--bg); color: var(--ink); }
.app-dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: #dc2626; box-shadow: 0 0 0 2px #fff; }
.app-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex-shrink: 0;
              background: var(--primary); color: #fff; font-weight: 700; box-shadow: 0 0 0 3px var(--primary-soft); }
.app-avatar-lg { width: 44px; height: 44px; font-size: 18px; cursor: default; }
.profile-menu { position: absolute; right: 0; margin-top: 10px; width: min(18rem, calc(100vw - 32px)); z-index: 40; background: #fff;
                border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: 0 18px 40px rgba(15, 23, 42, .14); font-size: 14px; }
.profile-card { display: flex; align-items: center; gap: 12px; padding: 4px 4px 12px; }
.profile-balance { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.profile-links { margin-top: 8px; display: grid; }
.profile-links a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: #334155; }
.profile-links a:hover { background: var(--bg); color: var(--ink); }
.profile-lang { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.profile-logout { width: 100%; margin-top: 8px; padding: 9px 10px; border-radius: 10px; text-align: left; color: #b91c1c; font-weight: 500; }
.profile-logout:hover { background: #fef2f2; }

/* Barre de navigation du bas : flottante, floutée, onglet actif en pastille */
body:has(.bnav) { padding-bottom: 112px; }
.bnav { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); max-width: 30rem; margin: 0 auto; }
.bnav-list { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 6px; border-radius: 22px;
             background: rgba(255, 255, 255, .88); border: 1px solid rgba(226, 232, 240, .9); box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
             backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.bnav-list > li { display: flex; justify-content: center; }
.bnav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; width: 100%; border-radius: 16px;
             color: var(--muted); font-size: 11px; font-weight: 600; transition: color .15s, background .15s; }
.bnav-item:hover { color: var(--ink); }
.bnav-item[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
.bnav-label { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.bnav-fab { width: 56px; height: 56px; margin-top: -26px; border-radius: 18px; display: grid; place-items: center; color: #fff;
            background: var(--accent); box-shadow: 0 10px 24px rgba(21, 128, 61, .35), 0 0 0 5px #fff; transition: transform .15s; }
.bnav-fab:hover { transform: translateY(-2px); }
.bnav-fab:active { transform: scale(.96); }

/* Tableau de bord */
.dash { width: 100%; margin: 0 auto; padding: 20px 16px; display: grid; gap: 20px; }
@media (min-width: 768px) { .dash { padding: 28px 32px; } }
.dash-balance { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; padding: 22px; color: #fff; background: var(--primary); display: grid; gap: 18px; }
.dash-balance::before, .dash-balance::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); }
.dash-balance::before { width: 260px; height: 260px; background: #60a5fa; top: -120px; right: -60px; opacity: .7; }
.dash-balance::after { width: 220px; height: 220px; background: #4ade80; bottom: -140px; left: -60px; opacity: .35; }
@media (min-width: 768px) { .dash-balance { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 28px; }
                            .dash-balance-actions { grid-column: 1 / -1; } }
.dash-balance-label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #dbeafe; }
.dash-balance-amount { font-size: clamp(2.1rem, 7vw, 2.75rem); font-weight: 800; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dash-balance-help { font-size: 12px; color: #bfdbfe; margin-top: 2px; }
.dash-balance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dash-mini { border-radius: 16px; padding: 12px 14px; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .2);
             backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); min-width: 0; }
.dash-mini dt { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #dbeafe; }
.dash-mini dd { font-size: 1.15rem; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dash-mini p { font-size: 11px; color: #bfdbfe; margin-top: 4px; }
.dash-mini-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .2); margin-top: 8px; overflow: hidden; }
.dash-mini-bar span { display: block; height: 100%; border-radius: inherit; background: #86efac; }
.dash-balance-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dash-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dash-cols { display: grid; gap: 16px; align-items: start; }
@media (min-width: 768px) { .dash-cols { grid-template-columns: 1fr 1fr; } }

/* Bannière partenaire (publicité) */
.dash-partner { display: grid; overflow: hidden; border-radius: 22px; background: #0b1f3a; color: #fff; }
@media (min-width: 640px) { .dash-partner { grid-template-columns: 220px 1fr; } }
.dash-partner-media { min-height: 140px; background: #12345e center / cover no-repeat; display: grid; place-items: center; }
.dash-partner-wordmark { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.dash-partner-body { padding: 20px; display: grid; gap: 10px; justify-items: start; }
.dash-partner-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dash-partner-tags span { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #cbd5e1; }
.dash-partner-tags .dash-partner-age { background: #fef3c7; color: #92400e; }
.dash-partner-title { font-size: 1.25rem; font-weight: 800; line-height: 1.25; }
.dash-partner-reward { color: #86efac; font-weight: 600; font-size: 14px; }
.dash-partner-legal { font-size: 11px; color: #94a3b8; }

/* Cartes de mission */
.mission-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .mission-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mission-grid { grid-template-columns: repeat(3, 1fr); } }
.mission-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px;
                transition: border-color .15s, box-shadow .15s, transform .15s; }
.mission-card:hover { border-color: #bfdbfe; box-shadow: 0 10px 28px rgba(15, 23, 42, .08); transform: translateY(-2px); }
.mission-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mission-cat { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary);
               white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mission-price { font-weight: 800; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mission-title { font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mission-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.mission-progress { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.mission-progress span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.mission-count { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.mission-count > span:first-child { display: inline-flex; align-items: center; gap: 4px; color: #334155; font-weight: 600; }
.mission-card .btn { margin-top: auto; }
.auth-tagline { display: block; font-size: 12px; font-weight: 500; color: var(--muted); line-height: 1.2; }

/* Animation « création du compte » (page de bienvenue) */
.setup-steps { display: grid; gap: 12px; }
.setup-step { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
              font-weight: 600; color: var(--muted); opacity: .45; transform: translateY(6px); transition: opacity .35s, transform .35s, color .35s, border-color .35s, background .35s; }
.setup-step.is-done { opacity: 1; transform: none; color: var(--ink); border-color: #bbf7d0; background: var(--accent-soft); }
.setup-check { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--line); position: relative; transition: background .3s, border-color .3s; }
.setup-step.is-done .setup-check { background: var(--accent); border-color: var(--accent); }
.setup-step.is-done .setup-check::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid #fff;
                                           border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); animation: setup-pop .3s ease; }
.setup-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.setup-bar span { display: block; height: 100%; width: 0; background: var(--primary); border-radius: inherit; }
.setup-bar.is-running span { width: 100%; transition: width var(--setup-total, 3s) linear; }
@keyframes setup-pop { from { transform: rotate(45deg) scale(.4); opacity: 0; } to { transform: rotate(45deg) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .setup-step, .setup-bar.is-running span { transition: none; } }

/* ------------------------------------------------------------------ Alerte « Rejoins nos canaux » (Workers) */
.join-alert { background: var(--primary); color: #fff; }
.join-alert-inner { padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
@media (min-width: 768px) { .join-alert-inner { padding: 12px 32px; } }
.join-alert-text .text-sm { color: #dbeafe; }
.join-alert-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.join-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px;
             background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); font-size: 14px; font-weight: 600; color: #fff; }
.join-chip:hover { background: rgba(255, 255, 255, .24); }
.join-chip.is-done { background: #fff; color: var(--primary); }
.join-chip-bonus { font-size: 12px; font-weight: 700; color: #bbf7d0; }
.join-chip.is-done .join-chip-bonus { color: var(--accent); }
.join-alert .btn:disabled { background: rgba(255, 255, 255, .35); color: #fff; }

/* ------------------------------------------------------------------ Tableau de bord : bienvenue, listes courtes */
.dash-welcome { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.dash-welcome h1 { font-size: clamp(1.35rem, 4vw, 1.75rem); font-weight: 800; letter-spacing: -.01em; }
.dash-list { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 16px; }
@media (min-width: 1200px) { .dash-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ Création de campagne : cartes de service */
.service-card { display: block; cursor: pointer; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; transition: border-color .15s, background .15s; }
.service-card:hover { border-color: #93c5fd; }
.service-card:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px var(--primary-ring); }
.service-card:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Pages simples (sondages, communauté) : pleine largeur ou colonne de lecture, peu de couleur */
.page-wide { width: 100%; padding: 20px 16px 32px; display: grid; gap: 24px; align-content: start; }
.page-narrow { width: 100%; max-width: 44rem; margin: 0 auto; padding: 20px 16px 32px; }
@media (min-width: 768px) { .page-wide { padding: 28px 32px 40px; } .page-narrow { padding: 28px 32px 40px; } }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.page-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }

.survey-progress { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.survey-progress .progress { margin-top: 8px; }
.survey-group-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.survey-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .survey-list { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
@media (min-width: 1200px) { .survey-list { grid-template-columns: repeat(3, 1fr); } }
.survey-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); font-weight: 500; }
a.survey-item:hover { color: var(--primary); }
.survey-item.is-done { color: var(--muted); }
.survey-state { font-size: 13px; color: var(--muted); white-space: nowrap; }
a.survey-item .survey-state { color: var(--primary); font-weight: 600; }
.survey-cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.survey-notice { font-size: 14px; color: #334155; border-left: 3px solid var(--line); padding: 4px 0 4px 14px; }
.survey-q-title { font-weight: 600; margin-bottom: 10px; }
.survey-choices { display: grid; gap: 8px; }
@media (min-width: 640px) { .survey-choices { grid-template-columns: 1fr 1fr; } }
.survey-choice { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 15px; }
.survey-choice:hover { border-color: #cbd5e1; }
.survey-choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.survey-choice input { accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }

/* Logos de réseaux (masque CSS, couleur de la marque) + page Communauté */
.net-icon { display: inline-block; flex-shrink: 0; width: var(--s); height: var(--s); background: var(--c);
            -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.net-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--muted); }
.why-list { display: grid; gap: 14px; }
@media (min-width: 768px) { .why-list { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
@media (min-width: 1200px) { .why-list { grid-template-columns: repeat(4, 1fr); } }
.why-list li { display: grid; gap: 2px; padding-left: 14px; border-left: 3px solid var(--line); font-size: 14px; }
.why-list li span { color: var(--muted); }
.channel-list { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .channel-list { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.channel { display: flex; align-items: center; gap: 14px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.channel-text { flex: 1; min-width: 0; display: grid; }
.channel-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.channel-platform { font-size: 12px; color: var(--muted); }

/* Moins de couleur : logos et badges du héros en gris neutre, sans halos colorés */
.hero .hero-logo { background: #94a3b8; opacity: .35; }
.hero .hero-chip { color: var(--muted); }
.hero .hero-glow { display: none; }
.channel-join { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--line); background: #fff;
                transition: border-color .15s, transform .15s; }
.channel-join:hover { border-color: #cbd5e1; transform: translateY(-1px); }

/* Sondages : cartes avec montant (1 colonne sur mobile) */
.survey-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.survey-stats > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; min-width: 0; }
.survey-stats dt { font-size: 12px; color: var(--muted); }
.survey-stats dd { font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.survey-grid { display: grid; gap: 10px; }
@media (min-width: 560px) { .survey-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .survey-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .survey-grid { grid-template-columns: repeat(4, 1fr); } }
.survey-card { height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 14px 16px;
               background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s; }
a.survey-card:hover { border-color: #93c5fd; }
.survey-card-title { font-weight: 600; line-height: 1.3; }
.survey-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.survey-card-amount { font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.survey-card-go { color: var(--primary); font-weight: 600; white-space: nowrap; }
.survey-card-state { color: var(--muted); font-size: 13px; }
.survey-card.is-done { background: var(--bg); }
.survey-card.is-done .survey-card-amount { color: var(--muted); font-weight: 600; }
.survey-detail-reward { font-weight: 700; color: var(--accent); }

/* Création de campagne : pays ciblés en pastilles cochables */
.country-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.country-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line);
                border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; background: #fff; }
.country-chip img { border-radius: 2px; }
.country-chip:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.country-chip:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ------------------------------------------------------------------ Portefeuille (wl-*) : résumé + activité */
.wl { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) { .wl { grid-template-columns: minmax(320px, 400px) 1fr; gap: 40px; }
                             .wl-side { position: sticky; top: 84px; } }
.wl-side { display: grid; gap: 12px; }
.wl-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 16px; }
.wl-label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 500; }
.wl-amount { font-size: clamp(2.2rem, 9vw, 2.9rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin-top: -8px;
             font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wl-other { font-size: 13px; color: var(--muted); margin-top: -10px; }
.wl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.wl-stats > div { background: var(--bg); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.wl-stats dt { font-size: 12px; color: var(--muted); }
.wl-stats dd { font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-stats dd.pos { color: var(--accent); }
.wl-goal-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.wl-goal-head strong { color: var(--ink); }
.wl-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 8px; }
.wl-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.wl-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.wl-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.wl-pending { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 14px; }
.wl-pending svg { color: var(--primary); flex-shrink: 0; }
.wl-main { min-width: 0; }
.wl-list { border-top: 1px solid var(--line); }
.wl-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.wl-ico { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 800; }
.wl-ico.in { background: var(--accent-soft); color: var(--accent); }
.wl-ico.out { background: var(--bg); color: #475569; }
.wl-row-main { flex: 1; min-width: 0; }
.wl-row-title { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-row-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.wl-row-side { text-align: right; flex-shrink: 0; display: grid; justify-items: end; gap: 4px; }
.wl-empty { padding: 32px 0; text-align: center; color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------------ Barre du bas : pleine largeur sur tous les écrans */
body:has(.bnav) { padding-bottom: 96px; }
.bnav { left: 0; right: 0; bottom: 0; max-width: none; margin: 0; }
.bnav-list { border-radius: 0; border: 0; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15, 23, 42, .06);
             padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .bnav-list { padding-left: 24px; padding-right: 24px; } .bnav-item { font-size: 12px; } }

/* Sondage pas à pas : une question à la fois, grands choix faciles à toucher */
.step-progress { margin-bottom: 20px; }
.step-progress-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.step-progress-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--primary); transition: width .3s ease; }
.step-count { margin-top: 6px; font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.survey-q { animation: step-in .25s ease; }
.survey-q-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 1.15rem; font-weight: 700; line-height: 1.35; margin-bottom: 14px; }
.survey-q-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 13px; flex-shrink: 0; }
.survey-q-hint { width: 100%; font-size: 13px; font-weight: 400; color: var(--muted); }
[data-steps] .survey-choices { grid-template-columns: 1fr; }
@media (min-width: 640px) { [data-steps] .survey-choices { grid-template-columns: 1fr 1fr; } }
[data-steps] .survey-choice { min-height: 52px; padding: 12px 16px; font-size: 15px; font-weight: 500; transition: border-color .15s, background .15s, transform .1s; }
[data-steps] .survey-choice:active { transform: scale(.98); }
.step-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.step-nav .btn { min-width: 120px; }
.step-nav .btn:disabled { opacity: .5; }
details.survey-notice > summary { list-style: none; }
details.survey-notice > summary::-webkit-details-marker { display: none; }
@keyframes step-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .survey-q { animation: none; } .step-progress-bar span { transition: none; } }

/* Carte d'annonce (liste des sondages) : neutre, clairement marquée */
.ad-card { border: 1px dashed #cbd5e1; border-radius: 14px; padding: 12px 14px; background: #fff; display: grid; gap: 8px; max-width: 100%; overflow: hidden; }
.ad-card-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ad-card-link { display: grid; gap: 8px; }
.ad-card-img { width: 100%; max-height: 220px; object-fit: contain; border-radius: 10px; background: var(--bg); }
.ad-card-headline { font-weight: 600; }
.ad-card-note { font-size: 11px; color: var(--muted); }
.ad-card-frame { width: 100%; border: 0; display: block; }
.auth-mins .auth-mins-note { font-size: 11px; font-weight: 500; opacity: .75; }
.auth-steps { display: grid; gap: 14px; counter-reset: step; }
.auth-steps li { display: grid; gap: 2px; padding-left: 38px; position: relative; font-size: 14px; }
.auth-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
                         display: grid; place-items: center; background: #fff; color: var(--primary); font-weight: 800; font-size: 13px; }
.auth-steps li span { opacity: .8; }
.auth-role-tag { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 700; }

/* Création de campagne : petites cartes de service avec icône */
.svc-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.svc-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border: 1px solid var(--line);
            border-radius: 14px; background: #fff; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.svc-card[hidden] { display: none; }
.svc-card:hover { border-color: #93c5fd; }
.svc-card:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px var(--primary-ring); }
.svc-card:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.svc-icon { width: 44px; height: 44px; border-radius: 12px; background: #f1f5f9; color: var(--primary); display: inline-flex; align-items: center; justify-content: center; }
.svc-name { font-size: 13px; font-weight: 600; line-height: 1.25; }
.svc-price { font-size: 12px; font-weight: 700; color: var(--accent); }

/* Contacts professionnels */
.ct-status { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ct-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex-shrink: 0; }
.ct-list { display: grid; gap: 6px; list-style: disc; padding-left: 18px; }
.ct-filters { display: grid; gap: 12px; }
@media (min-width: 560px) { .ct-filters { grid-template-columns: 1fr 1fr; } }
.ct-count { font-size: 14px; color: var(--muted); }
.ct-count strong { color: var(--ink); font-size: 1.25rem; }
.ct-order { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.ct-price { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ct-price > div { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.ct-price dt { font-size: 12px; color: var(--muted); }
.ct-price dd { font-weight: 800; font-size: 1.1rem; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ct-actions { display: grid; gap: 10px; }
@media (min-width: 560px) { .ct-actions { grid-template-columns: auto auto; justify-content: start; } }

/* Offre « Contacts professionnels » (tableau de bord et création de campagne) */
.contacts-offer { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed #93c5fd; border-radius: 14px; background: var(--primary-soft); }
.contacts-offer:hover { border-style: solid; }

/* Champ mot de passe avec bouton afficher / masquer */
.pw-field { position: relative; display: block; }
.pw-field > .input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center;
             border-radius: 8px; color: var(--muted); }
.pw-toggle:hover { color: var(--ink); background: var(--bg); }
.phone-prefix .dial-input { width: 3.2em; border: 0; background: transparent; font: inherit; font-weight: 600; padding: 0; outline: none; }
.phone-prefix:focus-within { border-color: var(--primary); }

/* Page Paramètres : sections séparées par un filet, formulaires aérés */
.set-section { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.set-section:last-child { border-bottom: 0; }
.set-head { display: flex; align-items: center; gap: 14px; }
.set-name { font-size: 1.15rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-meta { font-size: 13px; color: var(--muted); }
.set-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.set-facts > div { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.set-facts dt { font-size: 12px; color: var(--muted); }
.set-facts dd { font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
.set-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1.05rem; font-weight: 700; }
.set-help { font-size: 13px; color: var(--muted); }
.set-form { display: grid; gap: 12px; }
.set-form > .btn, .set-form .flex > .btn { justify-self: start; }
@media (max-width: 480px) { .set-form > .btn { justify-self: stretch; } }
.set-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 360px; }
.set-row { display: grid; gap: 12px; }
@media (min-width: 560px) { .set-row { grid-template-columns: 1fr 1fr; } }
.set-details > summary { list-style: none; display: inline-flex; }
.set-details > summary::-webkit-details-marker { display: none; }
.set-details[open] > summary { display: none; }

/* Fenêtre « Publicité » après validation d'un sondage / d'une mission */
.ad-dialog { width: min(92vw, 380px); max-height: 90vh; border: 0; border-radius: 16px; padding: 12px; background: #fff; box-shadow: 0 20px 50px rgba(15, 23, 42, .25); }
.ad-dialog::backdrop { background: rgba(15, 23, 42, .55); }
.ad-dialog .ad-card { border: 0; padding: 0; }
.ad-dialog .ad-card-label { display: none; }
.ad-dialog-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ad-dialog-close { font-size: 13px; font-weight: 600; color: #1d4ed8; padding: 6px 10px; border-radius: 8px; background: #eff6ff; }
.ad-dialog > .ad-card-note { margin-top: 8px; }

/* Nouvelle campagne : une colonne sur téléphone, formulaire + paiement collant sur grand écran */
.camp-form { display: grid; gap: 20px; align-items: start; min-width: 0; }
.camp-main { display: grid; gap: 20px; min-width: 0; }
.camp-main .card, .camp-pay { min-width: 0; }
.camp-main fieldset { min-inline-size: 0; min-width: 0; }  /* sinon le fieldset s'élargit au plus long service du menu */
.camp-main input[type=file] { max-width: 100%; }
.camp-main select.input { width: 100%; max-width: 100%; text-overflow: ellipsis; }
@media (min-width: 1024px) {
  .camp-form { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
  .camp-pay { position: sticky; top: 80px; }
}
.country-box { max-height: 220px; overflow-y: auto; padding: 2px; border-radius: 12px; overscroll-behavior: contain; }
.country-chip[hidden] { display: none; }
.camp-bar { position: fixed; left: 12px; right: 12px; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 76px); z-index: 30;
  max-width: 30rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(15, 23, 42, .15); }
.camp-bar[hidden] { display: none; }
@media (min-width: 1024px) { .camp-bar { display: none; } }
.camp-form { padding-bottom: 72px; }
@media (min-width: 1024px) { .camp-form { padding-bottom: 0; } }

/* Avancement d'une campagne (annonceur) : validé (plein) + en attente (hachuré) */
.camp-prog { display: flex; height: 8px; margin-top: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.camp-prog-done { background: var(--primary); }
.camp-prog-wait { background: repeating-linear-gradient(45deg, #93c5fd 0 4px, #bfdbfe 4px 8px); }
.camp-prog-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin-top: 4px; font-size: 12px; color: var(--muted); }

/* « Nos sponsors » (pages publiques) */
.sponsor-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.sponsor-card { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  transition: border-color .15s, box-shadow .15s; }
.sponsor-card:hover { border-color: #93c5fd; box-shadow: 0 8px 24px rgba(15, 23, 42, .08); }
.sponsor-card img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 10px; background: var(--bg); }
.sponsor-name { font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sponsor-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* Application Android : carte de téléchargement (accueil, inscription) */
.app-section { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .app-section { grid-template-columns: 1.1fr .9fr; } }
.app-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: 0 10px 30px rgba(15, 23, 42, .06); }
.app-card-compact { padding: 16px; margin-top: 16px; border-color: #bbf7d0; background: var(--accent-soft); box-shadow: none; }
.app-card-head { display: flex; align-items: center; gap: 12px; }
.app-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
                 background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.app-card-compact .app-card-icon { background: #fff; }
.app-card-title { font-weight: 700; font-size: 17px; }
.app-card-meta { font-size: 13px; color: var(--muted); }
.app-card-btn { margin-top: 16px; font-size: 16px; min-height: 52px; }
.app-card-help { margin-top: 14px; font-size: 14px; }
.app-card-help summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.app-steps { margin-top: 10px; padding-left: 0; list-style: none; counter-reset: app-step; display: grid; gap: 8px; }
.app-steps li { counter-increment: app-step; display: flex; gap: 10px; line-height: 1.45; }
.app-steps li::before { content: counter(app-step); flex-shrink: 0; width: 22px; height: 22px; border-radius: 999px; background: var(--accent);
                        color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.app-card-note { margin-top: 10px; font-size: 12px; color: var(--muted); }
.hero-apk-note { font-size: 13px; color: var(--muted); }
.hero-apk-note a { color: var(--accent); font-weight: 600; text-decoration: underline; }
