

/* POPUP CONTAINER */
#containers {
  position: fixed;
  top: 0;
  left: 0;
  width: 50%;
  max-width: 100%;
  max-height: 100%;
  min-width: 21.25em;
  max-width: 90vw;
  max-height: 99vh;
  background-color: #fff;
  border: 3px solid #ccc;
  color: #000;
  overflow: hidden;
  z-index: 10000;
  border-radius: 6px;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#containers.show {
  display: block;
  opacity: 1;
}

/* ✅ Responsive mobile */
@media (max-width: 768px) {
  #containers {
    width: 90vw;
    min-width: unset;
    max-height: 90vh;
    border-width: 2px;
    font-size: 0.95em;
  }
}


/* CONTENU SCROLLABLE */
#containers .col {
    max-height: calc(99vh - 60px); /* ajusté selon la hauteur du header */
    overflow-y: auto;
    padding: 0.5em;
}

/* HEADER DRAGGABLE */
#containers .header {
  position: relative; /* important pour que "absolute" fonctionne dedans */
  background-color: #a3aea7;
  color: white;
  padding: 0.5em 1em;
  display: flex;
  align-items: center;
  justify-content: center; /* centre le titre */
  cursor: move;
}

#close-btn {
  position: absolute;
  right: 1em; /* espace depuis la droite */
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  font-size: 1.5em;
  color: #fff;
  border: none;
  cursor: pointer;
}


/* TITRE DU HEADER */
.header h1 {
    font-size: 1.2em;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    color: white;
    width: 100%;
}

/* SCROLLBAR STYLE */
.col::-webkit-scrollbar {
    width: 5px;
}
.col::-webkit-scrollbar-track {
    background-color: #fff;
    transition: background-color 0.5s ease;
}
.col::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.7);
    transition: background-color 0.5s ease;
    border-radius: 10px;
}
.col::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* BOUTON OUVRIR */
/* #open-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 0.7em 1.2em;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
} */

/* table */

.membres-liste {
    width: 100%;
    border-collapse: collapse;
    margin: 20px auto;
    font-family: 'Segoe UI', sans-serif;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.membres-liste th,
.membres-liste td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 14px;
}

.membre-ligne.header {
    background-color: #ff7f7f;
    color: white;
    font-weight: bold;
}

.btne {
    background-color: #f8f9fa;
    border: none;
    padding: 6px 8px;
    margin-right: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.btne:hover {
    background-color: #e2e6ea;
}

.btne.supr {
    color: #ff7f7f;
    transition: color 0.3s;
}

@media (max-width: 768px) {
    .membres-liste thead {
        display: none;
    }
    .membres-liste, 
    .membres-liste tbody, 
    .membres-liste tr, 
    .membres-liste td {
        display: block;
        width: 100%;
    }
    .membres-liste tr {
        margin-bottom: 15px;
        border: 1px solid #ccc;
        padding: 10px;
        border-radius: 6px;
        background-color: #f9f9f9;
    }
    .membres-liste td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        margin-bottom: 10px;
    }
    .membres-liste td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        padding-left: 15px;
        font-weight: bold;
        text-align: left;
    }
}

/* BOUTONS */
.btnes {
  background-color: #ff5252;
  color: white;
  line-height: 1.5em;
  border: none;
  border-radius: 3px;
  position: sticky;
  float: right;
  z-index: 2;
  margin-top: 0.5em;
}


.btne {
    color: #405748;
    border: none;
    padding: 0.6em 1.2em;
    font-size: 1em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}


/* BOUTONS */
/* #open-btn {
    position: fixed;
    bottom: 2%;
    right: 0;
    background: #407;
    border: none;
    padding: 0.1em;
    font-size: 1.2em;
    color: white;
    border-radius: 50%;
    transition: background 0.3s ease;
} */

#open-btn:hover {
    background: #3050a0;
}


  
  
  .type-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    user-select: none;
    padding: 2px 4px;
    
     font-size: 1em;
      border: 1px solid #ccc;
      background-color: #fff;
      color: #333;
  }
  
  .type-btn input[type="radio"] {
    margin: 0;
    vertical-align: middle;
  }
  
 
  /* Style pour options dynamiques */
  #operationContainer {
    display: flex;
    flex-wrap: wrap; /* permet de passer à la ligne si nécessaire */
    gap: 10px;        /* espace entre les options */
    justify-content: space-between; /* espace égal entre les colonnes */
  }
  
  #operationContainer label {
    flex: 1 1 calc(33.333% - 10px); /* 3 colonnes avec espacement */
    display: flex;
    align-items: justify;
    gap: 1px;
    padding: 4px 1px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    background-color: #f9f9f9;
    box-sizing: border-box;
    min-width: 150px; /* empêche les colonnes de devenir trop petites */
  }
  input:disabled,select:disabled {
    background-color:rgb(251, 251, 251); /* couleur grise claire, par exemple */
    color: #000;               /* texte grisé */
    border: none;
    cursor: not-allowed;
  }
  
/* search */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1em; /* anciennement 1rem */
  justify-content: center;
  margin: 1em auto;
  background-color: #ccc;
  padding: 1em;
  width: 60vw;
  /* max-width: 79em; environ 1200px si base font = 16px */
  border-radius: 0.5em; /* ~8px */
}

.field {
  flex: 1 1 15em; /* ~240px */
  display: flex;
  min-width: 12.5em; /* facultatif, garde une base minimale */
}

.field input,
.field .btr {
  width: 100vw;
  padding: 0.7em;
  font-size: 1em;
  border: 0.07em solid #ccc;
  border-radius: 0.25em;
}

.btr {
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  padding: 0.7em 1.4em;
  font-size: 1em;
}

.btr:hover {
  background-color: #2c3e33;
}

@media (max-width:400px) {
   .row {
  width: 96vw;
}
  
}
