﻿/* =====================================================
   WIZARD DISTRIBUTEUR - STYLES
   Design moderne, animé et responsive
===================================================== */

/* Overlay principal */
.wizard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wizard-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* Container principal */
.wizard-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 8px;
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.wizard-overlay.active .wizard-container {
    transform: scale(1) translateY(0);
}

/* Header du wizard */
.wizard-header {
    text-align: center;
    padding: 30px 20px 20px;
    position: relative;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.2) 0%, transparent 100%);
}

.wizard-logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    animation: pulse-logo 2s ease-in-out infinite;
}

@keyframes pulse-logo {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.wizard-header h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 5px;
}

.wizard-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

.wizard-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wizard-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Progress Steps */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px 20px;
    gap: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.progress-step.active,
.progress-step.completed {
    opacity: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
}

.progress-step.completed .step-number {
    background: #10B981;
    border-color: transparent;
    color: #fff;
}

.progress-step.completed .step-number::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.progress-step span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-step.active span {
    color: rgba(255, 255, 255, 0.9);
}

.progress-line {
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 8px 20px;
}

/* Contenu des étapes */
.wizard-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 25px 25px;
    box-sizing: border-box;
}

.wizard-step {
    display: none;
    animation: fadeInStep 0.4s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: #667eea;
}

.step-icon.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
    color: #10B981;
}

.wizard-step h3 {
    color: #fff;
    font-size: 20px;
    text-align: center;
    margin: 0 0 8px;
}

.step-description {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    text-align: center;
    margin: 0 0 25px;
}

/* Indicateur GPS utilisateur — Étape 1 */
.wizard-user-gps {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.wizard-user-gps.gps-loading {
    border-color: rgba(102, 126, 234, 0.25);
    background: rgba(102, 126, 234, 0.06);
}

.wizard-user-gps.gps-success {
    border-color: rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.06);
}

.wizard-user-gps.gps-error {
    border-color: rgba(245, 158, 11, 0.25);
    background: rgba(245, 158, 11, 0.06);
}

.wizard-gps-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #667eea;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.wizard-user-gps.gps-success .wizard-gps-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.wizard-user-gps.gps-error .wizard-gps-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.wizard-gps-info {
    flex: 1;
    min-width: 0;
}

.wizard-gps-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2px;
}

.wizard-gps-coords {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wizard-gps-status {
    flex-shrink: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
}

/* Options de localisation */
.location-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.location-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    color: #fff;
}

.location-option:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateX(5px);
}

.location-option .option-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.location-option .option-text {
    flex: 1;
}

.location-option .option-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 3px;
}

.location-option .option-text span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.location-option>.fa-chevron-right {
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

/* Carte de localisation sélectionnée */
.selected-location {
    margin-top: 20px;
}

.location-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 18px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
}

.location-card .location-icon {
    width: 44px;
    height: 44px;
    background: #10B981;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}

.location-card .location-info {
    flex: 1;
}

.location-card .location-address {
    display: block;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
}

.location-card .location-coords {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
}

.location-card .location-edit {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
}

.location-card .location-edit:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Loader géolocalisation */
.geo-loader {
    text-align: center;
    padding: 30px;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-top-color: #667eea;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.geo-loader p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

/* Grille des types */
.type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
    padding: 5px;
}

.type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.type-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.type-item.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.2);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.type-item .type-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}

.type-item .type-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    line-height: 1.2;
}

.type-item.selected .type-label {
    color: #fff;
    font-weight: 600;
}

/* Formulaires */
.form-group-wizard {
    margin-bottom: 20px;
}

.form-group-wizard label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-bottom: 8px;
}

.form-group-wizard label i {
    margin-right: 6px;
    color: #667eea;
}

.form-group-wizard input,
.form-group-wizard textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
    resize: none;
}

.form-group-wizard input::placeholder,
.form-group-wizard textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group-wizard input:focus,
.form-group-wizard textarea:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.char-count {
    display: block;
    text-align: right;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    margin-top: 5px;
}

/* =====================================================
   RÉCAPITULATIF PREMIUM — Étape 4
===================================================== */

/* Carte principale de récap */
.recap-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

/* Photo avec overlay */
.recap-photo-block {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.recap-photo-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recap-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.recap-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

#recapTypeEmoji {
    font-size: 16px;
}

/* Nom auto-généré */
.recap-name-block {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.recap-name-block i {
    color: #667eea;
    font-size: 16px;
}

/* Sections d'infos */
.recap-sections {
    padding: 4px 0;
}

.recap-section {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.recap-section:last-child {
    border-bottom: none;
}

.recap-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.recap-section-header i {
    color: #667eea;
    font-size: 13px;
    width: 16px;
    text-align: center;
}

.recap-section-header span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.45);
}

.recap-section-body {
    padding-left: 24px;
}

/* Adresse + Coords */
.recap-address {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
}

.recap-coords {
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    margin-bottom: 10px;
}

/* Mini-carte */
.recap-minimap {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Type détail */
.recap-type-detail {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

/* Paiements en pilules */
.recap-payments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.recap-payment-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 8px;
    color: #a5b4fc;
    font-size: 13px;
    font-weight: 500;
}

.recap-payment-pill i {
    font-size: 12px;
}

/* Commentaire */
.recap-comment {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.5;
    font-style: italic;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    border-left: 3px solid rgba(102, 126, 234, 0.4);
}

/* Notice de modération améliorée */
.moderation-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(251, 191, 36, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
}

.moderation-notice-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.moderation-notice-icon i {
    color: #F59E0B;
    font-size: 16px;
}

.moderation-notice-text {
    flex: 1;
    min-width: 0;
}

.moderation-notice-text strong {
    display: block;
    color: #fbbf24;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 3px;
}

.moderation-notice-text p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

/* Ancien support (conservé pour compatibilité) */
.moderation-notice>i {
    color: #F59E0B;
    font-size: 18px;
    margin-top: 2px;
}

.moderation-notice>p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* =====================================================
   ENGAGEMENT D'EXACTITUDE — Étape 4
===================================================== */
.wizard-engagement {
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    transition: border-color .3s;
}

.wizard-engagement-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(102, 126, 234, 0.08);
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
    font-size: 13px;
    color: #a5b4fc;
}

.wizard-engagement-header i {
    color: #667eea;
    font-size: 14px;
}

.wizard-engagement-header strong {
    color: #c7d2fe;
    font-size: 13px;
}

.wizard-engagement-body {
    padding: 12px 16px;
}

.wizard-engagement-body p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 8px;
}

.wizard-engagement-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wizard-engagement-body li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.wizard-engagement-body li i {
    color: #10B981;
    font-size: 11px;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.wizard-engagement-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid rgba(102, 126, 234, 0.12);
    cursor: pointer;
    transition: background .2s;
    -webkit-tap-highlight-color: transparent;
}

.wizard-engagement-checkbox:hover {
    background: rgba(102, 126, 234, 0.06);
}

.wizard-engagement-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: all .2s;
}

.wizard-engagement-checkbox input[type="checkbox"]:checked {
    background: #667eea;
    border-color: #667eea;
}

.wizard-engagement-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.wizard-engagement-checkbox span {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
}

/* Animation de succès */
.success-animation {
    margin: 20px 0 30px;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 36px;
    color: #fff;
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.success-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    color: #10B981;
    font-size: 14px;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Footer du wizard */
.wizard-footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 25px 25px;
    gap: 15px;
}

.wizard-btn {
    flex: 1;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
}

.wizard-btn.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.wizard-btn.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.wizard-btn.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.wizard-btn.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.wizard-btn.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.wizard-btn.btn-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Overlay de sélection carte */
.map-selection-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Couvrir tout l'écran */
    z-index: 9999;
    transition: all 0.3s ease;
    pointer-events: none;
    /* Laisser passer les clics vers la carte */
}

.map-selection-overlay.hidden {
    display: none;
}

.map-selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    pointer-events: auto;
    /* Réactiver les clics pour le header */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.map-selection-header button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-selection-header button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.map-selection-hint {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: bounce 1.5s ease-in-out infinite;
    pointer-events: auto;
    /* Réactiver les clics (si besoin) */
    white-space: nowrap;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* =====================================================
   RESPONSIVE - MOBILE
===================================================== */
@media (max-width: 768px) {
    .wizard-container {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .wizard-header {
        padding: 20px 15px 15px;
    }

    .wizard-logo {
        width: 56px;
        height: 56px;
        font-size: 22px;
        border-radius: 8px;
    }

    .wizard-header h2 {
        font-size: 18px;
    }

    .wizard-progress {
        padding: 0 15px 15px;
    }

    .progress-step span {
        display: none;
    }

    .progress-line {
        width: 20px;
        margin: 0 5px 0;
    }

    .wizard-content {
        padding: 0 20px;
    }

    .type-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .type-item {
        padding: 12px 6px;
    }

    .type-item .type-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .type-item .type-label {
        font-size: 10px;
    }

    .wizard-footer {
        padding: 15px 20px 30px;
    }

    .wizard-btn {
        padding: 14px 20px;
        font-size: 14px;
    }

    .map-selection-hint {
        bottom: 120px;
    }
}

/* Safe area pour iPhone X+ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .wizard-footer {
        padding-bottom: calc(25px + env(safe-area-inset-bottom));
    }
}

/* =====================================================
   SECTION PAIEMENTS
===================================================== */

.payment-section {
    margin-bottom: 20px;
}

.payment-section label:first-of-type {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.payment-section .required {
    color: #f56565;
}

.field-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin: 0 0 12px;
}

.payment-options {
    display: flex;
    gap: 12px;
}

.payment-checkbox {
    flex: 1;
    cursor: pointer;
}

.payment-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.payment-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.payment-checkbox input:checked+.payment-card {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

.payment-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 22px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.payment-checkbox input:checked+.payment-card .payment-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.payment-card span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.payment-checkbox input:checked+.payment-card span {
    color: white;
}

/* =====================================================
   SECTION PHOTO UPLOAD
===================================================== */

.photo-section {
    margin-bottom: 24px;
}

.photo-section label:first-of-type {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.photo-upload-area {
    position: relative;
    min-height: 160px;
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 140px;
}

.photo-placeholder:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.4);
}

.photo-placeholder:active {
    transform: scale(0.98);
}

.upload-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.upload-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.upload-hint {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

/* Aperçu de la photo */
.photo-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.photo-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.photo-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.photo-remove-btn:hover {
    background: #ef4444;
    transform: scale(1.1);
}

.photo-status {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 15px;
    background: linear-gradient(0deg, rgba(16, 185, 129, 0.9) 0%, rgba(16, 185, 129, 0.7) 100%);
    color: white;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Loader photo */
.photo-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    min-height: 140px;
}

.photo-loading span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.loader-spinner.small {
    width: 30px;
    height: 30px;
    margin: 0;
}

/* Aperçu photo dans le résumé */
.summary-photo {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-photo img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

/* Mobile adjustments for photo upload */
@media (max-width: 768px) {
    .photo-placeholder {
        padding: 25px 15px;
        min-height: 120px;
    }

    .upload-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .photo-preview img {
        height: 180px;
    }
}
