/* === Bloc principal === */
.informations {
  background: #ffffff;
  padding: 40px 50px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap:wrap;
  gap: 25px;
  align-items: center;
  text-align: center;
  overflow-y: scroll;
  height: 100%;

  /* centrage horizontal */
  margin: 0 auto;
}

/* === Sous-blocs === */
.identite, .affiliation, .etat-civil, .login {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 22px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background-color: #fafafa;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  position: relative;
}

/* === Titres dynamiques des sous-blocs === */
.identite::before,
.affiliation::before,
.etat-civil::before,
.login::before {
  position: absolute;
  top: -12px;
  left: 20px;
  background: #0078d7;
  color: #fff;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.identite::before { content: "👤 Identité"; }
.affiliation::before { content: "🏢 Affiliation"; }
.etat-civil::before { content: "📄 État civil"; }
.login::before { content: "🔐 Connexion"; }

/* === Champs et labels === */
.informations label {
  font-weight: 600;
  color: #444;
  display: block;
  margin-bottom: 4px;
}

.informations input,
.informations select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.informations input:focus,
.informations select:focus {
  border-color: #0078d7;
  box-shadow: 0 0 0 3px rgba(0,120,215,0.2);
  outline: none;
}

/* === Bouton === */
.send {
  text-align: center;
  margin-top: 10px;
}

.send button {
  background: #0078d7;
  color: white;
  border: none;
  padding: 12px 35px;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.1s ease;
  box-shadow: 0 4px 10px rgba(0,120,215,0.3);
}

.send button:hover {
  background: #005fa3;
  transform: translateY(-2px);
}
/* Structure générale */
.head, .pieds {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  margin-bottom: 15px;
  border-radius: 6px;
}

.entete span.val {
  font-size: 1.4em;
  font-weight: bold;
}

.entete span.info {
  color: #666;
  font-size: 0.9em;
}

.entete button,
.pieds button {
  padding: 8px 14px;
  border: none;
  background: #007bff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9em;
}

.entete button:hover,
.pieds button:hover {
  background: #0056b3;
}

/* Corps et tableau */
.corps table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

.corps th {
  background: #007bff;
  color: white;
  padding: 10px;
  text-align: left;
}

.corps td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.corps tbody tr:nth-child(even) {
  background: #f9f9f9;
}
#tbody{
  position: relative;
}
.corps tfoot th,
.corps tfoot td {
  background: #f0f0f0;
  font-weight: bold;
  padding: 10px;
  border-top: 2px solid #ccc;
}

/* Section pied */

/* Conteneur principal */
.presentation {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background-color: blanchedalmond;
}

/* Bloc formulaire */
.recherche {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  height: 90%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.25);
  z-index: 20;
  padding: 20px;
  display: block; /* masqué par défaut, à activer via JS */
  background-color: #ec7c7c;
}
/* Chaque bloc (label + input + span) */
.recherche .field {
  display: flex;
  flex-direction: column;
}
/* Labels */
.recherche label {
  font-weight: bold;
  margin-bottom: 6px;
}

/* Inputs */
.recherche input[type="text"] {
  padding: 9px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  transition: border-color 0.2s;
}

.recherche input[type="text"]:focus {
  border-color: #007bff;
  outline: none;
}

/* Spans d'information (Designation / Montant) */
.recherche span {
  margin-top: 5px;
  color: #444;
  font-style: italic;
  font-size: 0.9em;
}

/* Bouton */
.send {
  text-align: center;
  margin-top: 10px;
}

.send button {
  padding: 10px 18px;
  background: #007bff;
  border: none;
  color: white;
  font-size: 1em;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.send button:hover {
  background: #0056b3;
}
.conteneur,.box
{
  position: relative;
  height: 100%;
  overflow-y: scroll;
  width: 100%;
}
.contenant{
  position: relative;
  max-height: 80%;
  overflow-y: scroll;
  background-color: #ccc;
}
#corps{
  overflow-y: scroll;
  text-align: center;
  align-items: center;
  position: relative;
}
#reg{
  position:fixed;
  left: 20%;
  bottom:5%;
  z-index: 3;
}
.centre{
  position: relative;
  text-align: center;
  align-items: center;
}
/* === Responsive === */
@media (max-width: 600px) {
  .informations {
    padding: 25px 20px;
    flex-direction: column;
  }

  .identite, .affiliation, .etat-civil, .login {
    padding: 15px;
  }

  .send button {
    width: 100%;
  }
}
