/**
 * Mon Compte v2 — Styles
 * Optimisé pour le thème KALLYAS
 */

/* Reset propre */
.my-account-container,
.my-account-container *,
.my-account-container *:before,
.my-account-container *:after {
    box-sizing: border-box;
}

.my-account-container * {
    margin: 0;
    padding: 0;
}

/* Wrapper et conteneur */
.my-account-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 20px 0;
    z-index: 999;
}

.my-account-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.my-account-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.my-account-container h1 {
    color: #333;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
    text-align: center;
}

/* Formulaire */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group.full-width {
    display: flex;
    gap: 15px;
}

.form-group.full-width .input-wrapper {
    flex: 1;
}

.my-account-container label {
    display: block;
    color: #555;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.my-account-container input[type="text"],
.my-account-container input[type="email"],
.my-account-container input[type="password"],
.my-account-container select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.my-account-container input:focus,
.my-account-container select:focus {
    outline: none;
    border-color: #0073AA;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    transform: translateY(-2px);
}

.my-account-container select {
    cursor: pointer;
}

/* Indicateurs */
.password-strength,
.availability-check {
    margin-top: 8px;
    font-size: 12px;
    min-height: 16px;
}

.strength-bar {
    height: 4px;
    background: #e1e5e9;
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
    width: 0%;
}

.strength-weak   { background: #ff4757; width: 25%; }
.strength-fair   { background: #ffa502; width: 50%; }
.strength-good   { background: #2ed573; width: 75%; }
.strength-strong { background: #1e90ff; width: 100%; }

.availability-checking  { color: #ffa502; }
.availability-available { color: #2ed573; }
.availability-taken,
.availability-invalid   { color: #ff4757; }

/* Boutons */
.update-btn {
    width: 100%;
    background: #0073AA;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.update-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 115, 170, 0.3);
}

/* Messages */
.error-message {
    color: #ff4757;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    text-align: center;
}

.info-box {
    background: #e7f3ff;
    color: #0073AA;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Section mot de passe */
.password-section {
    border-top: 1px solid #e1e5e9;
    padding-top: 30px;
    margin-top: 30px;
}

.password-section h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
}

.current-password-note {
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 15px;
}

/* Section photo */
.profile-photo-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.profile-photo-section h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
}

.current-photo { margin-bottom: 20px; }

.profile-photo-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #0073AA;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto 15px;
    display: block;
}

.no-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #e1e5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #666;
    font-size: 24px;
    border: 4px solid #ddd;
}

.photo-upload-area {
    border: 2px dashed #0073AA;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    background: rgba(0, 115, 170, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-upload-area:hover,
.photo-upload-area.dragover {
    background: rgba(0, 115, 170, 0.1);
    border-color: #005a87;
}

.upload-instructions {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.photo-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.photo-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-btn.primary    { background: #0073AA; color: white; }
.photo-btn.primary:hover    { background: #005a87; }
.photo-btn.secondary  { background: #6c757d; color: white; }
.photo-btn.secondary:hover  { background: #545b62; }
.photo-btn.danger     { background: #dc3545; color: white; }
.photo-btn.danger:hover     { background: #c82333; }

/* Zone dangereuse */
.danger-zone {
    border-top: 1px solid #dc3545;
    padding-top: 30px;
    margin-top: 30px;
    background: rgba(220, 53, 69, 0.05);
    border-radius: 10px;
    padding: 25px;
}

.danger-zone h3 {
    color: #dc3545;
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.danger-warning {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.4;
}

.delete-account-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-account-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Modal confirmation */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.confirmation-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.confirmation-content h3 {
    color: #dc3545;
    margin-bottom: 15px;
    font-size: 20px;
}

.confirmation-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.confirmation-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirm-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-btn.danger      { background: #dc3545; color: white; }
.confirm-btn.danger:hover      { background: #c82333; }
.confirm-btn.secondary   { background: #6c757d; color: white; }
.confirm-btn.secondary:hover   { background: #545b62; }

/* Page not-logged */
.mon-compte-not-logged {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
}

.mon-compte-not-logged p {
    color: #666;
    font-size: 16px;
}

.mon-compte-login-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #0073AA;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.mon-compte-login-btn:hover {
    background: #005a87;
    color: white;
}

/* Responsive */
@media (max-width: 480px) {
    .my-account-container {
        margin: 20px;
        padding: 30px 25px;
    }

    .form-group.full-width {
        flex-direction: column;
        gap: 20px;
    }

    .my-account-container h1 {
        font-size: 24px;
    }
}
