body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  /* line-height: 1.6; */
  background-color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* COULEURS */
.rouge {
  color: #9e788f !important;
}

.gris {
  color: #a9b3ce !important;
}

.bleu-ciel {
  color: #12eaea !important;
}

.bleu {
  color: #027586 !important;
}

.marron {
  color: #474954 !important;
}

.beige {
  color: #f8f6f4 !important;
}

.bg-rouge {
  background-color: #9e788f !important;
}

.bg-gris {
  background-color: #a9b3ce !important;
}

.bg-bleu-ciel {
  background-color: #12eaea !important;
}

.bg-bleu {
  background-color: #027586 !important;
}

.bg-marron {
  background-color: #474954 !important;
}

.bg-beige {
  background-color: #f8f6f4 !important;
}

/* FIN COULEURS */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* header {
  background: #333;
  padding: 1rem;
  margin-bottom: 2rem;
} */

nav a {
  color: white;
  text-decoration: none;
}

footer {
  margin-top: 2rem;
  padding: 1rem;
  background: #f4f4f4;
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th,
td {
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
}

th {
  background-color: #f4f4f4;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

tr:hover {
  background-color: #f5f5f5;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  /* margin-bottom: 1rem; */
}

.btn:hover {
  background: #0056b3;
}

button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* button[type="submit"] {
  background-color: #28a745;
  color: white;
  /* padding: 10px 20px; 
  border: none;
  border-radius: 4px;
  cursor: pointer;
  /* margin-right: 10px; 
} */

/*button[type="submit"]:hover {
   background-color: #218838; 
}*/

/* form button[type="submit"] {
  background: #dc3545;
  color: white;
} */

.admin-panel {
  background: #f8f9fa;
  border: 1px solid #ddd;
  padding: 20px;
  margin: 20px 0;
  border-radius: 4px;
}

.admin-panel h2 {
  color: #dc3545;
  margin-top: 0;
}

.admin-panel ul {
  list-style: none;
  padding: 0;
}

.admin-panel li {
  margin: 10px 0;
}

.admin-panel a {
  color: #007bff;
  text-decoration: none;
}

.admin-panel a:hover {
  text-decoration: underline;
}

.formateurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  max-height: 600px;
  overflow: hidden;
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  padding: 15px;
  margin: 0;
  color: #333;
}

.card p {
  padding: 0 15px 15px;
  color: #666;
}

.card .competences,
.card .experiences {
  padding: 0 15px;
  margin-bottom: 15px;
}

.card h4 {
  color: #007bff;
  margin: 10px 0 5px;
  font-size: 1.1em;
}

textarea {
  width: 100%;
  min-height: 100px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: vertical;
}

table td {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-edit {
  background-color: #ffc107;
  color: #000;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  margin-right: 5px;
}

.btn-edit:hover {
  background-color: #e0a800;
}

.btn-delete {
  background-color: #dc3545;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.btn-delete:hover {
  background-color: #c82333;
}

.form-group img {
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

.form-group img {
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

textarea {
  width: 100%;
  min-height: 100px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: vertical;
}

input[type="file"] {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input[type="text"],
.form-group input[type="email"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

textarea::placeholder {
  color: #999;
  font-style: italic;
}

input::placeholder {
  color: #999;
  font-style: italic;
}

.form-group .help-text {
  font-size: 0.9em;
  color: #666;
  margin-top: 4px;
}

.btn-primary {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #0056b3;
}

/* Style pour le titre */
h1 {
  color: #333;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

/* Amélioration de l'espacement du conteneur */
.container {
  padding: 30px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Style pour les champs obligatoires */
.form-group label::after {
  content: " *";
  color: #dc3545;
}

/* Style pour le champ de fichier qui est optionnel */
.form-group label[for="image"]::after {
  content: none;
}

/* Styles pour la page d'accueil */
.home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.hero-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(to bottom, #ffffff, #f8f9fa);
  border-radius: 10px;
  margin: 40px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.hero-section h1 {
  font-size: 2.5em;
  color: #333;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-text {
  font-size: 1.2em;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

.cta-buttons .btn {
  padding: 12px 30px;
  font-size: 1.1em;
  transition: transform 0.2s ease;
}

.cta-buttons .btn:hover {
  transform: translateY(-2px);
}

/* Animation pour le titre */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section h1 {
  animation: fadeInUp 0.8s ease-out;
}

.hero-text {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-buttons {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Style pour le conteneur principal */
body {
  background-color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Amélioration du style des boutons */
.btn-primary {
  background-color: #007bff;
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #0056b3;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
  background-color: #6c757d;
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #5a6268;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 15px;
  }

  .hero-section h1 {
    font-size: 2em;
  }

  .hero-text {
    font-size: 1.1em;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}

/* Styles pour la grille de formateurs sur la page d'accueil */
.formateurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 30px;
  padding: 20px 0;
  margin-top: 40px;
}


.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  height: 300px;
  position: relative;
}

.formateur-img {
  width: 100%;
  display: block;
}

/* Pour s'assurer que les styles Bootstrap ne prennent pas le dessus */
.card .card-image img.formateur-img {
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-content {
  padding: 20px;
}

.card h3 {
  color: #333;
  margin: 0 0 10px 0;
  font-size: 1.4em;
}

.card .email {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 15px;
}

.card .description {
  color: #444;
  margin-bottom: 20px;
  line-height: 1.5;
}

.card .competences,
.card .experiences {
  margin-top: 15px;
}

.card h4 {
  color: #007bff;
  margin: 0 0 8px 0;
  font-size: 1.1em;
}

.card .competences p,
.card .experiences p {
  color: #666;
  font-size: 0.95em;
  line-height: 1.4;
  margin: 0;
}

.no-formateurs {
  text-align: center;
  color: #666;
  padding: 40px;
  font-size: 1.1em;
}

/* Responsive design pour les cartes */
@media (max-width: 768px) {
  .formateurs-grid {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .card-image {
    height: 180px;
  }
}

/* Styles pour les sections et titres */
.section-title {
  text-align: center;
  font-size: 2em;
  color: #333;
  margin: 40px 0 10px;
  padding-bottom: 10px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: #007bff;
  border-radius: 2px;
}

.section-description {
  text-align: center;
  color: #666;
  font-size: 1.1em;
  margin-bottom: 40px;
}

/* Styles pour les cartes */
.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-content {
  padding: 20px;
}

.card-section {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.card-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.card-title {
  color: #007bff;
  font-size: 1.2em;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid #f0f0f0;
}

.formateur-name {
  font-size: 1.4em;
  text-align: center;
  margin: 10px 0 5px;
  border-bottom: 2px solid #f0f0f0
}

.email {
  color: #666;
  font-style: italic;
  margin-bottom: 15px;
}

.description,
.competences-text,
.experiences-text {
  color: #444;
  line-height: 1.6;
  margin: 10px 0;
}


/* Responsive design */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.6em;
  }

  .section-description {
    font-size: 1em;
    padding: 0 15px;
  }

  .card-title {
    font-size: 1.1em;
  }
}

/* Styles pour l'animation au chargement */
.card {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Ajoutez ces délais pour créer un effet cascade */
.card:nth-child(2) {
  transition-delay: 0.2s;
}

.card:nth-child(3) {
  transition-delay: 0.4s;
}

.card:nth-child(4) {
  transition-delay: 0.6s;
}

.card:nth-child(n+5) {
  transition-delay: 0.8s;
}

/* Optimisation des performances */
.card {
  will-change: transform, opacity;
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Animation plus fluide */
@media (prefers-reduced-motion: no-preference) {
  .card {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Support des navigateurs plus anciens */
@supports not (transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)) {
  .card {
    transition-timing-function: ease-out;
  }
}

.card.expanded {
  max-height: 2000px;
  transition: max-height 1s ease;
}

.card-content {
  padding-bottom: 50px;
}

.show-more-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, white 40%);
  padding: 30px 0 15px;
  text-align: center;
  cursor: pointer;
  color: #007bff;
  font-weight: bold;
}

.card.expanded .show-more-btn {
  background: none;
  padding: 10px 0;
}

.top-banner {
  opacity: 0.7;
  background-color: #027586;
  width: 100%;
  /* height: 50px;
  margin-bottom: 20px;
  /* Pour s'assurer qu'il prend toute la largeur 
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  position: relative;
  */
}

/* Ajustement de la marge du container pour le nouveau bandeau */
.home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.btn-download {
  width: 100%;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.text-muted {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.5rem;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.voir-plus-btn {
  width: 100%;
  padding: 10px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 0 0 10px 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: absolute;
  bottom: 0;
  left: 0;
}

.voir-plus-btn:hover {
  background: #0056b3;
}

/* Classe pour l'animation */
.card-transition {
  transition: max-height 0.5s ease;
}

.card.expanded {
  max-height: 2000px;
}

.card-content {
  padding-bottom: 50px;
}

.voir-plus-btn {
  width: 100%;
  padding: 10px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 0 0 10px 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: absolute;
  bottom: 0;
  left: 0;
}

.voir-plus-btn:hover {
  background: #0056b3;
}

/* Styles pour la page financement */
.financing-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4rem 0;
  margin-bottom: 3rem;
  border-radius: 1rem;
}

.financing-card {
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  margin-bottom: 2rem;
}

.financing-card:hover {
  transform: translateY(-5px);
}

.financing-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.financing-section {
  margin-bottom: 4rem;
}

.advantage-item {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.opco-card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0.5rem;
  height: 100%;
}

.pole-emploi-accordion .accordion-button:not(.collapsed) {
  background-color: rgba(13, 202, 240, 0.1);
  color: var(--bs-info);
}

.financing-btn {
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
}

.custom-toggle {
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.custom-toggle:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.toggle-icon {
  font-size: 1.2rem;
  color: #6c757d;
  transition: all 0.3s ease;
}

input:checked+.custom-toggle .toggle-icon {
  color: #198754;
}

input:checked+.custom-toggle .fa-eye-slash {
  display: none;
}

input:not(:checked)+.custom-toggle .fa-eye {
  display: none;
}

.logo-index {
  width: 20rem !important;
}

.logo-navbar {
  width: 5rem;
}

/* NAVBAR */
.navbar-custom {
  background-color: #027586 !important;

  /* Couleur sombre */
  color: #fff;
  /* Texte blanc */
}

.navbar-custom .navbar-brand {
  font-weight: bold;
  color: #f8f9fa;
}

.navbar-custom .navbar-brand:hover {
  color: #12eaea;
  /* Couleur dorée au survol */
}

.navbar-custom .nav-link {
  color: #f8f9fa;
  transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover {
  color: #12eaea;
  /* Couleur dorée au survol */
}

.navbar-custom .btn-outline-light {
  /* border-color: #12eaea; */
  color: white;
}

.navbar-custom .btn-outline-light:hover {
  background-color: #12eaea;
  color: #343a40;
}

.navbar-custom .btn-warning {
  color: #343a40;
  font-weight: bold;
}