/* ============================================
   VARIABLES
   ============================================ */
:root {
  --primaryColor: #1e3a6e;
  --primaryColorDarker: #152d56;
  --text: #2d3748;
  --text-muted: #8a96a8;
  --radius: 20px;
  --radius-sm: 8px;
  --font: 'Arial', sans-serif;
  --border: #d1d5db;
  --sidebarBg: #052280;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: #f4f6fb;
  color: var(--text);
  min-height: 100vh;
}

/* ============================================
     Gestion Activite
     ============================================ */

.btn-exportNoTable {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 22px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: bold;
  color: #fff;
  background: #10b981;
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  margin-left: auto;
  margin-right: 20px;
}

.btn-exportNoTable:hover {
  background: #059669;
  transform: scale(1.02);
}

.content .redBackgroundcolor:hover,
.content td a.redBackgroundcolor:hover,
.content .buttonDeleteTeacher:hover {
  background-color: rgb(129, 4, 4) !important;
}

.choiseHourly a {
  padding: 50px;
  font-size: 30px;
  border-radius: 20%;
}

.teacher-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 50px;
  padding-right: 75px;
}

.teacher-row--centered {
  padding-left: 0;
  padding-right: 0;
}

.align-researchActivities {
  display: flex;
  align-items: center;
  gap: 10px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.radio-item label {
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  color: #052280;
}


.radio-item input[type="radio"] {
  margin: 0px;
  width: 12px;
  height: 12px;
  cursor: pointer;
}

.researchActivities {
  padding: 15px;
  gap: 20px;
  display: flex;
}

.researchActivities .bleu {
  width: auto;
  padding: 10px 20px;
}

.align {
  width: 90%;
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  margin-left: 25px;
  margin-right: 25px;
}

.alignButton {
  width: 90%;
  display: flex;
  gap: 20px;
}

.content table .alignButton {
  margin-bottom: 0;
  padding-left: 10px;
  padding-right: 10px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  align-content: flex-start;
}


.form-group {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.form-group input,
.form-group select {
  width: 100%;
  box-sizing: border-box;
}

.form-group label {
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 8px;
}


.center {
  margin-left: 150px;
  margin-right: 150px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: calc(100vh - 100px);
  justify-content: center;
  padding-top: 30px;
  padding-bottom: 30px;
}


.fieldsetDate {
  border-radius: 4%;
  margin-top: 5px;
  border-color: var(--primaryColor);
  font-weight: bold;
  font-size: 25px;
}

.form-submit {
  display: flex;
  justify-content: space-between;
}

.form-button {
  display: flex;
  justify-content: space-between;
  margin-top: -20px;
}

.imgBlanc {
  filter: invert(1);
}

.descriptionActivity {
  height: 75px;
  padding: 12px 22px;
  resize: none;
}

.buttonDeleteTeacher {
  width: 30px;
  height: 30px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50% !important;
  padding: 0 !important;
  flex-shrink: 0;
  background-color: rgb(189, 21, 21);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}

.buttonBig {
  width: 42px;
  height: 42px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  padding: 0;
  flex-shrink: 0;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.3s ease;
}

.buttonDeleteTeacher,
.buttonBig {
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.create {
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: 0.3s;
  align-items: center;
  display: flex;
  justify-content: center;
  background-color: #052280;
  color: white;
  font-size: 14px;
  width: 80%;
  margin: 5px auto;
  padding: 8px 16px;
  font-size: 18px;
}

.circleButton {
  color: #fff;
  background: var(--primaryColor);
  width: 40px;
  height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  padding: 0;
  margin: 0 auto;
}

.circleButton:hover {
  transform: scale(1.02);
}

.tableClass {
  table-layout: fixed;
}

.redBackgroundcolor {
  background-color: rgb(191, 13, 13);
}

.td-description {
  word-break: break-word;
  white-space: normal;
}



/* ============================================
     CONFIRMATION D'UPDATE
     ============================================ */
.maj-ok {
  background-color: #d4edda;
  color: #155724;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid #c3e6cb;
}

.maj-ok button {
  background: none;
  border: none;
  color: #155724;
  font-size: 1.2rem;
  cursor: pointer;
  float: right;
  line-height: 1;
}

/* ============================================
     SEARCH / SORT WRAPPER
     ============================================ */
.search-sort-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.search-block {
  flex: 1;
}

.sort-block {
  flex-shrink: 0;
}

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

/* CONTENEUR DE RECHERCHE */
.search-container {
  position: relative;
}

/* RÉSULTATS CACHÉS PAR DÉFAUT */
#search-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

/* UN RÉSULTAT */
.search-item {
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.search-item:hover {
  background: #f0f4ff;
}

/* ============================================
     LABELS
     ============================================ */
.search-block p,
.sort-block p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
}

/* ============================================
     INPUTS
     ============================================ */
input[type="date"],
input[type="text"],
textarea,
input[type="number"],
.radio-item,
input[type="time"] {
  height: 42px;
  padding: 0 22px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  background: #e4e7f0;
  border: none;
  border-radius: var(--radius);
}

/* ============================================
     SELECTS
     ============================================ */
/* Version complète (gérer inscriptions) */
select {
  height: 42px;
  padding: 0 38px 0 22px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  background-color: #e4e7f0;
  background-image: url("../assets/img/svgIcone/arrow-select.svg");
  background-repeat: no-repeat;
  background-position: right 12px center;
  border: none;
  border-radius: var(--radius);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

/* ============================================
     SEARCH BAR
     ============================================ */
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 500px;
  margin-bottom: 28px;
}

.search-bar input {
  flex: 1;
  padding: 11px 48px 11px 18px;
  border: 1.5px solid var(--border);
  border-radius: 30px;
  font-size: .95rem;
  background: #fff;
  outline: none;
}

.search-bar input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 91, 219, .15);
}

.search-btn {
  position: absolute;
  right: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
}

.search-btn img {
  width: 20px;
  height: 20px;
  opacity: .55;
}

.search-btn:hover img {
  opacity: .85;
}

/* ============================================
     WIDTHS
     ============================================ */
#dateInscription {
  width: 140px;
}

#nom {
  width: 118px;
}

#prenom {
  width: 132px;
}

#activite {
  width: 140px;
}

#classe {
  width: 122px;
}

#statut {
  width: 160px;
}

#trier {
  width: 140px;
}

#ordre {
  width: 148px;
}

/* ============================================
     WRAPPER PRINCIPAL (Pour centrer le tout)
     ============================================ */
.inscription-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
}

form {
  display: contents;
}

/* ============================================
     CARTE INSCRIPTION (Le fond gris)
     ============================================ */
.inscription-card {
  background: #e8eaf0;
  border-radius: var(--radius);
  padding: 28px 36px;
  width: 100%;
  max-width: 560px;
}

/* ============================================
     EN-TÊTE DE LA CARTE
     ============================================ */
.inscription-card-header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1.5px solid #d0d4df;
}

.inscription-header-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  color: var(--primaryColor);
}

.inscription-header-item img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ============================================
     CORPS DE LA CARTE
     ============================================ */
.inscription-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  padding-top: 20px;
}

/* ============================================
     CHAMP INFO INDIVIDUEL
     ============================================ */
.inscription-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inscription-field-value {
  padding-left: 20px;
}

.full-width {
  grid-column: 1 / -1;
}

/* ============================================
     LIEN DOCUMENT
     ============================================ */
.inscription-field-value a {
  text-decoration: none;
  font-size: 0.88rem;
}

/* ============================================
     COMMENTAIRE
     ============================================ */
.inscription-commentaire-input {
  min-height: 64px;
  padding: 10px 16px;
  font-family: var(--font);
  font-size: 0.85rem;
  border: none;
  border-radius: var(--radius-sm);
  resize: vertical;
  margin-top: 6px;
  grid-column: 1 / -1;
}

/* ============================================
     COULEURS UTILITAIRES
     ============================================ */
.red {
  color: rgb(255, 0, 0);
  font-weight: bold;
}

.green {
  color: rgb(0, 167, 0);
  font-weight: bold;
}

/* ============================================
     STATUTS
     ============================================ */

/* Texte inline (carte inscription) */
.statut-en-attente {
  color: #f59e0b;
}

.statut-liste-attente {
  color: #742c86;
}

.statut-inscrit {
  color: #22c55e;
}

/* Badge (tableau gérer inscriptions) */
.statut {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 15px;
  font-size: 0.78rem;
  font-weight: 600;
  width: 130px;
  text-align: center;
}

.enAttente {
  background: #f59e0b;
  color: #fff;
}

.inscrit {
  background: #22c55e;
  color: #fff;
}

.listeAttente {
  background: #742c86;
  color: #fff;
}

/* ============================================
     BOUTONS
     ============================================ */
.btn-confirmer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  height: 44px;
  padding: 0 48px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: bold;
  color: #fff;
  background: #22c55e;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-confirmer:hover {
  background: #16a34a;
  transform: scale(1.02);
}

.btn-retour {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 28px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
  background: var(--primaryColor);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
}

.btn-retour:hover {
  background: var(--primaryColorDarker);
  transform: scale(1.02);
}

.btn-rechercher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 28px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
  background: var(--primaryColor);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-rechercher:hover {
  background: var(--primaryColorDarker);
  transform: scale(1.02);
}

.btn-arrows-tri {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
}

.btn-arrows-tri:hover {
  color: var(--primaryColor);
}

.btn-gerer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 22px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: bold;
  color: #fff;
  background: var(--primaryColor);
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.btn-gerer:hover {
  background: var(--primaryColorDarker);
  transform: scale(1.02);
}

.btn-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 22px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: bold;
  color: #fff;
  background: #10b981;
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.btn-export:hover {
  background: #059669;
  transform: scale(1.02);
}

.btn-supprimer {
  background-color: #d40a0a;
  color: white;
  padding: 10px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.btn-supprimer:hover {
  background-color: #8a0606;
  transform: scale(1.1);
}

/* ============================================
     TABLE
     ============================================ */
table {
  width: 100%;
  box-shadow: 0 2px 20px rgba(30, 58, 110, 0.07);
  margin-top: 24px;
  border-collapse: collapse;
}

tr:has(td):hover {
  background-color: #e4e8f0;
  border-color: #e4e8f0;
}

th {
  padding: 13px 18px;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1.5px solid #e4e8f0;
}

td {
  padding: 14px 18px;
  font-size: 0.875rem;
  border-bottom: 1px solid #e4e8f0;
  vertical-align: middle;
  white-space: nowrap;
  text-align: center;
}

.iconeCalendrier {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 7px;
  vertical-align: middle;
}

/* ============================================
     PAGINATION
     ============================================ */
.pagination {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  justify-content: center;
}

.btn-page {
  padding: 6px 12px;
  border: 0.5px solid #ccc;
  border-radius: 8px;
  text-decoration: none;
  color: #1a2e6e;
  font-size: 13px;
  transition: border-bottom 0.2s ease;
}

.btn-page:hover {
  border-bottom: 2px solid #1a2e6e;
}

.btn-page.active {
  background: #1a2e6e;
  color: white;
  border-color: #1a2e6e;
}

/* ============================================
     CARTE ACTIVITÉ
     ============================================ */
.activite-card {
  background: #e8eaf0;
  border: 2px solid var(--primaryColor);
  border-radius: var(--radius);
  padding: 20px 18px;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Titre */
.activite-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text);
  position: relative;
  padding-bottom: 6px;
}

/* Petite ligne décorative */
.activite-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--primaryColor);
  border-radius: 2px;
}

/* Texte */
.activite-info {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
}

.activite-info span {
  font-weight: 500;
}

/* Boutons */
.activite-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.btn-inscrire {
  background: #3a8f0b;
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-inscrire:hover {
  background: #2f7309;
}

.btn-disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: default;
}

.btn-info {
  background: var(--primaryColor);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

}

.btn-info:hover {
  background: var(--primaryColorDarker);
}

.activite-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ============================================
     NAVBAR
     ============================================ */
/* Contenu principal */
.sidebar {
  width: 250px;
  height: 100vh;
  position: fixed;
  display: flex;
  flex-direction: column;
  background-color: var(--sidebarBg);

}

/* En-tête (logo + hamburger) */
.sidebar-header {
  display: flex;
  padding: 10px 5px;
  align-items: center;
}

/* Logo Renaissance */
.sidebar-header .header-logo img {
  width: 240px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background-color: white;
}

/* Hamburger caché */
.sidebar-header .menu-toggler {
  display: none;
}

/* Contenu de la sidebar */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Cacher le scroll */
.sidebar-nav::-webkit-scrollbar {
  display: none;
}

/* Les liens */
.sidebar-nav .nav-list {
  list-style: none;
  display: flex;
  gap: 4px;
  padding: 0 15px;
  flex-direction: column;
  transform: translateY(15px);
}

.sidebar-nav .nav-link {
  color: white;
  display: flex;
  gap: 12px;
  border-radius: 8px;
  align-items: center;
  padding: 12px 15px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover sur les liens */
.sidebar-nav .nav-link:hover {
  background-color: white;
  color: #052280;
}

/* Partie en bas de la sidebar */
.sidebar-nav .secondary-nav {
  margin-top: auto;
  padding-bottom: 30px;
  width: 100%;
}

/* Icônes des liens */
.nav-icon img {
  filter: brightness(0) invert(1);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Hover sur les icônes */
.nav-link:hover .nav-icon img {
  filter: invert(17%) sepia(94%) saturate(3000%) hue-rotate(210deg) brightness(90%) contrast(100%);
}

/* Sous-menu déroulant de Gestion */
/* Sous-menus caché par défaut */
.nav-item-list {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 42px;
}

/* Liens du sous-menu */
.nav-item-list li a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

/* Hover sur les liens du sous-menu */
.nav-item-list li a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Affichage du contenu du sous-menu */
.has-nav-item-list.open .nav-item-list {
  max-height: 1000px;

}


/* ============================================
     AFFICHAGE DES PAGES A DROITE DE LA NAVBAR
     ============================================ */
.content {
  margin-left: 250px;
  padding: 25px;
  width: calc(100% - 250px);
  background-color: white;
  min-height: 100vh;
}

/* ============================================
     RESPONSIVE DESIGN NAVBAR
     ============================================ */
@media (max-width: 1024px) {

  .sidebar {
    width: 100%;
    height: auto;
    max-height: 64px;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 0;
    transition: max-height 0.35s ease;
    z-index: 100;
  }

  .sidebar.menu-active {
    max-height: 100vh;
  }

  .sidebar.menu-active .sidebar-nav {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    scrollbar-width: none;
  }

  .sidebar.menu-active .sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: #052280;
    padding: 10px 14px;
    border-radius: 0;
    min-height: 64px;
    justify-content: space-between;
  }

  .sidebar-header .header-logo img {
    width: 140px;
    height: auto;
  }

  .sidebar-header .menu-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    width: 36px;
    border: none;
    border-radius: 8px;
    background: white;
    color: #052280;
    cursor: pointer;
  }

  .sidebar-header .menu-toggler span {
    font-size: 1.5rem;
  }

  .sidebar-nav .nav-list {
    padding: 0 12px;
  }

  .sidebar-nav .nav-link {
    gap: 12px;
    padding: 12px 14px;
    font-size: 1rem;
  }

  .sidebar-nav .nav-link .nav-icon img {
    width: 22px;
    height: 22px;
  }

  .content {
    margin-left: 0;
    width: 100%;
    padding-top: 74px;
  }
}

/* ============================================
     POP-UP
     ============================================ */

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  z-index: 999;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.popup-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #999999;
  color: white;
  padding: 40px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

  animation: popIn2 0.3s ease-out forwards;
}

.alignPopUp {
  display: flex;
  flex-direction: column;
  /* Aligne les enfants verticalement */
  align-items: center;
  /* Centre les boutons horizontalement */
  gap: 15px;
  /* Ajoute un espace entre les boutons */
  width: 100%;
  /* S'assure que le conteneur prend toute la largeur */

}


@keyframes popIn2 {
  from {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }

  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.popup-modal h3 {
  font-size: 1.4rem;
  margin-bottom: 30px;
  font-weight: normal;
  line-height: 1.4;
}


.popup-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
  align-items: center;
}

.popup-actions button {
  padding: 10px 25px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: transform 0.1s;
}

.popup-actions button,
.popup-actions a,
.popup-actions input[type="submit"] {
  padding: 10px 25px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: transform 0.1s;
  text-decoration: none;
}

.popup-actions button:hover,
.popup-actions a:hover,
.popup-actions input[type="submit"]:hover {
  transform: scale(1.05);
}

.pop-up-annuler {
  background-color: white;
  color: var(--primaryColor);
}


.pop-up-confirmer {
  background-color: var(--primaryColor);
  color: white;
}

/* ANNULER */
.btn-annuler {
  background-color: #8e8e8e;
  color: white;
  padding: 10px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 1s;
}

.btn-annuler:hover {
  background-color: #5a5a5a;
  transform: scale(1.05)
}

.btn-confirmer_enregistrer_modifier {
  background-color: #1a1a63;
  color: white;
  padding: 10px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 28px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
  background: var(--primaryColor);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
}

.btn-confirmer_enregistrer_modifier:hover {

  transform: scale(1.05);

}

.btn-supprimer {

  background-color: #d40a0a;
  color: white;
  padding: 10px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 28px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
  background: var(--primaryColor);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;

}

.btn-supprimer:hover {

  background-color: #8a0606;
  transform: scale(1.1);
}

.btn-confirmer_enregistrer_modifier {
  background-color: #1a1a63;
  color: white;
  padding: 10px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 28px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
  background: var(--primaryColor);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
}

.btn-confirmer_enregistrer_modifier:hover {

  transform: scale(1.05);

}

.btn-supprimer {
  background-color: #d40a0a;
  color: white;
  padding: 10px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 28px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
  background: var(--primaryColor);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;

}

.btn-supprimer:hover {

  background-color: #8a0606;
  transform: scale(1.1);

}

/* ============================================
     RESPONSIVE — PAGE GERER INSCRIPTIONS AUX ACTIVITES (≤ 768px)
     ============================================ */

/* Cacher sur PC */
.mobile-cards {
  display: none;
}

@media (max-width: 768px) {

  body {
    padding: 2%;
  }

  /* --- Filtres : tout en colonne --- */
  .search-sort-wrapper {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
  }

  .filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  /* --- Cacher le tableau classique --- */
  table {
    display: none;
  }

  /* --- Cartes mobiles : une par inscription --- */
  .mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
  }

  .mobile-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 1px 6px rgba(30, 58, 110, 0.1);
  }

  .mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }

  .mobile-card-date img {
    width: 14px;
    height: 14px;
  }

  .mobile-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
  }

  .mobile-card-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text);
  }

  .mobile-card-row .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.5;
  }

  .mobile-card-nom {
    font-weight: bold;
    color: var(--text);
  }

  .mobile-card-footer {
    margin-top: 12px;
    display: flex;
    flex-direction: row;
    gap: 10px;
  }

  .mobile-card-footer .btn-gerer {
    display: block;
    width: 100%;
    text-align: center;
    border-radius: var(--radius-sm);
    flex: 1;
    font-size: 0.8rem;
    padding: 8px 5px;
  }

  .btn-export {
    display: block;
    margin-left: auto;
    width: 25%;
    text-align: center;
    padding: 10px 0;
    border-radius: var(--radius-sm);
  }

  .btn-export {
    display: block;
    margin-left: auto;
    width: 25%;
    text-align: center;
    padding: 10px 0;
    border-radius: var(--radius-sm);
  }

  .pagination {
    margin-top: 20px;
  }

  .center {
    display: block !important;
    min-height: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 15px;
    gap: 0;
  }

  .align {
    flex-direction: column;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0 15px;
    gap: 15px;
  }

  .form-group {
    width: 100%;
    flex: none;
  }

  .form-group label {
    font-size: 16px;
    margin-bottom: 5px;
  }

  .researchActivities {
    flex-direction: column;
  }

  .align-researchActivities {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .align-researchActivities>* {
    flex: 1 1 calc(50% - 12px);
  }

  .align-researchActivities input,
  .align-researchActivities select,
  .align-researchActivities a {
    width: 100%;
    text-align: center;
  }

  .center .form-submit {
    display: none;
  }

  .teacher-row {
    padding-left: 20px;
    padding-right: 35px;
  }

  .mobile-card-row-description {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .td-description {
    display: block;
    flex: 1;
    min-width: 0;
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: normal !important;
  }

  .mobile-card-label-nowrap {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .popup-actions--vertical {
        flex-direction: column;
        align-items: stretch;
    }

    .popup-actions--vertical button,
    .popup-actions--vertical input[type="submit"],
    .popup-actions--vertical a {
        width: 100%;
        padding: 14px;
        box-sizing: border-box;
    }

}

/* ============================================
     RESPONSIVE — PAGE INSCRIPTION A UNE ACTIVITE (≤ 560px)
     ============================================ */
@media (max-width: 768px) {

  .inscription-wrapper {
    padding: 16px 12px;
  }

  .inscription-card {
    padding: 16px;
  }

  .inscription-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .inscription-card-body {
    grid-template-columns: 1fr;
  }

  .inscription-field-value {
    padding-left: 0;
  }
}

/* ============================================
     PROFIL (profileView.css)
     ============================================ */

/* Variables spécifiques au profil */
:root {
  --navy: #052280;
  --navy-hover: #2a3170;
  --accent: #2c3e8c;
  --bg: #f0f0f0;
  --card-bg: #dcdcdc;
  --item-bg: #ebebeb;
  --muted: #888;
  --danger: #c0392b;
}

/* --- ZONE DE CONTENU --- */
.gProfil-content {
  margin-left: 250px;
  padding: 30px 36px;
  background: var(--bg);
  min-height: 100vh;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.gProfil-content h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 4px;
}

.gProfil-content .gProfil-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 24px;
}

/* --- CARDS --- */
.gProfil-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 20px;
}

.gProfil-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 18px;
}

.gProfil-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 18px;
}

.gProfil-card-icon {
  width: 20px;
  height: 20px;
  filter: invert(10%) sepia(80%) saturate(700%) hue-rotate(210deg);
}

/* --- GRILLE 2 COLONNES --- */
.gProfil-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* --- ITEM (chaque champ) --- */
.gProfil-item {
  background: var(--item-bg);
  border-radius: 12px;
  padding: 12px 16px;
}

.gProfil-item label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

/* --- LIGNE CHAMP + CRAYON --- */
.gProfil-field-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gProfil-field-row input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  outline: none;
  padding: 2px 0;
  transition: border-color 0.15s;
}

.gProfil-field-row input:focus {
  border-bottom-color: var(--accent);
}

.gProfil-edit-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.45;
  cursor: pointer;
  filter: invert(10%) sepia(80%) saturate(700%) hue-rotate(210deg);
  transition: opacity 0.15s;
}

.gProfil-edit-icon:hover {
  opacity: 1;
}

/* --- BOUTON ENREGISTRER --- */
.gProfil-card-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* --- SECTION PHOTO --- */
.gProfil-photo-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.gProfil-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #c8c8c8;
}

.gProfil-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #c8c8c8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--muted);
}

.gProfil-avatar-edit form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

input[type="file"]#photo-input {
  display: none;
}

/* --- BOUTONS --- */
.gProfil-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 20px;
  border: none;
  background: var(--navy);
  color: white;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.gProfil-btn:hover {
  background: var(--navy-hover);
  transform: translateY(-1px);
}

.gProfil-btn-outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}

.gProfil-btn-outline:hover {
  background: var(--navy);
  color: white;
}

.gProfil-btn-cancel {
  background: transparent;
  border: 2px solid var(--muted);
  color: var(--muted);
}

.gProfil-btn-cancel:hover {
  background: var(--muted);
  color: white;
}

.gProfil-danger {
  background: var(--danger);
}

.gProfil-danger:hover {
  background: #922b21;
}

.gProfil-btn-supprimer {
  background-color: #d40a0a;
  color: white;
  padding: 10px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.gProfil-btn-supprimer:hover {
  background-color: #8a0606;
  transform: scale(1.1);
}

/* --- Autorisation photo --- */
.gProfil-tagPhotoAutor {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.gProfil-photoNonAutor {
  background: var(--danger);
  color: white;
}

.gProfil-photoAutor {
  background: var(--navy);
  color: white;
}

.gProfil-autorisation-photo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- SÉPARATEUR --- */
.gProfil-card-separator {
  border: none;
  border-top: 1px solid #c8c8c8;
  margin: 20px 0;
}

/* --- ADRESSE --- */
.gProfil-adresse-display {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  flex: 1;
}

/* --- Enfant --- */
.gProfil-add-enfant summary {
  cursor: pointer;
  list-style: none;
  margin-top: 4px;
}

.gProfil-add-enfant summary::-webkit-details-marker {
  display: none;
}

.gProfil-no-data {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.gProfil-enfant-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.gProfil-avatar-small {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #c8c8c8;
  flex-shrink: 0;
}

.gProfil-enfant-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.gProfil-enfant-info strong {
  font-size: 14px;
  color: var(--text);
}

.gProfil-enfant-info small {
  font-size: 12px;
  color: var(--muted);
}

.gProfil-enfant-info form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.gProfil-enfant-info input[type="file"] {
  display: none;
}

.gProfil-btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}

.gProfil-enfant-activites {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  margin-bottom: 6px;
}

.gProfil-tag {
  background: var(--navy);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.gProfil-tag-muted {
  background: var(--item-bg);
  color: var(--muted);
}

.gProfil-select-field {
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  font-family: Arial;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  outline: none;
  padding: 2px 0;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.15s;
}

.gProfil-select-field:focus {
  border-bottom-color: var(--accent);
}

/* --- CARTE DÉSACTIVATION --- */
.gProfil-card-danger {
  border: 1px solid rgba(192, 57, 43, 0.25);
}

.gProfil-card-danger h2 {
  color: var(--danger);
}

.gProfil-card-danger p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

/* --- POPUP TOAST (erreur haut de page) --- */
.gProfil-popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  transition: opacity 0.3s;
}

.gProfil-popup.gProfil-hidden {
  display: none;
}

.gProfil-btn-close-popup {
  color: white;
  border: none;
  background-color: #c0392b;
  cursor: pointer;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gProfil-btn-close-popup:hover {
  background-color: #852419;
  transition: .2s;
}

.gProfil-popup-box-red {
  background: #c0392b;
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* --- OVERLAY (fond flouté) --- */
/* CACHÉ PAR DÉFAUT */
.gProfil-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  z-index: 999;
}

.gProfil-popup-overlay.actif {
  display: block;
}

/* --- POPUP MODALE (confirmation) --- */
/* CACHÉ PAR DÉFAUT */
.gProfil-popup-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  background: #999;
  color: white;
  padding: 40px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gProfil-popup-modal.actif {
  display: block;
}

.gProfil-popup-modal h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.gProfil-popup-modal p {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.5;
}

.gProfil-popup-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.gProfil-popup-actions form {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.gProfil-pop-up-annuler {
  background-color: var(--bg);
  color: var(--accent);
  padding: 10px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.gProfil-pop-up-annuler:hover {
  background: var(--muted);
  color: white;
  transform: scale(1.1);
}

.gProfil-pop-up-confirmer {
  background-color: #1a1a63;
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.gProfil-pop-up-confirmer:hover {
  background: #922b21;
  transform: scale(1.1);
}

/* --- DOCUMENTS --- */
.gProfil-doc-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.gProfil-doc-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.gProfil-doc-icon {
  width: 28px;
  height: 28px;
  filter: invert(10%) sepia(80%) saturate(700%) hue-rotate(210deg);
  flex-shrink: 0;
}

.gProfil-doc-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.gProfil-doc-info strong {
  font-size: 14px;
  color: var(--text);
}

.gProfil-doc-info small {
  font-size: 12px;
  color: var(--muted);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .gProfil-content {
    margin-left: 0;
    padding: 70px 16px 24px;
  }

  .gProfil-grid {
    grid-template-columns: 1fr;
  }

  .gProfil-photo-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/*  =============================================
      Moyens communication
      ============================================= */
/* Boutons*/
.btn-create-com {
  background: #052280;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0px;
  height: 44px;
  padding: 0 15px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: bold;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  transition: 1s;
}

.btn-create-com:hover {
  background: #1a2e6e;
  transform: scale(1.05);
}

#tdBouton{

  border-radius: 20px;
}

.btn-confirmer-com {
  background-color: #1a1a63;
  padding: 10px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.btn-confirmer-com:hover {

  transform: scale(1.05);
  background-color: #5a5aa3;

}

.btn-annuler-com {
  background-color: #8e8e8e;
  color: white;
  padding: 10px 30px;
  font-size: 0.9rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 1s;
  height: 42px
}

.btn-annuler-com:hover {
  background-color: #5a5a5a;
  transform: scale(1.05);

}

.form-add-com {
  display: flex;
  flex-direction: row;
  gap: 15px;
  width: 100%;
}

.form-add-com input#field {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.form-btn-com {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 100%;
}

.form-btn-com button {
  flex: 1;
  margin-top: 10px;
  padding: 10px;
  text-align: center;
}

/* Tableau*/
.tabCom {
  width: 600px;
  margin: 0 auto;
  background-color: rgb(220, 220, 230);
  border-radius: 20px;
  padding: 10px;
  font-style: bold;
  /*border: solid 2px;*/
}

/* titre*/
.moyCom {
  display: block;
  top: 0;
  left: 0;
  height: 80px;
  text-align: center;
  /*border: solid 2px*/
}

/* responsive */
.respCom {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 481px) and (max-width: 1024px) {
  .respCom {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .form-add-com {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .respCom .tabCom {
    display: table;
    width: 400px;
    min-width: max-content;
  }
}

@media (max-width: 480px) {
  .respCom {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .form-add-com {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .respCom .tabCom {
    display: table;
    width: max-content;
    min-width: max-content;
  }

  .mobile-com {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .mobile-com .tabCom {
    display: table;
    width: max-content;
    min-width: max-content;
  }
}

/* ============================================================================================================================================================ */
/* ============================================= USE CASE : Attribuer une classe à un membre pour une inscription ============================================= */
/* ============================================================================================================================================================ */

/* Smartphone : 360 x 800 ; Tablette : 768 x 1024 ; PC Portable : 1366 x 768; PC Fixe : 1920 x 1080*/

/* -------------------------------------------------------------------------
     1. Titre & Sous-titre
     ------------------------------------------------------------------------- */
.acmi_h1 {
  font-size: 1.5rem;
  color: var(--primaryColor);
  font-weight: bold;
  margin-bottom: 8px;
}

.acmi_h2 {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 25px;
}

/* -------------------------------------------------------------------------
     2. DISPOSITION & BOÎTES (Boîtes: stats, profs, tri, boutons)
     ------------------------------------------------------------------------- */
.acmi_container_stats_profs,
.acmi_entete_globale {
  display: flex;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 25px;
}

.acmi_boite_infos,
.acmi_boite_professeur,
.acmi_recherche_et_trier,
.acmi_actions_footer {
  flex: 1;
  min-width: 0;
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 6px rgba(30, 58, 110, 0.1);
  padding: 20px 30px;
  box-sizing: border-box;
  margin: 0;
}

.acmi_boite_infos {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.acmi_boite_professeur {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 15px;
}

.acmi_boite_infos p {
  margin: 12px 0;
  color: var(--text);
  display: flex;
  justify-content: space-between;
}

.acmi_titre_prof {
  color: var(--text);
  margin-top: 12px;
}

.acmi_noms_profs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acmi_noms_profs strong {
  color: var(--text);
  word-break: break-word;
  line-height: 1.3;
}

.acmi_recherche_et_trier {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.acmi_actions_footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* -------------------------------------------------------------------------
     3. BARRE DE RECHERCHE & FILTRES
     ------------------------------------------------------------------------- */
.acmi_barre_de_recherche {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 180px;
  min-width: 150px;
}

.acmi_barre_de_recherche input {
  width: 100%;
  padding: 11px 40px 11px 18px;
  border: 1.5px solid var(--border);
  border-radius: 30px;
  font-size: 0.95rem;
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.acmi_barre_de_recherche input:focus {
  border-color: var(--primaryColor);
  box-shadow: 0 0 0 3px rgba(30, 58, 110, 0.15);
}

.acmi_barre_de_recherche input:hover {
  transform: scale(1.02);
}

.acmi_icone_loupe {
  position: absolute;
  right: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  width: 32px;
  height: 32px;
  opacity: 0.55;
  transition: opacity 0.2s;
}

.acmi_icone_loupe:hover {
  opacity: 0.85;
}

.acmi_liste_trier_par,
.acmi_liste_ordre,
.acmi_liste_annee_academique {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--text);
}

.acmi_liste_annee_academique select,
.acmi_liste_trier_par select,
.acmi_liste_ordre select {
  width: 100%;
  max-width: 100%;
  height: 42px;
  padding: 0 38px 0 22px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background-color: #e4e7f0;
  background-image: url("../assets/img/svgIcone/arrow-gererinscription.svg");
  background-repeat: no-repeat;
  background-position: right 14px center;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: var(--radius);
  outline: none;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.acmi_liste_annee_academique select:focus,
.acmi_liste_trier_par select:focus,
.acmi_liste_ordre select:focus {
  box-shadow: 0 0 0 2px rgba(30, 58, 110, 0.15);
}

.acmi_liste_annee_academique select:hover,
.acmi_liste_trier_par select:hover,
.acmi_liste_ordre select:hover {
  transform: scale(1.02);
}

/* -------------------------------------------------------------------------
     4. BOUTONS D'ACTIONS
     ------------------------------------------------------------------------- */
.acmi_boutons_actions {
  display: flex;
  gap: 15px;
}

.acmi_barre_actions_tableau {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

.acmi_bouton_selectionner,
.acmi_boutons_actions button,
.acmi_bouton_retirer,
.acmi_bouton_ajouter,
.acmi_zone_cocher_tout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  font-size: 0.9rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  box-sizing: border-box;
  border-radius: var(--radius-sm);
}

.acmi_zone_cocher_tout {
  background-color: #e4e7f0;
  border-radius: var(--radius);
  color: var(--text);
  gap: 10px;
  margin-left: auto;
}

.acmi_zone_cocher_tout:hover {
  background-color: #d1d5db;
  transform: scale(1.02);
}

.acmi_boutons_actions button:not(.acmi_btn_export),
.acmi_bouton_selectionner {
  background-color: var(--primaryColor);
  color: #ffffff;
}

.acmi_boutons_actions button:not(.acmi_btn_export):hover,
.acmi_bouton_selectionner:hover {
  background-color: var(--primaryColorDarker);
  transform: scale(1.02);
}

.acmi_boutons_actions button.acmi_bouton_retirer,
.acmi_bouton_retirer {
  background-color: #b30000;
  color: #ffffff;
}

.acmi_boutons_actions button.acmi_bouton_retirer:hover:not(:disabled),
.acmi_bouton_retirer:hover:not(:disabled) {
  background-color: #850000;
  transform: scale(1.02);
}

.acmi_boutons_actions button.acmi_bouton_ajouter,
.acmi_bouton_ajouter {
  background-color: #22c55e;
  color: #ffffff;
}

.acmi_boutons_actions button.acmi_bouton_ajouter:hover:not(:disabled),
.acmi_bouton_ajouter:hover:not(:disabled) {
  background-color: #16a34a;
  transform: scale(1.02);
}

.acmi_boutons_actions button.acmi_bouton_ajouter:disabled,
.acmi_bouton_ajouter:disabled,
.acmi_bouton_retirer:disabled {
  background-color: #e4e7f0 !important;
  color: var(--text-muted) !important;
  cursor: not-allowed;
  transform: none !important;
}

.acmi_btn_export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  height: 42px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
  background: #10b981;
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  margin-left: auto;
}

.acmi_btn_export:hover {
  background: #059669;
  transform: scale(1.02);
}

.acmi_btn_export:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #8e8e8e !important;
  pointer-events: none;
}

/* -------------------------------------------------------------------------
     5. TABLEAUX
     ------------------------------------------------------------------------- */
.acmi_tableau_des_classes,
.acmi_tableau_des_eleves {
  width: 100%;
  box-shadow: 0 2px 20px rgba(30, 58, 110, 0.07);
  margin-top: 5px;
  border-collapse: collapse;
  background-color: #ffffff;
}

.acmi_tableau_des_classes tr:not(.acmi_tr_vide):not(.acmi_ligne_fantome):hover td,
.acmi_tableau_des_eleves tr:not(.acmi_tr_vide):not(.acmi_ligne_fantome):hover td {
  background-color: #e4e8f0;
  border-color: #e4e8f0;
}
tr.acmi_tr_vide, 
tr.acmi_tr_vide td,
tr.acmi_tr_vide:hover, 
tr.acmi_tr_vide:hover td,
tr.acmi_ligne_fantome, 
tr.acmi_ligne_fantome td,
tr.acmi_ligne_fantome:hover, 
tr.acmi_ligne_fantome:hover td {
    background-color: #ffffff !important;
    pointer-events: none !important;
    cursor: default !important;
}

.acmi_tableau_des_classes th,
.acmi_tableau_des_eleves th,
.acmi_tableau_des_classes td,
.acmi_tableau_des_eleves td {
  padding: 13px 18px;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid #e4e8f0;
}

.acmi_tableau_des_classes th,
.acmi_tableau_des_eleves th {
  border-bottom-width: 1.5px;
  font-weight: bold;
}

.acmi_tableau_des_classes td,
.acmi_tableau_des_eleves td {
  padding: 14px 18px;
  font-size: 0.875rem;
  vertical-align: middle;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -------------------------------------------------------------------------
     6. PAGINATION
     ------------------------------------------------------------------------- */
.acmi_pagination_boutons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.acmi_pagination_boutons span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  border: 0.5px solid #cccccc;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background-color: transparent;
  display: inline-flex;
  align-items: center;
}

.acmi_pagination_boutons button {
  background-color: transparent;
  color: var(--primaryColor);
  border: 0.5px solid #cccccc;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: border-bottom 0.2s, background-color 0.2s, transform 0.2s;
}

.acmi_pagination_boutons button:hover:not(:disabled) {
  border-bottom: 2px solid var(--primaryColor);
  background-color: #f4f6fb;
  transform: scale(1.02);
}

.acmi_pagination_boutons button:disabled {
  color: #aaaaaa;
  border-color: #eeeeee;
  cursor: not-allowed;
}

/* -------------------------------------------------------------------------
     7. POP-UPS
     ------------------------------------------------------------------------- */
.acmi_message_succes,
.acmi_message_erreur {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

.acmi_fermer_message {
  opacity: 0.6;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  padding-left: 15px;
  transition: opacity 0.2s, transform 0.2s;
}

.acmi_fermer_message:hover {
  opacity: 1;
  transform: scale(1.2);
}

.acmi_popup_affichage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.acmi_popup_boite_confirmation,
.acmi_popup_boite_confirmation_retrait {
  background-color: #999999;
  color: #ffffff;
  padding: 40px;
  border-radius: 15px;
  width: 400px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: popIn 0.3s ease-out;
}

.acmi_popup_boite_confirmation.acmi_alerte {
  border: 2px solid #ff4d4d;
}

.acmi_popup_boite_confirmation.acmi_alerte p {
  color: #ff4d4d;
}

.acmi_popup_boite_confirmation p,
.acmi_popup_boite_confirmation_retrait p {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 25px 0;
  line-height: 1.5;
}

.acmi_popup_boutons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.acmi_popup_boutons button {
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

.acmi_popup_boutons button:hover {
  transform: scale(1.05);
}

.acmi_btn_annuler {
  background-color: var(--primaryColor);
  color: #ffffff;
}

.acmi_btn_annuler:hover {
  background-color: var(--primaryColorDarker);
}

.acmi_btn_supprimer {
  background-color: #d40a0a;
  color: #ffffff;
}

.acmi_btn_supprimer:hover {
  background-color: #8a0606;
}

.acmi_btn_ajouter {
  background-color: #22c55e;
  color: #ffffff;
}

.acmi_btn_ajouter:hover {
  background-color: #16a34a;
}

@keyframes acmi_popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* -------------------------------------------------------------------------
     8. SCROLL TABLEAUX
     ------------------------------------------------------------------------- */
.acmi_conteneur_tableau_scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.acmi_conteneur_tableau_scroll table {
  min-width: 600px;
}

/* -------------------------------------------------------------------------
     9. RESPONSIVE : TOUS LES ÉCRANS PC (Fixes & Portables, > 768px)
     ------------------------------------------------------------------------- */
@media (min-width: 769px) {
  .acmi_recherche_et_trier.acmi_filtres_larges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .acmi_filtres_larges .acmi_barre_de_recherche,
  .acmi_filtres_larges .acmi_zone_cocher_tout,
  .acmi_filtres_larges .acmi_liste_trier_par,
  .acmi_filtres_larges .acmi_liste_ordre {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .acmi_filtres_larges select {
    width: 100%;
  }

  .acmi_actions_footer,
  .acmi_footer_eleve,
  .acmi_footer_inscription {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .acmi_boutons_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
  }

  .acmi_boutons_actions>* {
    flex: 1 1 calc(50% - 15px);
    margin: 0;
  }

  .acmi_barre_actions_tableau {
    display: flex;
    width: 100%;
    margin: 0;
  }

  .acmi_bouton_retirer {
    width: 100%;
    margin: 0;
  }

  .acmi_btn_pleine_largeur {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* -------------------------------------------------------------------------
     9.5 RESPONSIVE INTERMÉDIAIRE : VUE CLASSE (De 769px à 1365px)
     ------------------------------------------------------------------------- */
@media (min-width: 769px) and (max-width: 1365px) {

  .acmi_filtres_classe .acmi_liste_annee_academique,
  .acmi_filtres_classe .acmi_barre_de_recherche,
  .acmi_filtres_classe .acmi_liste_trier_par,
  .acmi_filtres_classe .acmi_liste_ordre {
    flex: 1 1 calc(50% - 15px);
    max-width: calc(50% - 7.5px);
    min-width: 0;
  }

  .acmi_filtres_classe select,
  .acmi_filtres_classe .acmi_barre_de_recherche input {
    width: 100%;
  }

  .acmi_boite_export_classe {
    display: flex;
    flex-direction: column;
  }

  .acmi_boite_export_classe form {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .acmi_boite_export_classe .acmi_btn_export {
    flex: 1;
    height: auto;
    min-height: 42px;
    width: 100%;
    margin: 0;
  }
}

/* -------------------------------------------------------------------------
     10. RESPONSIVE : TÉLÉPHONES & TABLETTES (Moins de 768px)
     ------------------------------------------------------------------------- */
@media (max-width: 768px) {

  .acmi_container_stats_profs,
  .acmi_entete_globale {
    flex-direction: column;
    gap: 15px;
  }

  .acmi_recherche_et_trier,
  .acmi_recherche_et_trier.acmi_filtres_larges {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .acmi_recherche_et_trier.acmi_filtres_larges .acmi_barre_de_recherche,
  .acmi_recherche_et_trier.acmi_filtres_larges .acmi_zone_cocher_tout,
  .acmi_recherche_et_trier.acmi_filtres_larges .acmi_liste_trier_par,
  .acmi_recherche_et_trier.acmi_filtres_larges .acmi_liste_ordre {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .acmi_barre_de_recherche {
    max-width: 100%;
    width: 100%;
    flex: none;
  }

  .acmi_liste_trier_par,
  .acmi_liste_ordre,
  .acmi_liste_annee_academique {
    width: 100%;
  }

  .acmi_liste_annee_academique select,
  .acmi_liste_trier_par select,
  .acmi_liste_ordre select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .acmi_actions_footer {
    flex-direction: column;
    align-items: stretch;
  }

  .acmi_boutons_actions {
    flex-direction: column;
    width: 100%;
  }

  .acmi_barre_actions_tableau {
    margin-left: 0;
    width: 100%;
  }

  .acmi_boutons_actions button,
  .acmi_bouton_retirer,
  .acmi_bouton_ajouter,
  .acmi_zone_cocher_tout,
  .acmi_btn_export {
    width: 100%;
    margin-left: 0;
  }

  .acmi_boite_export_classe form {
    width: 100%;
  }

  .acmi_footer_eleve .acmi_boutons_actions {
    flex-direction: column;
  }

  .acmi_footer_eleve .acmi_boutons_actions button {
    flex: none;
    width: 100%;
  }

  .acmi_footer_eleve,
  .acmi_footer_inscription {
    order: -1;
  }

  .acmi_recherche_et_trier.acmi_filtres_larges .acmi_zone_cocher_tout {
    order: 5;
    margin-top: 5px;
  }

  .acmi_ligne_boutons_inscription {
    flex-direction: column-reverse !important;
  }

  .acmi_tableau_des_classes,
  .acmi_tableau_des_eleves {
    display: table;
  }
}

/* ============================================================================================================================================================ */
/* ===========================FIN DU CSS pour le USE CASE : Attribuer une classe à un membre pour une inscription ============================================= */
/* ============================================================================================================================================================ */





/* ============================================
     MESSAGES PAIEMENTS
     ============================================ */

.gPaiements-btn-close-msg {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: inherit;
  margin-left: auto;
  padding: 0;
  display: flex;
  align-items: center;
}

/* ============================================
     BARRE DE RECHERCHE PAIEMENTS
     ============================================ */
.gPaiements-search-wrap {
  max-width: 500px;
  position: relative;
  margin-bottom: 16px;
}

.gPaiements-search-wrap input {
  width: 100%;
  padding: 10px 45px 10px 20px;
  border-radius: 20px;
  border: none;
  font-size: 15px;
  background: #e4e7f0;
  box-sizing: border-box;
  height: auto;
}

.gPaiements-suggestions {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  display: none;
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
}

.gPaiements-suggestions li {
  padding: 9px 16px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid #eee;
}

.gPaiements-suggestions li:hover {
  background: #f0f4f8;
}

/* ============================================
     FILTRES PAIEMENTS
     ============================================ */
.gPaiements-filter-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.gPaiements-filter-wrap select {
  height: auto;
  padding: 8px 12px;
  border-radius: 20px;
  background-image: none;
  appearance: auto;
  -webkit-appearance: auto;
}

/* ============================================
     BOUTONS
     ============================================ */
.gPaiements-btn-ajouter {
  background: #052280;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 0;
}

.gPaiements-btn-ajouter:hover {
  background: #031a60;
}

.gPaiements-btn-supprimer {
  background-color: #d40a0a;
  font-weight: bold;
  color: white;
  height: 42px;
  padding: 0 28px;
  padding: 10px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 1s, transform 1s;
}

.gPaiements-btn-supprimer:hover {
  transform: scale(1.05);
}

/* ============================================
     FORMULAIRES ADD/EDIT
     ============================================ */
.gPaiements-form-box {
  display: none;
  margin-top: 20px;
  background: #f0f0f0;
  padding: 20px;
  border-radius: 8px;
}

.gPaiements-form-box h3 {
  color: #052280;
  margin-bottom: 14px;
  font-size: 15px;
}

.gPaiements-form-box label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 4px;
}

.gPaiements-form-box select {
  width: 100%;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  height: 42px;
  font-size: 13px;
  box-sizing: border-box;
  height: auto;
  background: #e4e7f0;
  background-image: none;
  appearance: auto;
  -webkit-appearance: auto;
}

.gPaiements-form-box input[type="date"],
.gPaiements-form-box input[type="text"],
.gPaiements-form-box input[type="number"] {
  height: 42px;
  padding: 0 22px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  background: #e4e7f0;
  border: none;
  border-radius: var(--radius);
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  transition: border 0.2s ease;
}

.gPaiements-form-box .radio-group {
  margin-bottom: 12px;
  font-size: 13px;
}

.gPaiements-form-btns {
  display: flex;
  gap: 10px;
}

/* ============================================
     CARTES RÉSUMÉ
     ============================================ */
.gPaiements-summary-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.gPaiements-summary-card {
  background: #f0f0f0;
  border-radius: 8px;
  padding: 10px 16px;
  flex: 1;
  min-width: 120px;
}

.gPaiements-summary-card .sc-label {
  font-size: 11px;
  color: #666;
  margin-bottom: 4px;
}

.gPaiements-summary-card .sc-val {
  font-size: 20px;
  font-weight: 500;
  color: #052280;
}

.gPaiements-summary-card.ok .sc-val {
  color: rgb(11, 111, 11);
}

.gPaiements-summary-card.danger .sc-val {
  color: #d40a0a;
}

/* ============================================
     BLOCS ACTIVITÉ
     ============================================ */
.gPaiements-activite-block {
  margin-bottom: 18px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ccc;
}

.gPaiements-activite-header {
  background: #052280;
  color: white;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.gPaiements-ac-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gPaiements-ac-name {
  font-size: 13px;
  font-weight: 700;
}

.gPaiements-ac-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  white-space: nowrap;
}

.gPaiements-ac-right .gPaiements-statut {
  white-space: normal;
  word-break: break-word;
  max-width: 140px;
  text-align: center;
}

/* ============================================
     MEMBRE HEADER
     ============================================ */
.gPaiements-member-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.gPaiements-member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #052280;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.gPaiements-member-name {
  font-size: 18px;
  font-weight: 500;
  color: #052280;
}

/* ============================================
     BADGES PAIEMENTS
     ============================================ */
.gPaiements-statut {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 15px;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  width: auto;
}

.gPaiements-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  width: auto;
}

/* ============================================
     PAGE ERREUR PAIEMENTS
     ============================================ */
.gPaiements-error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  gap: 20px;
  text-align: center;
}

.gPaiements-error-icon {
  font-size: 5rem;
  color: #d40a0a;
}

.gPaiements-error-title {
  font-size: 2rem;
  color: #1e3a6e;
  margin: 0;
}

.gPaiements-error-message {
  font-size: 1rem;
  color: #8a96a8;
  max-width: 400px;
  line-height: 1.6;
}

/* ============================================
     CARTES MOBILE PAIEMENTS
     ============================================ */
.gPaiements-mobile-cards-paiements {
  display: none;
}

.gPaiements-export-mobile {
  display: none;
}

.gPaiements-mobile-cards-liste {
  display: none;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ============================================
     RESPONSIVE PAIEMENTS — TABLETTE (≤ 1280px)
     ============================================ */

@media (max-width: 1024px) {
  body .gPaiements-content {
    padding-top: 74px;
  }


  .gPaiements-activite-header {
    flex-wrap: wrap;
  }

  .gPaiements-ac-right {
    max-width: 50%;
  }

  .gPaiements-filter-wrap {
    flex-direction: column;
  }

  .gPaiements-search-wrap {
    max-width: 100%;
  }

  .gPaiements-mobile-cards-paiements .mobile-card-footer button {
    flex: 1;
    font-size: 0.8rem;
    padding: 8px 5px;
    border-radius: var(--radius-sm);
  }
}

/* ============================================
     RESPONSIVE PAIEMENTS — MOBILE (≤ 768px)
     ============================================ */
@media (max-width: 768px) {

  .gPaiements-form-box input[type="date"] {
    width: 100% !important;
    box-sizing: border-box !important;
    -webkit-appearance: none;
    appearance: none;
  }

  .gPaiements-filter-wrap {
    flex-direction: column;
  }

  .gPaiements-mobile-cards-liste {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
  }

  .gPaiements-search-wrap {
    max-width: 100%;
  }

  .gPaiements-table-liste {
    display: none;
  }

  .gPaiements-mobile-cards-paiements {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
  }

  .gPaiements-mobile-cards-paiements .mobile-card-footer {
    margin-top: 12px;
    display: flex;
    flex-direction: row;
    gap: 10px;
  }

  .gPaiements-mobile-cards-paiements .mobile-card-footer button {
    flex: 1;
    font-size: 0.8rem;
    padding: 8px 5px;
    border-radius: var(--radius-sm);
  }

  .gPaiements-export-mobile {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
  }
}

/* ============================================
     STATUTS PAIEMENTS — à la fin pour priorité
     ============================================ */
.gPaiements-statut.partiel {
  background: #f59e0b;
  color: #fff;
}

.gPaiements-statut.complet {
  background: #22c55e;
  color: #fff;
}

.gPaiements-statut.non_paye {
  background: #742c86;
  color: #fff;
}

.gPaiements-statut.solde {
  background: #22c55e;
  color: #fff;
}

.gPaiements-statut.retard {
  background: rgb(226, 12, 12);
  color: #fff;
}

.gPaiements-statut.restant {
  background: #f59e0b;
  color: #fff;
}

.gPaiements-statut.remboursement {
  background: rgb(199, 73, 31);
  color: #fff;
}

.gPaiements-badge.restant {
  background: #f59e0b;
  color: #fff;
}

.gPaiements-badge.retard {
  background: rgb(226, 12, 12);
  color: #fff;
}

/* ============================================
     REQUIRED
     ============================================ */

.gPaiements-required {
  color: red;
}

.gPaiements-field-error {
  display: block;
  color: red;
  font-size: 11px;
  margin-bottom: 4px;
  font-weight: normal;
}

.gPaiements-popup-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  transition: opacity 0.3s;
}

.gPaiements-popup-toast.hidden {
  display: none;
}

.gPaiements-popup-toast-close {
  color: white;
  border: none;
  background-color: #c0392b;
  cursor: pointer;
}

.gPaiements-popup-toast-close:hover {
  color: white;
  border: none;
  background-color: #852419;
  transition: .2s;
  transform: translateY(-10%);
}

.gPaiements-popup-toast-box {
  background: #c0392b;
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.gPaiements-popup-toast-box button {
  align-items: center;
  align-content: center;
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.gPaiements-indicator-wrap {
  display: flex;
  align-items: center;
  height: 50px;
}

.gPaiements-indicator {
  width: 6px;
  height: 50px;
  border-radius: 4px 0 0 4px;
  cursor: pointer;
  transition: width 0.2s;
  flex-shrink: 0;
}

.gPaiements-indicator:hover {
  width: 10px;
}

.gPaiements-etiquette {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.4s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 0;
  border-radius: 0 6px 6px 0;
}

.gPaiements-etiquette.open {
  max-width: 280px;
  padding: 4px 10px 4px 6px;
}

/* ============================================
     R.O.I
     ============================================ */


.ql-align-center {
  text-align: center;
}

.ql-align-right {
  text-align: right;
}

.ql-align-justify {
  text-align: justify;
}

/* ===== BASE ===== */
#editor {
  border: 1px solid;
  width: 100%;
  height: 70vh;
  max-width: 90%;
  margin: 0 auto;
  box-sizing: border-box;
}

.ql-toolbar.ql-snow {
  margin: 0 auto;
  background: #e8e8e8;
  border: 1px solid #ccc;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  padding: 6px 8px;
  width: 100%;
  max-width: 90%;
  box-sizing: border-box;
}

.ql-container.ql-snow {
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 4px 4px;
}

.ql-editor {
  overflow-y: scroll;
  font-size: 14px;
  font-family: var(--font);
  color: #111;
  background: #fff;
  padding: 12px 16px;
}

.ql-editor.ql-blank::before {
  color: #aaa;
  font-style: normal;
}

.ql-snow .ql-toolbar button {
  width: 28px;
  height: 28px;
  padding: 2px 4px;
  border: 1px solid #bbb;
  border-radius: 3px;
  background: #fff;
  margin: 0 2px;
}

.ql-snow .ql-toolbar button:hover,
.ql-snow .ql-toolbar button.ql-active {
  background: #d0d0d0;
  border-color: #999;
}

.ql-snow .ql-toolbar button svg {
  width: 16px;
  height: 16px;
}

.ql-snow .ql-size {
  border: 1px solid #bbb;
  border-radius: 3px;
  background: #fff;
  font-size: 13px;
  height: 28px;
  padding: 0 4px;
}

/* ===== BOUTONS ===== */
.buttons {
  width: 100%;
  max-width: 90%;
  /* ← aligné avec #editor (était 95%) */
  margin: 20px auto 0;
  /* ← centré comme l'éditeur */
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  box-sizing: border-box;
}

/* ===== TABLETTE (≤ 1024px) ===== */
@media (max-width: 1024px) {

  /*.content {
          margin-left: 0;
          width: 100%;
          padding: 10px;
          box-sizing: border-box;
      }*/

  #editor {

    max-width: 100%;
    height: 60vh;
  }

  .ql-toolbar.ql-snow {
    margin-top: 30px;
    max-width: 100%;
  }

  .buttons {
    max-width: 100%;
    gap: 10px;
  }
}

/* ===== MOBILE (≤ 768px) ===== */
@media (max-width: 768px) {

  /* Désactive overflow:hidden sur body pour éviter
         les problèmes de scroll sur mobile */
  body {
    overflow: auto;
  }

  /*.content { padding: 8px; }*/

  h2 {
    font-size: 1.1rem;
    margin: 8px 0;
  }

  #editor {
    height: 50vh;
  }

  .ql-snow .ql-toolbar button {
    width: 24px;
    height: 24px;
    margin: 0 1px;
  }

  .ql-snow .ql-size {
    font-size: 11px;
    height: 24px;
  }

  /* Boutons empilés pleine largeur */
  .buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 10px;
    padding: 0 8px;
  }

  .btn-annuler,
  .btn-confirmer_enregistrer_modifier,
  .btn-supprimer {
    width: 100%;
    text-align: center;
    padding: 14px;
    /* ← plus grand pour le tactile */
    box-sizing: border-box;
  }

  /* Popup adaptée */
  .popup-modal {
    width: 95%;
    padding: 24px 16px;
  }

  .popup-modal h3 {
    font-size: 1rem;
  }

  .popup-actions {
    flex-direction: column;
    gap: 10px;
  }

  .popup-actions button {
    width: 100%;
    padding: 14px;
    /* ← zone tactile suffisante */
  }
}

/* ===== PETIT MOBILE (≤ 480px) ===== */
@media (max-width: 480px) {

  #editor {
    height: 45vh;
  }

  h2 {
    font-size: 1rem;
  }

  .ql-toolbar.ql-snow {
    padding: 4px;
  }

  .ql-snow .ql-toolbar button {
    width: 20px;
    height: 20px;
  }
}

/* ============================================
     Gestion membres - PROFIL
     ============================================ */

/* Filtres et tris */
.gm_filter-panel {
  background: #fff;
  box-shadow: 0 2px 20px rgba(30, 58, 110, 0.07);
  border-radius: 20px;
  padding: 30px 32px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 24px;
  border: var(--border);
}


.gm_filter-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primaryColor);
  margin-bottom: 16px;
}


.gm_filter-section {
  flex: 2;
}

.gm_filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px 18px;
}

.gm_separateur {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

.gm_sort-section {
  flex: 1;
}

.gm_sort-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gm_filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 16px;
}

/* Responsive filtres et tri */

@media (max-width: 768px) {

  /* Panel principal : empilement vertical */
  .gm_filter-panel {
    flex-direction: column;
    gap: 24px;
    padding: 24px;
  }

  /* Séparateur vertical inutile sur mobile */
  .gm_separateur {
    display: none;
  }

  /* Filtres : passage en une seule colonne */
  .gm_filter-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Tri : reste en colonne (déjà le cas) */
  .gm_sort-grid {
    gap: 12px;
  }

  /* Boutons : pleine largeur sur mobile */
  .gm_filter-actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }

  .gm_filter-actions button {
    width: 100%;
  }
}

/* Pop up succès ou erreur*/
.gm_profil-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.gm_avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}


.gm_notif-ok {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  margin: 0 20px;
}

.gm_notif-ok button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  margin-left: auto;
  color: inherit;
}

.gm_notif-erreur {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  margin-bottom: 16px;
}

.gm_notif-erreur button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  margin-left: auto;
  color: inherit;
}

/* Carte profil principale */
.gm_card-profil {
  background: #e4e5e7;
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 28px;
}

/* En-tête du profil */
.gm_profil-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

/* header profil */
.gm_profil-avatar {
  width: 64px;
  height: 64px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gm_profil-avatar i {
  font-size: 26px;
  color: var(--primaryColor);
}

/* Titre + badge (role et sexe) */
.gm_profil-title h2 {
  font-size: 1.35rem;
  color: var(--primaryColor);
  margin-bottom: 6px;
}

.gm_profil-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.gm_profil-badges .gm_badge {
  background: #d7dbe4;
  color: var(--primaryColor);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* Bouton modifier photo */
.gm_btn-photo {
  background: white;
  border: none;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 14px;
  cursor: pointer;
  color: var(--text);
}

.gm_btn-photo img {
  width: 12px;
  height: 12px;
  margin-left: 4px;
  vertical-align: middle;
  opacity: 0.6;
}

.gm_btn-photo:hover {
  background: #d7dbe4;
}

/* Grille 2 colonnes */
.gm_profil-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  row-gap: 14px;
}

/* Colonne */
.gm_profil-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Champ label */
.gm_profil-col .gm_field label,
.gm_field>label {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

/* Select des roles */
.gm_profil-col select {
  background-color: #eff0f4;
  border-radius: 18px;
  border: none;
  padding: 10px 36px 10px 18px;
  font-size: 0.85rem;
  font-family: var(--font);
  color: var(--text);
}

/* Champs adresses */
.gm_adresse-grid {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 10px 12px;
}

.gm_adresse-rue {
  grid-column: 1;
}

.gm_adresse-numero {
  grid-column: 2;
}

.gm_adresse-ville {
  grid-column: 1;
}

.gm_adresse-cp {
  grid-column: 2;
}

/* Input avec crayon */
.gm_input-edit-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.gm_input-edit-wrapper input,
.gm_input-edit-wrapper textarea {
  width: 100%;
  background: #eff0f4;
  border-radius: 18px;
  border: none;
  padding: 10px 36px 10px 18px;
  font-size: 0.85rem;
  font-family: var(--font);
  color: var(--text);
  height: auto;
}

.gm_input-edit-wrapper textarea {
  min-height: 70px;
  resize: vertical;
  border-radius: 14px;
  padding-top: 10px;
}

.gm_edit-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

.gm_edit-icon-textarea {
  top: 14px;
  transform: none;
}

/* Moyens de communication */
.gm_comm-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.gm_btn-comm {
  padding: 6px 16px;
  border-radius: 20px;
  border: none;
  background: #d7dbe4;
  color: var(--text);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font);
}

.gm_btn-comm.active {
  background: var(--primaryColor);
  color: white;
}

.gm_btn-comm:hover {
  background: var(--primaryColorDarker);
  color: white;
}

.gm_btn-danger {
  background: #d40a0a;
  color: white;
}

.gm_btn-danger:hover {
  background: #8a0606;
}


/* Toggles */
.gm_checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gm_toggle-condition {
  font-size: 0.82rem;
  color: var(--text);
  min-width: 48px;
}

.gm_toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.gm_toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.gm_toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  border-radius: 22px;
  transition: background 0.2s;
}

.gm_toggle-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.gm_toggle-switch input:checked+.gm_toggle-slider {
  background: var(--primaryColor);
}

.gm_toggle-switch input:checked+.gm_toggle-slider::before {
  transform: translateX(18px);
}

/* documents */
.gm_profil-documents {
  margin-top: 24px;
}

.gm_document-ligne {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f0f0f0;
  padding: 12px 18px;
  border-radius: 12px;
  margin-bottom: 10px;
  color: #2d3748;
  flex-wrap: wrap;
  gap: 10px;

}

.gm_document-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gm_document-nom {
  font-size: 0.9rem;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.gm_document-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.gm_document-vide {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.gm_profil-documents form {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 12px;
  box-shadow: 0 1px 6px rgba(30, 58, 110, 0.08);
}

.gm_pdf-badge {
  background: #d7dbe4;
  color: var(--text);
  font-weight: bold;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Responsive docs */
@media (max-width: 768px) {

  .gm_document-ligne {
    flex-direction: column;
    align-items: flex-start;
  }

  .gm_document-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .gm_document-actions a,
  .gm_document-actions button {
    width: 100%;
    text-align: center;
  }

  .gm_profil-documents form>div {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .gm_profil-documents input[type="file"],
  .gm_profil-documents button {
    width: 100%;
  }

}

/* responsive profil */
@media (max-width: 768px) {

  .gm_profil-grid {
    grid-template-columns: 1fr;
  }

  .gm_card-profil,
  .gm_card-enfants {
    padding: 20px;
    margin-left: 0;
    max-width: 100%;
  }


  .gm_enfant-card {
    display: flex;
    flex-direction: column;
  }


  .gm_enfant-commentaire {
    order: 2;
  }

  .gm_enfant-card-header {
    flex-direction: column;
    order: 1;
  }

  .gm_enfant-actions {
    order: 3;
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .gm_enfant-actions a,
  .gm_enfant-actions button {
    flex: 1;
    text-align: center;
  }


  .gm_enfant-commentaire input {
    width: 100%;
  }

  .gm_toggles-row {
    flex-direction: column;
  }
}

/* Section enfant */
.gm_card-enfants {
  background: #e4e5e7;
  border-radius: var(--radius);
  padding: 26px 32px;
}

.gm_card-enfants h3 {
  color: var(--primaryColor);
  margin-bottom: 18px;
  font-size: 1.1rem;
}

.gm_no-kids {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Bouton ajouter un enfant */
.gm_btn-ajouter-enfant {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  background: none;
  border: none;
  color: var(--primaryColor);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  font-family: var(--font);
}

.gm_btn-ajouter-enfant:hover {
  text-decoration: underline;
}

/* Profil d'un enfant */
.gm_enfant-card {
  background: white;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 14px;
  box-shadow: 0 1px 6px rgba(30, 58, 110, 0.08);
}

.gm_enfant-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.gm_enfant-avatar {
  width: 40px;
  height: 40px;
  background: #e4e5e7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gm_enfant-avatar i {
  font-size: 22px;
  color: var(--primaryColor);
}

.gm_enfant-info {
  flex: 1;
}

.gm_enfant-nom {
  font-weight: bold;
  color: var(--primaryColor);
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.gm_enfant-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.gm_enfant-niveau {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.5;
}

.gm_enfant-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.gm_enfant-commentaire {
  margin-top: 12px;
}

.gm_enfant-commentaire input {
  width: 55%;
  background: #eff0f4;
  border: none;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 0.85rem;
  color: #2d3748;
  font-family: var(--font);
  height: auto;
}

/* ============================================
       MODAL AJOUT ENFANT
       ============================================ */

/* Overlay spécifique au modal enfant (par-dessus l'overlay existant) */
#gm_modal-ajouter-enfant {
  text-align: left;
  padding: 32px 36px;
  background: #e4e5e7;
  color: var(--text);
  max-width: 800px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
}

#gm_modal-ajouter-enfant h3 {
  color: var(--primaryColor);
  font-size: 1.2rem;
  margin-bottom: 22px;
}

/* Champ adresse pleine largeur dans la grille du modal */
.gm_modal-full-width {
  grid-column: 1 / -1;
}

/* Labels du modal */
#gm_modal-ajouter-enfant .gm_field label {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

/* Inputs et selects dans le modal */
#gm_modal-ajouter-enfant .gm_input-edit-wrapper input,
#gm_modal-ajouter-enfant .gm_input-edit-wrapper textarea {
  background: #fff;
}

#gm_modal-ajouter-enfant select {
  background-color: #fff;
  width: 100%;
}

/* Note adresse pré-remplie */
#gm_modal-ajouter-enfant .gm_field-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: -2px 0 6px;
}

/* Boutons en bas du modal */
#gm_modal-ajouter-enfant .popup-modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* Scrollbar discrète dans le modal */
#gm_modal-ajouter-enfant::-webkit-scrollbar {
  width: 6px;
}

#gm_modal-ajouter-enfant::-webkit-scrollbar-track {
  background: transparent;
}

#gm_modal-ajouter-enfant::-webkit-scrollbar-thumb {
  background: #c0c4cc;
  border-radius: 3px;
}

/* ============================================
   BOUTONS POP-UP GESTION MEMBRES
   ============================================ */

.gm_popup-box {
  background: #999999;
  color: white;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
}

.gm_popup-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.gm_popup-btn-annuler {
  padding: 10px 25px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  background-color: white;
  color: var(--primaryColor);
  transition: transform 0.1s;
  display: inline-flex;
  align-items: center;
}

.gm_popup-btn-annuler:hover {
  transform: scale(1.05);
  background-color: #f0f0f0;
}

.gm_popup-btn-confirmer {
  padding: 10px 25px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  background-color: var(--primaryColor);
  color: white;
  transition: transform 0.1s;
  display: inline-flex;
  align-items: center;
}

.gm_popup-btn-confirmer:hover {
  transform: scale(1.05);
  background-color: var(--primaryColorDarker);
}

.gm_popup-btn-supprimer {
  padding: 10px 25px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  background-color: #d40a0a;
  color: white;
  transition: transform 0.1s;
  display: inline-flex;
  align-items: center;
}

.gm_popup-btn-supprimer:hover {
  transform: scale(1.05);
  background-color: #8a0606;
}

#pop-up-confirmation {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.pop-up-contenu {
  background-color: #8e8e8e;
  color: white;
  padding: 30px;
  border-radius: 20px;
  width: 400px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: popIn 0.3s ease-out;
}

.pop-up-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

.pop-up-buttons button,
.pop-up-buttons input[type="submit"] {
  padding: 10px 25px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

#pop-up-annuler {
  background-color: white;
  color: #1a1a63;
}

#pop-up-confirmer {
  background-color: #1a1a63;
  color: white;
}



/* --- POPUP --- */
.popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  transition: opacity 0.3s;
}

.popup.hidden {
  display: none;
}

.btn-close-popup {
  color: white;
  border: none;
  background-color: #c0392b;
}

.btn-close-popup:hover {
  color: white;
  border: none;
  background-color: #852419;
  transition: .2s;
  transform: translateY(-10%);
}

.popup-box-red {
  background: #c0392b;
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.popup-box button {
  align-items: center;
  align-content: center;
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.popup-actions form {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}


.popup-actions button:active {
  transform: scale(0.95);
}

/* CONFIRMER / ACTION PRINCIPALE */
.btn-confirm {
  background-color: #1a1a63;
  color: white;
}

.btn-confirm:hover {
  background-color: #0d0d3d;
}


/* BOUTON PRINCIPAL */
.btn-action {
  background-color: #1a1a63;
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.gm_field-required {
  color: #d40a0a;
  font-size: 0.85rem;
  margin-left: 4px;
  display: none;
}

.gm_field-required.visible {
  display: inline;
}

.gm_input-edit-wrapper input.champ-erreur,
.gm_input-edit-wrapper textarea.champ-erreur {
  outline: 2px solid #d40a0a;
}

/* ============================================
      Fin gestion membre
    ============================================ */
.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.cal-header h1 {
  font-size: 22px;
  font-weight: 600;
}

.cal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-nav span {
  font-size: 13px;
  font-weight: 500;
  min-width: 180px;
  text-align: center;
  color: #1a1a1a;
}

.cal-btn-nav {
  font-family: inherit;
  font-size: 13px;
  padding: 7px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  color: #1a1a1a;
}

.cal-btn-nav:hover {
  background: #f0f0f0;
}

.cal-vue-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
}

.cal-vue-btn {
  font-family: inherit;
  font-size: 12px;
  padding: 5px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  color: #888;
}

.cal-vue-btn.active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

/* ── Grille semaine ── */
.cal-semaine-grid {
  display: grid;
  grid-template-columns: 52px repeat(7, 1fr);
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.cal-col-header {
  padding: 10px 4px;
  text-align: center;
  border-bottom: 1px solid #efefef;
  background: #f9f9f9;
  font-size: 12px;
  color: #888;
}

.cal-col-header .cal-nj {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  display: block;
}

.cal-col-header.today .cal-nj {
  background: #1a1a1a;
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.cal-hcol {
  border-right: 1px solid #efefef;
}

.cal-tcell {
  height: 32px;
  border-bottom: 1px solid #f5f5f5;
  font-size: 11px;
  color: #bbb;
  padding: 4px 6px;
  text-align: right;
}

.cal-dcol {
  border-right: 1px solid #efefef;
  position: relative;
}

.cal-dcol:last-child {
  border-right: none;
}

.cal-slot {
  height: 32px;
  border-bottom: 1px solid #f5f5f5;
}

.cal-eb {
  position: absolute;
  left: 2px;
  right: 2px;
  border-radius: 4px;
  padding: 3px 5px;
  font-size: 10px;
  font-weight: 600;
  overflow: hidden;
  cursor: pointer;
  z-index: 2;
}

.cal-eb:hover {
  opacity: 0.85;
}

.cal-ev-t {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-ev-h {
  display: block;
  font-size: 9px;
  opacity: 0.75;
}

.eb-blue {
  background: #B5D4F4;
  color: #0C447C;
}

.eb-green {
  background: #C0DD97;
  color: #27500A;
}

.eb-amber {
  background: #FAC775;
  color: #633806;
}

.eb-purple {
  background: #CECBF6;
  color: #3C3489;
}

/* ── Légende ── */
.cal-legende {
  display: flex;
  gap: 14px;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.cal-legende-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #888;
}

.cal-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.cal-dot-blue {
  background: #B5D4F4;
}

.cal-dot-green {
  background: #C0DD97;
}

.cal-dot-amber {
  background: #FAC775;
}

.cal-dot-purple {
  background: #CECBF6;
}

.cal-mob-semaine {
  display: none;
}

@media (max-width: 768px) {

  .cal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cal-nav {
    width: 100%;
    justify-content: space-between;
  }

  #vue-semaine,
  #vue-mois,
  .cal-vue-toggle,
  .cal-legende {
    display: none;
  }

  .cal-mob-semaine {
    display: block;
  }

  .cal-days-scroll {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    overflow-x: visible;
    padding-bottom: 6px;
    margin-bottom: 12px;
  }

  .cal-day-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 2px;
    border-radius: 8px;
    border: 1px solid #e4e4e4;
    background: #fff;
    cursor: pointer;
    min-width: unset;
    width: 100%;
  }

  .cal-day-pill .cal-dl {
    font-size: 9px;
    color: #888;
  }

  .cal-day-pill .cal-dn {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
  }

  .cal-day-pill.active {
    background: #052280;
    border-color: #052280;
  }

  .cal-day-pill.active .cal-dl {
    color: rgba(255, 255, 255, 0.7);
  }

  .cal-day-pill.active .cal-dn {
    color: #fff;
  }

  .cal-day-pill .cal-dot-cours {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #052280;
    margin-top: 2px;
  }

  .cal-day-pill.active .cal-dot-cours {
    background: #fff;
  }

  /* Cartes cours */
  .cal-cours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .cal-cours-card {
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
  }

  .cal-cours-titre {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
  }

  .cal-cours-heure {
    display: block;
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 2px;
  }

  .cal-empty-cours {
    text-align: center;
    padding: 2rem;
    color: #aaa;
    font-size: 13px;
  }

  /* Légende mobile */
  .cal-legende-mob {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
  }

  .cal-legende-mob .cal-legende-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #888;
  }

  .cal-legende-mob .cal-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    display: inline-block;
  }
}



/* Modal Calendrier */
.cal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.cal-modal-box {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.cal-modal-accent {
  height: 6px;
  width: 100%;
}

.cal-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 20px 12px;
}

.cal-modal-titre {
  font-size: 18px;
  font-weight: 600;
  color: #052280;
  margin: 0;
  line-height: 1.3;
}

.cal-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #888;
  line-height: 1;
  padding: 0 0 0 12px;
  flex-shrink: 0;
}

.cal-modal-close:hover {
  color: #333;
}

.cal-modal-body {
  padding: 0 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cal-modal-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cal-modal-icon {
  font-size: 16px;
  color: #052280;
}

.cal-modal-text {
  font-size: 14px;
  color: #333;
}

.cal-modal-text--enfant {
  font-style: italic;
}

.cal-ev-enfant {
  display: block;
  font-size: 9px;
  opacity: 0.75;
  font-style: italic;
}

/* --- ZONE DE CONTENU --- */
.addMembre-content {
  margin-left: 250px;
  padding: 30px 36px;
  background: var(--bg);
  min-height: 100vh;
  box-sizing: border-box;
  font-family: Arial;
}

.addMembre-content h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 4px;
}

.addMembre-content .addMembre-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 24px;
}

/* --- BOUTONS --- */
.addMembre-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 20px;
  border: none;
  background: var(--navy);
  color: white;
  font-family: Arial;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.addMembre-btn:hover {
  background: var(--navy-hover);
  transform: translateY(-1px);
}

.addMembre-btn-outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}

.addMembre-btn-outline:hover {
  background: var(--navy);
  color: white;
}

.addMembre-btn-outline .addMembre-btn-icon {
  filter: invert(10%) sepia(80%) saturate(700%) hue-rotate(210deg);
}

.addMembre-btn-outline:hover .addMembre-btn-icon {
  filter: invert(1);
}

.addMembre-btn.addMembre-danger {
  background: var(--danger);
}

.addMembre-btn.addMembre-danger:hover {
  background: #a93226;
}

.addMembre-btn-icon {
  width: 13px;
  height: 13px;
}

.addMembre-btn-confirmer {
  background: var(--navy);
  color: white;
}

.addMembre-btn-cancel {
  background: white;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.addMembre-btn-cancel:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

/* --- POPUP --- */
.addMembre-popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  transition: opacity 0.3s;
}

.addMembre-popup.addMembre-hidden {
  display: none;
}

.addMembre-btn-close-popup {
  color: white;
  border: none;
  background-color: #c0392b;
}

.addMembre-btn-close-popup:hover {
  color: white;
  border: none;
  background-color: #852419;
  transition: .2s;
  transform: translateY(-10%);
}

.addMembre-popup-box-red {
  background: #c0392b;
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.addMembre-popup-box button {
  align-items: center;
  align-content: center;
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.addMembre-popup-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
  width: 90%;
  max-width: 400px;
}

.addMembre-popup-modal.addMembre-hidden {
  display: none;
}

.addMembre-popup-modal-box {
  background: rgba(255, 255, 255, 0.90);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.addMembre-popup-modal-box h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}

.addMembre-popup-modal-box p {
  font-size: 13px;
  color: var(--);
  margin-bottom: 20px;
  line-height: 1.5;
}

.addMembre-popup-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.addMembre-popup-modal-actions .addMembre-btn {
  padding: 10px 24px;
  font-size: 14px;
}

.addMembre-popup-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.60);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1999;
}

.addMembre-popup-modal-overlay.addMembre-hidden {
  display: none;
}

.addMembre-popup-modal-actions form {
  display: inline-flex;
  margin: 0;
  padding: 0;
}

.addMembre-popup-modal-actions form .addMembre-btn {
  margin-top: 0;
}

/* --- HAMBURGER — visible uniquement mobile --- */
.addMembre-hamburger {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1100;
  background: var(--navy);
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.addMembre-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Animation croix quand ouvert --- */
.addMembre-hamburger.addMembre-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.addMembre-hamburger.addMembre-open span:nth-child(2) {
  opacity: 0;
}

.addMembre-hamburger.addMembre-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Overlay sombre derrière la sidebar --- */
.addMembre-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
}

.addMembre-sidebar-overlay.addMembre-active {
  display: block;
}

/* --- CARDS --- */
.addMembre-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 20px;
}

.addMembre-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 18px;
}

.addMembre-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 18px;
}

.addMembre-card-icon {
  width: 20px;
  height: 20px;
  filter: invert(10%) sepia(80%) saturate(700%) hue-rotate(210deg);
}

/* --- GRILLE 2 COLONNES --- */
.addMembre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* --- ITEM (chaque champ) --- */
.addMembre-item {
  background: var(--item-bg);
  border-radius: 12px;
  padding: 12px 16px;
}

.addMembre-item label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

/* --- LIGNE CHAMP + CRAYON --- */
.addMembre-field-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.addMembre-field-row input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  font-family: Arial;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  outline: none;
  padding: 2px 0;
  transition: border-color 0.15s;
}

.addMembre-field-row input:focus {
  border-bottom-color: var(--accent);
}

.addMembre-edit-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.45;
  cursor: pointer;
  filter: invert(10%) sepia(80%) saturate(700%) hue-rotate(210deg);
  transition: opacity 0.15s;
}

.addMembre-edit-icon:hover {
  opacity: 1;
}

.addMembre-select-field {
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  font-family: Arial;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  outline: none;
  padding: 2px 0;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.15s;
}

.addMembre-select-field:focus {
  border-bottom-color: var(--accent);
}

/* --- BOUTON ENREGISTRER --- */
.addMembre-card-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

/* --- SPAN OBLIGATOIRE --- */
.addMembre-obligatoire {
  color: red;
}

/* --- SUGGESTION ADRESSE --- */
.addMembre-autocomplete-wrapper {
  position: relative;
  width: 400px;
}

#suggestions-adresse {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  background: var(--card-bg);
  border: 1px solid #ddd;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

#suggestions-adresse li {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--item-bg);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  transition: background 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#suggestions-adresse li:last-child {
  border-bottom: none;
}

#suggestions-adresse li:hover {
  background: var(--item-bg);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .addMembre-content {
    margin-left: 0;
    padding: 70px 16px 24px;
  }

  .addMembre-grid {
    grid-template-columns: 1fr;
  }

  .addMembre-hamburger {
    display: flex;
  }

  .addMembre-card-actions {
    justify-content: stretch;
  }

  .addMembre-card-actions .addMembre-btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- ZONE DE CONTENU --- */
.activate-content {
  margin-left: 0px;
  padding: 30px 36px;
  background: var(--bg);
  min-height: 100vh;
  box-sizing: border-box;
  font-family: Arial;
}

.activate-content h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 4px;
}

.activate-content .activate-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 24px;
}

/* --- POPUP --- */
.activate-popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  transition: opacity 0.3s;
}

.activate-popup.activate-hidden {
  display: none;
}

.activate-btn-close-popup {
  color: white;
  border: none;
  background-color: #c0392b;
}

.activate-btn-close-popup:hover {
  color: white;
  border: none;
  background-color: #852419;
  transition: .2s;
  transform: translateY(-10%);
}

.activate-popup-box-red {
  background: #c0392b;
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.activate-popup-box button {
  align-items: center;
  align-content: center;
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

/* --- SPAN OBLIGATOIRE --- */
.activate-obligatoire {
  color: red;
}

/* --- CARDS --- */
.activate-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 20px;
}

.activate-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 18px;
}

.activate-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 18px;
}

.activate-card-icon {
  width: 20px;
  height: 20px;
  filter: invert(10%) sepia(80%) saturate(700%) hue-rotate(210deg);
}

/* --- GRILLE 2 COLONNES --- */
.activate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* --- ITEM (chaque champ) --- */
.activate-item {
  background: var(--item-bg);
  border-radius: 12px;
  padding: 12px 16px;
}

.activate-item label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

/* --- LIGNE CHAMP + CRAYON --- */
.activate-field-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.activate-field-row input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  font-family: Arial;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  outline: none;
  padding: 2px 0;
  transition: border-color 0.15s;
}

.activate-field-row input:focus {
  border-bottom-color: var(--accent);
}

.activate-edit-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.45;
  cursor: pointer;
  filter: invert(10%) sepia(80%) saturate(700%) hue-rotate(210deg);
  transition: opacity 0.15s;
}

.activate-edit-icon:hover {
  opacity: 1;
}

.activate-select-field {
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  font-family: Arial;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  outline: none;
  padding: 2px 0;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.15s;
}

.activate-select-field:focus {
  border-bottom-color: var(--accent);
}

/* Container */
.activate-toggle-container {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Arial, sans-serif;
}

/* Switch wrapper */
.activate-switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 30px;
}

/* Hide checkbox */
.activate-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Track */
.activate-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d1d5db;
  transition: 0.25s ease;
  border-radius: 999px;
}

/* Knob */
.activate-slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 4px;
  top: 4px;
  background-color: white;
  transition: 0.25s ease;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ON state */
.activate-switch input:checked+.activate-slider {
  background-color: var(--navy);
}

.activate-switch input:checked+.activate-slider::before {
  transform: translateX(24px);
}

/* Focus (accessibilité clavier) */
.activate-switch input:focus+.activate-slider {
  box-shadow: 0 0 0 3px var(--navy-hover);
}

/* --- BOUTONS --- */
.activate-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 20px;
  border: none;
  background: var(--navy);
  color: white;
  font-family: Arial;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.activate-btn:hover {
  background: var(--navy-hover);
  transform: translateY(-1px);
}

.activate-btn-outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}

.activate-btn-outline:hover {
  background: var(--navy);
  color: white;
}

.activate-btn-outline .activate-btn-icon {
  filter: invert(10%) sepia(80%) saturate(700%) hue-rotate(210deg);
}

.activate-btn-outline:hover .activate-btn-icon {
  filter: invert(1);
}

.activate-btn.activate-danger {
  background: var(--danger);
}

.activate-btn.activate-danger:hover {
  background: #a93226;
}

.activate-btn-icon {
  width: 13px;
  height: 13px;
}

.activate-btn-confirmer {
  background: var(--navy);
  color: white;
}

.activate-btn-cancel {
  background: white;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.activate-btn-cancel:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

/* --- BOUTON ENREGISTRER --- */
.activate-card-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

/* ============================================
   GESTION DES CLASSES
   ============================================ */
.gClasses-msg-success {
  background: #d4edda;
  color: #155724;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gClasses-msg-error {
  background: #f8d7da;
  color: #721c24;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gClasses-page-subtitle {
  font-size: 13px;
  color: #888;
  margin-bottom: 20px;
}

.gClasses-btn-ajouter {
  background: #052280;
  margin-top: 16px;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gClasses-btn-ajouter:hover {
  background: #031a60;
}

.gClasses-input-field {
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  margin-bottom: 12px;
  font-size: 13px;
  box-sizing: border-box;
  height: auto;
  background: white;
}

.gClasses-form-btns {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.gClasses-couleur-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.gClasses-input-color {
  width: 48px;
  height: 36px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  padding: 2px;
  background: white;
}

.gClasses-couleur-hex {
  font-size: 13px;
  color: #555;
  font-family: monospace;
}

.gClasses-classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.gClasses-classe-card {
  background: white;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.gClasses-classe-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.gClasses-classe-card-nom {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}

.gClasses-card-actions {
  display: flex;
  gap: 8px;
}

.gClasses-icon-btn-edit {
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  font-size: 16px;
  padding: 4px;
}

.gClasses-icon-btn-edit:hover {
  color: #1a1a63;
}

.gClasses-icon-btn-del {
  background: none;
  border: none;
  cursor: pointer;
  color: #e74c3c;
  font-size: 16px;
  padding: 4px;
}

.gClasses-icon-btn-del:hover {
  color: #a00;
}

.gClasses-classe-card-field {
  margin-bottom: 10px;
}

.gClasses-field-label {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.gClasses-field-value {
  display: block;
  font-size: 13px;
  color: #333;
  background: #f5f5f5;
  border-radius: 6px;
  padding: 6px 10px;
}

.gClasses-color-circle {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.gClasses-empty {
  color: #999;
  font-style: italic;
  font-size: 13px;
  margin-top: 16px;
}

.gClasses-btn-close-msg {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: inherit;
  margin-left: auto;
  padding: 0;
  display: flex;
  align-items: center;
}

.gClasses-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

@keyframes gClassesPopIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.gClasses-modal-form {
  background: white;
  border-radius: 16px;
  padding: 28px;
  width: 420px;
  max-width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: gClassesPopIn 0.3s ease-out;
}

.gClasses-modal-form h3 {
  margin-bottom: 20px;
}

.gClasses-modal-form form {
  display: block;
}

.gClasses-popup-confirm {
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.gClasses-required {
  color: red;
}

.gClasses-field-error {
  display: block;
  color: red;
  font-size: 11px;
  margin-bottom: 4px;
  font-weight: normal;
}

.gClasses-popup-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  transition: opacity 0.3s;
}

.gClasses-popup-toast.hidden {
  display: none;
}

.gClasses-popup-toast-box {
  background: #c0392b;
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.gClasses-popup-toast-box button {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.gClasses-search-wrap {
  max-width: 500px;
  position: relative;
  margin-bottom: 16px;
  margin-top: 16px;
}

.gClasses-search-wrap input {
  width: 100%;
  padding: 10px 45px 10px 20px;
  border-radius: 20px;
  border: none;
  font-size: 15px;
  background: #e4e7f0;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  height: auto;
  min-width: 0;
  display: block;
}

.gClasses-popup-actions #pop-up-annuler {
  background-color: white !important;
  color: var(--primaryColor) !important;
}

.gClasses-popup-actions #pop-up-confirmer {
  background-color: var(--primaryColor) !important;
  color: white !important;
}


@media (max-width: 768px) {
  .gClasses-search-wrap {
    max-width: 100%;
  }

  .gClasses-search-wrap input {
    font-size: 16px;
    padding: 8px 40px 8px 16px;
    -webkit-appearance: none;
    appearance: none;
    height: auto;
    min-width: 0;
    display: block;
  }

  .gClasses-popup-actions.popup-actions {
    flex-direction: row !important;
    flex-wrap: nowrap;
    gap: 20px;
  }

  .gClasses-popup-actions.popup-actions button {
    width: auto !important;
    padding: 10px 25px !important;
    flex: 1;
  }

  .gClasses-popup-actions #pop-up-annuler {
    background-color: white !important;
    color: var(--primaryColor) !important;
  }

  .gClasses-popup-actions #pop-up-confirmer {
    background-color: var(--primaryColor) !important;
    color: white !important;
  }
}

.gClasses-search-wrap .bi-search {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a96a8;
  pointer-events: none;
}
.gInscriptionSite-content {
  margin-left: 250px;
  padding: 25px;
  width: calc(100% - 250px);
  background-color: white;
  min-height: 100vh;
}

.gInscriptionSite-header {
  justify-content: space-between;
  display: flex;
}

/* ============================================
   SEARCH WRAP
   ============================================ */
.gInscriptionSite-search-wrap {
  display: inline-block;
}

/* ============================================
   EMAIL
   ============================================ */
.gInscriptionSite-email {
  font-size: 0.85rem;
  color: #8a96a8;
}

/* ============================================
   STATUTS — cellules tableau
   ============================================ */
.gInscriptionSite-statut-inscrit {
  color: #22c55e;
}

.gInscriptionSite-statut-inactif {
  color: red;
}

.gInscriptionSite-statut-en-attente {
  color: #f59e0b;
}

/* ============================================
   STATUTS — badges mobiles
   ============================================ */
.gInscriptionSite-statut {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  width: auto;
  text-align: center;
}

.gInscriptionSite-complet {
  background: #22c55e;
  color: #fff;
}

.gInscriptionSite-non_paye {
  background: #742c86;
  color: #fff;
}

.gInscriptionSite-partiel {
  background: #f59e0b;
  color: #fff;
}

/* ============================================
   ACTIONS
   ============================================ */
.gInscriptionSite-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.gInscriptionSite-actions form {
  margin: 0;
}

.gInscriptionSite-actions button {
  border: none;
  outline: none;
  box-shadow: none;
  cursor: pointer;
  font-family: var(--font);
}

/* ============================================
   BOUTONS D'ACTION
   ============================================ */
.gInscriptionSite-btn-accepter {
  background-color: #22c55e;
  color: #fff;
  width: 40px;
  height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  padding: 0;
  margin: 0 auto;
}

.gInscriptionSite-btn-accepter:hover {
  transform: scale(1.1);
}

.gInscriptionSite-btn-supprimer {
  background-color: #ef4444;
  color: #fff;
  width: 40px;
  height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  padding: 0;
  margin: 0 auto;
}

.gInscriptionSite-btn-supprimer:hover {
  transform: scale(1.1);
}

.gInscriptionSite-btn-suspendre {
  background-color: #f59e0b;
  color: #fff;
  width: 40px;
  height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  padding: 0;
  margin: 0 auto;
}

.gInscriptionSite-btn-suspendre:hover {
  transform: scale(1.1);
}

.gInscriptionSite-btn-activer {
  background: #1e3a6e;
  color: #fff;
  width: 40px;
  height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  padding: 0;
  margin: 0 auto;
}

.gInscriptionSite-btn-activer:hover {
  transform: scale(1.1);
}

.gInscriptionSite-btn-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 22px;
  font-size: 0.82rem;
  font-weight: bold;
  color: #fff;
  background: #10b981;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}

.gInscriptionSite-btn-export:hover {
  background: #059669;
  transform: scale(1.02);
}

/* ============================================
   PAGINATION
   ============================================ */
.gInscriptionSite-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.gInscriptionSite-btn-page {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 8px;
  background: #e4e7f0;
  color: #1e3a6e;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.gInscriptionSite-btn-page:hover {
  background: #d1d5db;
}

/* ============================================
   MOBILE CARDS
   ============================================ */
.gInscriptionSite-mobile-cards {
  display: none;
}

.gInscriptionSite-mobile-card {
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 1px 6px rgba(30, 58, 110, 0.1);
}

.gInscriptionSite-mobile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.gInscriptionSite-mobile-card-nom {
  font-weight: bold;
  color: #2d3748;
}

.gInscriptionSite-mobile-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.gInscriptionSite-mobile-card-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #2d3748;
}

.gInscriptionSite-mobile-car-footer {
  margin-top: 12px;
}

/* ============================================
   POP-UP
   ============================================ */
.gInscriptionSite-pop-up-contenu {
  background-color: #8e8e8e;
  color: white;
  padding: 30px;
  border-radius: 20px;
  width: 400px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: gInscriptionSite-popIn 0.3s ease-out;
}

.gInscriptionSite-pop-up-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

.gInscriptionSite-pop-up-buttons button {
  padding: 10px 25px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

@keyframes gInscriptionSite-popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ============================================
   RESPONSIVE (≤ 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .gInscriptionSite-content {
    margin-left: 0;
    width: 100%;
    padding-top: 74px;
  }
}

/* ============================================
   RESPONSIVE (≤ 768px)
   ============================================ */
@media (max-width: 768px) {

  /* Cacher le tableau classique */
  table {
    display: none;
  }

  /* Afficher les cartes mobiles */
  .gInscriptionSite-mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
  }

  .gInscriptionSite-pagination {
    margin-top: 20px;
  }
}

.gInscriptionSite-statut {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 15px;
  font-size: 0.78rem;
  font-weight: 600;
  width: 130px;
  text-align: center;
  color: #fff;
}

.gInscriptionSite-statut-enAttente {
  background: #f59e0b;
}

.gInscriptionSite-statut-actif {
  background: #22c55e;
}

.gInscriptionSite-statut-inactif {
  background: #c21717;
}
/* ============================================
   vListeClasse_Presences — CLASSES
   ============================================ */

.vListeClasse_Presences-page-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 16px;
  color: #111;
  padding-left: 12px;
  border-left: 5px solid #052280;
}

.vListeClasse_Presences-empty-message { text-align: center; padding: 40px; color: #888; font-size: 15px; }

.vListeClasse_Presences-filter-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.vListeClasse_Presences-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }

.vListeClasse_Presences-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  color: #111;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: default;
}

.vListeClasse_Presences-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.13); }

.vListeClasse_Presences-card-nom         { font-size: 15px; font-weight: bold; color: #052280; }
.vListeClasse_Presences-card-commentaire { font-size: 12px; color: #777; }
.vListeClasse_Presences-card-sep         { height: 0.5px; background: #eee; margin: 4px 0; }
.vListeClasse_Presences-card-stat        { font-size: 13px; color: #444; }
.vListeClasse_Presences-card-stat strong { color: #052280; }
.vListeClasse_Presences-card-stat--plein        { color: #c0392b; font-weight: 600; }
.vListeClasse_Presences-card-stat--plein strong { color: #c0392b; }
.vListeClasse_Presences-card-actions { display: flex; gap: 8px; margin-top: 6px; }

.vListeClasse_Presences-btn-card {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background: var(--primaryColor);
  border-radius: var(--radius-sm);
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, transform 0.15s;
}

.vListeClasse_Presences-btn-card:hover           { background: var(--primaryColorDarker); transform: scale(1.02); }
.vListeClasse_Presences-btn-card--presences      { background: #27ae60; }
.vListeClasse_Presences-btn-card--presences:hover{ background: #1e8449; }

.vListeClasse_Presences-detail-header { 
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}
.vListeClasse_Presences-classe-commentaire { font-size: 13px; color: #666; margin-top: 4px; padding-left: 13px; }

.vListeClasse_Presences-resume-stats { display: flex; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; align-items: flex-start; }

.vListeClasse_Presences-stat-box {
  background: #fff;
  border-radius: 8px;
  padding: 14px 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.vListeClasse_Presences-stat-val        { font-size: 26px; font-weight: bold; color: #052280; }
.vListeClasse_Presences-stat-val--plein { color: #c0392b; }
.vListeClasse_Presences-stat-sur        { font-size: 15px; font-weight: normal; color: #888; }
.vListeClasse_Presences-stat-label      { font-size: 12px; color: #777; margin-top: 2px; }

.vListeClasse_Presences-badge-amenagement { display: inline-block; background: #052280; color: white; font-size: 12px; padding: 3px 10px; border-radius: 20px; }
.vListeClasse_Presences-badge-niveau      { display: inline-block; background: #e8f0fe; color: #052280; font-size: 12px; padding: 3px 10px; border-radius: 20px; font-weight: 600; border: 1px solid #c5d3f5; }


/* ============================================
   vListeClasse_Presences — PRISE DE PRÉSENCES
   ============================================ */

.vListeClasse_Presences-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.vListeClasse_Presences-tabs {
  display: flex;
  gap: 4px;
  background: #f1f5fd;
  padding: 4px;
  border-radius: 10px;
}

.vListeClasse_Presences-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s;
}

.vListeClasse_Presences-tab:hover  { background: #fff; color: var(--primaryColor); }
.vListeClasse_Presences-tab.active { background: var(--primaryColor); color: #fff; box-shadow: 0 2px 8px rgba(30,58,110,0.2); }

.vListeClasse_Presences-top-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.vListeClasse_Presences-info-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 6px;
}

.vListeClasse_Presences-date-select { width: auto; min-width: 240px; }

.vListeClasse_Presences-td-presence {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.vListeClasse_Presences-btn-presence {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: #f8fafc;
  color: #64748b;
  transition: all 0.15s ease;
}

.vListeClasse_Presences-btn-presence:hover { filter: brightness(0.93); transform: scale(1.03); }

.vListeClasse_Presences-btn-present.active  { background: #22c55e; color: #fff; border-color: #16a34a; box-shadow: 0 2px 8px rgba(34,197,94,0.3); }
.vListeClasse_Presences-btn-absent.active   { background: #ef4444; color: #fff; border-color: #dc2626; box-shadow: 0 2px 8px rgba(239,68,68,0.3); }
.vListeClasse_Presences-btn-retard.active   { background: #f59e0b; color: #fff; border-color: #d97706; box-shadow: 0 2px 8px rgba(245,158,11,0.3); }
.vListeClasse_Presences-btn-reparti.active  { background: #8b5cf6; color: #fff; border-color: #7c3aed; box-shadow: 0 2px 8px rgba(139,92,246,0.3); }

.vListeClasse_Presences-save { margin-top: 28px; text-align: center; }

.vListeClasse_Presences-btn-sauvegarder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 52px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: bold;
  color: #fff;
  background: #22c55e;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(34,197,94,0.35);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.vListeClasse_Presences-btn-sauvegarder:hover { background: #16a34a; transform: scale(1.03); box-shadow: 0 6px 18px rgba(34,197,94,0.4); }

.vListeClasse_Presences-hint {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 10px 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.vListeClasse_Presences-alert { padding: 12px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 500; font-size: 14px; }
.vListeClasse_Presences-alert--success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.vListeClasse_Presences-alert--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ============================================
   vListeClasse_Presences — HISTORIQUE
   ============================================ */

.vListeClasse_Presences-filter-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5fd;
  border: 0.5px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 8px 14px;
}

.vListeClasse_Presences-search-wrap { margin-bottom: 16px; }

.vListeClasse_Presences-search-wrap input {
  width: 100%;
  max-width: 360px;
  height: 40px;
  padding: 0 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius);
  font-size: 14px;
  background: #f8fafc;
  color: var(--text);
  outline: none;
}

.vListeClasse_Presences-search-wrap input:focus { border-color: var(--primaryColor); background: #fff; }

.vListeClasse_Presences-subtabs { display: flex; gap: 8px; margin-bottom: 20px; }

.vListeClasse_Presences-subtab {
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s;
}

.vListeClasse_Presences-subtab.active { background: var(--primaryColor); color: #fff; border-color: var(--primaryColor); }

.vListeClasse_Presences-seance-block {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(30,58,110,0.07);
  margin-bottom: 20px;
  overflow: hidden;
}

.vListeClasse_Presences-seance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px;
  background: #f1f5fd;
  border-bottom: 1px solid #e2e8f0;
}

.vListeClasse_Presences-seance-date      { font-weight: 700; font-size: 14px; color: var(--primaryColor); }
.vListeClasse_Presences-seance-counters  { display: flex; gap: 6px; flex-wrap: wrap; }

.vListeClasse_Presences-mini-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.vListeClasse_Presences-badge-present { background: #22c55e; color: #fff; }
.vListeClasse_Presences-badge-absent  { background: rgb(226, 12, 12); color: #fff; }
.vListeClasse_Presences-badge-retard  { background: #f59e0b; color: #fff; }
.vListeClasse_Presences-badge-reparti { background: #742c86; color: #fff }

.vListeClasse_Presences-table-histo { width: 100%; border-collapse: collapse; margin: 0; box-shadow: none; }
.vListeClasse_Presences-table-histo th { padding: 11px 18px; font-size: 13px; font-weight: 600; color: #64748b; background: #f8fafc; border-bottom: 1px solid #e2e8f0; text-align: center; }
.vListeClasse_Presences-table-histo td { padding: 11px 18px; font-size: 13px; border-bottom: 1px solid #f1f5f9; text-align: center; background: #fff; }
.vListeClasse_Presences-table-histo tbody tr:last-child td { border-bottom: none; }
.vListeClasse_Presences-table-histo tbody tr:hover td { background: #f8fafc; }

.vListeClasse_Presences-histo-badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.vListeClasse_Presences-histo-badge.vListeClasse_Presences-badge-present { background: #22c55e; color: #fff; }
.vListeClasse_Presences-histo-badge.vListeClasse_Presences-badge-absent  { background: rgb(226, 12, 12); color: #fff; }
.vListeClasse_Presences-histo-badge.vListeClasse_Presences-badge-retard  { background: #f59e0b; color: #fff; }
.vListeClasse_Presences-histo-badge.vListeClasse_Presences-badge-reparti { background: #742c86; color: #fff }

.vListeClasse_Presences-eleve-block { background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(30,58,110,0.07); margin-bottom: 20px; overflow: hidden; }

.vListeClasse_Presences-eleve-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px;
  background: #f1f5fd;
  border-bottom: 1px solid #e2e8f0;
}

.vListeClasse_Presences-eleve-nom { font-weight: 700; font-size: 14px; color: var(--primaryColor); }
/* ============================================
   vListeClasse_Presences — MANQUANT
   ============================================ */
 
.vListeClasse_Presences-btn-exporter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 22px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: bold;
  color: #fff;
  background: #27ae60;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s;
}
.vListeClasse_Presences-btn-exporter:hover { background: #1e8449; }
 
/* Cartes mobiles — cachées par défaut sur desktop */
.presence-mobile-cards       { display: none; }
.presence-mobile-card        { background: #fff; border: 0.5px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.presence-mobile-card-header { background: #f8fafc; padding: 8px 12px; font-size: 13px; font-weight: 600; color: #111; border-bottom: 0.5px solid #e2e8f0; }
.presence-mobile-card-body   { padding: 8px 12px; display: flex; gap: 6px; flex-wrap: wrap; }
 
/* ============================================
   RESPONSIVE — vListeClasse_Presences (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
 
  /* Topbar onglets */
  .vListeClasse_Presences-topbar { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
  .vListeClasse_Presences-tabs   { width: 100%; }
  .vListeClasse_Presences-tab    { flex: 1; justify-content: center; padding: 8px 6px; font-size: 12px; }
 
  /* Header + retour */
  .vListeClasse_Presences-detail-header { gap: 8px; margin-bottom: 16px; }
  .vListeClasse_Presences-page-title    { font-size: 16px; }
  .btn-retour { width: 100%; justify-content: center; }
 
  /* Date/heure */
  .vListeClasse_Presences-top-row  { flex-direction: column; align-items: flex-start; gap: 8px; }
  .vListeClasse_Presences-filter-box { width: 100%; }
 
  /* Stats 3 par ligne */
  .vListeClasse_Presences-stat-box {
    flex: 1 1 calc(33% - 6px);
    min-width: 0;
    padding: 10px 8px;
  }
  .vListeClasse_Presences-stat-val { font-size: 20px; }
 
  /* Tableau → cartes mobiles */
  #table-presences          { display: none !important; }
  .presence-mobile-cards    { display: flex !important; flex-direction: column; gap: 8px; margin-bottom: 16px; }
 
  /* Sauvegarder pleine largeur */
  .vListeClasse_Presences-save            { margin-top: 16px; }
  .vListeClasse_Presences-btn-sauvegarder { width: 100%; padding: 0; }
 
  /* Subtabs historique */
  .vListeClasse_Presences-subtabs { gap: 6px; margin-bottom: 14px; }
  .vListeClasse_Presences-subtab  { flex: 1; text-align: center; padding: 8px 6px; font-size: 12px; }
 
  /* Header séance */
  .vListeClasse_Presences-seance-header { flex-direction: column; align-items: flex-start; gap: 6px; }
 
  /* Table historique — forcer affichage (pas cachée par table{display:none}) */
  .vListeClasse_Presences-table-histo    { display: table !important; table-layout: fixed; }
  .vListeClasse_Presences-table-histo th,
  .vListeClasse_Presences-table-histo td { padding: 8px 10px; font-size: 12px; }
  .vListeClasse_Presences-table-histo th:nth-child(2),
  .vListeClasse_Presences-table-histo td:nth-child(2) { display: none; }
 
  /* Header élève */
  .vListeClasse_Presences-eleve-header { flex-direction: column; align-items: flex-start; gap: 6px; }
 
  /* Recherche élève */
  .vListeClasse_Presences-search-wrap input { max-width: 100%; }
 
  /* Bouton modifier */
  #btn-modifier { width: 100%; text-align: center; border-radius: 8px; }
 
  /* Grille classes 1 colonne */
  .vListeClasse_Presences-grille { grid-template-columns: 1fr; gap: 10px; }
 
  /* Filter wrap détail */
  .vListeClasse_Presences-filter-wrap  { flex-direction: column; align-items: flex-start; gap: 10px; }
  .vListeClasse_Presences-btn-exporter { width: 100%; justify-content: center; }
}
 
/* ── Très petit écran (≤ 480px) ── */
@media (max-width: 480px) {
  .vListeClasse_Presences-stat-box    { flex: 1 1 calc(50% - 6px); }
  .vListeClasse_Presences-card-actions { flex-direction: column; }
  .vListeClasse_Presences-btn-card    { width: 100%; }
  .vListeClasse_Presences-btn-presence { padding: 5px 8px; font-size: 11px; }
}
 
/* Boutons édition historique — wrap sur mobile */
@media (max-width: 768px) {
  .vListeClasse_Presences-table-histo td div {
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
  }
  .vListeClasse_Presences-table-histo .vListeClasse_Presences-btn-presence {
    padding: 4px 8px;
    font-size: 10px;
  }

}
  /* ── Fix badges zone-badges JS ── */
.vListeClasse_Presences-mini-badge.vListeClasse_Presences-badge-present { background: #22c55e; color: #fff; }
.vListeClasse_Presences-mini-badge.vListeClasse_Presences-badge-absent  { background: rgb(226, 12, 12); color: #fff; }
.vListeClasse_Presences-mini-badge.vListeClasse_Presences-badge-retard  { background: #f59e0b; color: #fff; }
.vListeClasse_Presences-mini-badge.vListeClasse_Presences-badge-reparti { background: #742c86; color: #fff }

.popup-overlay.actif {
    display: block;
}
 
.popup-modal.actif {
    display: block;
}

/* Fix colonne Nom visible sur mobile dans historique */
.vListeClasse_Presences-table-histo th:nth-child(2),
.vListeClasse_Presences-table-histo td:nth-child(2) {
    display: table-cell !important;
}

/* Fix boutons édition historique — 2 par ligne, taille réduite */
.vListeClasse_Presences-table-histo td div {
    flex-wrap: wrap !important;
    gap: 4px !important;
    justify-content: center;
    max-width: 200px;
    margin: 0 auto;
}

.vListeClasse_Presences-table-histo .vListeClasse_Presences-btn-presence {
    white-space: nowrap;
    flex: 1 1 calc(50% - 4px);
    max-width: calc(50% - 4px);
    padding: 5px 4px !important;
    font-size: 11px !important;
    text-align: center;
    justify-content: center;
}
.vListeClasse_Presences-seance-counters {
    flex-wrap: wrap;
    align-items: center;
}
.vListeClasse_Presences-eleve-header form {
    flex-shrink: 0;
}

.vListeClasse_Presences-eleve-header .btn-export {
    display: inline-flex !important;
    width: auto !important;
    white-space: nowrap !important;
    padding: 7px 22px !important;
}