/* formations.css */

/* Reset & font */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
  min-height: 100vh;
  color: #333;
}

/* Navbar */
nav.navbar {
  box-shadow: 0 3px 10px rgb(0 0 0 / 0.15);
}
nav .navbar-brand strong {
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
}

/* Container principale */
.container.my-5 {
  max-width: 720px;
  background: white;
  padding: 2rem 2.5rem;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.1);
}

h1 {
  font-weight: 700;
  color: #62a4e7;
}

p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  color: #555;
}

/* Form - cartes formations */
fieldset {
  border: none;
  padding: 0;
  margin-bottom: 2rem;
}

legend {
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color:#62a4e7;
}

.form-check {
  background: #fafafa;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 3px 10px rgb(229 11 11 / 0.1);
  transition: background-color 0.3s ease;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
}

.form-check:hover {
  background-color: #ffe5e5;
}

.form-check-input {
  width: 22px;
  height: 22px;
  margin-right: 1rem;
  cursor: pointer;
  border-radius: 5px;
  border: 2px solid#62a4e7;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.form-check-input:checked {
  background-color:#62a4e7;
  border-color:#62a4e7;
}

.form-check-label {
  font-weight: 500;
  color: #333;
  cursor: pointer;
  margin-bottom: 0;
  flex: 1;
}

/* Bouton */
button.btn-primary {
  background-color:#62a4e7;
  border-color:#62a4e7;
  padding: 0.75rem 2rem;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(11, 113, 229, 0.4);
}

button.btn-primary:hover,
button.btn-primary:focus {
  background-color:#62a4e7; 
  border-color:#62a4e7;
  box-shadow: 0 8px 25px rgba(62, 159, 233, 0.7);
  outline: none;
}

/* Validation feedback */
.invalid-feedback {
  font-weight: 600;
  color: #d93025;
}

#formationError {
  margin-top: -0.5rem;
}

/* Message confirmation */
#confirmationMessage {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #22cf15;
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 6px 15px rgba(7, 229, 103, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 1050;
  white-space: pre-line;
  text-align: center;
  max-width: 90vw;
  user-select: none;
}

#confirmationMessage.show {
  opacity: 1;
  pointer-events: auto;
}

/* Footer */
footer {
  background-color: #a90707;
  color: #fff;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

footer:hover {
  background-color: #e50b0b;
}
/* MODALE DE CONFIRMATION - STYLE ADHP */
.modal-content {
  border: 3px solid #62a4e7;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
  background-color: #62a4e7;
  color: white;
  border-bottom: 3px solid #ffd54f;
}

.modal-title {
  font-weight: 700;
  font-size: 1.25rem;
}

.modal-body {
  background-color: #fdfdfd;
  color: #333;
  font-size: 1.05rem;
  line-height: 1.6;
  border-left: 4px solid #ffd54f;
}

.modal-footer {
  background-color: #f9f9f9;
  border-top: 1px solid #ddd;
}

.modal-footer .btn-outline-success {
  color: #62a4e7;
  border-color: #62a4e7;
  font-weight: 600;
  border-radius: 30px;
}

.modal-footer .btn-outline-success:hover {
  background-color: #62a4e7;
  color: white;
}

/* Section Ressources ADHP */
.ressources-adhp {
  background: linear-gradient(to right, #f8f9fa, #fff);
  border-top: 3px solid #e50b0b;
  border-bottom: 3px solid #e50b0b;
}

/* Liens stylisés */
.lien-ressource {
  text-decoration: none;
  color: #0d6efd;
  font-weight: 500;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.lien-ressource:hover {
  color: #e50b0b;
  padding-left: 6px;
}

/* Cartes animées au survol */
.hover-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 15px;
}

.hover-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Icônes Bootstrap */
.bi {
  font-size: 1.2rem;
  vertical-align: middle;
}

/* Ajustement sur mobile */
@media (max-width: 767px) {
  .ressources-adhp {
    text-align: center;
  }
  .list-group-item {
    text-align: left;
  }
}
