/* Base Styles */
/* Base Styles */
/* Base Styles */
:root {
    --primary-color: #0a2463;
    --primary-light: #1e3a8a;
    --primary-dark: #051440;
    --accent-color: #3f88c5;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --text-color: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --background-color: #ffffff;
    --background-light: #f8f9fa;
    --background-dark: #e9ecef;
    --border-color: #dee2e6;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.5s ease;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}



/* Styles pour la page d'authentification (basés sur la nouvelle version) */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--background-light);
    padding: 1rem;
}

.auth-container {
    max-width: 400px;
    width: 100%;
}

.auth-card {
    background: var(--background);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    text-align: center;
}

.auth-header h1 {
    font-size: 1.75;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-light);
}

a {
    color: var(--accent-color);
    transition: var(--transition);
    text-decoration: none !important;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.9rem;
}

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

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

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

.btn-text {
    background-color: transparent;
    color: var(--accent-color);
    padding: 0.25rem 0.5rem;
}

.btn-text:hover {
    background-color: rgba(63, 136, 197, 0.1);
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
header {
    background-color: #1e293b;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-color);
}

.logo a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Styles pour la navbar */
.navbar {
    padding: 1rem 0;
    background-color: #fff;
    /* Fond blanc, ajustez selon votre charte */
}

.navbar-brand {
    font-size: 1.5rem;
    /* Taille du logo */
    font-weight: bold;
    color: #007bff;
    /* Couleur du logo */
}

.navbar-nav {
    margin: 0 1rem;
    /* Espacement horizontal entre les liens */
}

.navbar-nav .nav-link {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    color: #333;
    /* Couleur des liens */
}

.navbar-nav .nav-link:hover {
    color: #007bff;
    /* Couleur au survol */
}

.navbar-nav .nav-link.active {
    color: #007bff;
    font-weight: bold;
}

.auth-buttons .btn {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
}

.btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: #fff;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Responsive : petits écrans */
@media (max-width: 991px) {
    .navbar-brand {
        font-size: 1.3rem;
        /* Réduit la taille du logo sur mobile */
    }

    .navbar-nav {
        text-align: center;
        margin: 1rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }

    .auth-buttons {
        display: none;
        /* Masque les boutons sur mobile (inclus dans le menu) */
    }
}

/* Assurer un bon espacement */
.container {
    max-width: 1200px;
    /* Largeur max pour un espacement équilibré */
}

.navbar-collapse {
    justify-content: center;
    /* Centre le contenu du menu */
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background-color: var(--background-color);

}

.hero .container {
    display: flex;
    align-items: center;
    gap: 2rem;

}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);

}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: var(--background-light);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* CTA Section */
.cta {
    padding: 4rem 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.cta h2 {
    margin-bottom: 1rem;
    color: white;
}

.cta p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3,
.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-col a:hover {
    color: white;
}

.footer-col i {
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Auth Pages */
.auth-section {
    padding: 4rem 0;
    min-height: calc(100vh - 70px - 400px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.auth-card p {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(63, 136, 197, 0.2);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
}

.checkbox-group label {
    font-weight: normal;
    color: var(--text-light);
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-lighter);
}

.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.strength-progress {
    height: 100%;
    width: 0;
    background-color: var(--danger-color);
    transition: var(--transition);
}

.strength-text {
    font-size: 0.8rem;
    color: var(--text-lighter);
    margin-top: 0.25rem;
}

.error-message {
    color: var(--danger-color);
    font-size: 0.8rem;
    min-height: 1rem;
}

.forgot-password {
    text-align: right;
    margin-top: -0.5rem;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-light);
}

/* Dashboard */
.dashboard-body {
    background-color: var(--background-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* .dashboard-nav ul {
    display: flex;
    gap: 2rem;
} */

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.user-avatar {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-color);
}

.user-name {
    font-weight: 500;
    font-size: 20px;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    min-width: 200px;
    z-index: 10;
    display: none;
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    transition: var(--transition);
}



.user-dropdown-menu i {
    color: var(--text-light);
}

.user-dropdown:hover .user-dropdown-menu {
    display: block;

}

.user-dropdown-menu.open,
.user-dropdown-menu#dropdownMenu.open {
    display: block;
}

.dashboard-main {
    display: flex;
    flex: 1;
}

.dashboard-sidebar {
    width: 250px;
    background-color: var(--background-color);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 0;
    height: calc(100vh - 70px);
    position: sticky;
    top: 0px;
}

.sidebar-nav ul {
    display: flex;
    flex-direction: column;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    transition: var(--transition);
}

.sidebar-nav a:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
}

.sidebar-nav a.active {
    background-color: rgba(10, 36, 99, 0.1);
    color: var(--primary-color);
    font-weight: 500;
}

.sidebar-nav i {
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
}

.dashboard-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.dashboard-welcome {
    margin-bottom: 2rem;
}

.dashboard-welcome h2 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.dashboard-welcome p {
    color: var(--text-light);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.card-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--background-light);
}

/* Balance Card */
.balance-card .card-body {
    padding: 2rem 1.5rem;
}

.balance-amount {
    text-align: center;
    margin-bottom: 1.5rem;
}

.amount {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.balance-info {
    display: flex;
    justify-content: space-between;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.label {
    font-size: 0.85rem;
    color: var(--text-lighter);
}

.value {
    font-weight: 500;
}

/* Bank Info Card */
.bank-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.copy-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 1rem;
}

/* Transactions List */
.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.transaction-item:hover {
    background-color: var(--background-light);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.transaction-details {
    flex: 1;
}

.transaction-title {
    font-weight: 500;
}

.transaction-date {
    font-size: 0.85rem;
    color: var(--text-lighter);
}

.transaction-amount {
    font-weight: 600;
}

.transaction-item.debit .transaction-amount {
    color: var(--danger-color);
}

.transaction-item.credit .transaction-amount {
    color: var(--success-color);
}

/* Transfer Page */
.transfer-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.transfer-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

/* Beneficiaries List */
.beneficiaries-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.beneficiary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.beneficiary-item:hover {
    background-color: var(--background-light);
}

.beneficiary-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.beneficiary-details {
    flex: 1;
}

.beneficiary-name {
    font-weight: 500;
}

.beneficiary-bank {
    font-size: 0.85rem;
    color: var(--text-lighter);
}

/* Transfer Progress */
.transfer-progress-container {
    max-width: 800px;
    margin: 0 auto;
}

.progress-section {
    margin: 2rem 0;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: var(--background-dark);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 50%;
    background-color: var(--accent-color);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-percentage {
    font-weight: 600;
    color: var(--accent-color);
}

.progress-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-label {
    font-weight: 500;
}

.status-value {
    color: var(--accent-color);
}

/* Validation Steps */
.validation-codes {
    margin-top: 2rem;
}

.validation-codes h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.validation-codes p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.validation-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.validation-step {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--background-light);
    cursor: pointer;
}

.step-icon {
    color: var(--text-lighter);
}

.validation-step.completed .step-icon {
    color: var(--success-color);
}

.validation-step.active .step-icon {
    color: var(--accent-color);
}

.step-title {
    font-weight: 500;
}

.step-content {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.code-input-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.code-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    letter-spacing: 0.25rem;
    text-align: center;
}

.validation-badge {
    background-color: var(--success-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }

    .transfer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
    }

    nav,
    .auth-buttons {
        display: none;
    }


    .dashboard-main {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 250px;
        height: 100vh;
        position: fixed;
        border-right: none;
        left: 0;
        background-color: #ffffff;
        border-bottom: 1px solid var(--border-color);
        padding: 0;
        z-index: 1000;
        overflow-y: auto;
        top: 0;
    }



    /* 
    .sidebar-nav ul {
        flex-direction: row;
        overflow-x: auto;
        padding: 0.5rem;
    } */
    .sidebar-nav {
        margin-top: 35px;
        padding-top: 50px;

    }

    .sidebar-nav a {
        margin-top: 25px;
        padding: 0.5rem 1rem;
        white-space: nowrap;
    }

    /* .sidebar-nav span {
        display: none;
    } */

    .sidebar-nav i {
        margin-right: 0;
    }

    .dashboard-content {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .balance-info {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Bootstrap Carousel Customizations */
.partners-section,
.bank-partners-section {
    padding: 60px 0;
}

.bank-partners-section {
    background: #f8faff;
    /* Subtle contrast */
}

.carousel-logo {
    width: 200px !important;
    /* Smaller width: changed from 150px */
    /* height: 40px !important; */
    /* Smaller height: changed from 50px */
    object-fit: contain;
    margin: 0 15px;
    /* Reduced spacing */
    transition: transform 0.3s ease;
}

.carousel-logo:hover {
    transform: scale(1.1);
}

.carousel-inner {
    padding: 20px 0;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.7;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #333;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .carousel-logo {
        width: 100px;
        /* Smaller for tablets */
        height: auto;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .carousel-logo {
        width: 100px !important;
        /* Smaller for mobile */
        height: auto;
        margin: 0 8px;
    }
}

.progress-container {
    margin-top: 8px;
}

.progress-label {
    font-size: 0.9em;
    color: #333;
    margin-bottom: 4px;
}

.progress-bar {
    background-color: #e0e0e0;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.progress-fill {
    background-color: #007bff;
    /* Couleur principale pour la progression */
    height: 100%;
    transition: width 0.3s ease-in-out;
}

.transaction-item.pending {
    border-left: 4px solid #f0ad4e;
    /* Jaune pour indiquer un statut "en attente" */
}

.transaction-actions {
    margin-left: auto;
}

.transaction-info {
    font-size: 0.9em;
    color: #666;
}

.confirmed-codes {
    margin-top: 20px;
}

.confirmed-codes h4 {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.confirmed-codes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.confirmed-code-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9em;
}

.confirmed-icon {
    color: #28a745;
    /* Vert pour la coche confirmée */
    margin-right: 8px;
}

.menu-toggle {
    display: none;
    background: #2c3e50;
    color: white;
    border: none;
    padding: 15px;
    font-size: 20px;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1001;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-sidebar {
        transform: translateY(-100%);
        z-index: 1000;
    }

    .dashboard-sidebar.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: block;
    }



    .sidebar-nav ul {
        flex-direction: column;
        /* ✅ vertical */
        overflow-x: visible;
        padding: 0;
    }

    .sidebar-nav a {
        display: flex;
        align-items: center;
        padding: 15px;
        white-space: nowrap;
        text-decoration: none;
    }

    .sidebar-nav i {
        margin-right: 10px;
        /* ✅ espace icône/texte */
    }

    .logo {
        margin-left: 50px;
    }
}

/* Animation entrée */
@keyframes slideInSidebar {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation sortie */
@keyframes slideOutSidebar {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

/* État de base (masqué) */
.hidden {
    display: none;
}

/* État visible avec animation d’entrée */
.show-sidebar {
    display: block;
    animation: slideInSidebar 0.3s ease-out forwards;
}

/* Classe temporaire pour animation de sortie */
.hide-sidebar {
    animation: slideOutSidebar 0.3s ease-in forwards;
}