

/* ===== 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; }
}

/* Animations pour les messages flash */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    0% { opacity: 1; visibility: visible; }
    70% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

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

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

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

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

/* Animation fadeInUp pour les éléments flash */
.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* ========================================
   MESSAGES DE SUCCÈS AVEC MINUTERIE (SANS CLIGNOTEMENT)
   ======================================== */

.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: 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;
}


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

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;
}

/* Ajustement des espacements dans la gestion de famille */
.rounded-container h3 {
    margin-bottom: 0.1rem; /* Réduction sous "Ajouter un membre" */
}

.rounded-container .list-group {
    margin-top: 0.5rem;    /* Espace entre "Membres (x/10)" et la liste */
}

.rounded-container .form-inline {
    margin-bottom: 0.75rem; /* Espace sous le formulaire d'ajout (avant séparateur) */
}

.rounded-container .separator {
    margin: 0.75rem 0;      /* Espace vertical uniforme autour du séparateur */
    height: 1px;            /* Optionnel : rend le séparateur visible */
    background-color: #ddd; /* Couleur légère pour le trait */
    border: none;
}

.rounded-container .delete-family-form {
    margin-top: 0.5rem;     /* Espace au-dessus du bouton "Supprimer la famille" */
}

/* 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 */


/* ===== flash.css ===== */
/* ========================================
   FICHIER : flash.css
   DESCRIPTION : Styles spécifiques aux messages flash
   ======================================== */

/* ========================================
   CONTENEUR PRINCIPAL FLASH
   ======================================== */
.flash-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0; /* Suppression du padding vertical */
    min-height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
}

.flash-title {
    text-align: center;
    color: #333;
    margin: 0; /* Suppression totale des marges verticales */
    padding: 0; /* Suppression du padding vertical */
    font-size: 1.8em;
}

.flash-title i {
    color: #007bff;
    margin-right: 10px;
}

/* ========================================
   MESSAGE FLASH ACTIF
   ======================================== */
.flash-actif {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.flash-actif strong {
    font-size: 1.2em;
    display: block;
    margin-bottom: 10px;
}

.flash-actif p {
    margin: 0;
    line-height: 1.5;
}

.terminer {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background 0.3s;
}

.terminer:hover {
    background: rgba(255,255,255,0.4);
}

/* ========================================
   FORMULAIRE (ROUNDED CONTAINER)
   ======================================== */
.rounded-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.rounded-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.rounded-container form {
    width: 100%;
}

.rounded-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.rounded-container input[type="text"],
.rounded-container input[type="datetime-local"],
.rounded-container input[type="number"],
.rounded-container textarea,
.rounded-container select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    margin-bottom: 15px;
    font-family: inherit;
}

.rounded-container textarea {
    resize: vertical;
}

.rounded-container input:focus,
.rounded-container textarea:focus,
.rounded-container select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.2);
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-row .form-group label {
    margin-bottom: 5px;
}

.hint-text {
    font-size: 12px;
    color: #666;
    margin-top: -10px;
    margin-bottom: 15px;
}

.source-options {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.source-options label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: normal;
}

.media-option {
    display: none;
    margin-bottom: 15px;
}

.media-option.active {
    display: block;
}

.media-option input,
.media-option select {
    width: 100%;
}

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

/* Champ durée avec affichage 3 chiffres */
#duree_secondes {
    text-align: center;
    font-family: monospace;
    font-size: 1.2em;
    letter-spacing: 2px;
    width: 100px;
}

#duree_secondes::-webkit-inner-spin-button,
#duree_secondes::-webkit-outer-spin-button {
    opacity: 0.5;
}

/* ========================================
   CONTENU DU FLASH
   ======================================== */
.flash-message {
    font-size: 1.2em;
    line-height: 1.6;
    color: #444;
    margin: 0 auto; /* Suppression des marges verticales */
    max-width: 700px;
    text-align: center;
    padding: 20px 25px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    word-break: break-word;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Suppression des marges des paragraphes dans le message */
.flash-message p {
    margin: 0;
    padding: 0;
}

/* Petit espace entre les paragraphes si nécessaire */
.flash-message p + p {
    margin-top: 0.5em;
}

.flash-media {
    max-width: 700px;
    margin: 15px auto;
    text-align: center;
    width: 100%;
}

.flash-media img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flash-media img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.flash-media video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.flash-media iframe {
    max-width: 100%;
    border-radius: 8px;
    aspect-ratio: 16/9;
    width: 100%;
}

/* ========================================
   PÉRIODE ET TIMER
   ======================================== */
.periode-info {
    text-align: center;
    font-size: 0.95em;
    color: #666;
    margin: 10px 0;
    padding: 8px 20px;
    background: #f5f5f5;
    border-radius: 50px;
    display: inline-block;
    align-self: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.periode-info i {
    color: #007bff;
    margin-right: 8px;
}

.timer-container {
    text-align: center;
    margin: 10px 0;
    font-size: 1.1em;
    color: #666;
}

.timer-progress {
    width: 100%;
    max-width: 400px;
    margin: 10px auto;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.timer-bar {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    width: 100%;
    transition: width 1s linear;
    border-radius: 4px;
}

.timer-text {
    font-weight: 500;
    color: #28a745;
}

.timer-text i {
    color: #28a745;
}

/* ========================================
   ACTIONS
   ======================================== */
.actions-wrapper {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.flash-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 600px;
    width: 100%;
}

.flash-actions form {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.progress-info {
    text-align: center;
    font-size: 1em;
    color: #28a745;
    margin-top: 10px;
    padding: 8px 25px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 50px;
    display: inline-block;
    align-self: center;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.progress-info i {
    margin-right: 8px;
    color: #28a745;
}

/* ========================================
   ZOOM INDICATOR
   ======================================== */
.zoom-indicator {
    position: relative;
    display: inline-block;
    width: 100%;
}

.zoom-indicator::after {
    content: '🔍';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.zoom-indicator:hover::after {
    opacity: 1;
}

.zoom-thumbnail {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.zoom-thumbnail:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 10;
    position: relative;
}

/* ========================================
   CARTES D'HISTORIQUE
   ======================================== */
.flash-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 16px;
    padding: 16px;
    transition: all 0.3s ease;
    border-left: 4px solid #ddd;
}

.flash-card.actif {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #f0fff0 100%);
}

.flash-card.futur {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
}

.flash-card.expire {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #ffffff 0%, #fff3e0 100%);
}

.flash-card.termine {
    border-left-color: #6c757d;
    background: #f8f9fa;
    opacity: 0.9;
}

.flash-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

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

.flash-title-card {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
}

.flash-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7em;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-actif {
    background: #28a745;
    color: white;
}

.badge-inactif {
    background: #dc3545;
    color: white;
}

.badge-futur {
    background: #17a2b8;
    color: white;
}

.flash-content {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    color: #555;
    line-height: 1.5;
    border-left: 3px solid #007bff;
}

.flash-periode {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.flash-media-link {
    margin: 10px 0;
}

.flash-media-link a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #007bff;
    text-decoration: none;
    font-size: 0.9em;
    padding: 5px 12px;
    background: #e7f1ff;
    border-radius: 20px;
    transition: all 0.3s;
}

.flash-media-link a:hover {
    background: #007bff;
    color: white;
}

.flash-actions-card {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

/* ========================================
   STATISTIQUES MINI
   ======================================== */
.flash-stats {
    margin: 15px 0 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stats-title-mini {
    font-size: 0.85em;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stats-group-mini {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-chip-mini {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

.stat-chip-mini.vu {
    background: #e3f2fd;
    color: #1976d2;
}

.stat-chip-mini.passe {
    background: #fff3e0;
    color: #f57c00;
}

.stat-chip-mini.cache {
    background: #ffebee;
    color: #d32f2f;
}

.stat-chip-mini.total {
    background: #e8f5e8;
    color: #388e3c;
}

.stat-number-mini {
    font-weight: 700;
    font-size: 1.1em;
}

.stat-label-mini {
    font-size: 0.7em;
    opacity: 0.8;
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    box-sizing: border-box;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border: 3px solid #fff;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 18px;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

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

.stats-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 0.9em;
}

.stats-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 12px 8px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.stats-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.stats-table tbody tr:hover {
    background: #f8f9fa;
}

.messages-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 0.9em;
}

.messages-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 10px 8px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.messages-table td {
    padding: 8px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.messages-table tbody tr:hover {
    background: #f8f9fa;
}

.col-id { width: auto; min-width: 60px; }
.col-titre { width: auto; min-width: 150px; }
.col-contenu { width: auto; max-width: 300px; }
.col-duree { width: auto; min-width: 70px; }
.col-dates { width: auto; min-width: 140px; }
.col-stats { width: auto; min-width: 80px; text-align: center; }

.content-cell {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #555;
    font-style: italic;
}

.summary-row {
    background: #f8f9fa !important;
    border-top: 2px solid #dee2e6;
    font-weight: 600;
}

.summary-row td {
    background: #f8f9fa;
    padding: 12px 8px;
}

.summary-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #28a745;
    font-weight: 600;
}

.summary-title i {
    font-size: 1.2em;
}

/* ========================================
   CARTES MOBILE
   ======================================== */
.mobile-version-messages,
.mobile-version-users {
    display: none;
    padding: 0 10px;
}

.message-card,
.user-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 12px;
    margin-left: 8px;
    margin-right: 8px;
    padding: 12px;
    border-left: 3px solid #007bff;
}

.message-header,
.user-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    font-size: 0.85em;
}

.user-name {
    font-weight: bold;
    font-size: 1em;
    flex: 1;
}

.message-content {
    background: #f9f9f9;
    padding: 8px 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #555;
    border-left: 2px solid #ddd;
    word-break: break-word;
}

.user-forme {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 8px;
}

.stats-grid,
.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 10px;
}

.stat-item {
    text-align: center;
    padding: 6px 2px;
    border-radius: 5px;
    background: #f8f9fa;
    font-size: 0.75em;
}

.stat-item.vu { background: #e3f2fd; }
.stat-item.passe { background: #fff3e0; }
.stat-item.cache { background: #ffebee; }
.stat-item.total { background: #e8f5e8; }

.stat-number {
    font-size: 1.1em;
    font-weight: bold;
    margin: 2px 0;
}

.stat-label {
    font-size: 0.7em;
    color: #666;
    white-space: nowrap;
}

.summary-card {
    background: #f8f9fa;
    border-left-color: #28a745;
    margin-top: 15px;
}

.summary-card .summary-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #28a745;
}

.badge-forme {
    background: #e7f1ff;
    color: #0c63e4;
}

/* ========================================
   BOUTONS
   ======================================== */
.btn-small {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

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

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

.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    0% { opacity: 1; visibility: visible; }
    70% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}


/* ========================================
  émoticônes
   ======================================== */

/* Palette d'émoticônes */
.emoji-picker {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.emoji-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.2s;
}

.emoji-btn:hover {
    background: #e0e0e0;
    transform: scale(1.05);
}

.emoji-panel {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px;
    display: none;
    z-index: 1000;
    width: 300px;
    max-height: 200px;
    overflow-y: auto;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
}

.emoji-panel.active {
    display: grid;
}

.emoji-item {
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
    text-align: center;
    transition: transform 0.1s;
    border-radius: 5px;
}

.emoji-item:hover {
    background: #f0f0f0;
    transform: scale(1.2);
}

.emoji-category {
    grid-column: 1 / -1;
    font-size: 0.8em;
    font-weight: bold;
    color: #666;
    margin-top: 5px;
    margin-bottom: 2px;
    text-align: left;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .flash-container {
        padding: 0; /* Suppression du padding vertical sur mobile */
    }
    
    .flash-title {
        font-size: 1.5em;
        margin: 0; /* Suppression des marges verticales sur mobile */
        padding: 0;
    }
    
    .flash-message {
        font-size: 1.1em;
        padding: 15px 15px;
        margin: 0 auto; /* Suppression des marges verticales sur mobile */
    }
    
    .flash-media {
        margin: 10px auto;
    }
    
    .periode-info {
        font-size: 0.9em;
        padding: 6px 18px;
        margin: 8px 0;
    }
    
    .timer-container {
        font-size: 1em;
        margin: 8px 0;
    }
    
    .timer-progress {
        margin: 8px auto;
    }
    
    .flash-actions button {
        width: 100%;
        min-width: unset;
        padding: 14px 20px;
        font-size: 1em;
    }
    
    .flash-actions form {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .actions-wrapper {
        margin: 12px 0;
    }
    
    .progress-info {
        font-size: 0.95em;
        padding: 6px 20px;
        margin-top: 8px;
    }
    
    .zoom-indicator::after {
        font-size: 10px;
        padding: 3px 8px;
        bottom: 5px;
        right: 5px;
    }
    
    .flash-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .periode-info {
        font-size: 0.75em;
    }
    
    .stats-group-mini {
        gap: 8px;
    }
    
    .stat-chip-mini {
        padding: 3px 8px;
        font-size: 0.75em;
    }
    
    .stat-number-mini {
        font-size: 0.9em;
    }
    
    .flash-actions-card {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .flash-card {
        padding: 12px;
    }
    
    /* Masquer les tableaux sur mobile */
    .stats-table,
    .stats-table thead,
    .stats-table tbody,
    .stats-table th,
    .stats-table td,
    .stats-table tr,
    .messages-table,
    .messages-table thead,
    .messages-table tbody,
    .messages-table th,
    .messages-table td,
    .messages-table tr {
        display: none;
    }
    
    /* Afficher les cartes */
    .mobile-version-messages,
    .mobile-version-users {
        display: block;
    }
}

@media (min-width: 769px) {
    .messages-table,
    .stats-table {
        display: table;
    }
    .mobile-version-messages,
    .mobile-version-users {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .flash-container {
        padding: 0; /* Suppression du padding sur tablette */
    }
    
    .flash-actions button {
        min-width: 180px;
        padding: 14px 25px;
    }
    
    .flash-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .mobile-version-messages,
    .mobile-version-users {
        padding: 0 5px;
    }
    
    .message-card,
    .user-card {
        margin-left: 4px;
        margin-right: 4px;
    }
}


/* ===== buttons.css ===== */
/* ========================================
    FICHIER : buttons.css
    DESCRIPTION : Styles pour tous les boutons
    VERSION : 2.0 (corrigée)
    ======================================== */

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

/* Style de base pour tous les boutons */
.button,
.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;
}

/* CORRECTION 1 : Suppression de "button.button-nav" en double
   Pourquoi ? La classe .button-nav suffit, pas besoin de préfixer avec "button" */

/* 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 {
    width: fit-content;  /* Même comportement que button_reserverJW */
    min-width: unset;    /* Supprime min-width qui force une largeur */
    max-width: unset;    /* Supprime max-width */
    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
   ======================================== */

/* CORRECTION 2 : Sélecteur corrigé
   AVANT : .button-nav:hover (avec espace avant :hover)
   APRÈS : .button-nav:hover (sans espace)
   Pourquoi ? Un espace avant :hover est invalide et casse la règle */
.button-nav:hover {
    transform: translateY(-1px);
}

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

/* Effet de pression pour les boutons colorés */
.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);
}

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

/* CORRECTION 3 : Suppression de la redéfinition redondante
   AVANT : button.button-nav redéfinissait les mêmes propriétés que .button-nav
   Pourquoi ? Cela crée de la confusion et du code dupliqué */
/* Version simplifiée - utilise les propriétés de .button-nav de base */
.button-nav {
    /* Les propriétés sont déjà définies dans la règle de base */
    /* On ne garde que les surcharges nécessaires */
    padding: 8px 10px;  /* Surcharge légèrement différente du .button-nav de base */
    font-size: 12px;    /* Surcharge pour les boutons nav uniquement */
}

/* Styles pour les formulaires de suppression */
.delete-family-form {
    display: inline-block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Fallback pour les navigateurs anciens */
.delete-family-form {
    display: table;
    margin-left: auto;
    margin-right: auto;
}

.delete-family-form button {
    width: auto;
}

/* ========================================
   BOUTONS pour les ROUTIERS
   ======================================== */
.centered-date { text-align:center; margin: 6px 0; }
.button-row.justify-center { justify-content:center; gap:8px; }
.nav-arrow { text-decoration:none; padding:0 .25rem; }


/* ========================================
   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 */
.button_reserverJW {
    position: relative;
    padding: 6px 20px 6px 8px;
    box-sizing: border-box;
    max-width: 100%;
    white-space: nowrap;
    overflow: visible;
}

.button_reserverJW::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 10px;
    height: 12px;
    background-color: #007bff;
    border-radius: 50%;
}

/* ========================================
   GARANTIE DE VISIBILITÉ
   ======================================== */

/* CORRECTION 4 : Suppression des !important abusifs
   AVANT : !important sur display, opacity, visibility
   Pourquoi ? !important rend le code difficile à maintenir et surcharger
   Solution : Structure CSS propre sans !important inutiles */
   
/* Version sans !important - la spécificité naturelle suffit */
.slot-form button[type="submit"],
.button-green-nav {
    display: inline-block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 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;
}

/* Comportement "table-container" pour les groupes de formulaire */
.form-group {
    max-width: 200px;           /* 600 pour une Largeur maximale confortable pour la lecture */
    margin-left: auto;           /* Centre le bloc horizontalement */
    margin-right: auto;
    width: 100%;                 /* Prend toute la largeur disponible jusqu'à 600px */
    overflow-x: auto;            /* Évite les débordements sur très petits écrans */
    -webkit-overflow-scrolling: touch;
    padding: 0 5px;              /* Un peu d'espace sur les côtés */
}

.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;
}

/* Pour le formulaire d'ajout de membre */
.form-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.form-inline .form-group {
    margin-bottom: 0;           /* Évite les marges inutiles */
    flex: 1 1 auto;
    min-width: 200px;           /* Le select garde une taille confortable */
}

.form-inline button {
    flex: 0 0 auto;             /* Le bouton ne s'agrandit pas */
    width: auto;                /* Largeur seulement celle du contenu */
}

/* ========================================
   CAS SPÉCIFIQUE : BOUTONS HORIZONTAUX
   ======================================== */

/* Uniquement pour ce formulaire précis */
.form-horizontal-buttons {
    display: flex;
    flex-direction: row;      /* Force l'alignement horizontal */
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ========================================
   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;
}


/* ===== simulation.css ===== */
/* ========================================
   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;
}


/* ===== responsive.css ===== */
/* ========================================
   FICHIER : responsive.css
   DESCRIPTION : Styles responsifs et mise en page
   ======================================== */

/* ============================
   STYLES DE BASE & STRUCTURE
============================ */

/* Structure principale */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Centrage des sections famille */
.famille-form-section,
.famille-info-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.famille-form-section h2,
.famille-info-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* Centrage du texte "Complet" dans la colonne Action */
.texte-complet {
    display: block;
    text-align: center;
    width: 100%;
}

.texte-complet-left {
    display: block;
    text-align: left;
    width: 100%;
}

.texte-limite, .texte-passe {
    display: block;
    text-align: center;
    width: 100%;
}

/* Texte descriptif centré avec alignement gauche */
.centered-text {
    text-align: center;
    margin-bottom: 30px;
}

.centered-text p {
    display: inline-block;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Liste centrée */
.centered-list {
    text-align: center;
}

.centered-list ul {
    display: inline-block;
    text-align: left;
    list-style-position: outside;
    padding-left: 30px;
    margin: 15px 0;
}

.centered-list li {
    margin: 8px 0;
    text-align: left;
}

/* Formulaires centrés */
.centered-form {
    max-width: 400px;
    margin: 0 auto;
}

.centered-form .form-group {
    margin-bottom: 15px;
    text-align: left;
}

.centered-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.centered-form input,
.centered-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.centered-form button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
}

/* ============================
   STYLES COMMUNS POUR BOUTONS
============================ */

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

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

/* ============================
   STYLES POUR TABLEAUX
============================ */

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

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

/* ============================
   STYLES POUR IMAGES RESPONSIVES
============================ */

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;
}

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

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

/* ============================
   STYLES POUR MESSAGES
============================ */

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

/* ============================
   STYLES POUR FORMULAIRES
============================ */

.rename-form input[type="text"] {
    width: 90%;
    font-size: 14px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ============================
   STYLES POUR PASTILLES
============================ */

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

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

/* ============================
   STYLES POUR HEADER
============================ */

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

.center-container {
    width: 80%;
    margin: 0 auto;
}

/* ============================
   MEDIA QUERIES (ORGANISÉES PAR TAILLE)
============================ */

/* Grand écran tablette */
@media (max-width: 768px) {
    .chart-container canvas {
        height: 250px;
    }
}

/* Tablette moyenne */
@media (max-width: 767px) {
    .mobile-version-users,
    .mobile-version-messages {
        padding: 0 12px;
    }
    
    .user-card,
    .message-card {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Mobile large */
@media (max-width: 600px) {
    body {
        width: 100%;
    }
    
    .table-publications {
        width: 100%;
        font-size: 14px;
    }
    
    th, td {
        padding: 10px;
    }
    
    .photo-box {
        width: 45%;
        padding: 8px;
    }
    
    .rename-form input[type="text"] {
        width: 90%;
        font-size: 14px;
    }
    
    .center-container {
        width: 80%;
    }
    
    /* Adaptations famille */
    .famille-form-section,
    .famille-info-section {
        margin: 10px;
        padding: 15px;
    }
    
    .container {
        padding: 10px;
    }
}

/* Mobile moyen */
@media (max-width: 580px) {
    .header-container {
        width: 97%;
        font-size: 18px;
        padding: 8px 10px;
    }
    
    table {
        font-size: 12px;
        margin: 0 auto;
    }
    
    th, td {
        padding: 5px;
    }
}

/* Petit mobile */
@media (max-width: 480px) {
    .chart-container canvas {
        height: 200px;
    }
    
    .famille-form-section,
    .famille-info-section {
        padding: 12px;
    }
}

/* ============================
   STYLES POUR L'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;
        print-color-adjust: exact;
    }
    
    tr:nth-child(odd) {
        background-color: #eee;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    tr:nth-child(even) {
        background-color: white;
    }
}

/* ============================
   STYLES POUR GRAPHIQUES
============================ */

.chart-container canvas {
    width: 100%;
    height: auto;
}


/* ===== 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;
    }
}


