/* ========== Layout ========== */
.rap-container {
  display: flex;
  gap: 2rem;
  padding: 2rem;
}
/* Recherche : 30% de la largeur */
.rap-search-panel {
  flex: 0 0 400px;
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  height: fit-content;
 /* position: sticky;*/
 /* top: 2rem; /* reste visible au scroll */
}
/* Résultats : le reste */
.rap-results-panel {
  flex: 1;
}

/* ========== Formulaire ========== */
.rap-search-panel h2 {
  margin-top: 0;
  font-size: 1.9rem;
  margin-bottom: 1rem;
}
.rap-search-panel label {
  display: block;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.rap-search-panel input,
.rap-search-panel select {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1.4rem;
  margin-bottom:1.3rem;
}
.rap-submit, .rap-reset {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 4px;
 /* font-size: 1rem;*/
  cursor: pointer;
  
  font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.rap-submit:hover {
  background: #005177;
}
#q_nom,#q_prenom {
    margin-top: -10px;
    margin-bottom: 3.3rem;
}
/* ========== Résultats et Pagination ========== */
.rap-results-panel #rap-results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.rap-results-panel #rap-pagination {
  margin-top: 1.5rem;
  text-align: center;
}
.print-pdf{display: flex;
    justify-content: center}
    
.matricule{font-size: 1.3rem;
    background-color: skyblue;
    padding: .7rem 1.5rem;
    border-radius: 0 0 2rem 2rem;}

/* Radio group dans le panneau de recherche */
.rap-search-panel fieldset.rap-radio-group {
  border: none;
  padding: 0;
  margin-bottom: 2rem;
}

/* Alignement horizontal */
.rap-search-panel fieldset.rap-radio-group label {
  display: inline-flex;
  align-items: center;
  margin-right: 1.5rem;
  font-size: 1.4rem;
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -15px;
    margin-top: -15px;

}

/* Espace entre radio et texte */
.rap-search-panel fieldset.rap-radio-group input[type="radio"] {
  margin-right: 0.5rem;
  margin-top: 0.8em;
}



 .radio-inline-group {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
  }
  .radio-inline-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
  }
/* ========== Responsive ========== */
@media (max-width: 768px) {
  .rap-container {
    flex-direction: column;
    padding: 1rem;
  }
  .rap-search-panel {
    position: relative;
    top: auto;
    width: 100%;
    margin-bottom: 2rem;
  }
}

.rap-accueil-search {
    background: #f7f7f7;
    padding: 1rem;
    margin: 2rem 0;
    border-radius: 8px;
}
#rap-accueil-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
#rap-accueil-form input, #rap-accueil-form select {
    flex: 1;
    min-width: 150px;
}
#rap-accueil-results {
    margin-top: 1rem;
}

/*====bouton print pdf======*/
#oect-pdf-btn {
    background: #e74c3c;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}

#oect-pdf-btn:hover {
    background: #c0392b;
}

#oect-pdf-btn i {
    margin-right: 5px;
}
