/* HEADER FIXÉ EN HAUT */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    height: 150px;
    background-color: black;
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    box-sizing: border-box;
    z-index: 200;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 150px;
    z-index: 201;
}

.header-right {
    display: flex;
    gap: 20px;
    margin-left: auto;
    z-index: 1;
}

/* Style unifié pour tous les boutons */
button,
.btnOui,
.btnNon,
.header-right button,
#tableau button {
    padding: 14px 36px;
    border: none;
    border-radius: 24px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
    min-width: 150px;
    text-align: center;
}

/* Boutons header */
.header-right button {
    background: #fff;
    color: #000;
}

.header-right button:hover {
    background: #444;
    color: #fff;
}

/* Bouton Retour */
.btnNon {
    background-color: #ddd;
    color: #000;
}

.btnNon:hover {
    background-color: #bbb;
}

/* Bouton Créer */
.btnOui {
    background-color: #000;
    color: #fff;
}

.btnOui:hover {
    background-color: #333;
}

/* Boutons dans tableau */
#tableau button {
    background-color: #000;
    color: #fff;
    width: 100%;
    height: 50px;
    /* uniformisé */
    font-size: 1.2rem;
    border-radius: 24px;
    margin: 0 auto;
}

#tableau button:hover {
    background-color: #333;
}

/* Titres unifiés */
h1,
h2,
.form-box h2,
.accueil-gauche h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Paragraphe */
.accueil-gauche p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Accueil */
.accueil-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 80px;
    gap: 50px;
}

.accueil-gauche {
    flex: 1;
}

.accueil-droite {
    flex: 1;
    text-align: center;
}

.image-sport {
    max-width: 60%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-top: 50px;
}

/* Formulaire */
.form-creation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
}

.form-box {
    background-color: #fff;
    color: #000;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}

.form-box form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-box .row {
    display: flex;
    gap: 20px;
}

.form-box input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 20px;
}

/* Menu latéral */
#sideMenu {
    position: fixed;
    top: 150px;
    left: 0;
    height: calc(100vh - 150px);
    z-index: 300;
}

.side-nav {
    background: #111;
    color: #fff;
    width: 220px;
    height: 100%;
    transition: width 0.2s;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    z-index: 301;
}

.side-nav.collapsed {
    width: 60px;
}

.nav-header {
    display: flex;
    align-items: center;
    padding: 16px 12px;
    gap: 10px;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-right: 8px;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 4px;
    background: #fff;
    border-radius: 2px;
}

.nav-logo {
    height: 36px;
    transition: opacity 0.2s;
}

.side-nav.collapsed .nav-label {
    display: none;
}

.side-nav.collapsed .nav-logo {
    opacity: 1;
}

.side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-nav li {
    margin: 0;
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
    padding: 14px 18px;
    transition: background 0.2s;
}

.side-nav a:hover {
    background: #222;
}

.nav-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.side-nav.collapsed .nav-icon {
    margin: 0 auto;
}

main {
    padding-top: 90px;
    padding-inline: 50px;
    transition: margin-left 0.2s;
}

/* Tableau */
#tableau {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border: 1px solid #000;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

#tableau tr {
    border-bottom: 1px solid #000;
}

#tableau td {
    border: 1px solid #000;
    padding: 12px 16px;
    vertical-align: middle;
}

/* Colonnes avec tailles fixes */
#tableau td:nth-child(1) {
    width: 40%;
    font-weight: bold;
    font-size: 1.5rem;
}

#tableau td:nth-child(2) {
    width: 30%;
}

#tableau td:nth-child(3),
#tableau td:nth-child(4) {
    width: 15%;
    text-align: center;
}

/* Images dans tableau */
#tableau img {
    width: 60px;
    height: auto;
    cursor: pointer;
    transition: filter 0.2s ease;
}

#tableau-container {
    max-height: 600px;
    overflow-y: auto;
}

/* Tableau details */

#tableau-container-details {
    background-color: #f5f5f5;
    border: 2px solid #ccc; 
    border-radius: 15px;
    padding: 20px;
    width: fit-content;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
}

#tableau-details {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border: 1px solid #000;
    font-family: Arial, sans-serif;
}

#tableau-details td:nth-child(1),
#tableau-details td:nth-child(2) {
    width: 50%;
}

#tableau-details tr {
    border-bottom: 1px solid #000;
    font-size: 1.4rem;
}

#tableau-details td {
    border: 1px solid #000;
    padding: 12px 16px;
    vertical-align: middle;
    text-align: center;
    font-size: 1.4rem;
}

#tableau-details video,
#tableau-details iframe {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    max-width: 300px;
    max-height: 300px;
}

#infos {
    font-size: 3rem;
    font-weight: bold;
    margin: 20px 0;
}

.details-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

#tableau-container-details {
    width: 60%;
    max-height: 600px;
    overflow-y: auto;
}

.image-et-bouton {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    margin-top: 50px;
}

.image-et-bouton img {
    margin-bottom: 50px;
}
.ligne-supprimer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btnSupprimerCompte {
    width: 80px;
}

#btn-revenir {
    min-width: 200px;
}

#form-creer-modifier {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#dureeModifier, #dureeCreer, #nomCreer {
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

#menu-exercices {
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
}

#liste-checkboxes {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fdfdfd;
    max-height: 150px;
    overflow-y: auto;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.checkbox-item input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}
