/**
 * Styles du portail prestataires OCYTOMILK
 * Fichier CSS unifié
 */

/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
    --presta-primary: #FF3366;
    --presta-primary-dark: #cc2952;
    --presta-secondary: #2c3e50;
    --presta-success: #27ae60;
    --presta-success-dark: #219a52;
    --presta-warning: #f39c12;
    --presta-danger: #e74c3c;
    --presta-gray-light: #ecf0f1;
    --presta-gray: #7f8c8d;
    --presta-gray-dark: #34495e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Abel', sans-serif;
    background: #f5f6fa;
    color: #2c3e50;
    line-height: 1.5;
}

/* ============================================
   PAGE DE CONNEXION
   ============================================ */
body.login-page {
    background: linear-gradient(135deg, var(--presta-primary) 0%, var(--presta-primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.login-header p {
    opacity: 0.9;
    font-size: 1.1em;
}

.login-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.presta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 15px;
}

/* ============================================
   FORMULAIRES
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Abel', sans-serif;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--presta-primary);
}

/* ============================================
   BOUTONS
   ============================================ */
.btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--presta-primary) 0%, var(--presta-primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Abel', sans-serif;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 51, 102, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-presta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: 'Abel', sans-serif;
    font-size: 15px;
}

.btn-presta-primary {
    background: var(--presta-primary);
    color: white;
}

.btn-presta-primary:hover {
    background: var(--presta-primary-dark);
}

.btn-presta-success {
    background: var(--presta-success);
    color: white;
}

.btn-presta-success:hover {
    background: var(--presta-success-dark);
}

.btn-presta-outline {
    background: white;
    color: var(--presta-primary);
    border: 2px solid var(--presta-primary);
}

.btn-presta-outline:hover {
    background: var(--presta-primary);
    color: white;
}

.btn-clear {
    padding: 8px 16px;
    background: var(--presta-danger);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Abel', sans-serif;
    font-size: 14px;
}

.btn-clear:hover {
    background: #c0392b;
}

/* ============================================
   MESSAGES & ALERTES
   ============================================ */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #f5c6cb;
}

.blocked-message {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.blocked-message h3 {
    margin: 0 0 10px 0;
}

.countdown {
    font-size: 24px;
    font-weight: bold;
    margin-top: 10px;
}

.lock-message {
    background: #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.legal-notice {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.5;
}

/* ============================================
   HEADER
   ============================================ */
.presta-header {
    background: linear-gradient(135deg, var(--presta-primary) 0%, var(--presta-primary-dark) 100%);
    color: white;
    padding: 15px 0;
    margin-bottom: 30px;
}

.presta-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.presta-logo {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.presta-logo img {
    height: 40px;
}

.presta-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.presta-nav a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.presta-nav a:hover {
    opacity: 1;
}

.presta-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
}

/* ============================================
   CONTENEUR PRINCIPAL
   ============================================ */
.presta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* ============================================
   CARDS SESSION
   ============================================ */
.session-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.session-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.session-card-header {
    background: linear-gradient(135deg, var(--presta-primary) 0%, var(--presta-primary-dark) 100%);
    color: white;
    padding: 20px;
}

.session-card-header h3 {
    margin: 0;
    font-size: 1.3em;
}

.session-card-body {
    padding: 20px;
}

.session-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.session-info-item {
    display: flex;
    flex-direction: column;
}

.session-info-label {
    font-size: 12px;
    color: var(--presta-gray);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.session-info-value {
    font-size: 15px;
    color: var(--presta-secondary);
    font-weight: 500;
}

.session-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid var(--presta-gray-light);
}

/* ============================================
   BADGES STATUT CONTRAT
   ============================================ */
.contrat-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.contrat-status.non-signe {
    background: #ffeaa7;
    color: #b7950b;
}

.contrat-status.signe {
    background: #d4edda;
    color: #155724;
}

/* ============================================
   ÉTAT VIDE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--presta-gray);
}

.empty-state .material-symbols-outlined {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--presta-secondary);
    margin-bottom: 10px;
}

/* ============================================
   RÉSUMÉ SESSION (page contrat)
   ============================================ */
.session-summary {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.session-summary h2 {
    color: var(--presta-primary);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--presta-primary);
}

.session-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.session-summary-item label {
    display: block;
    font-size: 12px;
    color: var(--presta-gray);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.session-summary-item span {
    font-size: 15px;
    color: var(--presta-secondary);
    font-weight: 500;
}

/* ============================================
   MESSAGE DÉJÀ SIGNÉ
   ============================================ */
.already-signed {
    background: #d4edda;
    border: 1px solid #28a745;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
}

.already-signed h2 {
    color: #155724;
    margin-bottom: 15px;
}

.already-signed p {
    color: #155724;
    margin-bottom: 20px;
}

/* ============================================
   LAYOUT SIGNATURE
   ============================================ */
.signature-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 30px;
    align-items: start;
}

/* ============================================
   VIEWER PDF
   ============================================ */
.pdf-viewer-container {
    background: var(--presta-secondary);
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

.pdf-viewer-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    color: white;
}

.pdf-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.pdf-navigation button {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Abel', sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pdf-navigation button:disabled {
    background: var(--presta-gray);
    cursor: not-allowed;
}

.pdf-navigation button:hover:not(:disabled) {
    background: #2980b9;
}

#pdf-canvas-container {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    max-height: 700px;
    overflow-y: auto;
}

#pdf-canvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

/* ============================================
   BARRE DE PROGRESSION
   ============================================ */
.scroll-progress {
    margin-top: 15px;
    background: var(--presta-gray-dark);
    border-radius: 10px;
    overflow: hidden;
}

.scroll-progress-bar {
    height: 8px;
    background: linear-gradient(90deg, var(--presta-danger), var(--presta-warning), var(--presta-success));
    width: 0%;
    transition: width 0.3s ease;
}

.scroll-progress-text {
    color: white;
    font-size: 13px;
    text-align: center;
    margin-top: 8px;
}

/* ============================================
   PANNEAU DE SIGNATURE
   ============================================ */
.signature-panel {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

.signature-step {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--presta-gray-light);
}

.signature-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #bdc3c7;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.step-number.active {
    background: var(--presta-primary);
}

.step-number.completed {
    background: var(--presta-success);
}

.step-title {
    font-weight: 600;
    color: var(--presta-secondary);
}

.step-subtitle {
    font-size: 13px;
    color: var(--presta-gray);
}

/* ============================================
   CANVAS DE SIGNATURE
   ============================================ */
.signature-canvas-container {
    position: relative;
    margin-bottom: 10px;
}

.signature-canvas {
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    cursor: crosshair;
    touch-action: none;
    background: #fafafa;
    display: block;
}

.signature-canvas.signed {
    border-color: var(--presta-success);
    border-style: solid;
}

.paraphe-canvas {
    width: 150px;
    height: 150px;
}

.signature-full-canvas {
    width: 100%;
    height: 150px;
}

.canvas-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* ============================================
   BOUTON SOUMETTRE
   ============================================ */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--presta-success) 0%, var(--presta-success-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Abel', sans-serif;
    transition: all 0.2s;
    display: none;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(39, 174, 96, 0.4);
}

.submit-btn.visible {
    display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.presta-footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--presta-gray);
    font-size: 14px;
    border-top: 1px solid var(--presta-gray-light);
    margin-top: 40px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .signature-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .presta-header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .presta-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .session-actions {
        flex-direction: column;
    }
    
    .btn-presta {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .pdf-viewer-header {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 25px;
    }
    
    .login-header h1 {
        font-size: 2em;
    }
}

/* ============================================
   PAGE MOT DE PASSE
   ============================================ */
.password-container {
    max-width: 500px;
}

.account-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid var(--presta-primary);
}

.account-info p {
    margin: 0;
}

.account-info p:first-child {
    font-size: 18px;
    margin-bottom: 5px;
}

.account-info p:last-child {
    color: var(--presta-gray);
}

.password-form {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.info-text {
    color: var(--presta-gray);
    font-size: 14px;
    margin-bottom: 20px;
}

.btn-generate {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    font-size: 16px;
    background: var(--presta-primary);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Abel', sans-serif;
    transition: background 0.2s;
}

.btn-generate:hover {
    background: var(--presta-primary-dark);
}

.success-box {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 12px;
    padding: 25px;
}

.success-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #155724;
    margin: 0 0 15px 0;
}

.success-box h3 .material-symbols-outlined {
    color: #28a745;
}

.new-password-display {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.new-password-display .password {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    color: var(--presta-primary);
    letter-spacing: 2px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    word-break: break-all;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--presta-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Abel', sans-serif;
    font-size: 14px;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: var(--presta-primary-dark);
}

.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #ffc107;
}

.warning-box .material-symbols-outlined {
    color: #856404;
    flex-shrink: 0;
}

.warning-box div {
    color: #856404;
    font-size: 14px;
}

.error-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.error-box .material-symbols-outlined {
    color: #dc3545;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--presta-gray);
    text-decoration: none;
}

.back-link:hover {
    color: var(--presta-primary);
}

/* ============================================
   LAYOUT PRINCIPAL - CONTENEUR MAX-WIDTH
   ============================================ */
.main-content {
    min-height: calc(100vh - 70px - 100px); /* header + footer */
}

.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.presta-footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--presta-gray);
    font-size: 14px;
    margin-top: 40px;
    border-top: 1px solid var(--presta-gray-light);
    background: white;
}

.presta-footer .footer-sub {
    margin-top: 5px;
    opacity: 0.7;
}

/* ============================================
   TABLEAU DE BORD
   ============================================ */
.dashboard-welcome {
    margin-bottom: 30px;
}

.dashboard-welcome h1 {
    margin: 0 0 10px 0;
    font-size: 2em;
}

.dashboard-welcome p {
    color: var(--presta-gray);
    margin: 0;
}

.dashboard-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 250px;
    flex: 1;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.stat-card.stat-warning {
    border-left: 4px solid var(--presta-warning);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--presta-gray-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon .material-symbols-outlined {
    font-size: 32px;
    color: var(--presta-primary);
}

.stat-warning .stat-icon {
    background: #fff3cd;
}

.stat-warning .stat-icon .material-symbols-outlined {
    color: var(--presta-warning);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--presta-secondary);
    line-height: 1;
}

.stat-label {
    color: var(--presta-gray);
    margin-top: 5px;
}

.dashboard-actions h2 {
    margin: 0 0 20px 0;
    font-size: 1.3em;
    color: var(--presta-secondary);
}

.quick-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: var(--presta-secondary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s;
}

.quick-link:hover {
    background: var(--presta-primary);
    color: white;
}

.quick-link .material-symbols-outlined {
    font-size: 24px;
}

@media (max-width: 768px) {
    .dashboard-stats {
        flex-direction: column;
    }
    
    .stat-card {
        min-width: auto;
    }
    
    .quick-links {
        flex-direction: column;
    }
    
    .quick-link {
        justify-content: center;
    }
}

/* ============================================
   MENU UTILISATEUR (DROPDOWN)
   ============================================ */
.presta-user-menu {
    position: relative;
}

.presta-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Abel', sans-serif;
    font-size: 15px;
    transition: background 0.2s;
}

.presta-user-btn:hover {
    background: rgba(255,255,255,0.25);
}

.presta-user-btn .arrow {
    font-size: 18px;
    transition: transform 0.2s;
}

.presta-user-dropdown.show + .presta-user-btn .arrow,
.presta-user-menu:has(.show) .arrow {
    transform: rotate(180deg);
}

.presta-user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
}

.presta-user-dropdown.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.presta-user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    color: var(--presta-secondary);
    text-decoration: none;
    transition: background 0.2s;
}

.presta-user-dropdown a:hover {
    background: var(--presta-gray-light);
}

.presta-user-dropdown a .material-symbols-outlined {
    font-size: 20px;
    color: var(--presta-gray);
}

.presta-user-dropdown a:hover .material-symbols-outlined {
    color: var(--presta-primary);
}

.presta-user-dropdown hr {
    border: none;
    border-top: 1px solid var(--presta-gray-light);
    margin: 5px 0;
}

.presta-user-dropdown a.logout {
    color: var(--presta-danger);
}

.presta-user-dropdown a.logout .material-symbols-outlined {
    color: var(--presta-danger);
}

/* ============================================
   LIEN MOT DE PASSE OUBLIE (CONNEXION)
   ============================================ */
.forgot-password-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.forgot-password-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ============================================
   NOTIFICATIONS EMAIL (MOT DE PASSE)
   ============================================ */
.email-sent-notice {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-sent-notice .material-symbols-outlined {
    color: #155724;
}

.email-sent-notice span {
    color: #155724;
}

.email-warning-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-warning-notice .material-symbols-outlined {
    color: #856404;
}

.email-warning-notice span {
    color: #856404;
}

/* ============================================
   PAGE PROFIL
   ============================================ */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.profile-header h1 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.profile-section h2 {
    color: var(--presta-primary);
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--presta-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3em;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.profile-item {
    display: flex;
    flex-direction: column;
}

.profile-item.full-width {
    grid-column: 1 / -1;
}

.profile-item label {
    font-size: 12px;
    color: var(--presta-gray);
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 500;
}

.profile-item span {
    font-size: 15px;
    color: var(--presta-secondary);
}

.badge-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px !important;
    font-weight: 500;
}

.badge-type.formateur {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-type.intervenant {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Liste des contrats */
.contrats-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contrat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 15px;
}

.contrat-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contrat-info strong {
    color: var(--presta-secondary);
}

.contrat-dates,
.contrat-ref {
    font-size: 13px;
    color: var(--presta-gray);
}

.contrat-status-action {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

.empty-state-small {
    text-align: center;
    padding: 30px;
    color: var(--presta-gray);
}

.empty-state-small .material-symbols-outlined {
    font-size: 48px;
    opacity: 0.5;
    display: block;
    margin-bottom: 10px;
}

/* ============================================
   PAGE MODIFIER PROFIL
   ============================================ */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h1 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.edit-form {
    max-width: 900px;
}

.form-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.form-section h2 {
    color: var(--presta-primary);
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
}

.section-info {
    color: var(--presta-gray);
    font-size: 13px;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--presta-gray-light);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group input.readonly {
    background: #f5f5f5;
    color: #888;
    cursor: not-allowed;
}

.form-group small {
    font-size: 11px;
    color: var(--presta-gray);
    margin-top: 4px;
}

.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Abel', sans-serif;
    transition: border-color 0.2s;
    resize: vertical;
    min-height: 100px;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--presta-primary);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.alert-danger ul {
    margin: 0;
    padding-left: 20px;
}

/* ============================================
   PAGE MOT DE PASSE OUBLIE
   ============================================ */
body.forgot-password-page {
    font-family: 'Abel', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body.forgot-password-page .container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 420px;
}

body.forgot-password-page .logo {
    text-align: center;
    margin-bottom: 30px;
}

body.forgot-password-page .logo h1 {
    font-size: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.forgot-password-page .logo p {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 5px;
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: all 0.3s;
}

.step-dot.active {
    background: #667eea;
    transform: scale(1.2);
}

.step-dot.done {
    background: #27ae60;
}

body.forgot-password-page h2 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 22px;
}

body.forgot-password-page .subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.5;
}

.code-input {
    font-size: 28px !important;
    text-align: center;
    letter-spacing: 8px;
    font-family: monospace;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Abel', sans-serif;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    font-family: 'Abel', sans-serif;
}

.btn-secondary:hover {
    background: #f0f4ff;
}

.message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.message .material-symbols-outlined {
    font-size: 20px;
    flex-shrink: 0;
}

body.forgot-password-page .back-link {
    display: block;
    text-align: center;
    margin-top: 25px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

body.forgot-password-page .back-link:hover {
    color: #764ba2;
}

.icon-main {
    font-size: 48px;
    color: #667eea;
    text-align: center;
    display: block;
    margin-bottom: 15px;
}

.phone-display {
    background: #f0f4ff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.phone-display .material-symbols-outlined {
    font-size: 24px;
    color: #667eea;
    vertical-align: middle;
}

.phone-display span {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-left: 10px;
}

.timer {
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 15px;
}

.timer strong {
    color: #e74c3c;
}

.success-icon {
    font-size: 64px;
    color: #27ae60;
    display: block;
    text-align: center;
    margin-bottom: 20px;
}

/* ============================================
   RESPONSIVE - PAGES PROFIL & MODIFIER
   ============================================ */
@media (max-width: 768px) {
    .profile-header,
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .profile-actions {
        width: 100%;
    }
    
    .profile-actions .btn-presta {
        flex: 1;
        justify-content: center;
    }
    
    .contrat-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contrat-status-action {
        width: 100%;
        justify-content: space-between;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn-presta {
        width: 100%;
        justify-content: center;
    }
}
