/* public/assets/css/onboarding.css */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500&display=swap');

/* Style général de la page onboarding */
.onboarding-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px);
    padding: 40px 20px;
}

.onboarding-container {
    max-width: 680px !important;
    text-align: center !important;
}

.onboarding-container h1 {
    text-align: center !important;
    font-size: 24px !important;
    margin-bottom: 8px !important;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.onboarding-container p {
    color: #a0a0a0;
    margin-bottom: 30px;
}

.onboarding-container h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 1.4em;
    color: #ffffff;
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 30px;
    margin-bottom: 25px;
    text-align: left;
    text-transform: uppercase;
}

/* Barre de progression */
.onboarding-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    height: 30px; 
}
.onboarding-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: #333;
    transform: translateY(-50%);
    z-index: 1;
}
.onboarding-progress-fill {
    position: absolute;
    top: 50%;
    left: 15px;
    height: 2px;
    background-color: #FFFFFF;
    transform: translateY(-50%);
    width: 0%;
    z-index: 2;
    transition: width 0.4s ease;
}
.onboarding-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #333;
    color: #888;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    position: relative;
    z-index: 3;
    transition: background-color 0.4s ease, color 0.4s ease;
    border: none;
}
.onboarding-step.active {
    background-color: #FFFFFF;
    color: #121212;
}

/* Étapes du formulaire */
.form-steps {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.form-step {
    display: none;
}
.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Uploader d'images */
.profile-images {
    position: relative;
    margin-bottom: 60px;
    height: 180px;
}
.banner-upload {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background-color: #222;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #444;
}
.banner-upload:hover .upload-overlay { opacity: 1; }
#banner-preview { width: 100%; height: 100%; object-fit: cover; }

.avatar-upload {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #333;
    border: 4px solid #121212;
    overflow: hidden;
    cursor: pointer;
}
.avatar-upload:hover .upload-overlay { opacity: 1; }
#avatar-preview { width: 100%; height: 100%; object-fit: cover; }

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 14px;
}
.upload-overlay i { font-size: 24px; margin-bottom: 8px; }
input[type="file"] { display: none; }


/* Conteneur principal des champs téléphone */
.phone-input-container {
    display: flex;
    align-items: stretch; 
    position: relative;
    gap: 15px;
}

.phone-input-container .input-group {
    margin-bottom: 0;
    padding-bottom: 0;
}

.phone-prefix-select {
    flex: 1;
    max-width: 25%;
}

.phone-prefix-select select.country-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    border-bottom: 1px solid #ffffff;
    background-color: transparent;
    padding: 10px 15px 8px 0; 
    color: #ffffff;
    width: 100%;
    font-size: 1.1em;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    outline: none;
    background-position: right 0 center;
}

.phone-number-input {
    flex: 3;
    position: relative;
}

.phone-number-input input {
    border: none;
    border-bottom: 1px solid #ffffff;
    background-color: transparent;
    padding: 10px 30px 8px 0; 
    width: 100%;
    color: #ffffff;
    font-size: 1.1em;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.phone-number-input.floating-label label {
    left: 0; 
}

.phone-verification-group {
    margin-top: 15px;
}
.code-input-wrapper {
    display: none;
    margin-top: 10px;
}
.code-input-wrapper .input-group {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 0;
}
.code-input-wrapper .input-group button {
    flex: 0 0 70px;
}

.btn-verify {
    padding: 8px 12px !important;
    font-size: 0.9em !important;
    letter-spacing: 0 !important;
    line-height: 1.5 !important;
}
#send-mobile-code-btn, #send-fixed-code-btn {
    width: 100%;
}
.verification-status {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #198754;
    font-size: 1.2em;
}

.phone-error-message {
    background-color: #dc3545;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 0.9em;
    margin-bottom: 10px;
    text-align: center;
}

/* --- SECTION 2FA MODIFIÉE --- */

.tfa-section h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #E0E0E0;
}
.tfa-section p.tfa-description {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1rem;
    color: #A0A0A0;
}

.tfa-options-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tfa-option {
    border: 1px solid #555;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: transparent;
    color: #a0a0a0;
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    position: relative;
}

.tfa-option:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.tfa-option i {
    font-size: 3rem;
    margin-bottom: 15px;
    transition: color 0.2s ease-in-out;
}

.tfa-option .tfa-label {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1em;
    color: inherit;
}

.tfa-option input[type="checkbox"] {
    display: none;
}

.tfa-option.active {
    border-color: #198754;
    color: #ffffff;
    background-color: rgba(25, 135, 84, 0.1);
}
.tfa-option.active i {
    color: #198754;
}

.tfa-option.active:hover {
    border-color: #dc3545;
    color: #ffffff;
    background-color: rgba(220, 53, 69, 0.1);
}
.tfa-option.active:hover i {
    color: #dc3545;
}


.tfa-option.disabled {
    cursor: not-allowed;
    opacity: 0.4;
    border-color: #444;
    background-color: transparent;
}
.tfa-option.disabled:hover {
    border-color: #444;
    color: #a0a0a0;
}

.tfa-setup-section {
    display: none;
    margin-top: 20px;
    padding: 25px;
    border: 1px solid #444;
    border-radius: 8px;
    background-color: #1a1a1a;
    text-align: left;
}
.tfa-setup-section p {
    text-align: left;
    margin-bottom: 20px;
}
.tfa-setup-content {
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: center;
}
#qr-code-container {
    background-color: white;
    padding: 10px;
    border-radius: 4px;
}
#qr-code-container img {
    display: block;
    width: 150px;
    height: 150px;
}
.tfa-verification-input {
    flex-grow: 1;
    max-width: 250px;
}
#tfa-feedback {
    min-height: 20px;
    margin-top: 15px;
    font-size: 0.9em;
    text-align: center;
    font-weight: 500;
}

@media (max-width: 680px) {
    .tfa-options-container {
        gap: 15px;
    }
    .tfa-option {
        width: 140px;
        height: 140px;
    }
    .tfa-setup-content {
        flex-direction: column;
    }
}

/* --- FIN SECTION 2FA --- */


/* --- STYLES POUR L'ÉTAPE 4 (POLITIQUES) --- */
.policies-container {
    text-align: left;
    margin-bottom: 20px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.2em;
    margin-right: 12px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #ffffff;
}

.checkbox-group label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9em;
    color: #cccccc;
    line-height: 1.5;
}

.checkbox-group label a {
    color: #ffffff;
    text-decoration: underline;
}

.checkbox-group label a:hover {
    text-decoration: none;
}

.checkbox-group .required-star {
    color: #ff6b6b;
    font-weight: bold;
    margin-left: 3px;
}

.consent-divider {
    border: 0;
    height: 1px;
    background-color: #444;
    margin: 25px 0;
}

.optional-consents {
    text-align: left;
}

/* --- FIN STYLES ÉTAPE 4 --- */


/* Boutons */
.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}
.form-buttons .btn { width: 48%; }
.next-btn.full-width { width: 100%; margin-top: 30px; }

/* Modal pour le Cropper */
.cropper-modal {
    display: none; position: fixed; z-index: 1050; top: 0; left: 0;
    width: 100%; height: 100%; overflow: hidden;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center; align-items: center;
}
.cropper-modal-content {
    background-color: #1e1e1e; padding: 20px; border-radius: 16px;
    width: 90%; max-width: 600px; text-align: center;
}
.cropper-container { max-height: 50vh; margin-bottom: 20px; }
.cropper-modal-content img { max-width: 100%; }
.cropper-buttons { display: flex; justify-content: flex-end; gap: 15px; }
.cropper-buttons .btn { width: auto; min-width: 120px; }

/* Case à cocher pour l'adresse de livraison */
.shipping-checkbox-group {
    justify-content: flex-start;
    margin-top: 25px;
    margin-bottom: 0;
}

/* --- STYLES POUR L'AUTOCOMPLETION --- */
.autocomplete-container {
    position: relative;
}

.autocomplete-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-top: none;
    border-radius: 0 0 6px 6px;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.autocomplete-item {
    padding: 10px 15px;
    color: #e0e0e0;
    cursor: pointer;
    text-align: left;
    border-bottom: 1px solid #444;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: #3c3c3c;
    color: #ffffff;
}
