/**
 * Famylio — Registration Wizard Styles
 * Fichier  : register/style.css
 * Version  : 1.0.0 — 2026-02-22
 * Chemin   : /register/style.css
 *
 * Design system Famylio : Inter, terracotta, border-radius 24px
 * Mobile-first, responsive, dark mode support.
 */

/* ═══════════════════════════════════════════════════════════════════════════
   CSS VARIABLES
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --bg:          #F5F2ED;
    --terra:       #D4654A;
    --terra-soft:  #E8846C;
    --terra-light: rgba(212,101,74,0.08);
    --navy:        #2C3340;
    --slate:       #6B7280;
    --white:       #FFFFFF;
    --cloud:       #E8E2DA;
    --cream:       #FFF8F0;
    --peach:       #F5C7B8;
    --sage:        #8FA889;
    --sage-light:  rgba(143,168,137,0.1);
    --lavender:    #A497C7;
    --red:         #DC2626;
    --red-light:   rgba(220,38,38,0.08);
    --blue:        #3B82F6;
    --blue-light:  rgba(59,130,246,0.06);
    --green:       #10B981;
    --green-light: rgba(16,185,129,0.08);
    --amber:       #F59E0B;
    --amber-light: rgba(245,158,11,0.08);
    --radius:      24px;
    --radius-sm:   12px;
    --radius-xs:   8px;
    --shadow:      0 16px 48px rgba(44,51,64,0.12);
    --shadow-sm:   0 4px 16px rgba(44,51,64,0.08);
    --font:        'Inter', system-ui, -apple-system, sans-serif;
    --transition:  0.2s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--navy);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px 48px;
    line-height: 1.5;
}

a { color: var(--terra); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════════
   LANGUAGE DROPDOWN (replaces old lang-bar)
   ═══════════════════════════════════════════════════════════════════════════ */

.lang-dropdown-wrap {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1000;
}

.lang-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    background: var(--white);
    border: 2px solid var(--cloud);
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: var(--shadow-sm);
}
.lang-dropdown-btn:hover {
    border-color: var(--terra);
    color: var(--terra);
}
.lang-dropdown-btn i.fa-chevron-down {
    font-size: 10px;
    margin-left: 2px;
    transition: transform 0.2s;
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    background: var(--white);
    border: 2px solid var(--cloud);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: none;
    animation: fadeIn 0.15s ease;
}
.lang-dropdown-menu.open {
    display: block;
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--navy);
    text-decoration: none;
    transition: background 0.12s;
    border-bottom: 1px solid rgba(232,226,218,0.4);
}
.lang-dropdown-item:last-child { border-bottom: none; }
.lang-dropdown-item:hover {
    background: var(--cream);
    text-decoration: none;
    color: var(--terra);
}
.lang-dropdown-item.active {
    background: var(--terra-light);
    color: var(--terra);
    font-weight: 700;
}

.lang-flag { font-size: 16px; line-height: 1; }

/* Legacy lang-bar (kept for backward compat) */
.lang-bar {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: var(--radius-xs);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    color: var(--slate);
    background: var(--white);
    border: 1.5px solid var(--cloud);
    transition: all 0.15s;
    cursor: pointer;
}
.lang-btn:hover { border-color: var(--terra); color: var(--terra); text-decoration: none; }
.lang-btn.active { background: var(--terra); color: white; border-color: var(--terra); }

/* ═══════════════════════════════════════════════════════════════════════════
   WIZARD CARD
   ═══════════════════════════════════════════════════════════════════════════ */

.wizard-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    width: 560px;
    max-width: 100%;
    box-shadow: var(--shadow);
    position: relative;
}

.wizard-logo {
    text-align: center;
    margin-bottom: 8px;
}
.wizard-logo img { height: 72px; }

/* ═══════════════════════════════════════════════════════════════════════════
   STEP INDICATOR (Progress Bar)
   ═══════════════════════════════════════════════════════════════════════════ */

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 20px 0 28px;
    padding: 0 20px;
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: var(--cloud);
    color: var(--slate);
    flex-shrink: 0;
    transition: all var(--transition);
    position: relative;
}
.step-dot.active {
    background: var(--terra);
    color: white;
    box-shadow: 0 0 0 4px var(--terra-light);
}
.step-dot.done {
    background: var(--sage);
    color: white;
}
.step-dot.done::after {
    content: '\f00c'; /* fa-check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
}
.step-dot.done span { display: none; }

a.step-dot.clickable {
    cursor: pointer;
    text-decoration: none;
}
a.step-dot.clickable:hover {
    background: var(--terra);
    color: white;
    box-shadow: 0 0 0 4px var(--terra-light);
    transform: scale(1.1);
}

.step-line {
    flex: 1;
    height: 3px;
    background: var(--cloud);
    margin: 0 -1px;
    transition: background var(--transition);
}
.step-line.done {
    background: var(--sage);
}

.step-label {
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--slate);
    margin-top: 4px;
    display: none; /* Show on desktop */
}

/* ═══════════════════════════════════════════════════════════════════════════
   STEP HEADER
   ═══════════════════════════════════════════════════════════════════════════ */

.step-counter {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.step-title {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 4px;
}

.step-subtitle {
    text-align: center;
    font-size: 13px;
    color: var(--slate);
    margin-bottom: 28px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--navy);
    margin-bottom: 6px;
}
.form-label i { margin-right: 4px; color: var(--slate); }
.form-label .required { color: var(--red); margin-left: 2px; }

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--cloud);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    color: var(--navy);
    background: var(--white);
    outline: none;
    transition: border-color var(--transition);
}
.form-input:focus,
.form-select:focus {
    border-color: var(--terra);
}
.form-input.error,
.form-select.error {
    border-color: var(--red);
}
.form-input.success {
    border-color: var(--green);
}

.form-hint {
    font-size: 11px;
    color: var(--slate);
    margin-top: 4px;
}

.form-error {
    font-size: 11px;
    color: var(--red);
    margin-top: 4px;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SLIDER (Members count)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Stepper group (slider + ±buttons) ─── */

.stepper-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stepper-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--cloud);
    background: var(--white);
    color: var(--navy);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}
.stepper-btn:hover {
    border-color: var(--terra);
    color: var(--terra);
    background: var(--terra-light);
}
.stepper-btn:active {
    transform: scale(0.92);
}

/* ─── Social proof badge ─── */

.social-proof {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--sage);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.social-proof i {
    font-size: 11px;
}

/* ─── Popular badge on htype card ─── */

.htype-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--white);
    background: var(--sage);
    padding: 2px 8px;
    border-radius: 10px;
    position: absolute;
    top: -8px;
    right: 10px;
}

/* ─── Save notice ─── */

.save-notice {
    text-align: center;
    font-size: 11px;
    color: var(--slate);
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.save-notice i {
    color: var(--sage);
    font-size: 12px;
}

.slider-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.slider-input {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: var(--cloud);
    outline: none;
}
.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--terra);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(212,101,74,0.3);
    transition: transform 0.15s;
}
.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}
.slider-input::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--terra);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(212,101,74,0.3);
}

.slider-value {
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--terra-light);
    color: var(--terra);
    font-size: 20px;
    font-weight: 800;
    border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOUSEHOLD TYPE SELECTOR
   ═══════════════════════════════════════════════════════════════════════════ */

.htype-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.htype-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--cream);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-align: left;
    position: relative;
    overflow: visible;
}
.htype-card:hover {
    border-color: var(--cloud);
    transform: translateY(-1px);
}
.htype-card.selected {
    border-color: var(--terra);
    background: var(--terra-light);
    box-shadow: 0 0 0 3px rgba(212,101,74,0.08);
}
.htype-card input[type="radio"] {
    display: none;
}
.htype-card i {
    font-size: 18px;
    color: var(--slate);
    transition: color var(--transition);
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}
.htype-card .htype-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.htype-card.selected i {
    color: var(--terra);
}
.htype-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.htype-card.selected .htype-title {
    color: var(--terra);
}
.htype-desc {
    font-size: 11px;
    color: var(--slate);
    line-height: 1.4;
}

@media (max-width: 600px) {
    .htype-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .htype-card {
        padding: 8px 10px;
    }
    .htype-card i {
        font-size: 16px;
    }
    .htype-title {
        font-size: 11px;
    }
    .htype-desc {
        font-size: 10px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHECKBOXES & RADIO
   ═══════════════════════════════════════════════════════════════════════════ */

.check-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--cream);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 13px;
    font-weight: 600;
}
.check-item:hover {
    border-color: var(--cloud);
}
.check-item.selected {
    border-color: var(--terra);
    background: var(--terra-light);
}
.check-item input[type="checkbox"],
.check-item input[type="radio"] {
    display: none;
}
.check-item i { color: var(--slate); font-size: 16px; }
.check-item.selected i { color: var(--terra); }

/* Consent checkboxes (inline, not cards) */
.consent-group {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--cloud);
}

.consent-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    line-height: 1.5;
}
.consent-item input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--terra);
    flex-shrink: 0;
}
.consent-item a { color: var(--terra); text-decoration: underline; }
.consent-item.optional { color: var(--slate); }

/* ═══════════════════════════════════════════════════════════════════════════
   PASSWORD STRENGTH METER
   ═══════════════════════════════════════════════════════════════════════════ */

.pw-strength {
    display: flex;
    gap: 4px;
    margin-top: 8px;
    align-items: center;
}

.pw-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--cloud);
    transition: background var(--transition);
}
.pw-bar.weak   { background: var(--red); }
.pw-bar.medium { background: var(--amber); }
.pw-bar.strong { background: var(--green); }

.pw-label {
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    min-width: 50px;
}
.pw-label.weak   { color: var(--red); }
.pw-label.medium { color: var(--amber); }
.pw-label.strong { color: var(--green); }

/* ═══════════════════════════════════════════════════════════════════════════
   PASSWORD TOGGLE (Eye Icon)
   ═══════════════════════════════════════════════════════════════════════════ */

.pw-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.pw-input-wrap .form-input {
    padding-right: 48px;
}
.pw-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 10px;
    color: var(--slate);
    font-size: 16px;
    transition: color 0.15s;
    line-height: 1;
}
.pw-toggle:hover {
    color: var(--terra);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PIN CODE INPUT
   ═══════════════════════════════════════════════════════════════════════════ */

.pin-input {
    max-width: 180px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 8px;
    font-family: 'Courier New', monospace;
    color: var(--terra);
}
.pin-input::placeholder {
    color: var(--cloud);
    letter-spacing: 8px;
    font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════════════════════
   EMAIL STATUS
   ═══════════════════════════════════════════════════════════════════════════ */

.email-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
}
.email-status.checking { color: var(--slate); }
.email-status.available { color: var(--green); }
.email-status.taken { color: var(--red); }
.email-status i { font-size: 12px; }

/* ═══════════════════════════════════════════════════════════════════════════
   MEMBER / PET CARDS (Step 4)
   ═══════════════════════════════════════════════════════════════════════════ */

.member-card {
    background: var(--cream);
    border: 2px solid var(--cloud);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    transition: border-color var(--transition);
}
.member-card:hover {
    border-color: var(--terra);
}
.member-card.admin {
    border-color: var(--sage);
    background: var(--sage-light);
}
.member-card.pet {
    border-color: var(--lavender);
    background: rgba(164,151,199,0.06);
}

.member-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
}
.member-card-header i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cloud);
    color: var(--slate);
    font-size: 14px;
}
.member-card.admin .member-card-header i {
    background: var(--sage);
    color: white;
}
.member-card.pet .member-card-header i {
    background: var(--lavender);
    color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SUMMARY (Step 5)
   ═══════════════════════════════════════════════════════════════════════════ */

.summary-section {
    background: var(--cream);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 12px;
    position: relative;
}

.summary-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.summary-section-title h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
}
.summary-section-title h3 i {
    color: var(--terra);
    font-size: 14px;
}

.summary-edit-btn {
    font-size: 11px;
    font-weight: 700;
    color: var(--terra);
    background: none;
    border: 1.5px solid var(--terra);
    border-radius: var(--radius-xs);
    padding: 4px 12px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.summary-edit-btn:hover {
    background: var(--terra);
    color: white;
    text-decoration: none;
}

.summary-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
}
.summary-row .label {
    color: var(--slate);
    min-width: 120px;
    flex-shrink: 0;
}
.summary-row .value {
    font-weight: 600;
    color: var(--navy);
}

.summary-member-list {
    list-style: none;
    padding: 0;
}
.summary-member-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(232,226,218,0.5);
}
.summary-member-list li:last-child { border-bottom: none; }
.summary-member-list li i { color: var(--slate); width: 20px; text-align: center; }

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

.btn-row {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--terra);
    color: white;
}
.btn-primary:hover {
    background: var(--terra-soft);
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--cloud);
    color: var(--navy);
}
.btn-secondary:hover {
    background: #DDD8D0;
    text-decoration: none;
    color: var(--navy);
}

.btn-success {
    background: var(--sage);
    color: white;
}
.btn-success:hover {
    background: #7A9A73;
    text-decoration: none;
    color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MESSAGES (Error / Info / Success)
   ═══════════════════════════════════════════════════════════════════════════ */

.msg {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}
.msg i { margin-top: 2px; flex-shrink: 0; }

.msg-error {
    background: var(--red-light);
    color: var(--red);
    border-left: 3px solid var(--red);
}
.msg-info {
    background: var(--blue-light);
    color: var(--blue);
    border-left: 3px solid var(--blue);
}
.msg-success {
    background: var(--green-light);
    color: var(--green);
    border-left: 3px solid var(--green);
}

/* ═══════════════════════════════════════════════════════════════════════════
   GDPR NOTICE
   ═══════════════════════════════════════════════════════════════════════════ */

.gdpr-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--blue-light);
    border: 1.5px solid rgba(59,130,246,0.15);
    margin-top: 20px;
    font-size: 12px;
    color: var(--slate);
    line-height: 1.5;
}
.gdpr-notice i {
    color: var(--blue);
    font-size: 14px;
    margin-top: 1px;
    flex-shrink: 0;
}
.gdpr-notice strong {
    color: var(--navy);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESELLER BADGE
   ═══════════════════════════════════════════════════════════════════════════ */

.reseller-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sage-light);
    color: var(--sage);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-xs);
    margin-bottom: 16px;
}
.reseller-badge i { font-size: 14px; }

/* ═══════════════════════════════════════════════════════════════════════════
   HONEYPOT
   ═══════════════════════════════════════════════════════════════════════════ */

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.wizard-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: var(--slate);
}
.wizard-footer a {
    color: var(--terra);
    font-weight: 600;
}
.wizard-footer-sep {
    display: inline-block;
    margin: 0 8px;
    color: var(--cloud);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wizard-card { animation: fadeIn 0.4s ease; }
.step-content { animation: fadeIn 0.3s ease; }

@keyframes spin {
    to { transform: rotate(360deg); }
}
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--cloud);
    border-top-color: var(--terra);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
    body { padding: 48px 8px 32px; }

    .lang-dropdown-wrap { top: 8px; right: 8px; }
    .lang-dropdown-btn { padding: 6px 10px; font-size: 12px; }

    .wizard-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .step-title { font-size: 18px; }
    .step-subtitle { font-size: 12px; }

    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .stepper-btn {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .btn-row {
        flex-direction: column-reverse;
    }
    .btn { width: 100%; }

    .step-dot {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    .summary-row {
        flex-direction: column;
        gap: 2px;
    }
    .summary-row .label { min-width: auto; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   GOOGLE PLACES AUTOCOMPLETE
   ═══════════════════════════════════════════════════════════════════════════ */

.pac-container {
    border-radius: var(--radius-sm);
    border: 2px solid var(--cloud);
    box-shadow: var(--shadow-sm);
    font-family: var(--font);
    margin-top: 4px;
    overflow: hidden;
}
.pac-item {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--navy);
    cursor: pointer;
    border-top: 1px solid rgba(232,226,218,0.4);
    line-height: 1.5;
}
.pac-item:first-child { border-top: none; }
.pac-item:hover,
.pac-item-selected {
    background: var(--cream);
}
.pac-item .pac-icon {
    margin-right: 8px;
}
.pac-item .pac-item-query {
    font-weight: 600;
    color: var(--navy);
}
.pac-matched {
    color: var(--terra);
    font-weight: 700;
}
/* Force-hide après sélection (class ajoutée par JS) */
.pac-container.pac-hidden {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    opacity: 0 !important;
}

/* ═══ Price Simulation ═══ */
.price-simulation {
    margin: 24px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(143,168,137,0.06), rgba(212,101,74,0.04));
    border: 2px solid rgba(143,168,137,0.2);
    border-radius: 14px;
}
.price-simulation-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.price-simulation-header > i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(143,168,137,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sage, #8FA889);
    font-size: 15px;
}
.price-simulation-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy, #2C3340);
}
.price-simulation-subtitle {
    font-size: 11px;
    color: var(--slate, #6B7280);
}
.price-simulation-details {
    background: var(--white, #FFFFFF);
    border-radius: 10px;
    padding: 14px;
}
.price-sim-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
}
.price-sim-row.highlight {
    font-weight: 700;
    font-size: 15px;
    color: var(--navy, #2C3340);
}
.price-sim-label {
    color: var(--slate, #6B7280);
}
.price-sim-value {
    color: var(--navy, #2C3340);
    font-weight: 600;
}
.price-sim-amount {
    color: var(--terra, #D4654A);
    font-size: 18px;
}
.price-sim-save {
    font-size: 11px;
    color: var(--sage, #8FA889);
    font-weight: 600;
    margin-left: 4px;
}
.price-sim-divider {
    height: 1px;
    background: var(--cloud, #E8E8E8);
    margin: 6px 0;
}
.price-sim-trial {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    color: var(--sage, #8FA889);
    font-weight: 600;
}
.price-sim-trial i {
    margin-right: 4px;
}

.price-sim-discount {
    font-size: 12px;
    color: var(--sage, #8FA889);
}
.price-sim-discount .price-sim-value {
    color: var(--sage, #8FA889);
    font-weight: 600;
}
.price-sim-discount i {
    margin-right: 3px;
}
.price-sim-storage {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}
.price-sim-storage i {
    margin-right: 3px;
}

/* ═══ OTC Verification Step ═══ */
.otc-step {
    text-align: center;
}
.otc-icon {
    font-size: 48px;
    color: var(--sage, #8FA889);
    margin-bottom: 16px;
}
.otc-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 32px auto;
    max-width: 360px;
}
.otc-input {
    width: 48px;
    height: 60px;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    font-family: 'DM Mono', monospace;
    border: 2px solid #E6DDD0;
    border-radius: 12px;
    background: #FDFBF7;
    color: var(--navy, #1B2332);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    caret-color: var(--terracotta, #D4654A);
}
.otc-input:focus {
    border-color: var(--terracotta, #D4654A);
    box-shadow: 0 0 0 3px rgba(212,101,74,0.15);
}
.otc-input:not(:placeholder-shown) {
    border-color: var(--sage, #8FA889);
}
.otc-expires {
    font-size: 13px;
    color: #9BAABB;
    margin: 8px 0 24px;
}
.otc-expires i {
    margin-right: 4px;
}
.otc-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.otc-resend-link {
    background: none;
    border: none;
    color: var(--terracotta, #D4654A);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}
.otc-resend-link:hover:not(:disabled) {
    background: rgba(212,101,74,0.08);
}
.otc-resend-link:disabled {
    color: #C8D3DF;
    cursor: not-allowed;
}
.otc-resend-link i {
    margin-right: 4px;
}
.otc-separator {
    color: #C8D3DF;
    font-size: 18px;
}
.otc-change-email {
    color: #9BAABB;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.otc-change-email:hover {
    color: var(--navy, #1B2332);
}
.otc-change-email i {
    margin-right: 3px;
}
.btn-block {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: block;
}
.info-box {
    background: rgba(143,168,137,0.12);
    border-left: 3px solid var(--sage, #8FA889);
    color: var(--sage, #8FA889);
    padding: 12px 18px;
    border-radius: 0 10px 10px 0;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}
@media (max-width: 480px) {
    .otc-inputs {
        gap: 6px;
    }
    .otc-input {
        width: 42px;
        height: 52px;
        font-size: 22px;
    }
}

/* ═══ Password toggle eye button ═══ */
.input-password-wrap {
    position: relative;
}
.input-password-wrap .form-input {
    padding-right: 44px;
}
.pw-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--slate, #6B7280);
    cursor: pointer;
    padding: 6px 8px;
    font-size: 14px;
    border-radius: 6px;
    transition: color 0.2s;
}
.pw-toggle-btn:hover {
    color: var(--terra, #D4654A);
}

/* ═══ Email match status ═══ */
.email-match-status {
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.email-match-status.match {
    color: var(--sage, #8FA889);
}
.email-match-status.no-match {
    color: #EF4444;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DARK MODE (optional - detected by OS preference)
   ═══════════════════════════════════════════════════════════════════════════ */

@media (prefers-color-scheme: dark) {
    :root {
        --bg:     #1A1D23;
        --navy:   #E5E7EB;
        --slate:  #9CA3AF;
        --white:  #242830;
        --cloud:  #3A3F4A;
        --cream:  #2A2E36;
    }

    .wizard-card { box-shadow: 0 16px 48px rgba(0,0,0,0.3); }
    .form-input, .form-select { background: #2A2E36; color: #E5E7EB; }
    .member-card { background: #2A2E36; }
    .summary-section { background: #2A2E36; }
    .gdpr-notice { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.2); }
    .gdpr-notice strong { color: #E5E7EB; }
    .check-item { background: #2A2E36; }
    .check-item.selected { background: rgba(212,101,74,0.12); }
    .htype-card { background: #2A2E36; }
    .htype-card.selected { background: rgba(212,101,74,0.12); }
    .htype-title { color: #E5E7EB; }
    .htype-card.selected .htype-title { color: var(--terra); }
    .lang-dropdown-btn { background: #242830; border-color: #3A3F4A; color: #E5E7EB; }
    .lang-dropdown-menu { background: #242830; border-color: #3A3F4A; }
    .lang-dropdown-item { color: #E5E7EB; border-bottom-color: rgba(58,63,74,0.5); }
    .lang-dropdown-item:hover { background: #2A2E36; }
    .lang-dropdown-item.active { background: rgba(212,101,74,0.12); }
    .pw-toggle { color: #9CA3AF; }
    .pin-input { color: var(--terra); background: #2A2E36; }
}
