:root {
    --club-primary: #0d6efd;
    --club-secondary: #0a58ca;
    --club-accent: #0d6efd;
    --club-light: #eff6ff;
    --step-active-bg: var(--club-primary);
    --step-done-bg: var(--club-secondary);
}

/* ─── Header ────────────────────────────────────────── */
.app-header {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--club-primary) 0%, #0a58ca 100%);
    color: white;
    border-radius: 0 0 1.5rem 1.5rem;
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.25);
}
.app-header img {
    max-height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    background: white;
    padding: 0.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.app-header h1 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.app-header p {
    margin: 0.5rem 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* ─── Stepper ───────────────────────────────────────── */
.stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto 2.5rem;
    max-width: 600px;
    position: relative;
}
.stepper::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50px;
    right: 50px;
    height: 3px;
    background: var(--pico-muted-border-color);
    z-index: 0;
    border-radius: 2px;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    z-index: 1;
    cursor: default;
}
.step .bubble {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem;
    background: var(--pico-muted-border-color);
    color: var(--pico-muted-color);
    border: 3px solid transparent;
    transition: all 0.3s ease;
}
.step .label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pico-muted-color);
    transition: color 0.3s;
}
.step.active .bubble {
    background: var(--step-active-bg);
    color: white;
    border-color: var(--step-active-bg);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
    transform: scale(1.1);
}
.step.active .label { color: var(--step-active-bg); }
.step.done .bubble {
    background: var(--step-done-bg);
    color: white;
    border-color: var(--step-done-bg);
}
.step.done .label { color: var(--step-done-bg); }

/* ─── Transitions ─────────────────────────────────────── */
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.fade-enter-from, .fade-leave-to {
    opacity: 0;
    transform: translateY(12px);
}

/* ─── Cartes étape ────────────────────────────────────── */
.step-card {
    background: white;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin-bottom: 1rem;
}
.step-card > legend {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--club-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--club-light);
    width: 100%;
}

/* ─── Fieldsets de section (licencié / contact) ────────── */
.section-fieldset {
    border: 1px solid var(--club-light);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem 1rem;
    margin-bottom: 1.25rem;
    background: #fafcff;
}
.section-fieldset legend {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--club-primary);
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.section-fieldset legend strong {
    font-weight: 800;
}

/* ─── Type adhérent (radio options) ──────────────────────── */
.type-adherent-options {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.type-adherent-option {
    margin-bottom: 0 !important;
}

/* ─── Alertes ─────────────────────────────────────────── */
.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 0.9rem 1.2rem;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.alert-error::before { content: '⚠️'; }
.alert-warn {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.alert-warn::before { content: '💡'; }

/* ─── Field hint (inline, appears on focus) ───────────── */
.field-hint {
    display: block;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    font-size: 0.8rem;
    color: #92400e;
    background: #fffbeb;
    border-radius: 0.35rem;
    transition: max-height 0.25s ease, margin 0.2s ease, padding 0.2s ease, opacity 0.2s ease;
    opacity: 0;
    line-height: 1.4;
}
.field-hint.visible {
    max-height: 3rem;
    margin-top: 0.35rem;
    padding: 0.4rem 0.65rem;
    opacity: 1;
}

/* ─── Pack selection ──────────────────────────────────── */
.pack-selection {
    margin-bottom: 1.25rem;
}
.pack-card {
    border: 2px solid var(--pico-muted-border-color);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pack-card:hover {
    border-color: var(--club-primary);
    background: #f8faff;
}
.pack-card.selected {
    border-color: var(--club-primary);
    background: #eef4ff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}
.pack-info {
    flex: 1;
    min-width: 0;
}
.pack-name {
    font-weight: 700;
    font-size: 0.95rem;
}
.pack-description {
    font-size: 0.85rem;
    color: var(--pico-muted-color);
    margin-top: 0.15rem;
}
.pack-items {
    font-size: 0.82rem;
    color: var(--pico-muted-color);
    margin-top: 0.25rem;
}
.pack-thumbs {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    margin-left: 0.75rem;
}
.pack-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* ─── Category cards ──────────────────────────────────── */
.category-card {
    border: 2px solid var(--pico-muted-border-color);
    border-radius: 0.875rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.category-card:hover {
    border-color: var(--club-primary);
    box-shadow: 0 4px 12px rgba(13,110,253,0.08);
    transform: translateY(-2px);
}
.category-card.selected {
    border-color: var(--club-primary);
    background: var(--club-light);
    box-shadow: 0 0 0 3px rgba(13,110,253,0.1);
}
.category-card .cat-name {
    font-weight: 700; font-size: 1.05rem;
}
.category-card .cat-price {
    font-size: 1.1rem; font-weight: 700;
    color: var(--club-primary);
    white-space: nowrap;
}
.category-card .cat-meta {
    font-size: 0.8rem; color: var(--pico-muted-color);
    margin-top: 0.25rem;
}
.category-card .cat-check {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid var(--pico-muted-border-color);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.category-card.selected .cat-check {
    background: var(--club-primary);
    border-color: var(--club-primary);
    color: white;
}
.category-card .cat-check::after {
    content: '';
    width: 6px; height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
    opacity: 0;
    transition: opacity 0.2s;
}
.category-card.selected .cat-check::after { opacity: 1; }

/* ─── Size grid ───────────────────────────────────────── */
.eq-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--pico-muted-border-color);
}
.eq-section:last-of-type { border-bottom: none; }
.eq-section h4 {
    margin: 0 0 0.75rem;
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 1rem;
}
.eq-section h4 .eq-thumb {
    flex-shrink: 0;
}
.size-group {
    margin-bottom: 0.75rem;
}
.size-group-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pico-muted-color);
    margin-bottom: 0.4rem;
    font-weight: 600;
}
.size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.size-btn {
    min-width: 56px;
    padding: 0.5rem 0.9rem;
    text-align: center;
    border: 2px solid var(--pico-muted-border-color);
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.85rem;
    background: white;
    color: var(--pico-color);
    user-select: none;
    line-height: 1.2;
}
.size-btn:hover {
    border-color: var(--club-primary);
    color: var(--club-primary);
    transform: translateY(-1px);
}
.size-btn.selected {
    background: var(--club-primary);
    border-color: var(--club-primary);
    color: white;
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.3);
    transform: translateY(-1px);
}

/* ─── Recap ───────────────────────────────────────────── */
.recap-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.recap-card h4 {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pico-muted-color);
}
.recap-table {
    width: 100%;
    font-size: 0.95rem;
}
.recap-table td {
    padding: 0.4rem 0;
    border-bottom: 1px solid #e2e8f0;
}
.recap-table td:first-child {
    color: var(--pico-muted-color);
    width: 45%;
}
.recap-table tr:last-child td { border-bottom: none; }

/* ─── Success ─────────────────────────────────────────── */
.success-box {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #93c5fd;
    border-radius: 1.25rem;
    box-shadow: 0 8px 30px rgba(13, 110, 253, 0.1);
}
.success-box .check-anim {
    width: 80px; height: 80px;
    background: var(--club-accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.success-box .check-anim svg {
    width: 40px; height: 40px;
    stroke: white;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheck 0.6s 0.3s forwards;
}
@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}
.success-box h2 {
    color: var(--club-accent);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}
.success-box .ref-box {
    display: inline-block;
    background: white;
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--club-accent);
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ─── Prochaines étapes ────────────────────────────────── */
.next-steps {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border: 1px solid #b8d9f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.next-steps h4 {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pico-muted-color);
}
.next-step-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #d0e4f1;
}
.next-step-item:first-of-type {
    padding-top: 0;
}
.next-step-item:last-of-type {
    padding-bottom: 0;
    border-bottom: none;
}
.next-step-logo {
    width: 44px;
    height: 44px;
    border-radius: 0.5rem;
    object-fit: contain;
    background: white;
    padding: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    flex-shrink: 0;
}
.next-step-content {
    flex: 1;
    min-width: 0;
}
.next-step-content strong {
    display: block;
    font-size: 0.95rem;
    color: #1e3a5f;
    margin-bottom: 0.25rem;
}
.next-step-content p {
    margin: 0;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
}
.next-step-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--club-primary);
    color: white !important;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.25);
}
.next-step-link:hover {
    background: var(--club-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}
.next-step-link-whatsapp {
    background: #25D366;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
}
.next-step-link-whatsapp:hover {
    background: #1da851;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* ─── Boutons ─────────────────────────────────────────── */
.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.btn-group button { flex: 1; min-width: 140px; }

/* ─── Footer ──────────────────────────────────────────── */
.app-footer {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.8rem;
    color: var(--pico-muted-color);
    margin-top: 2rem;
}

/* ─── Engagement & Sponsoring ──────────────────────────── */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
    cursor: pointer;
    line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}
.investissement-group {
    margin-top: 1rem;
}
.charte-accept {
    margin: 1.25rem 0 0;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 0.5rem;
}
.charte-accept a {
    color: var(--club-primary);
    font-weight: 600;
    text-decoration: underline;
}
.charte-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.charte-modal {
    background: #fff;
    border-radius: 0.75rem;
    width: 100%; max-width: 50rem;
    max-height: 90vh;
    display: flex; flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.charte-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
    flex-shrink: 0;
}
.charte-modal-header h3 { margin: 0; font-size: 1rem; }
.charte-modal-close {
    background: none; border: none; font-size: 1.5rem;
    cursor: pointer; color: var(--pico-muted-color); line-height: 1;
}
.charte-modal-close:hover { color: #1e293b; }
.charte-iframe {
    flex: 1; width: 100%; border: none; min-height: 50vh;
}
.charte-modal-footer {
    display: flex; gap: 0.5rem; justify-content: flex-end;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--pico-muted-border-color);
    flex-shrink: 0;
}
.charte-modal-footer button { margin: 0; }
.investissement-label {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--club-secondary);
}
.investissement-options {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* ─── Équipements optionnels ──────────────────────────── */
.optional-eq-section {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px dashed var(--pico-muted-border-color);
}
.optional-eq-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}
.optional-eq-section h4::before {
    content: '🏷️';
    font-size: 1.2rem;
}
.optional-price {
    font-weight: 700;
    color: var(--club-primary);
    background: var(--club-light);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    white-space: nowrap;
}
.optional-total {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--club-light);
    border: 1px solid var(--club-primary);
    border-radius: 0.75rem;
    text-align: right;
    font-size: 1rem;
    color: var(--club-primary);
}

/* ─── Vignettes équipements ────────────────────────────── */
.eq-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 0.5rem;
    vertical-align: middle;
    margin-right: 0.35rem;
}
.eq-thumb-sm {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 0.25rem;
    vertical-align: middle;
    margin-right: 0.35rem;
}