/* auth.css - Styles pour les pages de connexion et inscription */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ================== VIDÉO EN ARRIÈRE-PLAN ================== */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    filter: brightness(0.5);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* ================== HEADER ================== */
header {
    background-image: url("../images/marvel.jpg");
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

header h1 {
    color: white;
    text-align: center;
    padding: 30px;
    margin: 0;
    font-family: 'Audiowide', cursive;
    font-size: 2rem;
    letter-spacing: 1rem;
}

.encadrer {
    padding: 7px;
    color: white;
    font-family: 'Audiowide', cursive;
}

/* ================== ICÔNE ACCUEIL ================== */
.home-icon-container {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 20;
}

.home-icon-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.home-icon-link:hover {
    background: rgba(213, 2, 65, 0.3);
    border-color: #D50241;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(213, 2, 65, 0.5);
}

.home-icon {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #D50241, #ff1744);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: transform 0.3s ease;
}

.home-icon-link:hover .home-icon {
    transform: rotate(360deg);
}

/* ================== NAVIGATION ================== */
.menu {
    height: 60px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-top: #D50241 6px solid;
    border-bottom: #D50241 6px solid;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

ul {
    display: flex;
    justify-content: center;
    padding: 10px;
    gap: 70px;
    list-style: none;
}

.menu a {
    text-decoration: none;
    color: black;
    font-family: 'Space Mono', sans-serif;
    transition: all 0.3s ease;
}

.livre:hover,
#musique:hover,
#films:hover,
#jeux:hover {
    border-bottom: 2px solid #0890E4;
}

/* ================== ALERTES ================== */
.alert-box {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: 'Space Mono', monospace;
    font-size: 0.9em;
    text-align: center;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #66bb6a;
}

/* ================== CONTAINERS ================== */
.login-container,
.signup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 40px 20px;
    position: relative;
    z-index: 5;
}

.login-box,
.signup-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 50px 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(213, 2, 65, 0.3);
}

.login-header,
.signup-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header h2,
.signup-header h2 {
    font-family: 'Audiowide', cursive;
    color: #D50241;
    font-size: 2em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.login-header p,
.signup-header p {
    font-family: 'Space Mono', monospace;
    color: #666;
    font-size: 0.95em;
}

/* ================== FORMULAIRE ================== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: 'Space Mono', monospace;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95em;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #D50241;
    box-shadow: 0 0 0 3px rgba(213, 2, 65, 0.1);
}

.form-group input::placeholder {
    color: #aaa;
}

/* ================== FORCE DU MOT DE PASSE ================== */
.password-strength {
    margin-top: 8px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    display: none;
}

.password-strength.visible {
    display: block;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.8em;
    margin-top: 5px;
    display: none;
}

.password-strength-text.visible {
    display: block;
}

/* ================== OPTIONS DU FORMULAIRE ================== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.85em;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Mono', monospace;
    color: #666;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #D50241;
}

.forgot-password {
    color: #D50241;
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-weight: 600;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #ff1744;
    text-decoration: underline;
}

/* ================== CONDITIONS ================== */
.terms-conditions {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 0.85em;
}

.terms-conditions input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: #D50241;
    flex-shrink: 0;
}

.terms-conditions label {
    font-family: 'Space Mono', monospace;
    color: #666;
    line-height: 1.5;
}

.terms-conditions a {
    color: #D50241;
    text-decoration: none;
    font-weight: 600;
}

.terms-conditions a:hover {
    text-decoration: underline;
}

/* ================== BOUTONS ================== */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #D50241, #ff1744);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(213, 2, 65, 0.3);
    margin-bottom: 20px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(213, 2, 65, 0.5);
    background: linear-gradient(45deg, #ff1744, #D50241);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

/* ================== SÉPARATEUR ================== */
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #999;
    font-family: 'Space Mono', monospace;
    font-size: 0.85em;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.separator span {
    padding: 0 15px;
}

/* ================== LIENS ================== */
.login-link,
.signup-link {
    text-align: center;
    font-family: 'Space Mono', monospace;
    color: #666;
    font-size: 0.9em;
}

.login-link a,
.signup-link a {
    color: #D50241;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-link a:hover,
.signup-link a:hover {
    color: #ff1744;
    text-decoration: underline;
}

/* ================== MESSAGES D'ERREUR ================== */
.error-message {
    color: #d32f2f;
    font-size: 0.8em;
    margin-top: 5px;
    font-family: 'Space Mono', monospace;
    display: none;
}

.error-message.visible {
    display: block;
}

/* ================== MODALES ================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(45deg, #D50241, #ff1744);
    color: white;
    padding: 20px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: 'Audiowide', cursive;
    font-size: 1.3em;
    margin: 0;
}

.close {
    color: white;
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
}

.close:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px 30px;
    overflow-y: auto;
    flex: 1;
}

.modal-body .form-group {
    margin-bottom: 12px;
}

.modal-body .form-group label {
    display: block;
    font-family: 'Space Mono', monospace;
    color: #333;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 5px;
}

.modal-body .form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9em;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.modal-body .form-group input:focus {
    outline: none;
    border-color: #D50241;
    box-shadow: 0 0 0 2px rgba(213, 2, 65, 0.1);
}

.form-divider {
    border-top: 2px dashed rgba(213, 2, 65, 0.2);
    margin: 15px 0 12px 0;
    padding-top: 12px;
}

.form-divider-title {
    font-family: 'Audiowide', cursive;
    color: #D50241;
    font-size: 1em;
    margin-bottom: 8px;
}

.form-note {
    font-family: 'Space Mono', monospace;
    font-size: 0.75em;
    color: #666;
    margin-top: 3px;
    font-style: italic;
    line-height: 1.3;
}

.modal-footer {
    padding: 15px 30px;
    display: flex;
    gap: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    border-radius: 0 0 20px 20px;
}

.modal-footer .btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-footer .btn-primary {
    background: linear-gradient(45deg, #D50241, #ff1744);
    color: white;
    box-shadow: 0 4px 15px rgba(213, 2, 65, 0.3);
}

.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(213, 2, 65, 0.5);
}

.modal-footer .btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.modal-footer .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.modal-footer .btn-danger {
    background: transparent;
    color: #d32f2f;
    border: 2px solid #d32f2f;
}

.modal-footer .btn-danger:hover {
    background: #d32f2f;
    color: white;
    transform: translateY(-2px);
}

.warning-text {
    background: #fff3e0;
    border-left: 4px solid #f57c00;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-family: 'Space Mono', monospace;
    font-size: 0.85em;
    color: #e65100;
    line-height: 1.4;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {
    .home-icon-container {
        left: 15px;
        top: 20px;
    }

    .home-icon-link span {
        display: none;
    }

    .home-icon-link {
        padding: 10px;
        border-radius: 50%;
    }

    header h1 {
        font-size: 1.5rem;
        letter-spacing: 0.5rem;
        padding: 20px 60px;
    }

    ul {
        gap: 20px;
        flex-wrap: wrap;
    }

    .login-box,
    .signup-box {
        padding: 40px 30px;
    }

    .login-header h2,
    .signup-header h2 {
        font-size: 1.6em;
    }

    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Responsive pour modales */
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.1em;
    }
    
    .modal-body {
        padding: 15px 20px;
    }
    
    .modal-footer {
        padding: 12px 20px;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .login-box,
    .signup-box {
        padding: 30px 20px;
    }

    .login-header h2,
    .signup-header h2 {
        font-size: 1.4em;
    }
}

/* ================== PAGE MON COMPTE ================== */
.account-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 40px 20px;
    position: relative;
    z-index: 5;
}

.account-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 50px 40px;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(213, 2, 65, 0.3);
}

.account-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid rgba(213, 2, 65, 0.2);
    padding-bottom: 20px;
}

.account-header h2 {
    font-family: 'Audiowide', cursive;
    color: #D50241;
    font-size: 2em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.account-header p {
    font-family: 'Space Mono', monospace;
    color: #666;
    font-size: 0.95em;
}

.user-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #D50241, #ff1744);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(213, 2, 65, 0.3);
}

.info-section {
    margin-bottom: 30px;
}

.info-section h3 {
    font-family: 'Audiowide', cursive;
    color: #D50241;
    font-size: 1.3em;
    margin-bottom: 20px;
    border-left: 4px solid #D50241;
    padding-left: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-item {
    background: rgba(0, 0, 0, 0.02);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-label {
    font-family: 'Space Mono', monospace;
    color: #666;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.info-value {
    font-family: 'Poppins', sans-serif;
    color: #333;
    font-size: 1em;
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-family: 'Space Mono', monospace;
    font-size: 0.85em;
    font-weight: bold;
}

.status-actif {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-inactif {
    background: #ffebee;
    color: #c62828;
}

.status-suspendu {
    background: #fff3e0;
    color: #e65100;
}

.status-en_retard {
    background-color: #ff4444;
    color: #fff;
    font-weight: 600;
}

.emprunt-card.en-retard {
    border-left: 4px solid #ff4444;
}

.retard-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff0f0;
    border: 1px solid #ffcccc;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #cc0000;
    font-weight: 500;
}

.retard-banner svg { flex-shrink: 0; }
.stat-card.stat-retard .stat-number { color: #ff4444; }
.alerte-retards-globale {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff0f0;
    border: 1px solid #ffcccc;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #cc0000;
    font-weight: 500;
}

.role-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-family: 'Space Mono', monospace;
    font-size: 0.85em;
    font-weight: bold;
    background: linear-gradient(45deg, #D50241, #ff1744);
    color: white;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(45deg, #D50241, #ff1744);
    color: white;
    box-shadow: 0 4px 15px rgba(213, 2, 65, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(213, 2, 65, 0.5);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.btn-danger {
    background: transparent;
    color: #d32f2f;
    border: 2px solid #d32f2f;
}

.btn-danger:hover {
    background: #d32f2f;
    color: white;
    transform: translateY(-2px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(213, 2, 65, 0.1), rgba(255, 23, 68, 0.05));
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(213, 2, 65, 0.2);
}

.stat-number {
    font-family: 'Audiowide', cursive;
    color: #D50241;
    font-size: 2em;
    margin-bottom: 5px;
}

.stat-label {
    font-family: 'Space Mono', monospace;
    color: #666;
    font-size: 0.85em;
}

/* SECTION EMPRUNTS */
.emprunts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
}

.emprunt-card {
    background: rgba(0, 0, 0, 0.02);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(213, 2, 65, 0.1);
    transition: all 0.3s ease;
}

.emprunt-card:hover {
    border-color: rgba(213, 2, 65, 0.3);
    box-shadow: 0 4px 15px rgba(213, 2, 65, 0.1);
}

.emprunt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.emprunt-title {
    font-family: 'Audiowide', cursive;
    color: #D50241;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.emprunt-author {
    font-family: 'Space Mono', monospace;
    color: #666;
    font-size: 0.9em;
}

.emprunt-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-family: 'Space Mono', monospace;
    font-size: 0.8em;
    font-weight: bold;
}

.status-en_cours {
    background: #fff3e0;
    color: #e65100;
}

.status-retourne {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-en_retard {
    background: #ffebee;
    color: #c62828;
}

.emprunt-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.emprunt-detail-item {
    font-family: 'Space Mono', monospace;
    font-size: 0.85em;
}

.emprunt-detail-label {
    color: #999;
    margin-bottom: 3px;
}

.emprunt-detail-value {
    color: #333;
    font-weight: 600;
}

.emprunt-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.85em;
    border-radius: 8px;
}

.no-emprunts {
    text-align: center;
    padding: 40px;
    color: #999;
    font-family: 'Space Mono', monospace;
}

.no-emprunts-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

/* BADGES TYPE MEDIA */
.media-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    margin-left: 10px;
}

.badge-livre {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-film {
    background: #f3e5f5;
    color: #7b1fa2;
}

.badge-musique {
    background: #fff3e0;
    color: #f57c00;
}

        .account-container {
            display: flex;
            justify-content: center;
            align-items: center;
            flex: 1;
            padding: 40px 20px;
            position: relative;
            z-index: 5;
        }

        .account-box {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 50px 40px;
            width: 100%;
            max-width: 900px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            border: 2px solid rgba(213, 2, 65, 0.3);
        }

        .account-header {
            text-align: center;
            margin-bottom: 40px;
            border-bottom: 2px solid rgba(213, 2, 65, 0.2);
            padding-bottom: 20px;
        }

        .account-header h2 {
            font-family: 'Audiowide', cursive;
            color: #D50241;
            font-size: 2em;
            margin-bottom: 10px;
            text-transform: uppercase;
        }

        .account-header p {
            font-family: 'Space Mono', monospace;
            color: #666;
            font-size: 0.95em;
        }

        .user-avatar {
            width: 100px;
            height: 100px;
            background: linear-gradient(135deg, #D50241, #ff1744);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3em;
            margin: 0 auto 20px;
            box-shadow: 0 4px 15px rgba(213, 2, 65, 0.3);
        }

        .info-section {
            margin-bottom: 30px;
        }

        .info-section h3 {
            font-family: 'Audiowide', cursive;
            color: #D50241;
            font-size: 1.3em;
            margin-bottom: 20px;
            border-left: 4px solid #D50241;
            padding-left: 15px;
        }

        .info-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

        .info-item {
            background: rgba(0, 0, 0, 0.02);
            padding: 15px;
            border-radius: 10px;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .info-item.full-width {
            grid-column: 1 / -1;
        }

        .info-label {
            font-family: 'Space Mono', monospace;
            color: #666;
            font-size: 0.85em;
            font-weight: 600;
            text-transform: uppercase;
            margin-bottom: 5px;
        }

        .info-value {
            font-family: 'Poppins', sans-serif;
            color: #333;
            font-size: 1em;
            font-weight: 500;
        }

        .status-badge {
            display: inline-block;
            padding: 5px 15px;
            border-radius: 20px;
            font-family: 'Space Mono', monospace;
            font-size: 0.85em;
            font-weight: bold;
        }

        .status-actif {
            background: #e8f5e9;
            color: #2e7d32;
        }

        .status-inactif {
            background: #ffebee;
            color: #c62828;
        }

        .status-suspendu {
            background: #fff3e0;
            color: #e65100;
        }

        .role-badge {
            display: inline-block;
            padding: 5px 15px;
            border-radius: 20px;
            font-family: 'Space Mono', monospace;
            font-size: 0.85em;
            font-weight: bold;
            background: linear-gradient(45deg, #D50241, #ff1744);
            color: white;
        }

        .action-buttons {
            display: flex;
            gap: 15px;
            margin-top: 30px;
        }

        .btn {
            flex: 1;
            padding: 15px;
            border: none;
            border-radius: 12px;
            font-family: 'Space Mono', monospace;
            font-weight: bold;
            font-size: 0.95em;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-primary {
            background: linear-gradient(45deg, #D50241, #ff1744);
            color: white;
            box-shadow: 0 4px 15px rgba(213, 2, 65, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(213, 2, 65, 0.5);
        }

        .btn-secondary {
            background: rgba(0, 0, 0, 0.05);
            color: #333;
            border: 2px solid rgba(0, 0, 0, 0.1);
        }

        .btn-secondary:hover {
            background: rgba(0, 0, 0, 0.08);
            transform: translateY(-2px);
        }

        .btn-danger {
            background: transparent;
            color: #d32f2f;
            border: 2px solid #d32f2f;
        }

        .btn-danger:hover {
            background: #d32f2f;
            color: white;
            transform: translateY(-2px);
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-bottom: 30px;
        }

        .stat-card {
            background: linear-gradient(135deg, rgba(213, 2, 65, 0.1), rgba(255, 23, 68, 0.05));
            padding: 20px;
            border-radius: 12px;
            text-align: center;
            border: 1px solid rgba(213, 2, 65, 0.2);
        }

        .stat-number {
            font-family: 'Audiowide', cursive;
            color: #D50241;
            font-size: 2em;
            margin-bottom: 5px;
        }

        .stat-label {
            font-family: 'Space Mono', monospace;
            color: #666;
            font-size: 0.85em;
        }

        /* SECTION EMPRUNTS */
        .emprunts-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
            max-height: 500px;
            overflow-y: auto;
        }

        .emprunt-card {
            background: rgba(0, 0, 0, 0.02);
            padding: 20px;
            border-radius: 12px;
            border: 2px solid rgba(213, 2, 65, 0.1);
            transition: all 0.3s ease;
        }

        .emprunt-card:hover {
            border-color: rgba(213, 2, 65, 0.3);
            box-shadow: 0 4px 15px rgba(213, 2, 65, 0.1);
        }

        .emprunt-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 15px;
        }

        .emprunt-title {
            font-family: 'Audiowide', cursive;
            color: #D50241;
            font-size: 1.1em;
            margin-bottom: 5px;
        }

        .emprunt-author {
            font-family: 'Space Mono', monospace;
            color: #666;
            font-size: 0.9em;
        }

        .emprunt-status {
            padding: 5px 15px;
            border-radius: 20px;
            font-family: 'Space Mono', monospace;
            font-size: 0.8em;
            font-weight: bold;
        }

        .status-en_cours {
            background: #fff3e0;
            color: #e65100;
        }

        .status-retourne {
            background: #e8f5e9;
            color: #2e7d32;
        }

        .status-en_retard {
            background: #ffebee;
            color: #c62828;
        }

        .emprunt-details {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid rgba(0, 0, 0, 0.1);
        }

        .emprunt-detail-item {
            font-family: 'Space Mono', monospace;
            font-size: 0.85em;
        }

        .emprunt-detail-label {
            color: #999;
            margin-bottom: 3px;
        }

        .emprunt-detail-value {
            color: #333;
            font-weight: 600;
        }

        .emprunt-actions {
            margin-top: 15px;
            display: flex;
            gap: 10px;
        }

        .btn-small {
            padding: 8px 15px;
            font-size: 0.85em;
            border-radius: 8px;
        }

        .no-emprunts {
            text-align: center;
            padding: 40px;
            color: #999;
            font-family: 'Space Mono', monospace;
        }

        .no-emprunts-icon {
            font-size: 3em;
            margin-bottom: 15px;
        }

        .alert-box {
            padding: 15px 20px;
            border-radius: 12px;
            margin-bottom: 20px;
            font-family: 'Space Mono', monospace;
            font-size: 0.9em;
            text-align: center;
            display: none;
        }

        .alert-success {
            background: #e8f5e9;
            color: #2e7d32;
            border: 2px solid #66bb6a;
        }

        .alert-error {
            background: #ffebee;
            color: #c62828;
            border: 2px solid #ef5350;
        }

        /* BADGES TYPE MEDIA */
        .media-type-badge {
            display: inline-block;
            padding: 3px 10px;
            border-radius: 12px;
            font-size: 0.75em;
            font-weight: bold;
            margin-left: 10px;
        }

        .badge-livre {
            background: #e3f2fd;
            color: #1976d2;
        }

        .badge-film {
            background: #f3e5f5;
            color: #7b1fa2;
        }

        .badge-musique {
            background: #fff3e0;
            color: #f57c00;
        }

        .badge-musique {
    background: #fff3e0;
    color: #f57c00;
}

.badge-jeu {
    background: #e8f5e9;
    color: #2e7d32;
}

        /* MODALES */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
        }

        .modal-content {
            background: white;
            margin: 2% auto;
            padding: 0;
            border-radius: 20px;
            width: 90%;
            max-width: 600px;
            max-height: 95vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            animation: slideDown 0.3s ease;
        }

        @keyframes slideDown {
            from {
                transform: translateY(-50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .modal-header {
            background: linear-gradient(45deg, #D50241, #ff1744);
            color: white;
            padding: 20px 30px;
            border-radius: 20px 20px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h2 {
            font-family: 'Audiowide', cursive;
            font-size: 1.3em;
            margin: 0;
        }

        .close {
            color: white;
            font-size: 2em;
            font-weight: bold;
            cursor: pointer;
            line-height: 1;
            transition: all 0.3s ease;
        }

        .close:hover {
            transform: rotate(90deg);
        }

        .modal-body {
            padding: 20px 30px;
            overflow-y: auto;
            flex: 1;
        }

        .form-group {
            margin-bottom: 12px;
        }

        .form-group label {
            display: block;
            font-family: 'Space Mono', monospace;
            color: #333;
            font-size: 0.85em;
            font-weight: 600;
            margin-bottom: 5px;
        }

        .form-group input {
            width: 100%;
            padding: 8px 12px;
            border: 2px solid rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            font-family: 'Poppins', sans-serif;
            font-size: 0.9em;
            transition: all 0.3s ease;
            box-sizing: border-box;
        }

        .form-group input:focus {
            outline: none;
            border-color: #D50241;
            box-shadow: 0 0 0 2px rgba(213, 2, 65, 0.1);
        }

        .form-divider {
            border-top: 2px dashed rgba(213, 2, 65, 0.2);
            margin: 15px 0 12px 0;
            padding-top: 12px;
        }

        .form-divider-title {
            font-family: 'Audiowide', cursive;
            color: #D50241;
            font-size: 1em;
            margin-bottom: 8px;
        }

        .form-note {
            font-family: 'Space Mono', monospace;
            font-size: 0.75em;
            color: #666;
            margin-top: 3px;
            font-style: italic;
            line-height: 1.3;
        }

        .modal-footer {
            padding: 15px 30px;
            display: flex;
            gap: 15px;
            border-top: 1px solid rgba(0, 0, 0, 0.1);
            background: white;
            border-radius: 0 0 20px 20px;
        }

        .warning-text {
            background: #fff3e0;
            border-left: 4px solid #f57c00;
            padding: 12px;
            margin-bottom: 15px;
            border-radius: 8px;
            font-family: 'Space Mono', monospace;
            font-size: 0.85em;
            color: #e65100;
            line-height: 1.4;
        }

        footer {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 50px;
}

.footer-container {
  position: relative;
  width: 100%;
  height: 120px;
}

.foot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  text-align: center;
  padding: 15px;
}

.footer-text h2 {
  color: #ff1744;
  font-family: 'Audiowide', cursive;
  font-size: 1.5rem;
  margin-bottom: 8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.footer-text p {
  font-family: 'Space Mono', sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
  max-width: 600px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Styles additionnels pour le système de réinitialisation de mot de passe */
/* À ajouter à votre fichier auth.css existant */

/* ================== BOÎTES D'ALERTE ================== */
.alert-box {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-box {
    background: #fee;
    border: 2px solid #D50241;
    color: #c00;
}

.success-box {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.info-box {
    background: #d1ecf1;
    border: 2px solid #0c5460;
    color: #0c5460;
}

/* ================== EXIGENCES DE MOT DE PASSE ================== */
.password-requirements {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(213, 2, 65, 0.3);
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
}

.password-requirements p {
    color: white;
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.password-requirements li.valid {
    color: #28a745;
    font-weight: 600;
}

/* ================== SPINNER DE CHARGEMENT ================== */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================== SMALL TEXT ================== */
.form-group small {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-family: 'Space Mono', monospace;
}

/* ================== LIEN INVALIDE ================== */
.login-box .submit-btn {
    margin-top: 20px;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {
    .password-requirements {
        padding: 12px 15px;
    }

    .password-requirements p {
        font-size: 13px;
    }

    .password-requirements li {
        font-size: 12px;
    }

    .alert-box {
        font-size: 13px;
        padding: 12px 15px;
    }
}

/* Responsive pour page mon compte */
        @media (max-width: 768px) {
            .info-grid {
                grid-template-columns: 1fr;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }

            .action-buttons {
                flex-direction: column;
            }

            .account-box {
                padding: 40px 25px;
            }

            .emprunt-details {
                grid-template-columns: 1fr;
            }

            .modal-content {
                width: 95%;
                margin: 10% auto;
            }
        }
