/* ============================================================
   INSCRIPTION.CSS — EduPay Congo · Stitch Interview UI
   Light Theme · Blue #1E40AF · Emerald #10B981
   Sora + Plus Jakarta Sans · Mobile-First
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Sora:wght@400;600;700;800&display=swap');

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
    --blue:          #1E40AF;
    --blue-mid:      #2563EB;
    --blue-light:    #3B82F6;
    --blue-pale:     #EFF6FF;
    --blue-pale2:    #DBEAFE;
    --emerald:       #10B981;
    --emerald-pale:  #D1FAE5;
    --emerald-dark:  #059669;

    --bg:            #EEF2F7;
    --white:         #FFFFFF;
    --gray-50:       #F8FAFC;
    --gray-100:      #F1F5F9;
    --gray-200:      #E2E8F0;
    --gray-300:      #CBD5E1;
    --gray-400:      #94A3B8;
    --gray-500:      #64748B;

    --text-primary:  #0D1B3E;
    --text-secondary:#475569;
    --text-muted:    #94A3B8;
    --border:        rgba(0,0,0,0.06);
    --border-mid:    #E2E8F0;

    --shadow-sm:  0 1px 4px rgba(0,0,0,0.05);
    --shadow-md:  0 4px 24px rgba(0,0,0,0.07);
    --shadow-lg:  0 16px 48px rgba(0,0,0,0.10);
    --shadow-blue:0 4px 20px rgba(37,99,235,0.28);

    --r-sm:   8px;
    --r-md:   14px;
    --r-lg:   20px;
    --r-xl:   24px;
    --r-full: 9999px;

    --font-display: 'Sora', sans-serif;
    --font-body:    'Plus Jakarta Sans', sans-serif;

    --spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --tr-base:  0.22s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }

body {
    font-family: var(--font-body);
    background-color: #1e293b; /* Fond sombre par défaut pour éviter le flash blanc */
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;

    /* --- REPRODUCTION EXACTE DE L'EFFET INDEX --- */
    background-image: 
        /* 1. Ton motif SVG (en haut pour la texture) */
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18 L30 40 L11 62 M90 10 L70 30 L90 50 M20 90 L50 70 L80 90' stroke='%23ffffff' stroke-width='0.1' fill='none' opacity='0.05'/%3E%3C/svg%3E"),
        
        /* 2. LE DÉGRADÉ DE COULEUR (L'overlay de l'index) */
        /* On utilise un dégradé linéaire de bleu sombre vers un bleu plus électrique */
        linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(37, 99, 235, 0.5)), 
        
        /* 3. Ton image de fond (ecrant3.png ou logo-inscription.png selon ton choix) */
        url('../images/logo-inscription.png'); 

    /* Configuration identique à ton index */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Kill the old dark orbs */
.bg-orbs { display:none; }

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 680px;
    min-height: 100vh;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    /* No animation on container itself */
    animation: none;
    overflow: visible;
}

/* ============================================================
   TOP NAV BAR — Exactly like image 1
   ============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: 64px;
    background: rgba(255,255,255,0.90);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1.5px solid var(--border-mid);
    text-align: left;
    margin-bottom: 0;
    /* No weird gradient or bottom border orange */
}

/* Logo */
/* Logo modifié */
.logo {
    height: 65px; /* Augmenté de 36px à 52px */
    width: auto;
    filter: none; 
    margin-bottom: 0;
    flex-shrink: 0;
    /* On utilise transform pour centrer optiquement si nécessaire */
    transform: translateY(-2px); 
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px) scale(1.05); /* Petit effet au survol */
}

/* Fallback brand */
.header-brand {
    display: none;
    font-family: var(--font-display);
    font-size: 22px; /* Augmenté proportionnellement */
    font-weight: 700;
    color: var(--blue); 
    letter-spacing: -0.4px;
}
.header-brand.visible { display: block; }

/* right side */
.header-text {
    display: flex; align-items: center; gap: 12px;
}

.header-badge {
    display: inline-flex; align-items: center;
    padding: 5px 12px;
    background: var(--blue-pale);
    border: 1px solid var(--blue-pale2);
    border-radius: var(--r-full);
    font-size: 10.5px; font-weight: 700;
    color: var(--blue); letter-spacing: 0.5px;
    text-transform: uppercase; white-space: nowrap;
}

/* Avatar circle — right corner */
.nav-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--gray-100); border: 2px solid var(--gray-200);
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-400); flex-shrink: 0;
}

/* Hide old title/subtitle */
.title, .subtitle { display: none; }

/* ============================================================
   PROGRESS STEPPER — Slim sticky bar
   ============================================================ */
.stepper {
    position: sticky;
    top: 64px;
    z-index: 99;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-mid);
    padding: 0 28px;
    margin: 0;
}

.stepper-track {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 1;
}
.stepper-line {
    position: absolute; inset: 0;
    background: var(--gray-200);
}
.stepper-line-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--blue) 0%, var(--emerald) 100%);
    border-radius: 0 var(--r-full) var(--r-full) 0;
    transition: width 0.55s var(--spring);
    box-shadow: 0 0 8px rgba(37,99,235,0.3);
}

.stepper-steps {
    display: flex; justify-content: space-between;
    list-style: none;
    padding: 14px 0 12px;
    position: relative; z-index: 2;
}

.step-item {
    display: flex; flex-direction: column;
    align-items: center; gap: 5px;
    cursor: default; flex: 1;
}

.step-bubble {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--gray-100); border: 2px solid var(--gray-200);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.35s var(--spring);
    position: relative; overflow: hidden;
}

.step-num {
    font-size: 12px; font-weight: 700;
    color: var(--gray-400); transition: var(--tr-base);
    position: absolute;
}
.step-check {
    width: 13px; height: 13px; color: white;
    opacity: 0; position: absolute;
    transition: var(--tr-base); transform: scale(0.3);
}

.step-item.active .step-bubble {
    background: var(--blue); border-color: var(--blue);
    box-shadow: 0 0 0 5px rgba(37,99,235,0.12);
    transform: scale(1.1);
}
.step-item.active .step-num { color: white; }

.step-item.done .step-bubble {
    background: var(--emerald); border-color: var(--emerald);
    box-shadow: 0 0 0 4px rgba(16,185,129,0.12);
}
.step-item.done .step-num { opacity:0; transform:scale(0.2); }
.step-item.done .step-check { opacity:1; transform:scale(1); }

.step-label {
    font-size: 9.5px; font-weight: 600;
    color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
    transition: var(--tr-base);
}
.step-item.active .step-label { color: var(--blue); }
.step-item.done   .step-label { color: var(--emerald-dark); }

.progress-bar { display: none; }
.progress-fill { width: 20%; }

/* ============================================================
   FORM — main wrapper
   ============================================================ */
form#enrollForm,
.payment-section,
.success-section {
    /* no old padding-left/right — steps handle their own */
    padding: 0;
}

/* ============================================================
   FORM STEPS
   ============================================================ */
.form-step {
    display: none;
    animation: fadeUp 0.38s var(--ease-out) both;
}
.form-step.active { display: block; }

@keyframes fadeUp {
    from { opacity:0; transform:translateY(20px); }
    to   { opacity:1; transform:translateY(0); }
}
.form-step.slide-back { animation: fadeDown 0.32s var(--ease-out) both; }
@keyframes fadeDown {
    from { opacity:0; transform:translateY(-14px); }
    to   { opacity:1; transform:translateY(0); }
}

/* ============================================================
   HERO SECTION — Step 1 top (Welcome + tagline + eyebrow badge)
   Mirrors the Stitch screenshot exactly
   ============================================================ */
.step-hero {
    text-align: center;
    padding: 56px 32px 32px;
    position: relative;
}

.step-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 500px; height: 300px;
    background: radial-gradient(ellipse at 50% 0%,
        rgba(37,99,235,0.10) 0%, transparent 65%);
    pointer-events: none;
}

.step-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 20px;
    background: var(--blue);
    border-radius: var(--r-full);
    font-size: 11px; font-weight: 700;
    color: white; letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}

/* --- TITRE PRINCIPAL EN BLANC --- */
.step-hero-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 800;
    /* On change var(--blue) par blanc */
    color: #ffffff; 
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 10px;
    /* Optionnel : petite ombre pour la lisibilité */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* --- SOUS-TITRE EN BLANC CASSÉ (PLUS DOUX) --- */
.step-hero-sub {
    font-size: 15px;
    /* On utilise un blanc légèrement transparent pour ne pas agresser l'oeil */
    color: rgba(255, 255, 255, 0.9); 
    line-height: 1.65;
    max-width: 340px;
    margin: 0 auto 28px;
}

/* --- LE PETIT BADGE "ÉTAPE 1" --- */
.step-hero-eyebrow {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1); /* Petit fond translucide */
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 700;
    margin-bottom: 15px;
}
/* ============================================================
   QUESTION CARD — the white card below hero (step 1)
   and wrapping card for steps 2–5
   ============================================================ */
.step-question-card {
    background: var(--white);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 28px 28px 24px;
    margin: 0 24px;
    position: relative;
}

/* Accent left bar */
.step-question-card::before {
    content: '';
    position: absolute;
    left: 0; top: 22px; bottom: 22px; width: 4px;
    background: linear-gradient(to bottom, var(--blue), var(--emerald));
    border-radius: 0 4px 4px 0;
}

/* Same card for steps 2–5 */
.step-content-wrap {
    background: var(--white);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 28px 28px 24px;
    margin: 28px 24px 0;
    position: relative;
}
.step-content-wrap::before {
    content: '';
    position: absolute;
    left: 0; top: 22px; bottom: 22px; width: 4px;
    background: linear-gradient(to bottom, var(--blue), var(--emerald));
    border-radius: 0 4px 4px 0;
}

/* ============================================================
   STEP HEADER (inside question card for steps 2–5)
   ============================================================ */
.step-header {
    display: flex; flex-direction: column;
    align-items: flex-start; gap: 0;
    margin: 0; padding: 0; border-bottom: none;
}

/* Step number pill */
.step-badge-inline {
    display: inline-flex; align-items: center;
    padding: 5px 16px;
    background: var(--blue);
    border-radius: var(--r-full);
    font-size: 10.5px; font-weight: 700;
    color: white; letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 14px;
    box-shadow: 0 3px 12px rgba(37,99,235,0.3);
}

/* Hide old emoji icon */
.step-icon { display: none; }

.step-title {
    font-family: var(--font-display);
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.step-desc {
    font-size: 13.5px; color: var(--text-secondary);
    line-height: 1.5; margin-bottom: 22px;
}

/* ============================================================
   FORM GRID
   ============================================================ */
.form-grid { display: grid; gap: 16px; }
.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.col-span-1 { grid-column: span 1; }
.col-span-2 { grid-column: span 2; }

/* ============================================================
   FORM FIELDS
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: 6px; }

.field-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 600;
    color: var(--text-secondary); cursor: default;
    text-transform: none;
}
.label-icon { font-size: 14px; }
.required-dot { color: #EF4444; font-size: 18px; line-height: 0.5; margin-left: auto; }

.input-wrapper { position: relative; }

.field-input,
.field-select {
    width: 100%;
    padding: 14px 18px;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--r-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px; font-weight: 500;
    outline: none;
    transition: border-color var(--tr-base), box-shadow var(--tr-base), background var(--tr-base);
    -webkit-appearance: none; appearance: none;
    box-shadow: var(--shadow-sm);
}

.field-input::placeholder { color: var(--text-muted); font-weight: 400; }

.field-input:hover, .field-select:hover {
    background: var(--white); border-color: var(--gray-300);
    box-shadow: var(--shadow-md);
}
.field-input:focus, .field-select:focus {
    border-color: var(--blue-mid);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.10);
    background: var(--white);
}

input[type="date"].field-input { color-scheme: light; }
.field-select { padding-right: 44px; cursor: pointer; }
.field-select option { background: white; color: var(--text-primary); }

.field-arrow {
    position: absolute; right: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400); font-size: 13px;
    pointer-events: none; transition: color var(--tr-base);
}
.input-wrapper:focus-within .field-arrow { color: var(--blue-mid); }

/* ============================================================
   PRICE CARD — NOW FIXED: Blue gradient, clearly visible
   ============================================================ */
.price-card {
    margin-top: 20px;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(37,99,235,0.25);
    /* NO transparent background — solid gradient */
}

.price-card-inner {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 50%, #1d4ed8 100%);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 72px;
}

.price-label {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: rgba(255,255,255,0.80);
}

.price-value {
    font-family: var(--font-display);
    font-size: 18px;
    color: white;
    font-weight: 700;
    text-align: right;
    max-width: 55%;
    line-height: 1.3;
}

/* ============================================================
   UPLOAD ZONE
   ============================================================ */
.upload-wrapper { position: relative; }
.file-input { position:absolute; inset:0; opacity:0; cursor:pointer; z-index:2; }

.upload-zone {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 6px; padding: 24px 16px;
    border: 2px dashed var(--gray-200);
    border-radius: var(--r-md);
    background: var(--gray-50);
    cursor: pointer; text-align: center;
    transition: border-color var(--tr-base), background var(--tr-base), transform var(--tr-base);
}
.upload-zone:hover, .upload-wrapper:focus-within .upload-zone {
    border-color: var(--blue-mid); background: var(--blue-pale);
    transform: scale(1.01);
}
.upload-zone-sm { padding: 16px; }
.upload-icon { font-size: 24px; }
.upload-text { font-size: 13px; font-weight: 600; color: var(--text-secondary); transition: color var(--tr-base); }
.upload-zone:hover .upload-text { color: var(--blue-mid); }
.upload-hint { font-size: 11px; color: var(--text-muted); }

/* ============================================================
   BOTTOM ACTION BAR — Fixed, like Stitch BACK / NEXT
   ============================================================ */
.form-actions {
    position: fixed;
    bottom: 0;
    left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 680px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--border-mid);
    box-shadow: 0 -4px 28px rgba(0,0,0,0.07);
    z-index: 90;
    margin-top: 0;
}
.form-actions.center { justify-content: center; }

/* ============================================================
   BUTTONS — Pill style like Stitch
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 24px;
    border: none; border-radius: var(--r-full);
    font-family: var(--font-body);
    font-size: 14px; font-weight: 700;
    cursor: pointer; text-decoration: none;
    transition: transform 0.2s var(--spring), box-shadow var(--tr-base);
    white-space: nowrap; position: relative; overflow: hidden;
    letter-spacing: 0.3px;
}
.btn:active { transform: scale(0.96) !important; }

/* Ghost — "BACK" pill outline */
.btn-ghost {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    color: var(--text-secondary);
    font-size: 13px; padding: 12px 20px;
}
.btn-ghost:hover {
    background: var(--gray-100); color: var(--text-primary);
    transform: translateX(-2px);
}

/* Primary — "NEXT" solid blue pill */
.btn-primary {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
    color: white;
    box-shadow: 0 4px 18px rgba(37,99,235,0.35);
    flex: 1; justify-content: center;
    font-size: 14px; padding: 14px 28px;
    letter-spacing: 0.5px; text-transform: uppercase;
}
.btn-primary:hover {
    box-shadow: 0 6px 28px rgba(37,99,235,0.45);
    transform: translateY(-1px);
}

.btn-confirm {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
    color: white;
    box-shadow: 0 4px 18px rgba(37,99,235,0.35);
    flex: 1; justify-content: center;
    font-size: 14px; padding: 14px 28px;
    letter-spacing: 0.5px; text-transform: uppercase;
}
.btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(37,99,235,0.45);
}
.btn-confirm.wide { padding: 15px 48px; }

.btn-spinner {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: white; border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-arrow { font-size: 15px; line-height: 1; transition: transform var(--tr-base); }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }
.btn-ghost:hover   .btn-arrow { transform: translateX(-3px); }
.btn-lock { font-size: 14px; }
.btn:disabled { opacity:0.4; cursor:not-allowed; transform:none !important; box-shadow:none !important; }

/* ============================================================
   TICKET — Step 5
   ============================================================ */
.ticket {
    border-radius: var(--r-xl); overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid rgba(0,0,0,0.07);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}
.ticket-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 22px 24px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
}
.ticket-logo-area { display: flex; flex-direction: column; gap: 4px; }
.ticket-logo-text { font-family: var(--font-display); font-size: 18px; color: white; font-weight: 700; }
.ticket-badge { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.7); }
.ticket-ref { text-align: right; display: flex; flex-direction: column; gap: 3px; }
.ticket-ref-label { font-size: 10px; font-weight: 600; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.ticket-ref-value { font-family: 'Courier New', monospace; font-size: 12px; font-weight: 700; color: white; letter-spacing: 1px; }

.ticket-divider { position: relative; height: 1px; display: flex; align-items: center; }
.ticket-notch { position: absolute; width: 22px; height: 22px; background: var(--bg); border-radius: 50%; top: 50%; transform: translateY(-50%); }
.ticket-notch.left  { left: -11px; }
.ticket-notch.right { right: -11px; }
.ticket-dots { flex:1; margin:0 14px; border-top: 1.5px dashed var(--gray-200); }

.ticket-body { background: var(--white); padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.ticket-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ticket-key { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap; min-width: 90px; }
.ticket-val { font-size: 14px; font-weight: 600; color: var(--text-primary); text-align: right; }

.ticket-footer { padding: 20px 24px 24px; background: var(--gray-50); border-top: 1px solid var(--border-mid); text-align: center; }
.ticket-total-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 6px; }
.ticket-total-amount { font-family: var(--font-display); font-size: 36px; color: var(--blue); font-weight: 700; }
.ticket-note { margin-top: 8px; font-size: 11px; color: var(--text-muted); }

/* ============================================================
   PAYMENT
   ============================================================ */
.payment-section { padding: 0 24px 120px; }
.payment-header { text-align: center; margin-bottom: 24px; padding-top: 36px; }
.payment-icon { font-size: 44px; margin-bottom: 12px; display: block; }
.payment-title { font-family: var(--font-display); font-size: 24px; color: var(--text-primary); font-weight: 700; }
.payment-sub { font-size: 14px; color: var(--text-secondary); margin-top: 6px; }

.payment-amount-card {
    display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px;
    background: linear-gradient(135deg, var(--blue-pale), var(--emerald-pale));
    border: 1.5px solid var(--blue-pale2);
    border-radius: var(--r-xl); margin-bottom: 20px; text-align: center;
}
.payment-amount-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.payment-amount-value { font-family: var(--font-display); font-size: 40px; color: var(--blue); font-weight: 700; }
.payment-amount-note { font-size: 11px; color: var(--text-muted); }

.momo-card { background: var(--white); border: 1.5px solid var(--border-mid); border-radius: var(--r-lg); padding: 14px 18px; margin-bottom: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-sm); }
.momo-row { display: flex; align-items: center; gap: 14px; }
.momo-icon { font-size: 20px; flex-shrink: 0; }
.momo-info { display: flex; flex-direction: column; gap: 2px; }
.momo-label { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.5px; }
.momo-value { font-size: 15px; color: var(--text-primary); font-weight: 600; }
.momo-number { font-family: 'Courier New', monospace; color: var(--blue); letter-spacing: 1px; }

/* ============================================================
   SUCCESS
   ============================================================ */
.success-section { text-align: center; padding: 52px 28px 140px; animation: fadeUp 0.5s var(--ease-out) both; }
.success-icon { font-size: 64px; margin-bottom: 16px; display: block; animation: successBounce 0.7s var(--spring) both 0.1s; }
@keyframes successBounce {
    0%   { transform:scale(0.4) rotate(-10deg); opacity:0; }
    70%  { transform:scale(1.1) rotate(3deg); }
    100% { transform:scale(1) rotate(0); opacity:1; }
}
.success-title { font-family: var(--font-display); font-size: 28px; color: var(--emerald); margin-bottom: 12px; font-weight: 700; }
.success-msg { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }
.success-checks { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.check-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: var(--emerald-pale); border: 1px solid rgba(16,185,129,0.2); border-radius: var(--r-full); font-size: 12px; font-weight: 600; color: var(--emerald-dark); }

/* ============================================================
   UTILITIES
   ============================================================ */
.hidden { display: none !important; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
[aria-hidden="true"] .step { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 680px) {
    .container, .form-actions { max-width: 100%; }

    .form-grid.cols-2,
    .form-grid.cols-3 { grid-template-columns: 1fr; }
    .col-span-2 { grid-column: span 1; }

    .step-hero { padding: 40px 20px 24px; }
    .step-hero-title { font-size: 28px; }
    .step-question-card, .step-content-wrap { margin: 0 16px; padding: 22px 20px 20px; }
    .step-content-wrap { margin-top: 20px; }

    .header, .stepper { padding: 0 20px; }
    .ticket-header { flex-direction: column; gap: 10px; }
    .ticket-ref { text-align: left; }
    .ticket-total-amount { font-size: 28px; }
    .payment-amount-value { font-size: 32px; }
    .payment-section { padding: 0 16px 120px; }
    .form-actions { padding: 14px 20px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}

@media (max-width: 420px) {
    .header { height: 56px; }
    .stepper { top: 56px; }
    .step-label { font-size: 8px; }
    .step-bubble { width: 26px; height: 26px; }
    .step-num { font-size: 10px; }
    .step-title { font-size: 18px; }
    .step-hero-title { font-size: 22px; }
    .btn-primary, .btn-confirm { font-size: 13px; letter-spacing: 0.3px; }
    .success-checks { flex-direction: column; align-items: center; }
    .price-card-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
    .price-value { font-size: 16px; text-align: left; max-width: 100%; }
}

/* ============================================================
   ACCESSIBILITY & SCROLLBAR
   ============================================================ */
:focus-visible { outline: 2px solid var(--blue-mid); outline-offset: 3px; border-radius: 4px; }
.field-input:focus-visible, .field-select:focus-visible { outline: none; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-300); }
.header-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #ECFDF5; /* Vert très léger pour la confiance */
    border: 1px solid var(--emerald);
    border-radius: var(--r-full);
    color: var(--emerald-dark);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.header-trust-badge:hover {
    background: var(--emerald);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Cache le badge sur les très petits écrans si besoin */
@media (max-width: 380px) {
    .header-trust-badge span { display: none; }
    .header-trust-badge { padding: 8px; }
}
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 62, 0.8);
    backdrop-filter: blur(8px);
    display: none; /* Changé en 'flex' via JS */
    align-items: center; 
    justify-content: center;
    z-index: 2000;
    padding: 16px; /* Espace minimal autour du modal */
}

/* Contenu du modal adaptable */
.modal-content {
    background: white;
    width: 100%;
    max-width: 480px;
    max-height: 90vh; /* Empêche le modal de sortir de l'écran */
    overflow-y: auto; /* Active le scroll interne si besoin */
    border-radius: 24px;
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Scrollbar discrète pour mobile */
    scrollbar-width: none; 
}
.modal-content::-webkit-scrollbar { display: none; }

/* Adaptation spécifique Mobile */
@media (max-width: 480px) {
    .modal-overlay {
        align-items: flex-end; /* Style "Bottom Sheet" sur mobile */
        padding: 0; /* Pas d'espace sur les bords */
    }

    .modal-content {
        border-radius: 24px 24px 0 0; /* Arrondi seulement en haut */
        padding: 20px;
        max-height: 85vh; /* Un peu plus bas pour laisser voir l'arrière-plan */
        animation: mobileSheetUp 0.4s ease-out;
    }
    
    .modal-close {
        top: 12px;
        right: 12px;
    }
}

/* Animations distinctes */
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mobileSheetUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Ajustement des textes pour petits écrans */
.feature-item h4 { font-size: 14px; margin-bottom: 2px; }
.feature-item p { font-size: 12px; }
.modal-icon-circle { width: 50px; height: 50px; margin-bottom: 12px; }

.modal-footer { 
    text-align: center; 
    border-top: 1px solid var(--gray-100); 
    padding-top: 20px; 
}
.modal-footer p { font-size: 12px; font-style: italic; color: var(--text-muted); margin-bottom: 16px; }