/* style-light.css - Rencontre - Thème Clair */

/* ===== VARIABLES ET RESET ===== */
:root {
    /* Variables de couleurs - Thème Clair Rose */
    --primary-color: #ec4899;
    --secondary-color: #d946ef;
    --accent-color: #a855f7;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    
    /* Couleurs de fond */
    --bg-primary: #fdf2f8;
    --bg-secondary: #ffffff;
    --bg-tertiary: #fce7f3;
    
    /* Couleurs de texte */
    --text-primary: #4a044e;
    --text-secondary: #831843;
    --text-muted: #9d174d;
    
    /* Bordures */
    --border-color: #f9a8d4;
    --border-light: #fce7f3;
    
    /* Variables d'ombres et dégradés */
    --shadow-lg: 0 20px 60px rgba(236, 72, 153, 0.15);
    --shadow-md: 0 10px 30px rgba(236, 72, 153, 0.1);
    --gradient-primary: linear-gradient(135deg, #ec4899 0%, #d946ef 100%);
    --gradient-bg: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-error: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== STYLES COMMUNS ===== */

/* Alertes */
.alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
}

.alert-error {
    background: #ef4444;
    border: 1px solid #feb2b2;
    color: #742a2a;
}

.alert-success {
    background: #c6f6d5;
    border: 1px solid #9ae6b4;
    color: #22543d;
}

.alert-warning {
    background: #f59e0b;
    color: #744210;
    border-left-color: #ed8936;
}

.alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

/* Boutons */
.btn {
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-align: center;
    touch-action: manipulation;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover,
.btn-primary:active {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover,
.btn-secondary:active {
    background: rgba(30, 41, 59, 0.1);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #c53030);
    color: white;
}

.btn-danger:hover,
.btn-danger:active {
    background: #c53030;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 101, 101, 0.2);
}

/* Formulaires */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    color: var(--text-primary);
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 15px;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border-color);
    margin: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 1;
}

.modal-header h3 {
    font-size: 18px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    flex-shrink: 0;
    touch-action: manipulation;
}

.modal-close:hover,
.modal-close:active {
    background: rgba(30, 41, 59, 0.05);
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 15px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.modal-actions button {
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    touch-action: manipulation;
}

.btn-modal-cancel {
    background: rgba(30, 41, 59, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-modal-cancel:hover,
.btn-modal-cancel:active {
    background: rgba(30, 41, 59, 0.1);
}

.btn-modal-delete {
    background: linear-gradient(135deg, var(--danger-color), #c53030);
    color: white;
}

.btn-modal-delete:hover,
.btn-modal-delete:active {
    background: #c53030;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 101, 101, 0.2);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: rgba(56, 161, 105, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(56, 161, 105, 0.3);
}

.status-decision_en_attente {
    background: rgba(237, 137, 54, 0.15);
    color: var(--warning-color);
    border: 1px solid rgba(237, 137, 54, 0.3);
}

.status-continue {
    background: rgba(102, 126, 234, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* ===== STYLES DE CONVERSATION ===== */
.conversation-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Conversation */
.conversation-header {
    background: var(--bg-secondary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-back {
    background: rgba(102, 126, 234, 0.1);
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.btn-back:hover {
    background: rgba(102, 126, 234, 0.2);
}

.interlocutor-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.interlocutor-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.interlocutor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.interlocutor-details h3 {
    font-size: 16px;
    margin-bottom: 3px;
    color: var(--text-primary);
}

.interlocutor-details span {
    font-size: 14px;
    color: var(--text-muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.counters {
    display: flex;
    gap: 15px;
}

.counter {
    background: var(--bg-tertiary);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--border-color);
}

.counter-value {
    font-weight: bold;
    color: var(--primary-color);
}

.btn-report {
    background: rgba(245, 101, 101, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(245, 101, 101, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-report:hover {
    background: rgba(245, 101, 101, 0.2);
}

/* Messages Container */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--bg-primary);
}

.message {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-sent {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.message-received {
    background: var(--bg-secondary);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.message-content {
    word-wrap: break-word;
    line-height: 1.5;
}

.message-time {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.8;
    text-align: right;
}

.message-received .message-time {
    color: var(--text-muted);
}

.message-sent .message-time {
    color: rgba(255,255,255,0.8);
}

.no-messages {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-style: italic;
}

/* Input Area */
.input-area {
    background: var(--bg-secondary);
    padding: 20px;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.decision-prompt {
    text-align: center;
    padding: 30px 20px;
}

.decision-prompt h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.decision-prompt p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.decision-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-decision {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.btn-yes {
    background: linear-gradient(135deg, var(--success-color) 0%, #2f855a 100%);
    color: white;
}

.btn-yes:hover {
    background: #2f855a;
    transform: translateY(-2px);
}

.btn-no {
    background: linear-gradient(135deg, var(--danger-color) 0%, #c53030 100%);
    color: white;
}

.btn-no:hover {
    background: #c53030;
    transform: translateY(-2px);
}

.conversation-ended {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}

.conversation-ended h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* Message Input Form */
#message-form {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.message-input-wrapper {
    flex: 1;
    position: relative;
}

#message-input {
    width: 100%;
    padding: 15px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    resize: none;
    min-height: 60px;
    max-height: 120px;
    font-family: inherit;
    transition: border-color 0.3s;
    color: var(--text-primary);
}

#message-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

#message-input::placeholder {
    color: var(--text-muted);
}

.character-count {
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 2px 5px;
    border-radius: 3px;
}

.btn-send {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.btn-send:hover:not(:disabled) {
    background: #5a67d8;
    transform: translateY(-2px);
}

.btn-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Report Modal spécifique */
.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-primary);
}

.modal-body textarea {
    min-height: 100px;
    resize: vertical;
}

/* ===== STYLES DE DASHBOARD ===== */
.dashboard-header {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar-link {
    position: relative;
    display: block;
    transition: transform 0.3s ease;
}

.user-avatar-link:hover {
    transform: scale(1.1);
}

.user-avatar-link::after {
    content: '👤';
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: var(--bg-primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s;
    border: 2px solid var(--primary-color);
}

.user-avatar-link:hover::after {
    opacity: 1;
}

.user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid transparent;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 22px;
    transition: all 0.3s;
}

.user-avatar-link:hover .user-avatar {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details h2 a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: color 0.3s;
}

.user-details h2 a:hover {
    color: var(--primary-color);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.user-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(56, 161, 105, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(56, 161, 105, 0.3);
}

.status-sous_examen {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-banni {
    background: rgba(229, 62, 62, 0.15);
    color: var(--danger-color);
    border: 1px solid rgba(229, 62, 62, 0.3);
}

/* Header Actions Dashboard */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-profile {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.btn-profile:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.btn-logout {
    background: rgba(229, 62, 62, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(229, 62, 62, 0.3);
}

.btn-logout:hover {
    background: rgba(229, 62, 62, 0.2);
    border-color: var(--danger-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.1);
}

/* Main Content Dashboard */
.dashboard-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
}

/* Hero Section */
.hero-section {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

/* .hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
} */

.hero-text h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text p {
    color: var(--text-secondary);
    font-size: 16px;
}

.hero-stats {
    display: flex;
    gap: 24px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Partner Section */
.partner-section {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

/* .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
} */

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--primary-color);
}

.refresh-btn {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(102, 126, 234, 0.3);
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.refresh-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.partner-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.partner-card.empty {
    border-style: dashed;
    background: transparent;
}

.partner-card.empty:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.partner-info {
    width: 100%;
}

.partner-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid rgba(102, 126, 234, 0.3);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 48px;
    font-weight: bold;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.partner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.partner-details {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 16px;
}

.partner-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.tag {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.partner-bio {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
    padding: 16px;
    background: rgba(30, 41, 59, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.partner-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.btn-skip {
    background: rgba(229, 62, 62, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(229, 62, 62, 0.3);
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    min-width: 160px;
}

.btn-skip:hover:not(:disabled) {
    background: rgba(229, 62, 62, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.1);
}

.btn-chat {
    background: var(--gradient-primary);
    color: white;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    min-width: 200px;
}

.btn-chat:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.btn-skip:disabled,
.btn-chat:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Conversations Section */
.conversations-section {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.conversations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.conversation-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.conversation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.conversation-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.conversation-card:hover::before {
    opacity: 1;
}

.conv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.conv-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.conv-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.conv-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.conv-user-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.conv-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.conv-status-active {
    background: rgba(56, 161, 105, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(56, 161, 105, 0.3);
}

.conv-status-decision_en_attente {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.conv-status-continue {
    background: rgba(102, 126, 234, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.conv-details {
    margin-bottom: 16px;
}

.conv-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.conv-progress {
    margin-bottom: 16px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.progress-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.3s;
}

.conv-actions {
    display: flex;
    gap: 10px;
}

.btn-conv {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-conv-primary {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.btn-conv-primary:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-conv-success {
    background: rgba(56, 161, 105, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(56, 161, 105, 0.3);
}

.btn-conv-success:hover {
    background: rgba(56, 161, 105, 0.2);
    border-color: var(--success-color);
    transform: translateY(-2px);
}

/* Restricted View */
.restricted-view {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    margin: 32px auto;
    max-width: 600px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.restricted-icon {
    font-size: 72px;
    margin-bottom: 24px;
}

.restricted-icon.under-review {
    color: var(--warning-color);
}

.restricted-icon.banned {
    color: var(--danger-color);
}

.restricted-view h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.restricted-view p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
    font-size: 16px;
}

.appeal-form {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 24px;
    margin-top: 32px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.appeal-form h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.appeal-form textarea {
    width: 100%;
    padding: 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s;
}

.appeal-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.appeal-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 16px;
}

.appeal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.success-message {
    background: rgba(56, 161, 105, 0.1);
    border: 1px solid rgba(56, 161, 105, 0.3);
    color: var(--success-color);
    padding: 16px;
    border-radius: 12px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

/* ===== STYLES DE PROFIL ===== */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    width: 100%;
}

/* En-tête Profil */
.profile-header {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: bold;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.1);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-info h1 {
    font-size: 24px;
    color: var(--text-primary);
    margin: 0;
    word-break: break-word;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    text-align: center;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Layout principal Profil */
.profile-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

/* Cartes Profil */
.profile-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    margin-bottom: 0;
}

.profile-card h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-card h2 i {
    color: var(--primary-color);
}

/* Galerie de photos */
.gallery-card {
    order: 1;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.photo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Section Informations Profil */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 15px;
}

.info-item {
    background: var(--bg-tertiary);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.info-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
    word-break: break-word;
}

/* Zone d'upload */
.upload-section {
    background: var(--bg-tertiary);
    border-radius: 10px;
    padding: 25px 20px;
    margin-top: 15px;
    text-align: center;
}

.upload-area {
    border: 3px dashed var(--border-color);
    border-radius: 10px;
    padding: 30px 15px;
    cursor: pointer;
    transition: all 0.3s;
    touch-action: manipulation;
}

.upload-area:hover,
.upload-area:active {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

.upload-icon {
    font-size: 36px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.upload-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.upload-hint {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Barre de progression */
.progress-container {
    background: var(--bg-tertiary);
    border-radius: 8px;
    height: 36px;
    overflow: hidden;
    margin-top: 15px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 13px;
}

/* Biographie */
.bio-display {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 10px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
    word-break: break-word;
    overflow-wrap: break-word;
}

.bio-display.empty {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
}

.bio-edit {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 10px;
}

.char-count {
    text-align: right;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

/* Actions Profil */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    margin-top: 25px;
}

/* Barre latérale Profil */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    order: 2;
}

/* Compteur de photos */
.photo-counter {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    color: white;
    margin-bottom: 15px;
}

.photo-counter h3 {
    font-size: 12px;
    margin-bottom: 4px;
    opacity: 0.9;
}

.photo-counter .count {
    font-size: 28px;
    font-weight: 700;
}

/* Section sécurité */
.security-info {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.security-list {
    list-style: none;
    padding: 0;
}

.security-list li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.security-list li:before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Warning Box */
.warning-box {
    background: rgba(237, 137, 54, 0.1);
    border: 1px solid rgba(237, 137, 54, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.warning-box h4 {
    color: var(--warning-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.consequences-list {
    list-style: none;
    padding: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.consequences-list li {
    padding: 6px 0;
    padding-left: 25px;
    position: relative;
}

.consequences-list li:before {
    content: "⚠️";
    position: absolute;
    left: 0;
    top: 6px;
    font-size: 14px;
}

.reason-options {
    margin: 20px 0;
}

.reason-option {
    margin-bottom: 10px;
}

.reason-option input[type="radio"] {
    display: none;
}

.reason-option label {
    display: block;
    padding: 14px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.4;
    touch-action: manipulation;
}

.reason-option input[type="radio"]:checked + label {
    border-color: var(--danger-color);
    background: rgba(245, 101, 101, 0.1);
}

.reason-option:hover label,
.reason-option:active label {
    background: rgba(30, 41, 59, 0.05);
}

.custom-reason {
    margin-top: 15px;
}

.custom-reason textarea {
    width: 100%;
    padding: 14px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    resize: vertical;
    min-height: 90px;
    font-size: 15px;
    line-height: 1.5;
}

/* ===== POPUP DE PROFIL ===== */
.profile-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(10px);
}

.profile-popup {
    background: var(--bg-secondary);
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
    border: 2px solid var(--border-color);
}

.profile-popup-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 1;
}

.profile-popup-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.close-popup {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-popup:hover {
    background: rgba(30, 41, 59, 0.05);
    color: var(--text-primary);
}

.profile-popup-content {
    padding: 24px;
}

.profile-popup-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: bold;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.profile-popup-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-popup-name {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.profile-popup-details {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
}

.profile-popup-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.profile-popup-stat {
    text-align: center;
    min-width: 80px;
}

.profile-popup-stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    margin: 0 auto 8px;
}

.profile-popup-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.profile-popup-stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-popup-bio {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 12px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
    border-left: 4px solid var(--primary-color);
}

.profile-popup-section {
    margin-bottom: 32px;
}

.profile-popup-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-popup-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.profile-popup-photo {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
}

.profile-popup-photo:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.1);
}

.profile-popup-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-popup-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.profile-popup-info-item {
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.profile-popup-info-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-popup-info-value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.profile-popup-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.profile-popup-interest {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.profile-popup-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.profile-popup-btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.profile-popup-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
}

.profile-popup-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.profile-popup-btn-secondary {
    background: rgba(30, 41, 59, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.profile-popup-btn-secondary:hover {
    background: rgba(30, 41, 59, 0.1);
}

/* ===== ÉLÉMENTS COMMUNS AVANCÉS ===== */

/* Card Icon */
.card-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-color);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
}

.stat-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 48px;
    color: var(--text-muted);
}

.loading-spinner {
    display: inline-block;
    width: 48px;
    height: 48px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 60px 40px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.empty-state p {
    max-width: 400px;
    margin: 0 auto 24px;
}

/* Alert Notifications */
.alert-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
    max-width: 400px;
}

.alert-notification.error {
    background: #fed7d7;
    color: #742a2a;
    border-color: #feb2b2;
}

.alert-notification.success {
    background: #c6f6d5;
    color: #22543d;
    border-color: #9ae6b4;
}

.alert-notification i {
    font-size: 20px;
}

/* ===== STYLES DE LOGIN ===== */
.login-wrapper {
    width: 100%;
    max-width: 420px;
    animation: fadeIn 0.6s ease-out;
}

/* Correction pour centrer les formulaires */
.login-wrapper,
.register-wrapper,
.forgot-container {
    width: 100%;
    max-width: 420px;
    animation: fadeIn 0.6s ease-out;
    margin: 0 auto;
    padding: 20px;
}

.login-wrapper,
.register-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.form-input.has-value {
    border-color: var(--success-color);
}

/* Style pour les groupes d'input focus */
.input-group.focused .icon {
    color: var(--primary-color);
}

/* Correction pour les icônes dans login */
.login-card .input-group .icon {
    color: var(--text-muted);
    transition: color 0.3s;
}

.login-card .input-group.focused .icon {
    color: var(--primary-color);
}

.logo-icon {
    background: var(--gradient-primary);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.logo-text .tagline {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.login-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Input Groups spécifiques Login */
.input-group {
    position: relative;
}

.input-group .icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
    z-index: 1;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--text-secondary);
}

/* Remember Forgot */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Submit Button spécifique Login */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 32px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    padding: 0 16px;
}

/* Alternative Login */
.alternative-login {
    text-align: center;
    margin-bottom: 24px;
}

.alternative-login p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 14px;
}

.social-buttons {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.social-btn i {
    font-size: 18px;
}

/* Registration Link */
.register-link {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.register-link p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.btn-register {
    display: inline-block;
    padding: 12px 32px;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-register:hover {
    background: var(--primary-color);
    color: white;
}

/* Admin Link */
.admin-access {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.admin-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color 0.3s;
}

.admin-link:hover {
    color: var(--primary-color);
}

/* Login Footer */
.login-footer {
    text-align: center;
    margin-top: 32px;
    color: var(--text-muted);
    font-size: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 8px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* ===== STYLES DE FORGOT PASSWORD ===== */
.forgot-container {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    margin: 20px auto;
}

.forgot-container .logo {
    text-align: center;
    margin-bottom: 30px;
}

.forgot-container .logo h1 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 700;
}

.forgot-container .logo p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 30px;
}

/* Messages spécifiques Forgot Password */
.forgot-container .error {
    background: #fed7d7;
    color: #742a2a;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 4px solid #f56565;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
}

.forgot-container .success {
    background: #c6f6d5;
    color: #22543d;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 4px solid #48bb78;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
}

.forgot-container .form-group {
    margin-bottom: 24px;
}

.forgot-container .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.forgot-container .form-group input {
    width: 100%;
    padding: 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.forgot-container .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.forgot-container .form-group input::placeholder {
    color: var(--text-muted);
}

.forgot-container small {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 12px;
}

/* Correction du bouton dans forgot */
.forgot-container .btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.forgot-container .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

/* Correction des liens dans forgot */
.forgot-container .links {
    margin-top: 32px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.forgot-container .links p {
    margin-bottom: 0;
    color: var(--text-muted);
}

.forgot-container .links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.forgot-container .links a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* ===== CORRECTIONS RESPONSIVE ===== */

/* Pour mobile, réduire les padding */
@media (max-width: 480px) {
    .login-wrapper,
    .register-wrapper,
    .forgot-container {
        padding: 10px;
    }
    
    .login-card,
    .register-card,
    .forgot-container {
        padding: 30px 20px;
    }
    
    .forgot-container {
        padding: 30px 20px;
    }
}

/* ===== CORRECTION DU BODY POUR LES PAGES DE CONNEXION/INSCRIPTION ===== */

/* S'assurer que le body des pages d'auth utilise le bon gradient */
body.auth-page {
    background: var(--gradient-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
}

/* S'assurer que le body standard a un fond uni */
body:not(.auth-page) {
    background: var(--bg-primary);
    min-height: 100vh;
}

.forgot-container .links {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
}

.forgot-container .links a {
    color: var(--primary-color);
    text-decoration: none;
}

.forgot-container .links a:hover {
    text-decoration: underline;
}

/* ===== STYLES DE NOTIFICATIONS ===== */
.notifications-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.notifications-header h1 {
    margin: 0;
    color: var(--text-primary);
    font-size: 28px;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notification-item {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s;
}

.notification-item.unread {
    border-left-color: #e53e3e;
    background: #fff5f5;
}

.notification-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.notification-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.notification-time {
    font-size: 14px;
    color: var(--text-muted);
}

.notification-content {
    color: var(--text-secondary);
    line-height: 1.5;
}

.notification-sender {
    color: var(--primary-color);
    font-weight: 500;
}

.no-notifications {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-notifications-icon {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Badge pour notifications */
.badge {
    background: #e53e3e;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
}

/* ===== STYLES DE VIEW PROFILE ===== */
.profile-view-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 15px;
    width: 100%;
}

/* Header View Profile */
.profile-view-header {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    text-align: center;
}

.profile-view-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: bold;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.1);
}

.profile-view-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-view-info h1 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 10px;
    word-break: break-word;
}

/* Stats View Profile */
.profile-view-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.profile-view-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.profile-view-stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
}

.profile-view-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-view-stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Status Badge View Profile */
.profile-view-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
    background: rgba(56, 161, 105, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(56, 161, 105, 0.3);
}

/* Contenu View Profile */
.profile-view-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Cartes View Profile */
.profile-view-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.profile-view-card h2 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Galerie View Profile */
.profile-view-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.profile-view-photo {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.profile-view-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.profile-view-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-view-photo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Biographie View Profile */
.profile-view-bio {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 12px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-top: 10px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.profile-view-bio.empty {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
}

/* Informations Grid View Profile */
.profile-view-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.profile-view-info-item {
    background: var(--bg-tertiary);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.profile-view-info-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-view-info-value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

/* Centres d'intérêt View Profile */
.profile-view-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.profile-view-interest {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* Actions View Profile */
.profile-view-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Boutons View Profile */
.profile-view-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    text-align: center;
    touch-action: manipulation;
}

.profile-view-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.profile-view-btn-primary:hover,
.profile-view-btn-primary:active {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.profile-view-btn-secondary {
    background: rgba(30, 41, 59, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.profile-view-btn-secondary:hover,
.profile-view-btn-secondary:active {
    background: rgba(30, 41, 59, 0.1);
}

.profile-view-btn-danger {
    background: rgba(245, 101, 101, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(245, 101, 101, 0.3);
}

.profile-view-btn-danger:hover,
.profile-view-btn-danger:active {
    background: rgba(245, 101, 101, 0.2);
}

/* Navigation View Profile */
.profile-view-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.profile-view-back {
    background: rgba(102, 126, 234, 0.1);
    border: none;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.profile-view-back:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateX(-2px);
}

/* Alertes View Profile */
.profile-view-alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid transparent;
    backdrop-filter: blur(10px);
    word-break: break-word;
}

.profile-view-alert-warning {
    background: rgba(237, 137, 54, 0.1);
    color: var(--warning-color);
    border-left-color: var(--warning-color);
}

.profile-view-alert-success {
    background: rgba(72, 187, 120, 0.1);
    color: var(--success-color);
    border-left-color: var(--success-color);
}

/* ===== STYLES DE REGISTER ===== */
.register-wrapper {
    max-width: 800px;
}

.register-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

/* Progress Bar Register */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.progress-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.progress-step.active .step-number {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.step-label {
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.progress-step.active .step-label {
    color: var(--primary-color);
    font-weight: 500;
}

/* Form Sections Register */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
}

/* .section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
} */

.section-icon {
    width: 44px;
    height: 44px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Form Grid Register */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-label .required {
    color: var(--danger-color);
    margin-left: 2px;
}

/* Radio Group Register */
.radio-group {
    display: flex;
    gap: 20px;
}

.radio-option {
    flex: 1;
}

.radio-input {
    display: none;
}

.radio-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.radio-label:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.radio-input:checked + .radio-label {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
}

.radio-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.radio-input:checked + .radio-label .radio-icon {
    color: var(--primary-color);
}

.radio-text {
    font-weight: 500;
    color: var(--text-secondary);
}

.radio-input:checked + .radio-label .radio-text {
    color: var(--text-primary);
}

/* Photos Upload Register */
.photos-upload {
    margin-top: 20px;
}

.upload-area {
    border: 3px dashed var(--border-color);
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-secondary);
    margin-bottom: 30px;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.upload-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.1);
}

.upload-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.upload-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.upload-subtext {
    color: var(--text-muted);
    margin-bottom: 5px;
    font-size: 14px;
}

.upload-info {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* Photos Preview Register */
.photos-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.photo-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.photo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-item.profile-photo {
    border: 3px solid var(--success-color);
}

.photo-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--success-color);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.photo-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.photo-item:hover .photo-actions {
    opacity: 1;
}

.photo-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.photo-action:hover {
    background: var(--danger-color);
    transform: scale(1.1);
}

.set-profile-btn {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(56, 161, 105, 0.9);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
}

.photo-item:hover .set-profile-btn {
    opacity: 1;
}

.set-profile-btn:hover {
    background: var(--success-color);
}

/* Photo Stats */
.photo-stats {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.photo-stats .stats-text {
    color: var(--text-secondary);
    font-size: 14px;
}

.photo-stats .stats-highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* Biographie Counter Register */
.biographie-counter {
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.char-count {
    font-weight: 600;
}

.char-count.limit-reached {
    color: var(--danger-color);
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: var(--danger-color);
    transition: all 0.3s;
}

.strength-fill.weak { width: 33%; background: var(--danger-color); }
.strength-fill.medium { width: 66%; background: var(--warning-color); }
.strength-fill.strong { width: 100%; background: var(--success-color); }

.strength-text {
    font-size: 12px;
    color: var(--text-muted);
}

/* Terms and Conditions */
.terms-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
}

.terms-checkbox {
    margin-top: 4px;
}

.terms-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.terms-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* Login Link Register */
.login-link {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.login-link p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.btn-login {
    display: inline-block;
    padding: 12px 32px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-login:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

/* ===== MODAL PHOTO (pour view profile) ===== */
.photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(10px);
}

.photo-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.photo-modal-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.photo-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.photo-modal-prev {
    left: -70px;
}

.photo-modal-next {
    right: -70px;
}

.photo-modal-counter {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

/* ===== LOADING ANIMATION COMMUNE ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

/* ===== ANIMATIONS ===== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateX(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive pour tablettes et mobiles */
@media (max-width: 768px) {
    /* Conversation Responsive */
    .conversation-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .message {
        max-width: 85%;
    }
    
    #message-form {
        flex-direction: column;
    }
    
    .btn-send {
        width: 100%;
        height: 50px;
    }
    
    /* Dashboard Responsive */
    .dashboard-header {
        padding: 16px;
        flex-direction: column;
        gap: 16px;
    }

    /* .hero-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    } */

    .hero-stats {
        width: 100%;
        justify-content: center;
    }

    /* .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    } */

    .partner-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-skip, .btn-chat {
        width: 100%;
    }

    .conversations-grid {
        grid-template-columns: 1fr;
    }

    .restricted-view {
        padding: 32px 24px;
        margin: 20px;
    }
    
    /* Profil Responsive */
    .profile-container {
        padding: 20px;
    }
    
    .profile-header {
        flex-direction: row;
        text-align: left;
        padding: 25px;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
    
    .profile-info {
        width: auto;
        flex: 1;
    }
    
    .profile-info h1 {
        font-size: 28px;
    }
    
    .profile-stats {
        grid-template-columns: repeat(4, auto);
        gap: 20px;
        justify-content: flex-start;
    }
    
    .stat-item {
        align-items: flex-start;
        text-align: left;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .profile-card {
        padding: 25px;
    }
    
    .profile-card h2 {
        font-size: 20px;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btn {
        width: auto;
        padding: 14px 24px;
    }
    
    .action-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .modal-actions {
        flex-direction: row;
    }
}

@media (max-width: 480px) {
    .counters {
        flex-direction: column;
        gap: 10px;
    }
    
    .decision-buttons {
        flex-direction: column;
    }
    
    .btn-decision {
        width: 100%;
    }
    
    .partner-card {
        padding: 24px;
    }

    .partner-avatar {
        width: 100px;
        height: 100px;
        font-size: 36px;
    }

    .user-avatar {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    
    /* Améliorations pour très petits écrans */
    .profile-header {
        padding: 15px;
    }
    
    .profile-avatar {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .profile-info h1 {
        font-size: 22px;
    }
    
    .profile-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .photo-gallery {
        gap: 8px;
    }
    
    .profile-card {
        padding: 15px;
    }
    
    .modal-content {
        padding: 10px;
    }
    
    .modal-header,
    .modal-body {
        padding: 15px;
    }
}

/* Responsive pour desktop */
@media (min-width: 992px) {
    .profile-main {
        display: grid;
        grid-template-columns: 1fr 350px;
        gap: 25px;
    }
    
    .gallery-card {
        grid-column: 1 / -1;
    }
    
    .sidebar {
        order: 0;
    }
    
    .profile-stats {
        grid-template-columns: repeat(4, auto);
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Correction pour l'input file sur mobile */
input[type="file"] {
    font-size: 16px !important;
}

/* Amélioration du scroll sur mobile */
.modal-content {
    -webkit-overflow-scrolling: touch;
}

/* Correction pour le texte des boutons */
.btn span {
    display: inline;
}

/* Amélioration de la lisibilité sur mobile */
body {
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-weight: 600;
}

/* Correction des marges sur très petits écrans */
@media (max-width: 320px) {
    .profile-container {
        padding: 10px;
    }
    
    .profile-header,
    .profile-card {
        padding: 12px;
    }
    
    .btn {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .form-control {
        padding: 12px;
        font-size: 16px;
    }
}

/* Support pour iOS */
@supports (-webkit-touch-callout: none) {
    .modal-content {
        margin-bottom: env(safe-area-inset-bottom);
    }
    
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Prévenir le zoom sur les inputs iOS */
@media screen and (max-width: 768px) {
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}