/* ==================== STYLE GÉNÉRAL ==================== */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a2531;
    display: flex;
    flex-direction: row;
    font-size: 14px;
}

/* Onglet latéral pour ouvrir la sidebar */
.tab {
    position: fixed;
    top: 15px;
    left: 10px;
    z-index: 1001;
    width: 80px;
    height: 35px;
    background-color: #2a3642;
    color: white;
    text-align: center;
    line-height: 35px;
    font-weight: bold;
    cursor: pointer;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.tab:hover {
    background-color: #007f75;
}

/* Sidebar fixée à gauche */
.sidebar {
    background: linear-gradient(135deg, #3e4f66, #2a3642);
    padding: 1.5rem 0.8rem;
    width: 220px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: -220px;
    color: #fff;
    z-index: 1000;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: left 0.3s ease;
    font-size: 0.9rem;
}

.sidebar.open {
    left: 0;
}

/* Titre du menu */
.sidebar h1 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
}

/* Logo */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    width: 100%;
}

.logo-container img {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.02);
}

/* Liens du menu */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.button-group a {
    padding: 0.7em;
    background-color: #00a99f;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
    font-size: 0.95rem;
}

.button-group a:hover {
    background-color: #007f75;
    transform: scale(1.04);
}

/* Boutons spécifiques */
.btn-primary {
    background-color: #7289da;
    color: #fff;
}

.btn-primary:hover {
    background-color: #607d8b;
}

.btn-secondary {
    background-color: #ccc;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.85rem;
}

.btn-secondary:hover {
    background-color: #bbb;
}

/* ==================== RESPONSIVE ==================== */

@media screen and (max-width: 768px) {
    body {
        flex-direction: column;
        font-size: 13px;
    }

    .sidebar {
        width: 50%;
        height: auto;
        position: fixed;
        top: 0;
        left: -100%;
        padding: 1rem;
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar h1 {
        font-size: 1.2rem;
    }

    .tab {
        width: 70px;
        height: 30px;
        line-height: 30px;
        font-size: 0.8rem;
    }

    .logo-container img {
        max-width: 160px;
    }

    .button-group {
        gap: 0.6rem;
    }

    .button-group a {
        padding: 0.6em;
        font-size: 0.9rem;
    }

    .btn-secondary {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .logo-container img {
        max-width: 140px;
    }

    .button-group a {
        font-size: 0.85rem;
        padding: 0.5em;
    }

    .sidebar h1 {
        font-size: 1.1rem;
    }
}
