@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

/* ==========================================================================
   1. RÈGLES GLOBALES & ÉLÉMENTS DE BASE
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

h1 {
  color: #0f766e;
  text-align: center;
  margin: 0px auto;
}

body {
  font-size: 11px;
  margin-left: 0px;
  margin-top: 0px;
  margin-right: 0px;
  margin-bottom: 10px;
  font-family: 'Roboto', sans-serif;
  background-color: #f8fafc; /* Vert */ /* col site */
}

*:disabled {
  opacity: 0.5;
}


p.itemadhesion {
  margin-top: 15px;
  margin-bottom: 2px;
}


.breakWord {
  word-break: break-word;
  word-break: break-all;
  min-width: 80px;
  font-size: 1.4em;
}


/* ==========================================================================
   2. TYPOGRAPHIE ET TEXTES SPÉCIFIQUES
   ========================================================================== */

.normal_evt_encours {
  color: #000000;
  color: #0284c7;
  font-size: 10px;
  font-weight: 800;
}

.normal_evt_passe {
  color: #808080;
  color: #6b7280;
  font-size: 10px;
}

.normal_evt_futur { 
  color: #00A994;
  color: #10b981;
  font-size: 10px;
}

.text-formulaire { /*10*/
  /*color: #05447A;*/
  color: #000000;
  font-size: 14px;
}

.text-recap {
  color: #05447A;
  font-size: 11px;
}


.titre-listes { /*10*/
  color: #05447A;
  margin-top: 20px;
  font-weight: bold;
  font-size: 24px;
}

/* --- Intitulés --- */

form p.intitule,
.intitule {
  font-size: 16px;
  margin-bottom: 3px;
  color: #878787;
}

form p.intitule-majeur,
.intitule-majeur {
  font-size: 20px;
  margin-bottom: 3px;
  color: #878787;
}

form p.intitule span {
  color: #878787;
}

form p.intitulesmall,
p.intitulesmall,
.intitulesmall {
  font-size: 14px;
  margin-bottom: 3px;
  color: #878787;
  font-family: 'Roboto', sans-serif;
}

form p.intitulesmallsub {
  padding: 2px 20px;
  font-size: 12px;
  margin-bottom: 3px;
  margin-left: 3px;
  color: #878787;
  font-family: 'Roboto', sans-serif;
}

.intitulesmallsub {
  padding: 2px 1px;
  font-size: 12px;
  margin-bottom: 3px;
  margin-left: 0px;
  color: #878787;
  font-family: 'Roboto', sans-serif;
}

p.intitulesmalljustify {
  font-size: 12px;
  margin-bottom: 3px;
  color: #878787;
  text-align: justify;
  font-family: 'Roboto', sans-serif;
}

.enter-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;           /* Espace constant entre les boutons */
    flex-wrap: wrap;     /* Autorise le passage à la ligne */
}

/* --- Messages & Alertes --- */

form .message {
  margin: auto;
  font-size: 14px;
  margin-top: 10px;
  margin-bottom: 10px;
  color: #0f766e; /* col site */
  text-align: center;
}

.message {
  font-size: 14px;
  margin-top: 20px;
  color: #0f766e; /* col site */
  text-align: center;
}

.message-date {
  font-size: 12px;
  margin-top: 2px;
  margin-bottom: 5px;
  color: #0f766e; /* col site */
  text-align: center;
}

.message-alert {
  font-size: 16px;
  margin-top: 20px;
  color: #ff0000;
  text-align: center;
}

.message-alert-fort {
  font-size: 10px;
  margin-top: 0px;
  margin-bottom: 40px;
  color: red;
}

.message-alert-fortbig {
  font-size: 16px;
  margin-top: 0px;
  margin-bottom: 12px;
  color: red;
}

/* ==========================================================================
   3. LIENS ET BOUTONS
   ========================================================================== */

a:link {
  color: #0068B4;
  font-size: 12px;
  text-decoration: none;
}

a:visited {
  color: #0068B4;
  font-size: 12px;
  text-decoration: none;
}

a:active {
  color: #000000;
  font-size: 12px;
  text-decoration: none;
}


a:hover {
  color: #7E0000;
  font-size: 12px;
  text-decoration: none;
}

a.header-link {
  color: #000000 !important;
  font-size: 16px !important;
  text-decoration: none !important;
}

a.header-link:hover {
  color: #000000 !important;
  font-size: 16px !important;
  text-decoration: none !important;
}

a.header-link:link {
  color: #0068B4 !important;
  font-size: 16px !important;
  text-decoration: none !important;
}

a.header-link:visited {
  color: #0068B4 !important;
  font-size: 16px !important;
  text-decoration: none !important;
}

a.header-link:active {
  color: #000000 !important;
  font-size: 16px !important;
  text-decoration: none !important;
}


a.formulaire:link,
a.formulaire:visited,
a.formulaire:focus {
  outline: none;
  text-decoration: none;
  font-size: 16px;
  color: #0068B4;
}

a.formulaire:hover {
  outline: none;
  font-size: 16px;
  text-decoration: underline;
  color: #0068B4;
}

a.formulaire:active {
  font-size: 16px;
  outline: none;
  color: #0068B4;
}

button {
  font-size: 12px;
  background-color: #fff;
  color: black;
  border: 1px solid black;
  border-radius: 2px; /* Pour un bord non arrondi */
  padding: 5px 3px;
  margin-top: 5px;
  cursor: pointer;
}

/* --- Boutons d'action (Harmonisation & Thème) --- */

form button,
.btn-action,
.copy,
.imite {
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  color: #ffffff !important;
  background-color: #059669 !important; /* Vert émeraude */
  outline: none;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
}

form button:hover,
.btn-action:hover,
.copy:hover,
.imite:hover {
  background-color: #047857 !important; /* Vert un peu plus sombre au survol */ /* colsite */
}

form button:active,
.btn-action:active,
.copy:active,
.imite:active {
  transform: scale(0.98); /* Léger effet d'enfoncement au clic */ /* colsite */
}

/* Style du bouton mis à jour */
.imite {
  background-color: #059669 !important; /* col site */
  color: white !important;
  border: none !important;
  padding: 5px 5px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-weight: bold !important;
  width: fit-content !important; 
  /* Sécurité supplémentaire */
  float: none !important;
}

.btn-primary {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  margin-right: 0.5rem;
}

.btn-secondary {
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 0.5rem;
}

/* Bouton ultra-compact (icône seule) */
.btn-sm-save {
  background-color: #2563eb;
  color: white;
  border: none;
  height: 38px;
  width: 38px; /* Forçage en carré */
  min-width: 38px;
  padding: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.1s;
  margin: 0 !important;
}

.btn-sm-save:hover {
  background-color: #1d4ed8;
}

.btn-sm-save:active {
  transform: scale(0.95);
}

/* style.css */
#scrollToTopButton {
  display: block;
  z-index: 99;
  transition: background-color 0.3s, opacity 0.5s, visibility 0.5s;
  opacity: 0;
  visibility: hidden;
  position: fixed;
  bottom: 20px;
  right: 30px;
  border: none;
  border-radius: 4px;
  outline: none;
  width: 50px;
  height: 50px;
  padding: 8px;
  background-color: #333333bf;
}

#scrollToTopButton i {
  color: white;
}

#scrollToTopButton:hover,
#scrollToTopButton:focus,
#scrollToTopButton:focus-within {
  cursor: pointer;
  background-color: #0078b4;
}

/* ==========================================================================
   4. LAYOUT, GRILLES ET CONTENEURS
   ========================================================================== */

.conteneurfull {
  margin: auto;
  padding: 10px; /* Pour créer une marge interne de 10px */
}

.conteneur {
  min-width: 200px;
  max-width: 300px; /* Ajustez la largeur selon vos besoins */
  margin: 0 auto;
  padding: 10px; /* Pour créer une marge interne de 10px */
}

.conteneurmedium {
  min-width: 280px;
  max-width: 600px; /* Ajustez la largeur selon vos besoins */
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.conteneurmediummessage {
  background-color: #fff;
  padding: 5px 20px;
  border-radius: 10px;
  min-width: 280px;
  max-width: 600px; /* Ajustez la largeur selon vos besoins */
  margin: 0 auto;
}

#container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.box {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

#container_secretariat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 0px;
}

#container_adherent {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 0px;
}

#container_adhesion {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 0px;
}

/* ==========================================================================
   5. FORMULAIRES ET CHAMPS DE SAISIE
   ========================================================================== */

fieldset {
  margin-top: 10px;
  margin-bottom: 10px;
  border: 1;
  background-color: #fff;
  padding: 5px 20px;
  border-radius: 10px;
}

form .enter {
  margin: auto;
  text-align: center;
  margin-bottom: 10px;
}

.enter {
  margin: 0 auto;
  text-align: center;
}

form p.choose-email {
  text-align: center;
}

form .input-log {
  display: flex;
  flex-direction: column;
  margin-top: 5px;
}
.titre-adhesion {
	margin-top: 40px;
}

form .localform {
  min-width: 280px;
  max-width: 600px; /* Ajustez la largeur selon vos besoins */
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-adhesion {
  min-width: 100px;
  margin-top: 0px;
  margin-bottom: 0px;
  margin-left: 10px;
  margin-right: 10px;
  background: #ffffff;
  border-radius: 12px;                   /* Coins légèrement arrondis */
  padding: 20px;                         /* Espacement intérieur pour la lisibilité */
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.08); /* Ombre douce verte pour le relief */
  border: 1px solid #d1fae5;             /* Bordure fine pour la définition */
}




form .form-adhesion {
  min-width: 100px;
  margin-top: 0px;
  margin-bottom: 0px;
  margin-left: 10px;
  margin-right: 10px;
  background: #ffff;
  padding: 20px;                         /* Espacement intérieur pour la lisibilité */
}
.localform {
  min-width: 280px;
  max-width: 600px; /* Ajustez la largeur selon vos besoins */
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.localformad {
  min-width: 100px;
  margin-top: 0px;
  margin-bottom: 0px;
  margin-left: 10px;
  margin-right: 10px;
  background: #ffffff;
  border-radius: 12px;                   /* Coins légèrement arrondis */
  padding: 20px;                         /* Espacement intérieur pour la lisibilité */
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.08); /* Ombre douce verte pour le relief */
  border: 1px solid #d1fae5;             /* Bordure fine pour la définition */
}

.localformnadcont {
  background-color: #fff;
  padding: 40px 20px;
  border-radius: 10px;
  margin-top: 25px;
  margin-left: 3px;
  margin-right: 3px;
}

#container_section .localformnadcont {
  /* On utilise calc pour déduire une marge de sécurité de 20px de chaque côté */
  width: calc(100% - 40px) !important; 
  /* Ta largeur max souhaitée */
  max-width: 950px !important; 
  /* On force le calcul correct de la largeur (incluant padding/border) */
  box-sizing: border-box !important;
  /* Marges auto pour centrer le bloc */
  margin-left: auto !important;
  margin-right: auto !important;
  /* Optionnel : assure une marge basse pour ne pas coller au bord du bas */
  margin-bottom: 20px !important; 
}

.graphiques {
  min-width: 280px;
  max-width: 1024px; /* Ajustez la largeur selon vos besoins */
  margin: 0 auto 1.5rem auto; /* 1.5rem (~24px) d'espace sous chaque carte */
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* 👇 AJOUTER CES DEUX LIGNES POUR CENTRER */
  align-items: center;    /* Centre horizontalement l'image et le paragraphe */
  text-align: center;     /* Centre le texte du paragraphe */
}
.main-content {
  padding-top: 1.5rem; /* Crée 24px d'espace sous le menu */
}

.modalform {
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #f2f2f2;
  outline: none;
  margin-bottom: 5px;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
}

/* --- Inputs de base --- */

input[type=email], 
input[type=password], 
input[type=text],
input[type=number] {
  font-size: 12px;
  background-color: #fff;
  color: black;
  border: 1px solid black;
  border-radius: 2px; /* Pour un bord non arrondi */
  padding: 12px 7px; /* Ajustez ces valeurs pour la taille du bouton */
  margin-top: 5px;
}
input.login-pass-item[type=password], 
input.login-pass-item[type=text]{
  font-size: 18px;
  background-color: #fff;
  color: black;
  border: 1px solid black;
  border-radius: 2px; /* Pour un bord non arrondi */
  padding: 12px 7px; /* Ajustez ces valeurs pour la taille du bouton */
  margin-top: 25px;
}

input.agenda {
  padding: 10px;
  width: 95%;
  border: none;
  border-radius: 5px;
  background-color: #f2f2f2;
  outline: none;
  margin-bottom: 5px;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  resize: none;
}

/* --- Input File --- */

input[type=file] {
  font-family: 'Roboto', sans-serif;
  padding: 10px 0px;
  border: 0px;
  width: 250px;
  max-width: 100%;
  font-size: 12px;
  margin-bottom: 0px;
}

input[type=file]::file-selector-button {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 500;
  background-color: #059669 !important; /* Vert émeraude */ /* col site */
  color: #ffffff !important;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  margin-bottom: 0px;
  margin-right: 10px;                   /* Espacement avec le nom du fichier choisi */
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

input[type=file]::file-selector-button:hover {
  background-color: #047857 !important; /* Vert un peu plus sombre au survol */
}

/* --- Champs avancés (Paires, Selects, Focus) --- */

input[type="text"] {
  background-color: #ffffff !important;   /* Fond blanc pur indispensable */
  border: 1px solid #cbd5e1 !important;   /* Bordure grise/bleutée fine et nette */
  border-radius: 6px !important;          /* Coins légèrement arrondis */
  /*padding: 8px 12px !important;*/
  color: #1e293b !important;              /* Texte sombre très lisible */
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  outline: none;
}

input[type="text"]:focus {
  border-color: #059669 !important;      /* La bordure passe en vert émeraude */
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important; /* Halo vert très doux */
}

select {
  background-color: #ffffff !important;   /* Fond blanc pur indispensable */
  border: 1px solid #cbd5e1 !important;   /* Bordure grise/bleutée fine et nette */
  border-radius: 6px !important;          /* Coins légèrement arrondis */
  padding: 8px 12px !important;
  color: #1e293b !important;              /* Texte sombre très lisible */
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  outline: none;
  max-width: 300px; 
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="number"],
input[type="email"],
input[type="password"],
input[type="text"],
input[type="date"],
textarea {
  background-color: #ffffff !important;   /* Fond blanc pur indispensable */
  border: 1px solid #cbd5e1 !important;   /* Bordure grise/bleutée fine et nette */
  border-radius: 6px !important;          /* Coins légèrement arrondis */
  color: #1e293b !important;              /* Texte sombre très lisible */
  padding: 8px 12px !important;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input.phonenumber.js-phone-input,
.iti input[type="text"].phonenumber {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  padding-left: 50px !important;
  padding-right: 0px !important;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  border-color: #059669 !important;      /* La bordure passe en vert émeraude */
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important; /* Halo vert très doux */
}

/* Nouveau conteneur pour mettre côte à côte */
.time-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px; /* Espace entre les deux champs */
  margin-bottom: 10px;
}

/* Votre CSS ajusté pour les selects de temps */
form select.time {
  padding: 8px 12px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  outline: none;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: auto;             /* 👈 Modifié pour éviter les conflits */
  min-width: 70px;         /* 👈 Largeur minimale propre */
  box-sizing: border-box;
  color: #1e293b !important;
}

form select.formulairemail,
form select.formulairetel {
  padding: 8px 12px !important;
  width: 95%;
  border: 1px solid #cbd5e1 !important;   /* Bordure grise/bleutée fine et nette */
  border-radius: 6px !important;          /* Coins légèrement arrondis */
  background-color: #ffffff !important;   /* Fond blanc pur indispensable */
  outline: none;
  margin-bottom: 5px;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  resize: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 95%;             /* S'adapte aux petits écrans */
  max-width: 125px;       /* 👈 Limite la largeur maximale */
  box-sizing: border-box; /* 👈 Indispensable pour éviter que le padding ne dépasse de la largeur */
  color: #1e293b !important;              /* Texte sombre très lisible */
}

form select.file {
   padding: 8px 12px !important;
  width: 95%;
  border: 1px solid #cbd5e1 !important;   /* Bordure grise/bleutée fine et nette */
  border-radius: 6px !important;          /* Coins légèrement arrondis */
  background-color: #ffffff !important;   /* Fond blanc pur indispensable */
  outline: none;
  margin-bottom: 5px;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  resize: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 95%;             /* S'adapte aux petits écrans */
  max-width: 280px;       /* 👈 Limite la largeur maximale */
  box-sizing: border-box; /* 👈 Indispensable pour éviter que le padding ne dépasse de la largeur */
  color: #1e293b !important;              /* Texte sombre très lisible */
}

form textarea {
  padding: 8px 12px !important;
  width: 95%;
  border: 1px solid #cbd5e1 !important;   /* Bordure grise/bleutée fine et nette */
  border-radius: 6px !important;          /* Coins légèrement arrondis */
  background-color: #ffffff !important;   /* Fond blanc pur indispensable */
  outline: none;
  margin-bottom: 5px;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  resize: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 95%;             /* S'adapte aux petits écrans */
  max-width: 500px;       /* 👈 Limite la largeur maximale */
  box-sizing: border-box; /* 👈 Indispensable pour éviter que le padding ne dépasse de la largeur */
  color: #1e293b !important;              /* Texte sombre très lisible */
}

.comment-group {
  display: flex;
  align-items: center; /* Aligne verticalement le centre du champ et du bouton */
  gap: 0.5rem;
  margin-top: 0.3rem;
  width: 100%;
}

/* Forcer le conteneur du picker d'émojis à occuper tout l'espace et gérer sa hauteur */
.comment-group > div, 
.comment-group .lcep-wrapper,
.comment-group .lcep-input-wrap {
  flex: 1 !important;
  width: 100% !important;
  position: relative;
  display: flex; /* S'assure que le wrap interne s'aligne proprement */
  align-items: center;
}

/* Ajustement de l'input */
.comment-group input.agenda {
  width: 100% !important;
  box-sizing: border-box;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  height: 38px; /* On fixe une hauteur égale au bouton pour un alignement au pixel près */
}

/* ==========================================================================
   6. TABLEAUX ET CARTES LISTES
   ========================================================================== */

table { 
  page-break-inside: auto;
  page-break-before: avoid;
}

tr { 
  page-break-inside: avoid; 
  page-break-after: auto; 
}

td, th {
  font-size: 12px;
}

.trsombre {
  height: 11px;
  background-color: #f0fdf4; /* col site */
}

.trclair {
  height: 11px;
  background-color: #fff; /* col site */
}

.trsombre:hover,
.trclair:hover {
  background-color: #d1fae5 !important; /* Surlignage vert menthe réactif */ /* col site */
}

.tri {
  width: 16px;
  height: 16px;
  border: 0px;
}

.tdformulaire {
  padding: 1px; /* Espacement interne des cellules */
  text-align: center; /* Alignement horizontal du texte */
  /*white-space: nowrap; /* Empêche le retour à la ligne */
}

.tdformulaireleft {
  padding: 5px; /* Espacement interne des cellules */
  vertical-align: middle;
  text-align: left;
}

.tdsmall {
  height: 25px;
}

.tdformulaireright {
  padding: 5px; /* Espacement interne des cellules */
  vertical-align: middle;
  text-align: right;
}

.tdw {
  vertical-align: middle;
  flex-wrap: wrap;
  text-align: right;
}

.tdformulairerighttop {
  height: 20px;
  vertical-align: top;
  text-align: right;
}

.alignmiddle {
  height: 20px;
  vertical-align: top;
  text-align: center;
}

.menutr {
  vertical-align: top;
  height: 46px;
}

/* --- Structure de la Carte Liste --- */

.liste-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 20px;
  margin: 0 auto 1.5rem auto; /* 1.5rem (~24px) d'espace sous chaque carte */
  max-width: 95%;
  border: 1px solid #e0e0e0;
}
.liste-card-config {
  margin: 0 auto 1.5rem auto; /* 1.5rem (~24px) d'espace sous chaque carte */
}

.liste-header {
  display: flex !important;
  flex-direction: column !important; /* Aligne en colonne */
  align-items: center !important;    /* Centre horizontalement dans la colonne */
  gap: 2px !important;              /* Espace régulier entre les 3 lignes */
  width: 100% !important;
  box-sizing: border-box !important;
  border-bottom: 1px solid #eee;
  padding: 20px;
  margin: 0px auto;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 15px;
  padding: 8px; 
  box-sizing: border-box; /* Garde le tableau bien aligné à l'intérieur */
}

.tabformulaire {
  width: 98%; /* S'assure que le tableau occupe tout l'espace restant */
  border-collapse: collapse;
  margin: 0 auto; /* Centre le tableau horizontalement */
  table-layout: auto;
  height: 0; /* Hauteur du tableau */
  border: 0px solid #ccc; /* Ajoute une bordure autour du tableau */
}
.formulaire-vide {
border: 2px dashed #ccc; 
background: #fff; 
padding: 30px; 
text-align: center; 
border-radius: 8px; 
max-width: 600px; 
margin: 40px auto;
}
.formulaire-vide-message {
style="margin: 0 0 10px 0; 
font-size: 1.2em; 
color: #666;
}

.tabformulaire th {
  text-align: left;
  padding: 8px 5px;
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  white-space: nowrap;
}

.tabformulaire td {
  text-align: left;
  padding: 8px 5px !important;
  vertical-align: middle;
  border-bottom: 1px solid #eee;
}

/* --- Icônes du tableau --- */

.fa-sort { 
  cursor: pointer; 
  color: #3498db; 
  margin-left: 5px; 
}

/* Dans ton <style> */
.tabformulaire th i {
  margin-left: 8px;
  cursor: pointer;
  font-size: 1.4em; /* Augmente la taille de 20% */
  color: #888;      /* Couleur discrète par défaut */
  transition: color 0.2s;
  vertical-align: middle;
}

.tabformulaire th i:hover {
  color: #007bff;   /* Change de couleur au survol */
}

/* Style de base pour TOUTES les icônes de tri */
.tabformulaire th i.fa-solid {
  margin-left: 8px;
  cursor: pointer;
  font-size: 1.4em;       /* Taille de base plus grande */
  color: #ccc;           /* Gris clair par défaut */
  transition: all 0.2s;  /* Animation fluide pour couleur ET taille */
  display: inline-block; /* INDISPENSABLE pour que le scale() fonctionne */
  vertical-align: middle;
}

/* Au survol */
.tabformulaire th i.fa-solid:hover {
  color: #007bff;
  transform: scale(1.2); /* Petit effet de zoom au survol */
}

/* L'icône ACTIVE (tri en cours) */
.active-sort {
  color: #007bff !important; /* Bleu forcé */
  transform: scale(1.3);    /* Encore un peu plus gros que les autres */
}

/* --- Footer de Tableau --- */

/* --- Footer (Total et Boutons) --- */
/* --- Footer (Total, Lien, Bouton empilés) --- */
/* --- Footer (Total, Lien, Bouton empilés) --- */
/* --- Footer : Empilement Vertical Garanti --- */
.table-footer-info {
  display: flex !important;
  flex-direction: column !important; /* Aligne en colonne */
  align-items: center !important;    /* Centre horizontalement dans la colonne */
  gap: 15px !important;              /* Espace régulier entre les 3 lignes */
  padding: 20px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border-top: 1px solid #eee;
}

/* On force chaque élément à se centrer réellement */
.table-footer-info span, 
.table-footer-info a, 
.table-footer-info button {
  display: block !important;
  text-align: center !important;
  /* LE SECRET : auto sur les marges latérales pour centrer un bloc fit-content */
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 10 !important;
  margin-bottom: 10 !important;
  padding: 10px !important;
  font-size: 1.6em;
}

/* ==========================================================================
   7. PAGINATION
   ========================================================================== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 15px 0;
  font-family: system-ui, -apple-system, sans-serif;
}

.page-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1; /* 👈 AJOUT : Empêche la hauteur de texte d'influencer le bouton */
  box-sizing: border-box; /* 👈 AJOUT : Fixe les dimensions exactes avec la bordure */
  color: #065f46 !important;
  background-color: #ffffff !important;
  border: 1px solid #a7f3d0 !important;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s; /* 👈 MODIFIÉ : Ne met plus "all" pour éviter les animations de taille */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 2. Stabilise l'élément actif */
.page-item.active {
    display: inline-flex !important; /* Fixe le display flex pour la pagination */
    background-color: #059669 !important;
    color: #ffffff !important;
    border-color: #059669 !important;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2);
}

/* Au survol d'une page */
a.page-item:hover {
  background-color: #d1fae5 !important;
  color: #047857 !important;
  border-color: #34d399 !important;
  transform: translateY(-1px);
}



/* Flèches de navigation */
.page-item.nav-arrow {
  font-size: 16px;
  font-weight: bold;
}

/* Séparateur élégant (...) */
.pagination-separator {
  color: #94a3b8;
  padding: 0 4px;
}

.page-item.neighbor-near,
.page-item.neighbor-far,
.page-item.jump-mid,
.page-item.jump-far {
  display: none;
}

/* ==========================================================================
   8. COMPOSANTS SPÉCIFIQUES (AGENDA, EVENEMENTS, TROMBI, ICÔNES)
   ========================================================================== */

.agenda {
  background-color: #fff;
  padding: 40px 20px;
  border-radius: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.entry {
  background-color: #fff;
  padding: 20px 10px;
  border-radius: 10px;
  min-width: 100px;
  max-width: 800px;
  margin-top: 20px;
  margin-bottom: 20px;
  margin: auto;
}

.entrylarge {
  background-color: #fff;
  padding: 40px 60px;
  border-radius: 10px;
  min-width: 500px;
  max-width: 700px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.card-event {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-event:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.card-date {
  font-size: 1.05rem;
  font-weight: 700;
}

.card-body {
  flex-grow: 1;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0.25rem 0 0.75rem 0;
}

.card-info {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 0.4rem;
}

.card-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #e5e7eb;
}

.card-details.hidden {
  display: none;
}

.inscrits-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem 0;
}

.inscrits-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f9fafb;
}

.inscrits-list img {
  width: 36px;
  height: 36px;
  border-radius: 100%;
  object-fit: cover;
}

.card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
}

.card-actions-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.card-actions-icons a {
  color: #4b5563;
  font-size: 1.15rem;
  transition: color 0.2s;
}

.card-actions-icons a:hover {
  color: #2563eb;
}

.trombi-list img {
  width: 98px;
  height: 98px;
  border-radius: 100%;
  object-fit: cover;
}

.tooltipag {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

/* --- Icônes d'état --- */

.iconeok,
.iconevalide,
.iconealert,
.iconequest,
.iconesend,
.iconenot,
.iconenormal {
  font-size: 20px; 
  line-height: 130%;
  letter-spacing: 0.25em;
}

.iconeok { color: blue; }
.iconevalide { color: green; }
.iconealert { color: red; }
.iconequest { color: #c96; }
.iconesend { color: #FFCC33; }
.iconenot { color: #AfAfAf; }
.iconenormal { color: #000000; }

/* --- Éléments UI Divers --- */

#progressbar {
  width: 140px;
  padding: 5px;
  border: none;
  border-radius: 5px;
  background-color: #f2f2f2;
  outline: none;
  /* 20px en haut, auto sur les côtés (centré), 0 en bas */
  margin: 15px auto 10px auto; 
}

#indicator {
  padding: 3px;
  border: none;
  border-radius: 5px;
  background-color: #f2f2f2;
  outline: none;
  margin-bottom: 0px;
  margin: auto;
}

#reader { 
  margin: auto;
  width: 95%;        /* Prend 95% de la largeur du téléphone */
  max-width: 500px; /* Mais ne dépasse jamais 500px sur un grand écran */
  margin: 10px auto; 
  border-radius: 8px;
  overflow: hidden; /* Évite que la vidéo ne dépasse des bords arrondis */
  min-height: 250px; /* Évite que la page ne se décale quand la vidéo apparaît */
  background: #000;  /* Fond noir en attendant la caméra */
}

#result { 
  text-align: center; 
  font-family: sans-serif; 
  margin-top: 20px; 
}

/* ==========================================================================
   9. STRUCTURE FLEX/GRID POUR DONNÉES CLÉ/VALEUR (Data Display)
   ========================================================================== */

/* --- 1. Conteneur principal (Flexbox) --- */
.data-display-flexible {
  display: flex;
  flex-wrap: wrap; 
  gap: 10px 5px; 
  padding: 2px;
  border: 0px solid #0056b3; 
}

/* --- 2. Chaque paire (Grid) --- */
.data-pair {
  display: grid;
  /* CLÉ : Définit UNE SEULE colonne dont la largeur est celle du contenu le plus large. */
  grid-template-columns: min-content; 
  row-gap: 0; 
}

/* --- 3. Styles des éléments : Solution au problème de retour à la ligne --- */
.item, .value {
  padding: 5px 0;
  margin: 0;
  text-align: left; 
  /* 🔑 CLÉ ABSOLUE : Empêche le texte de passer à la ligne.
     Ceci force la cellule et donc le conteneur 'data-pair' 
     (grâce à 'min-content') à s'étendre pour tout contenir. */
  white-space: nowrap; 
}

.item {
  font-weight: bold;
  color: #333;
}

.value {
  color: #666;
}
.nav-header a {
	color: #065f46 !important;          /* Blanc cassé très doux et lisible */ /* colsite */
	text-decoration: none !important;
	transition: color 0.2s ease-in-out;
	font-size: 12px sans-serif;
}

/* Survol (Hover) des liens du menu principal */
.nav-header a:hover {
	color: #6ee7b7 !important;          /* Vert menthe lumineux au survol */ /* col site */
	text-decoration: none;
}

/* ==========================================================================
   CORRECTIF : Largeur ajustée & Protection contre le débordement
   ========================================================================== */

/* 1. Ajustement du conteneur de la paire (Pratique / Encadrement) */
.data-display-flexible {
  display: flex !important;
  flex-wrap: wrap !important; /* Permet le retour à la ligne si la colonne est trop étroite */
  gap: 8px !important; /* Espacement réduit entre Pratique et Encadrement */
  align-items: flex-end !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 2. Chaque bloc d'entrée (Pratique ou Encadrement) */
.data-pair {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  flex: 1 1 100px !important; /* Largeur de base réduite pour tenir à deux */
  min-width: 105px !important; /* Sécurité pour ne pas trop compresser */
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* 3. Style compact pour les sélecteurs */
.data-pair select.small {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  height: 32px !important; /* Lève un peu de hauteur */
  padding: 4px 6px !important; /* Rembourrage réduit pour maximiser le texte */
  font-size: 11px !important; /* Taille de police ajustée à l'ensemble du formulaire */
  text-overflow: ellipsis !important;
}

/* 4. Gestion des intitulés */
.data-pair .intitulesmall {
  display: block !important;
  font-size: 11px !important; /* Intitulé légèrement plus compact */
  white-space: nowrap !important;
  min-height: 16px !important;
  margin-bottom: 2px !important;
} 

/* ==========================================================================
   10. MODE IMPRESSION PDF
   ========================================================================== */

.pdf-print-mode {
  width: 190mm !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  /* 1. On diminue globalement la taille de la police */
  font-size: 10px !important; 
}

/* 2. On force le tableau à prendre toute la largeur impartie et pas plus */
.pdf-print-mode table {
  width: 100% !important;
  table-layout: fixed !important; /* Force le respect des largeurs */
}

/* 3. On réduit les espaces (paddings) dans les cellules pour gagner de la place */
.pdf-print-mode th, 
.pdf-print-mode td {
  padding: 4px 2px !important;
  word-break: break-all !important; /* Évite qu'un mail long ne dépasse de sa case */
}

/* 4. Optionnel : On peut réduire la taille de l'avatar pour gagner de la place horizontalement */
.pdf-print-mode td img,
.pdf-print-mode td svg {
  max-width: 40px !important; 
  height: auto !important;
}

/* ==========================================================================
   11. MEDIA QUERIES (RESPONSIVE DESIGN)
   ========================================================================== */

/* --- 2. PALIER 1 : Écran Smartphone XL / Tablette portrait (> 600px) --- */
/* On affiche les voisins immédiats (ex: 39, 40, 41) */
@media (min-width: 400px) {
  .page-item.neighbor-near {
    display: inline-flex;
  }
}

/* --- 3. PALIER 2 : Tablette paysage / Petit Laptop (> 900px) --- */
/* On ajoute plus de voisins et les sauts intermédiaires */
@media (min-width: 800px) {
  .page-item.neighbor-far,
  .page-item.jump-mid {
    display: inline-flex;
  }
}

/* Optimisation pour les petits écrans (Mobile) */
@media screen and (max-width: 768px) {
  /* On réduit la taille globale de la police dans le tableau */
  .tabformulaire {
    font-size: 0.85em; /* Réduit d'environ 15% */
  }

  /* On réduit l'espace interne des cellules pour gagner de la largeur */
  .tabformulaire th, 
  .tabformulaire td {
    padding: 8px 4px; /* Moins d'espace à gauche/droite */
  }

  /* On réduit la taille des icônes de tri pour qu'elles ne mangent pas trop de place */
  .tabformulaire th i.fa-solid {
    font-size: 1.1em; /* On descend de 1.4em à 1.1em */
    margin-left: 4px;
  }

  /* Optionnel : cacher certaines colonnes moins importantes sur mobile */
  /* Par exemple, si tu veux cacher la colonne "Année" (index 5) sur mobile :
  .tabformulaire td:nth-child(6), 
  .tabformulaire th:nth-child(6) {
      display: none;
  }
  */

  /* On s'assure que le texte long ne force pas le tableau à déborder */
  .breakWord {
    word-break: break-all;
    hyphens: auto;
  }
}

@media only screen and (max-width: 699px) {
  .widthPage {
    min-width: 350px;
  }
  .widthImage {
    width: 300px;
  }
}

@media only screen and (max-width: 999px) and (min-width: 700px) {
  .widthPage {
    min-width: 700px;
  }
  .widthImage {
    width: 550px;
  }
}

@media only screen and (min-width: 1000px) {
  .widthPage {
    width: 1000px;
  }
  .widthImage {
    width: 850px;
  }
}

/* --- 4. PALIER 3 : Grand écran Desktop (> 1200px) --- */
/* On affiche TOUT, y compris la totalité des grands sauts ([1], [20], [60], etc.) */
@media (min-width: 1200px) {
  .page-item.jump-far {
    display: inline-flex;
  }
}



.header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    text-align: left; /* Alignement à gauche plus naturel */
}

.header-main h1 {
    margin: 0;
    font-size: 1.5rem;
}

.subtitle {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 0.9rem;
}

.header-actions {
    display: flex;
    gap: 10px;
}
