

/* ===== reset.css ===== */
/* ========================================
   FICHIER : layout.css
   DESCRIPTION : STYLES GENERAUX
   ======================================== */
   
body {
    background-color: #fffaf0;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

strong {
    font-weight: bold !important;
}

.error {
    color: red;
    margin-bottom: 15px;
    text-align: center;
}

.error-message {
    color: red;
    font-size: 20px;
    text-align: center;
    margin-top: 100px;
    white-space: pre-line; /* Permet le retour à la ligne dans le texte */
}

.spinner-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 40px auto;
}

.spinner-circle {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border: 6px solid #e0e0e0;
    border-top: 6px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: bold;
    color: #333;
    pointer-events: none;
}
  
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ===== layout.css ===== */
/* ========================================
   FICHIER : layout.css
   DESCRIPTION : Structure, grilles et conteneurs
   ======================================== */

/* ============================
   Gestion des liens et cartes
============================ */
td.label-col {
    width: 35%;
    min-width: 300px;
}

.card {
    max-width: 530px;
    width: 100%;
    margin: 0 auto;
}

.card .form-control-sm {
    max-width: 100%;
}

/* ============================
   BANDEAU UTILISATEUR
============================ */
.user-info-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #004085;
    color: white;
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* ============================
   CONTENEURS ARRONDIS (niveaux)
============================ */
.rounded-container {
    border: 2px solid;
    border-radius: 15px;
    padding: 20px;
    margin: 20px auto;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    max-width: 300px;
}

/* Boutons dans les conteneurs arrondis - largeur uniforme */
.rounded-container .button,
.rounded-container a.button,
.rounded-container button.button {
    width: 100%;
    max-width: 200px;
    min-width: 200px;
    box-sizing: border-box;
    text-align: center;
}

/* Couleurs des bordures selon niveau */
.niveau-1 { border-color: red; }
.niveau-2 { border-color: blue; }
.niveau-3 { border-color: #8b4513; }
.niveau-4 { border-color: gray; }
.niveau-5 { border-color: green; }

/* Indicateur de niveau (badge en haut à droite) */
.niveau-1::before,
.niveau-2::before,
.niveau-3::before,
.niveau-4::before,
.niveau-5::before {
    content: attr(data-niveau);
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 14px;
    font-weight: bold;
}

.niveau-1::before { color: red; }
.niveau-2::before { color: blue; }
.niveau-3::before { color: #8b4513; }
.niveau-4::before { color: gray; }
.niveau-5::before { color: green; }

/* ============================
   TITRES
============================ */
h1.title, h2.title, h3.title {
    margin-top: 40px;
}

h1 {
    font-size: 1.5em;
    margin-bottom: 10px;
    text-align: center;
}

h2 {
    font-size: 1em;
    margin-bottom: 10px;
    text-align: center;
}

h3 {
    font-size: 0.9em;
    margin-bottom: 10px;
    text-align: center;
}

/* ============================
   CONTENEURS DE BOUTONS
============================ */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0;
}

/* ============================
   SÉPARATEURS
============================ */
.separator {
    border: none;
    border-top: 2px solid #ccc;
    width: 20%;
    margin: 20px auto;
}

.spacer {
    margin-bottom: 20px;
}

.spacer2 {
    height: 2em;
}

/* ============================
   LIGNES DE CONFIGURATION (ex-site.css)
============================ */
.site-line {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    margin: 0 auto 12px auto;
}

.site-line strong {
    display: inline-block;
}

.site-line select {
    max-width: 40ch;
    white-space: nowrap;
}

.table-container .table2 {
    table-layout: fixed;
    width: 100%;
}

.table-container .table2 th:nth-child(1) { width: 40px; }  /* Sél. - largeur fixe */
.table-container .table2 th:nth-child(2) { width: 120px; } /* Spot */
.table-container .table2 th:nth-child(3) { width: 100px; } /* Responsable */
.table-container .table2 th:nth-child(4) { width: 250px; } /* Adresse */
.table-container .table2 th:nth-child(5) { width: 60px; }  /* GPS */
.table-container .table2 th:nth-child(6) { width: 80px; }  /* Création */
.table-container .table2 th:nth-child(7) { width: 60px; }  /* Indice */
.table-container .table2 th:nth-child(8) { width: 100px; } /* Type */


/* ===== buttons.css ===== */
/* ========================================
    FICHIER : buttons.css
    DESCRIPTION : Styles pour tous les boutons
    ======================================== */

/* ========================================
   BOUTON DE BASE
   ======================================== */

/* Style de base pour tous les boutons */
.button,
button.button-nav,
.button_reserver,
.button_reserverJW,
.button-effacer,
.button-back,
.button-nav {
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    line-height: normal;
}

/* Ajustements spécifiques */
.button_reserver,
.button_reserverJW,
.button-effacer {
    width: fit-content;
    padding: 6px 8px;
    font-size: 12px;
    margin: 4px 0;
}

.button-back {
    font-size: 16px;
    padding: 10px 20px;
}

/* Bouton Annuler spécifique */
.button-effacer {
    min-width: 100px;
    max-width: 200px;
    height: 80px;
    padding: 6px 12px;
    font-size: 14px;
    background-color: #dc3545;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.button-effacer:hover {
    background-color: #c82333;
}

/* ========================================
   COULEURS DES BOUTONS
   ======================================== */

/* Vert */
.button.green,
.button_reserver,
.button_reserverJW,
.button-green-nav {
    background-color: #28a745;
    color: white;
}

.button.green:hover,
.button_reserver:hover,
.button_reserverJW:hover,
.button-green-nav:hover {
    background-color: #218838;
}

/* Rouge */
.button.red,
.button-red-nav {
    background-color: #dc3545;
    color: white;
}

.button.red:hover,
.button-red-nav:hover {
    background-color: #c82333;
}

/* Bleu */
.button.blue,
.button-back,
.button-blue-nav {
    background-color: #007bff;
    color: white;
}

.button.blue:hover,
.button-back:hover,
.button-blue-nav:hover {
    background-color: #0056b3;
}

.button.blue:active,
.button-blue-nav:active {
    background-color: #004494;
}

/* Jaune */
.button.yellow,
.button-yellow-nav {
    background-color: #ffc107;
    color: black;
}

.button.yellow:hover,
.button-yellow-nav:hover {
    background-color: #e0a800;
}

/* Gris */
.button.gray,
.button-gray-nav {
    background-color: #6c757d;
    color: white;
}

.button.gray:hover,
.button-gray-nav:hover {
    background-color: #5a6268;
}

/* Noir */
.button.black,
.button-black-nav {
    background-color: #343a40;
    color: white;
}

.button.black:hover,
.button-black-nav:hover {
    background-color: #23272b;
}

/* Orange */
.button.orange {
    background-color: orange;
    color: white;
}

.button.orange:hover {
    background-color: #e69500;
}

/* Violet */
.button.purple {
    background-color: purple;
    color: white;
}

.button.purple:hover {
    background-color: #5b005b;
}

/* Rose */
.button.pink,
.button-pink-nav {
    background-color: pink;
    color: black;
}

.button.pink:hover,
.button-pink-nav:hover {
    background-color: #ff66b2;
}

/* Blanc */
.button.white,
.button-white-nav {
    background-color: white;
    color: black;
    border: 1px solid #dee2e6;
}

.button.white:hover,
.button-white-nav:hover {
    background-color: #f8f9fa;
}

/* Magenta */
.button-magenta-nav {
    background-color: #e83e8c;
    color: white;
}

.button-magenta-nav:hover {
    background-color: #c73275;
}

/* Marron */
.button-brown-nav {
    background-color: #795548;
    color: white;
}

.button-brown-nav:hover {
    background-color: #5d4037;
}

/* ========================================
   ÉTATS DES BOUTONS
   ======================================== */

.button-green-nav:active,
.button-red-nav:active,
.button-blue-nav:active,
.button-yellow-nav:active,
.button-gray-nav:active,
.button-black-nav:active {
    transform: scale(0.97);
}

.button:hover,
.button-nav:hover {  /* Correction : supprimé l'espace avant :hover */
    transform: translateY(-1px);
}

.button:active,
.button-nav:active {
    transform: translateY(0);
}

/* ========================================
   BOUTONS DE NAVIGATION SPÉCIFIQUES
   ======================================== */

button.button-nav {
    display: inline-block;
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    text-decoration: none;
}

/* ========================================
   DISPOSITION DES BOUTONS
   ======================================== */

.button-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.button-pastille-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
}

/* ========================================
   PASTILLES ASSOCIÉES AUX BOUTONS
   ======================================== */

.pastille-container {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
}

.inscrit-name {
    flex: 1;
    font-size: 14px;
    font-weight: normal;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.inscrit-name.operator {
    font-weight: bold;
    color: #000;
}

.pastille {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: transparent;
}

.pastille.checked {
    background-color: #007bff;
}

/* ----- Bouton avec pastille intégrée (Réserver + pastille bleue) ----- */
.button_reserverJW {
    position: relative;
    padding: 6px 20px 6px 8px; /* haut/droite/bas/gauche : espace pour la pastille */
    box-sizing: border-box;      /* inclut padding dans la largeur */
    max-width: 100%;             /* ne dépasse pas la cellule */
    white-space: nowrap;         /* évite le retour à la ligne */
    overflow: visible;           /* le pseudo-élément ne sera pas coupé */
}

.button_reserverJW::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 6px;                  /* légèrement ajusté par rapport à 8px */
    transform: translateY(-50%);
    width: 10px;
    height: 12px;
    background-color: #007bff;
    border-radius: 50%;
}

/* ========================================
   FORCER L'AFFICHAGE DES BOUTONS
   ======================================== */

/* Pour les boutons dans les formulaires de réservation */
.slot-form button[type="submit"],
button.button-nav .button-green-nav,
.button-green-nav {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Pour tous les boutons de navigation en général */
.button-nav {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Annuler tout effet de survol qui pourrait masquer */
.button-nav:hover,
.button-green-nav:hover,
.slot-form button[type="submit"]:hover {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ========================================
   AJOUTS POUR GARANTIR LA VISIBILITÉ SUR MOBILE
   ======================================== */

/* La cellule d'action ne doit pas rogner son contenu */
td:last-child {
    overflow: visible;
}



/* ===== form.css ===== */
/* ========================================
   FICHIER : form.css
   DESCRIPTION : Styles pour les formulaires
   ======================================== */

/* ========================================
   STRUCTURE DE BASE DES FORMULAIRES
   ======================================== */

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px auto;
    max-width: 600px;
}

.form-connexion {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.form-section {
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group label {
    margin-bottom: 0.3em;
    font-weight: bold;
}

.form-group input {
    padding: 12px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
}

.form-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0;
}

.form-row label {
    font-weight: bold;
    white-space: nowrap;
    margin-bottom: 5px;
}

.form-row input,
.form-row select {
    width: 20ch;
    max-width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

/* ========================================
   CHAMPS DE SAISIE SPÉCIFIQUES
   ======================================== */

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"] {
    width: 100%;
    font-size: 1em;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

input[type="number"] {
    width: 50px;
    text-align: center;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

textarea {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: block;
}

.editable-name {
    width: 100%;
    min-height: 2.2em;
    max-height: 4.4em;
    resize: vertical;
    font-size: 1em;
    padding: 4px;
    line-height: 1.2;
    box-sizing: border-box;
}

/* ========================================
   SÉLECTEURS (DÉROULANTS)
   ======================================== */

select,
.langue-select,
.user-selector-select {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-family: Arial, sans-serif;
    color: #333;    
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.user-selector-select {
    flex: 1;
    min-width: 200px;
    max-width: 300px;  /* Limite la largeur */
}

select:focus,
.langue-select:focus,
.user-selector-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.langue-select {
    width: 100%;
    margin-bottom: 10px;
}

.langue-select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* ========================================
   SÉLECTEURS SPÉCIFIQUES (IDs)
   ======================================== */

#user {
    width: 230px;
    font-size: 18px;
    padding: 5px;
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    text-indent: 5px;
}

#user2 {
    width: 130px;
    font-size: 12px;
    padding: 5px;
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    text-indent: 5px;
}

#time {
    width: 130px;
    font-size: 18px;
    padding: 5px;
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    text-indent: 5px;
}

/* ========================================
   COMPOSANT SÉLECTEUR UTILISATEUR
   ======================================== */

.user-selector-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.user-selector-card {
    width: 100%;
    max-width: 600px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-selector-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-selector-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.user-selector-label {
    font-weight: bold;
    min-width: 120px;
}

.user-selector-label i {
    margin-right: 5px;
    color: #007bff;
}

.user-selector-select {
    flex: 1;
    min-width: 200px;
}

.info-badge {
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* ========================================
   CHAMP DE FICHIER PERSONNALISÉ
   ======================================== */

.custom-file-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    background-color: #28a745;
    color: white;
    border: 1px solid #28a745;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.custom-file-input:hover {
    background-color: #218838;
}

.custom-file-input:active {
    background-color: #19692c;
}

/* ========================================
   BOUTONS DANS LES FORMULAIRES
   ======================================== */

.button-group-form {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

/* ========================================
   ALIGNEMENT DES FORMULAIRES
   ======================================== */

.centered-form {
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    padding: 20px;
}

.center-form select {
    margin-top: 10px;
}

/* ========================================
   COLONNES SPÉCIFIQUES (à déplacer plus tard)
   ======================================== */

.col-inscrits {
    min-height: calc(28px * 3);
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.pastille-container {
    height: 28px;
    min-height: 28px;
}

.inscrit-name, .pastille {
    line-height: 28px;
}

/* ========================================
   FORMULAIRES COMPACTS
   ======================================== */

/* Pour le formulaire de modification des spots */
.form-wrapper.compact {
    max-width: 500px;
    margin: 20px auto;
}

.form-wrapper.compact .form-grid {
    max-width: 300px;
    margin: 20px auto;
}

.form-wrapper.compact .form-control {
    width: 100%;
    max-width: 350px;
    padding: 6px 8px;
    font-size: 13px;
}

.form-wrapper.compact .form-group {
    margin-bottom: 8px;
}

.form-wrapper.compact .form-group label {
    margin-bottom: 2px;
    font-size: 12px;
}

/* ========================================
   CHAMPS DE FORMULAIRE COMPACTS
   ======================================== */

.form-grid .form-group {
    margin-left: 20px;
}

.form-grid label {
    display: block;
    margin-left: 20px;
    margin-bottom: 3px;
}

.form-grid .form-control {
    margin-left: 20px;  /* Marge commune à tous */
}

.form-grid .form-control {
    max-width: 250px;   /* Largeur normale */
}

.form-grid .full-width .form-control {
    max-width: 400px;   /* Adresse et GPS */
}

/* Version compacte - écrase les largeurs */
.form-grid.compact .form-control {
    max-width: 200px;
}

.form-grid.compact .full-width .form-control {
    max-width: 300px;
}

/* ========================================
   CHAMPS DE DATE COMPACTS
   ======================================== */

.form-wrapper.compact .date-input-compact {
    width: 180px !important;  /* Largeur fixe */
    max-width: 180px;
    padding: 5px 8px;
    font-size: 13px;
}

/* Ou si tu veux que tous les inputs du formulaire soient compacts */
.form-wrapper.compact input[type="date"] {
    width: 180px;
    max-width: 180px;
    padding: 5px 8px;
    font-size: 13px;
}

/* Pour aligner les labels */
.form-wrapper.compact .form-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.form-wrapper.compact .form-row label {
    min-width: 100px;
    text-align: right;
    font-size: 13px;
}


/* ===== table.css ===== */
/* ========================================
   FICHIER : table.css
   DESCRIPTION : Styles pour tous les tableaux
   ======================================== */

/* ========================================
   TABLEAUX DE BASE
   ======================================== */

table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: #fff;
    text-align: center;
    table-layout: auto;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    white-space: normal;
    word-wrap: break-word;
    text-align: left;
}

th {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
}

tr:nth-child(odd) {
    background-color: #f9f9f9;
}

tr:nth-child(even) {
    background-color: #ffffff;
}

/* ========================================
   TABLEAUX SPÉCIFIQUES
   ======================================== */

/* ----- Tableau des publications ----- */
.table-publications {
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
    border-collapse: collapse;
    text-align: center;
    table-layout: fixed;
}

.table-publications th,
.table-publications td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    font-size: 12px;
    white-space: normal;
    max-width: 600px;
    width: 1%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-publications th {
    background-color: #f4f4f4;
    color: #000;
}

.table-publications tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.table-publications tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.table-publications .table-intitule {
    white-space: normal;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
    width: 100%;
}

.table-publications .table-select {
    width: 20px;
    text-align: center;
}

.table-publications .table-quantity {
    width: 20px;
    text-align: center;
}

.table-publications th:last-child,
.table-publications td:last-child {
    width: 100px;
    max-width: 150px;
    text-align: left;
}

/* ----- Tableau des groupes ----- */
.table-groupe {
    margin: 0 auto;
    width: auto;
    max-width: 600px;
    border-collapse: collapse;
    text-align: center;
    table-layout: auto;
}

.table-groupe th,
.table-groupe td {
    padding: 10px;
    border: 1px solid #28a745;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
}

.table-groupe th {
    background-color: #28a745;
    color: white;
}

.table-groupe th:first-child,
.table-groupe td:first-child {
    width: 30%;
}

.table-groupe th:last-child,
.table-groupe td:last-child {
    width: 70%;
}

.table-groupe tbody tr:nth-child(odd) {
    background-color: #e8f5e9;
}

.table-groupe tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.right-column {
    text-align: left;
}

.right-column input,
.right-column select {
    text-align: left;
}

/* ----- Tableau d'assistance ----- */
.table-assistance {
    margin: 0 auto;
    width: auto;
    border-collapse: collapse;
    text-align: center;
    background-color: #f9f9f9;
    table-layout: auto;
}

.table-assistance th,
.table-assistance td {
    margin: 0 auto;
    width: auto;
    padding: 5px;
    border: 1px solid #28a745;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    min-width: 20px;
}

.table-assistance th {
    background-color: #28a745;
    color: white;
}

.table-assistance tbody tr:nth-child(odd) {
    background-color: #e8f5e9;
}

.table-assistance tbody tr:nth-child(even) {
    background-color: #ffffff;
}

/* ----- Tableau compact (table2) ----- */
.table2 {
    width: auto;
    max-width: 100%;
    table-layout: auto;
    border-collapse: collapse;
    font-size: clamp(12px, 2.5vw, 13px);
}

.table2 th {
    background-color: #28a745;
    color: white;
    font-weight: bold;
    padding: 6px 10px;
    white-space: nowrap;
    text-align: center;
}

.table2 td {
    padding: 6px 10px;
    white-space: normal;
    word-break: break-word;
    text-align: left;
    border: 1px solid #ccc;
    vertical-align: middle;
}

.table2 tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.table2 tbody tr:nth-child(even) {
    background-color: #ffffff;
}

/* ----- Tableau limitateur ----- */
.table-limitateur {
    margin: 0 auto;
    border-radius: 6px;
    overflow: hidden;
}

.table-limitateur tbody tr:nth-child(odd),
.table-limitateur tbody tr:nth-child(even) {
    background-color: transparent;
}

.table-limitateur th,
.table-limitateur td {
    text-align: center;
    padding: 8px 12px;
}

.table-limitateur .limit-day-cell {
    background-color: #f2f2f2;
}

.limit-static {
    color: #888;
    font-weight: 600;
}

.limit-ok {
    color: #2c3e50;
    font-weight: 500;
}

.limit-max {
    color: #c0392b;
    font-weight: bold;
}

.table-limitateur input[type="number"] {
    width: 65px;
    max-width: 100%;
    font-size: 16px;
    padding: 4px;
    text-align: center;
    box-sizing: border-box;
}

/* ----- Tableau générique avec classe .table ----- */
table.table {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    table-layout: auto;
}

table.table th,
table.table td {
    padding: 6px 8px;
    font-size: 13px;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   CELLULES SPÉCIFIQUES
   ======================================== */

.centered-date {
    text-align: center;
    font-weight: bold;
}

.day-row {
    border-top: 3px solid black;
    background-color: #f9f9f9;
    font-weight: bold;
    text-align: center;
}

.col-inscrits {
    width: 150px;
    min-width: 120px;
    max-width: 200px;
    word-wrap: break-word;
    text-align: center;
    border-bottom: none !important;
}

.names-column {
    font-size: 18px;
    line-height: 1.2;
}

.center-cell {
    text-align: center;
    vertical-align: middle;
}

.spot-name, .resp-cell, .adresse-cell {
    text-align: left;
}

.indice-cell {
    font-weight: bold;
}

/* ========================================
   BADGES POUR TABLEAUX
   ======================================== */

/* Badges arrondis */
.spots-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-tpl {
    background: #d4edda;
    color: #155724;
}

.badge-tps {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-rdv {
    background: #fff3cd;
    color: #856404;
}

.badge-rdv-service {
    background: #e0cffc;
    color: #5a3e8a;
}

.badge-routier {
    background: #f8d7da;
    color: #721c24;
}

/* Badges carrés */
.badge-tpl-square {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
    display: inline-block;
}

.badge-tps-square {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
    display: inline-block;
}

.badge-rdv-square {
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
    display: inline-block;
}

.badge-rdv-service-square {
    background: #6f42c1;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
    display: inline-block;
}

.badge-routier-square {
    background: #fd7e14;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
    display: inline-block;
}

/* ========================================
   ÉLÉMENTS DANS LES TABLEAUX
   ======================================== */

/* Formulaires dans les tableaux */
.slot-form input[type="text"],
.slot-form input[type="checkbox"] {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-size: 18px !important;
}

.slot-form input[type="text"] {
    height: 18px !important;
}

.slot-form input[type="checkbox"] {
    transform: scale(1);
    margin-top: 1px;
}

.slot-wrapper {
    margin-bottom: 5px;
}

.slot-row {
    display: flex;
    align-items: center;
}

.slot-row input[type="text"] {
    margin-right: 10px;
}

.input-small {
    width: 100px;
    padding: 5px;
    font-size: 14px;
}

.checkbox-small {
    width: 20px;
    height: 20px;
}

/* ========================================
   CONTENEURS DE TABLEAUX
   ======================================== */

.table-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 5px;
}

.table-container table {
    margin: 0 auto;
    border-collapse: collapse;
    width: auto;
}

.table2-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}

/* ========================================
   LIENS DANS LES TABLEAUX
   ======================================== */

.gps-link {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.gps-link:hover {
    text-decoration: underline;
}

/* ========================================
   ADAPTATION MOBILE
   ======================================== */

@media (max-width: 768px) {
    .table2 {
        font-size: 12px;
    }
    
    .table2 th,
    .table2 td {
        padding: 6px 8px;
    }
}

@media (max-width: 600px) {
    .table-publications,
    .table-groupe,
    .table2 {
        font-size: 12px;
        width: auto;
    }
    
    .table-publications th,
    .table-publications td,
    .table-groupe th,
    .table-groupe td,
    .table2 th,
    .table2 td {
        max-width: 100px;
        white-space: normal;
        padding: 6px 8px;
        word-break: break-word;
    }
    
    .col-inscrits {
        width: auto;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    table {
        width: 100%;
    }
    
    th, td {
        padding: 6px 4px;
        font-size: 11px;
    }
    
    .input-small {
        width: 70px;
    }
    
    .table-limitateur input[type="number"] {
        width: 50px;
    }
}

/* ========================================
   MODE IMPRESSION
   ======================================== */

@media print {
    table {
        width: 100%;
        border-collapse: collapse;
    }
    
    th, td {
        border: 1px solid #000;
    }
    
    th {
        background-color: #ccc !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ========================================
   CORRECTIONS SPÉCIFIQUES
   ======================================== */

/* Supprimer les lignes horizontales dans colonne Inscrits */
.col-inscrits div,
.col-inscrits .pastille-container,
.col-inscrits span {
    border-bottom: none !important;
    border-top: none !important;
}

.pastille-container {
    border-bottom: none !important;
    border-top: none !important;
    margin-bottom: 2px;
}

/* Alignements spécifiques pour table2 dans le conteneur */
.table-container .table2 th {
    text-align: center !important;
}

.table-container .table2 td:not(.spot-name):not(.resp-cell):not(.adresse-cell) {
    text-align: center !important;
}

.table-container .table2 td.spot-name,
.table-container .table2 td.resp-cell,
.table-container .table2 td.adresse-cell {
    text-align: left !important;
}

/* Ajustements pour grands écrans */
@media (min-width: 1024px) {
    .table-container .table2 {
        min-width: 800px;
        max-width: 95%;
    }
}


/* ===== components.css ===== */
/* ========================================
   FICHIER : components.css
   DESCRIPTION : Composants réutilisables
   ======================================== */

/* ========================================
   GALLERIES ET IMAGES
   ======================================== */

/* Conteneurs de galerie */
.featured-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px auto;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin: 20px auto;
    max-width: 1000px;
}

/* Boîtes d'images */
.image-box {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    max-width: 500px;
    margin: 20px auto;
    text-align: center;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.image-box img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

.photo-box {
    width: 160px;
    height: auto;
    text-align: center;
    border: 1px solid #ddd;
    padding: 10px;
    box-sizing: border-box;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.photo-box img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
}

.featured-box {
    text-align: center;
    border: 2px solid #ccc;
    padding: 10px;
    width: 45%;
    background-color: #f9f9f9;
    border-radius: 5px;
}

/* Styles d'images */
.featured-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border: 1px solid #ccc;
    padding: 5px;
    background-color: white;
}

.image,
.photo,
.image-combinee {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    padding: 4px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.image-combinee {
    max-width: 300px;
    display: inline-block;
}

.photo-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

/* Images responsives */
img.responsive-image,
.responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

/* Nom d'image */
.photo-name {
    margin-top: 8px;
    font-weight: bold;
}

/* Tableau de photos */
.photo-table img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

/* ========================================
   MESSAGES ET NOTIFICATIONS
   ======================================== */

.message-output {
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.message-output img {
    max-width: 100px;
    height: auto;
    display: block;
    margin: 10px auto 5px auto;
}

/* ========================================
   ICÔNES
   ======================================== */

.icon-star {
    color: #ffc107;
    font-size: 24px;
    cursor: pointer;
}

.icon-star:hover {
    color: #e0a800;
}

.icon-reset {
    font-size: 24px;
    cursor: pointer;
}

.print-button,
.excel-button {
    display: inline-block;
    margin-top: 10px;
    cursor: pointer;
    font-size: 30px;
    color: #333;
}

.print-button:hover {
    color: #007BFF;
}

.icon-play {
    width: 60px;
    height: 60px;
    margin-right: 8px;
    vertical-align: middle;
}

/* ========================================
   EN-TÊTES ET SECTIONS SPÉCIALES
   ======================================== */

.reservation-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.reservation-title {
    font-size: 20px;
    font-weight: bold;
}

/* ========================================
   LISTES
   ======================================== */

.center ul {
  display: inline-block;  /* Permet au ul de s'adapter à son contenu */
  text-align: left;       /* Garde le texte des li aligné à gauche */
  list-style-position: outside; /* Puces à l'extérieur du contenu */
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
}

.show-button {
    cursor: pointer;
    color: blue;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   VIDÉO
   ======================================== */

video {
    display: none;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
}

/* ========================================
   GRAPHIQUES
   ======================================== */

.chart-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    height: auto;
    overflow: hidden;
}

.chart-container canvas {
    max-width: 100%;
    height: 300px;
}

/* ========================================
   CENTRAGE (spécifique aux composants)
   ======================================== */

.button-containerH {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0 auto;
    text-align: center;
    width: 80%;
    max-width: 800px;
}

.center {
    margin: 10px 0;
    text-align: center;
    padding: 20px;
}

.centred-left {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: left;
}

.centred-right {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: right;
}

.centred-content {
    margin: 0 auto;
    text-align: center;
}

.page-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 10px;
    background-color: #fffaf0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.photo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* ========================================
   CENTRAGE DES OPTIONS ET BOUTON
   ======================================== */

.center-options {
    text-align: center;
    margin: 15px 0;
}

.center-options label {
    margin: 0 8px;
    white-space: nowrap;
    display: inline-block;
}

.center-button {
    text-align: center;
    margin: 20px 0 10px 0;
}

.center-button button {
    display: inline-block;
}


.day-separator td {
    border-bottom: 2px solid #aaa;
    height: 5px;
    padding: 0;
    background: transparent;
}


/* ===== animations.css ===== */
/* ========================================
   FICHIER : animations.css
   DESCRIPTION : Animations et effets
   ======================================== */

/* ========================================
   ANIMATIONS GÉNÉRALES
   ======================================== */

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes hide {
    from {
        opacity: 1;
        visibility: visible;
        max-height: 200px;
    }
    to {
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ========================================
   CLASSES D'ANIMATION
   ======================================== */

.highlight {
    background-color: yellow !important;
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* ========================================
   MESSAGES DE SUCCÈS ANIMÉS
   ======================================== */

.success-message,
.success-message2,
.success-message3 {
    overflow: hidden;
    max-height: 200px;
    animation-fill-mode: forwards;
}

.success-message {
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    color: #218838;
    margin-top: 10px;
    animation: blink 0.5s ease-in-out 6,
               hide 0.4s ease 3s forwards;
}

.success-message2 {
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    color: #218838;
    margin-top: 10px;
    animation: hide 0.4s ease 7s forwards;
}

.success-message3 {
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    color: #218838;
    margin-top: 10px;
    animation: hide 0.4s ease 7s forwards;
}

/* ========================================
   CLASSES UTILITAIRES
   ======================================== */

/* Réduction du gap entre les lignes du résumé */
.resume-compact p {
    margin: 2px 0 !important;
    line-height: 1.3 !important;
}

/* Bouton fermer stylisé */
.btn-fermer {
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.btn-fermer:hover {
    background-color: #5a6268;
}

/* Animation de disparition */
.resume-container {
    transition: opacity 0.3s ease;
}

.resume-container.hidden {
    display: none;
}


/* ===== responsive.css ===== */
/* ========================================
   FICHIER : responsive.css
   DESCRIPTION : Media queries et styles responsifs
   ======================================== */

/* ============================
   STYLES POUR MAX-WIDTH 600px
============================ */
@media (max-width: 600px) {
    .table-publications {
        width: 100%;
        font-size: 14px;
    }

    th, td {
        padding: 10px;
    }

    .pastille-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .inscrit-name {
        font-size: 12px;
    }

    form button.button-rounded {
        font-size: 14px;
        padding: 12px 20px;
        border-radius: 30px;
        background-color: #007bff;
        color: white;
        border: 1px solid #0056b3;
    }

    form button.button-rounded:hover {
        background-color: #0056b3;
    }

    .photo-box {
        width: 45%;
        padding: 8px;
    }

    .photo-box img {
        height: 100px;
        object-fit: cover;
    }

    .rename-form input[type="text"] {
        width: 90%;
        font-size: 14px;
    }

    /* === CONTRÔLE DES IMAGES === */
    img,
    .responsive-image,
    .message-output img,
    .featured-photo,
    .image,
    .photo,
    .photo-thumbnail,
    .image-combinee {
        max-width: 100%;
        height: auto;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .message-output {
        overflow-x: hidden;
        padding: 10px;
        box-sizing: border-box;
    }

    .center-container {
        width: 80%;
    }
}

/* ============================
   STYLES POUR MAX-WIDTH 580px
============================ */
@media (max-width: 580px) {
    body {
        width: 100%;
    }

    .header-container {
        width: 97%;
        font-size: 18px;
        padding: 8px 10px;
    }

    table {
        font-size: 12px;
        margin: 0 auto;
    }

    th, td {
        padding: 5px;
        text-align: left;
    }

    form button.button-rounded {
        font-size: 14px;
        padding: 12px 20px;
        border-radius: 30px;
        background-color: #007bff;
        color: white;
        border: 1px solid #0056b3;
    }

    form button.button-rounded:hover {
        background-color: #0056b3;
    }
}

/* ============================
   GRAPHIQUES RESPONSIVES
============================ */
@media (max-width: 768px) {
    .chart-container canvas {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .chart-container canvas {
        height: 200px;
    }
}

/* ============================
   IMPRESSION
============================ */
@media print {
    body {
        background-color: white;
        color: black;
        font-size: 12px;
    }

    .navigation,
    .print-button,
    .rounded-container {
        display: none;
    }

    .printable-area {
        display: block;
    }

    table {
        width: 100%;
        border-collapse: collapse;
    }

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

    th {
        background-color: #ccc;
        -webkit-print-color-adjust: exact;
    }

    tr:nth-child(odd) {
        background-color: #eee;
        -webkit-print-color-adjust: exact;
    }

    tr:nth-child(even) {
        background-color: white;
    }
}


/* ===== voeux.css ===== */
/* ========================================
   /CSS/voeux.css
   Styles spécifiques au module VOEUX
   (Version sans doublons avec responsive.css)
   ======================================== */

/* ========================================
   1. VARIABLES
   ======================================== */
:root {
    --voeux-primary: #3498db;
    --voeux-success: #2ecc71;
    --voeux-danger: #e74c3c;
    --voeux-warning: #f39c12;
    --voeux-secondary: #95a5a6;
    --voeux-dark: #2c3e50;
    --voeux-light: #f8f9fa;
    --voeux-gray: #6c757d;
}

/* ========================================
   2. STATISTIQUES (index.php)
   ======================================== */
.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card .stat-icon {
    position: absolute;
    right: 15px;
    bottom: 15px;
    font-size: 3rem;
    opacity: 0.2;
}

.stat-card h6 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin: 0;
}

.stat-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 10px 0;
    color: white;
}

.stat-card.total { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.stat-card.actifs { background: linear-gradient(135deg, var(--voeux-success) 0%, #27ae60 100%); }
.stat-card.annules { background: linear-gradient(135deg, var(--voeux-danger) 0%, #c0392b 100%); }
.stat-card.historique { background: linear-gradient(135deg, var(--voeux-secondary) 0%, #7f8c8d 100%); }
.stat-card.dernier { background: linear-gradient(135deg, var(--voeux-primary) 0%, #2980b9 100%); }

/* ========================================
   3. ACTIONS RAPIDES (index.php)
   ======================================== */
.action-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s;
    height: 100%;
    border: 2px solid transparent;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-color: var(--voeux-primary);
}

.action-card i {
    font-size: 3rem;
    color: var(--voeux-primary);
    margin-bottom: 15px;
}

/* ========================================
   4. FILTRES (liste.php)
   ======================================== */
.filtres-container {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Boutons de filtre - version unifiée */
.filtres-container .button-nav {
    height: 38px;
    padding: 0 12px;
    font-size: 0.9rem;
    min-width: 80px;
}

.filtres-container .button-nav .badge {
    margin-left: 5px;
    padding: 2px 6px;
    border-radius: 12px;
    background-color: rgba(255,255,255,0.2);
    color: white;
    font-size: 0.7rem;
    line-height: 1.4;
    height: 18px;
    display: inline-flex;
    align-items: center;
}

/* Option d'affichage des détails */
.display-options {
    background: white;
    border-radius: 8px;
    padding: 0 15px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.display-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    height: 100%;
}

.display-options input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

/* Bouton Nouveau vœu */
.btn-nouveau-nav {
    height: 38px;
    padding: 0 20px;
    background-color: #28a745 !important;
    color: white !important;
    transition: all 0.2s;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-nouveau-nav:hover {
    background-color: #218838 !important;
    transform: translateY(-2px);
}

/* ========================================
   5. CARTES DE VŒUX (liste.php)
   ======================================== */
.voeux-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.voeu-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 4px solid transparent;
    transition: transform 0.2s;
}

.voeu-card.actif { border-left-color: var(--voeux-success); }
.voeu-card.annule { border-left-color: var(--voeux-danger); }
.voeu-card.historique { border-left-color: var(--voeux-secondary); }
.voeu-card.expire { border-left-color: var(--voeux-warning); }

.voeu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.voeu-jour {
    font-weight: 600;
    font-size: 1.1rem;
}

.voeu-jour i {
    margin-right: 5px;
    color: var(--voeux-primary);
}

.voeu-id {
    color: var(--voeux-secondary);
    font-size: 0.8rem;
}

.voeu-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.voeu-info-item i {
    width: 20px;
    color: var(--voeux-gray);
}

.voeu-info-item strong {
    min-width: 70px;
}

.voeu-details {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e9ecef;
    font-size: 0.9rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

/* ========================================
   6. BADGES DE STATUT
   ======================================== */
.badge-statut {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.badge-statut.actif {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.badge-statut.annule {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.badge-statut.historique {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.badge-statut.expire {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* ========================================
   7. BOUTONS D'ACTION (horizontal)
   ======================================== */
.voeu-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    justify-content: center;
}

.voeu-actions .button-nav {
    height: 36px;
    padding: 0 10px;
    min-width: 70px;
    font-size: 13px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}

.voeu-actions .button-nav i {
    font-size: 1rem;
    margin-right: 3px;
}

/* Couleurs des actions */
.button-nav.modifier { background-color: var(--voeux-warning); }
.button-nav.modifier:hover { background-color: #e67e22; }

.button-nav.annuler { background-color: var(--voeux-secondary); }
.button-nav.annuler:hover { background-color: #7f8c8d; }

.button-nav.reactiver { background-color: var(--voeux-success); }
.button-nav.reactiver:hover { background-color: #27ae60; }

.button-nav.archiver { background-color: var(--voeux-primary); }
.button-nav.archiver:hover { background-color: #2980b9; }

.button-nav.supprimer { background-color: var(--voeux-danger); }
.button-nav.supprimer:hover { background-color: #c0392b; }

/* ========================================
   8. ÉTAT VIDE
   ======================================== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.empty-state i {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 20px;
}

/* ========================================
   9. MEDIA QUERIES SPÉCIFIQUES VOEUX
   ======================================== */

/* Mobile */
@media (max-width: 768px) {
    .stat-card h2 { font-size: 1.8rem; }
    
    .filtres-container .button-nav,
    .btn-nouveau-nav,
    .display-options {
        height: 36px;
        font-size: 0.85rem;
    }
    
    .voeu-actions .button-nav {
        height: 34px;
        min-width: 60px;
        font-size: 12px;
    }
}

/* Petit mobile */
@media (max-width: 480px) {
    .voeu-details .detail-item span:last-child {
        max-width: 100px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Desktop */
@media (min-width: 769px) {
    .voeux-cards {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 20px;
    }
    
    .voeu-actions {
        justify-content: flex-start;
    }
    
    .voeu-actions .button-nav {
        height: 38px;
        min-width: 100px;
        font-size: 14px;
    }
}

/* ========================================
   10. ANIMATIONS
   ======================================== */
@keyframes voeux-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.voeux-cards .voeu-card {
    animation: voeux-fadeIn 0.3s ease;
}

/* ========================================
   STYLE POUR LES COMMENTAIRES
   ======================================== */
.detail-item.commentaire {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.detail-item.commentaire .detail-label {
    margin-bottom: 3px;
}

.commentaire-texte {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    font-style: italic;
    color: #2c3e50;
    width: 100%;
    box-sizing: border-box;
    border-left: 3px solid var(--voeux-primary);
    white-space: pre-wrap;  /* Pour conserver les sauts de ligne */
    word-break: break-word; /* Pour couper les mots trop longs */
}

/* Version mobile */
@media (max-width: 480px) {
    .commentaire-texte {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
}


/* Styles spécifiques au résumé - version simplifiée */
.resume-header {
    text-align: center;
    margin-bottom: 20px;
}

.resume-header h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.resume-header p {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Reprise du style des filtres de liste.php */
.filtres-container {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.filtre-btn-nav {
    min-width: 80px;
    padding: 10px 15px !important;
    font-weight: 500;
    text-align: center;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.9rem;
}

.filtre-btn-nav .badge {
    margin-left: 5px;
    padding: 3px 6px;
    border-radius: 12px;
    background-color: rgba(255,255,255,0.2) !important;
    color: white;
    font-size: 0.7rem;
}

.btn-export {
    background-color: #28a745 !important;
    color: white !important;
    border: none;
    padding: 10px 20px !important;
    border-radius: 25px;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-export:hover {
    background-color: #218838 !important;
    transform: translateY(-2px);
}

/* Cartes de statistiques compactes */
.stat-card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 15px;
}

.stat-card .nombre {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.stat-card .label {
    color: #7f8c8d;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Tableau responsive */
.resume-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
    font-size: 0.9rem;
}

.resume-table th {
    background: #3498db;
    color: white;
    padding: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.resume-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e9ecef;
}

.resume-table tr:last-child td {
    border-bottom: none;
}

.resume-table .statut-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.statut-badge.actif {
    background: #d4edda;
    color: #155724;
}

.statut-badge.passe {
    background: #e2e3e5;
    color: #383d41;
}

.statut-badge.futur {
    background: #cce5ff;
    color: #004085;
}

/* Adaptation mobile */
@media (max-width: 768px) {
    .button-row {
        gap: 5px;
    }
    
    .filtre-btn-nav {
        min-width: 70px;
        padding: 8px 10px !important;
        font-size: 0.8rem;
    }
    
    .btn-export {
        width: 100%;
        margin-top: 10px;
        justify-content: center;
    }
    
    .resume-table th, .resume-table td {
        white-space: nowrap;
    }
    
    .resume-table {
        overflow-x: auto;
        display: block;
    }
}




/* ===== simulation.css (modifié: 2026-03-06 11:21:07) ===== */
/* ========================================
   FICHIER : simulation.css
   DESCRIPTION : Styles spécifiques aux simulations
   ======================================== */

/* ============================
   Simulation des niveaux
============================ */
.simu-niveau-container {
    margin: 10px auto;
    margin-top: 3em;
    padding: 8px 12px;
    background-color: #fff3cd;
    color: black;
    border: 2px solid #dc3545;
    border-radius: 5px;
    max-width: 300px;
    font-weight: bold;

    /* Flexbox pour aligner les éléments sur la même ligne */
    display: flex;
    justify-content: flex-start;
    gap: 10px; /* Espacement entre le texte et le sélecteur */
}

.simu-niveau-form .form-line {
    display: flex;
    align-items: center;
}

.simu-niveau-form select {
    padding: 2px 6px;
    font-size: 0.85em;
    width: auto; /* Sélecteur ne dépasse pas sa largeur naturelle */
}

.simu-niveau-form span {
    font-weight: bold;
    margin-right: 10px; /* Espacement entre le texte et le sélecteur */
}

.simu-niveau-form select {
    padding: 5px 5px;
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-left: 10px;
    color: black;
}

.simu-niveau-info {
    text-align: center;
    margin: 10px auto;
    padding: 8px 12px;
    background-color: #fff3cd;
    color: black;
    border: 2px solid #dc3545;
    border-radius: 5px;
    max-width: 300px;
    font-weight: bold;
}