@charset "utf-8";
/* CSS Document */
/* ============================
   Styles globaux
============================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* ============================
   Wrapper général
============================ */
.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================
   Header
============================ */
header {
    background-color: #2d2e83;
    color: #fff;
    padding: 20px 0;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    margin: 0;
}

/* Bouton Déconnexion */
.logout-button {
    background-color: #d9534f;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-left: 10px;
    transition: background-color 0.3s;
}

.logout-button:hover {
    background-color: #c9302c;
}

/* ============================
   Navigation (Menu Hamburger)
============================ */
nav {
    position: relative;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    gap: 20px;
}

.menu li a {
    color: #fff;
    text-decoration: none;
}

/*========================= 
Hamburger menu pour mobile 
===========================*/
.menu-icon {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
}

#menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        padding: 10px;
    }

    #menu-toggle:checked + .menu-icon + .menu {
        display: flex;
    }

    .menu-icon {
        display: block;
    }
}

/* ============================
   Main
============================ */
main {
    padding: 40px 0;
}

/* ============================
   Footer
============================ */
footer {
    background-color: #2d2e83;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* ============================
   Tableau responsive
============================ */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f4f4f4;
}

tbody tr:hover {
    background-color: #f9f9f9;
}

@media screen and (max-width: 600px) {
    .table-wrapper table,
    .table-wrapper thead,
    .table-wrapper tbody,
    .table-wrapper th,
    .table-wrapper td,
    .table-wrapper tr {
        display: block;
        width: 100%;
    }

    .table-wrapper thead tr {
        display: none;
    }

    .table-wrapper tr {
        margin-bottom: 1rem;
        border-bottom: 1px solid #ccc;
        padding-bottom: 0.5rem;
    }

    .table-wrapper td {
        text-align: left;
        padding: 0.5rem 0;
        position: relative;
    }

    .table-wrapper td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
    }
}

/* ============================
   Div encadrée
============================ */
.encadre {
    border: 2px solid #333;
    border-radius: 15px;
    padding: 20px;
    background-color: #f9f9f9;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

/* ============================
   Deux colonnes responsives
============================ */
.deux-colonnes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.deux-colonnes .colonne {
    flex: 1 1 300px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 12px;
    background-color: #f9f9f9;
}

@media (max-width: 768px) {
    .deux-colonnes {
        flex-direction: column;
    }
}

/* ============================
   Accordéon vertical
============================ */
details {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
}

summary {
    cursor: pointer;
    font-weight: bold;
}

/* ============================
   Bouton Action (Formulaire)
============================ */
.btn-action {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2d2e83;
    color: #fff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.btn-action:hover {
    background-color: #1a1b5e;
}

/* ============================
   Boutons Fichiers de travail
============================ */
.btn {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    margin: 5px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
    cursor: pointer;
}

/*=============================== 
Couleurs 
=================================*/
.bleu {
    background-color: #337ab7;
}
.bleu:hover {
    background-color: #286090;
}

.rouge {
    background-color: #d9534f;
}
.rouge:hover {
    background-color: #c9302c;
}

.gris {
    background-color: #333;
}
.gris:hover {
    background-color: #000;
}

/* =================================
   Galerie et lightbox
================================= */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.gallery img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    cursor: zoom-in;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px #000;
    cursor: zoom-out;
}

#lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/*==========================
Ajout du 21 février 2026
====================================*/
.colonne.droite.colonne-partitions {
    padding-bottom: 60px;
}

