/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-top: 60px;
  background-color: #f8f9fa;
  font-size: 14px;
}

body.menu-open {
  overflow: hidden;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  color: #fff;
  padding: 12px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo {
  height: 45px;
  width: auto;
  z-index: 1001;
}

.header-title {
  color: #e9af0f;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  margin: 4px 0;
  line-height: 1.3;
}

/* Menu Burger */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
  margin-left: 12px;
}

.burger-menu span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Navigation */
.header-nav {
  display: flex;
  justify-content: space-between;
  flex: 1;
  align-items: center;
  margin-left: 12px;
  transition: all 0.4s;
}

.nav-left ul,
.nav-right ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
}

.nav-left ul li a,
.nav-right ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 3px;
  font-size: 0.9rem;
}

.nav-left ul li a:hover,
.nav-right ul li a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Sélecteur de langue */
.menu-select {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 3px;
  padding: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Section Intro */
.intro {
  text-align: center;
  padding: 1.2rem;
  background: #e9af0f;
  background-image: linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05));
  margin: 0;
}

/* Contenu principal */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Section Cycles */
.cycle-section {
  margin-bottom: 2rem;
}

.grid-cycle {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

/* Section Procédure */
.grid-procedure {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

/* Cartes */
.card {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 0;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #2e7d32 0%, #4caf50 100%);
}

.card p {
  margin: 0.8rem 0;
  color: #555;
  font-size: 0.9rem;
}

.card strong {
  color: #2e7d32;
}

/* Images dans les cartes */
.grid-procedure .card img {
  width: 120px;
  height: 120px;
  margin-bottom: 1rem;
}

/* Boutons */
.buttons {
  margin-top: 0.8rem;
}

.buttons button {
  padding: 0.5rem 1rem;
  border: none;
  background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  box-shadow: 0 2px 4px rgba(46, 125, 50, 0.2);
}

/* Icônes PDF */
.pdf-icon-wrapper {
  position: relative;
  display: inline-block;
  margin: 4px;
}

.pdf-icon-wrapper img {
  width: 60px;
  height: 60px;
}

.pdf-label {
  position: absolute;
  top: 3px;
  right: 3px;
  background: rgba(255, 255, 255, 0.95);
  color: #2e7d32;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
  color: #fff;
  padding: 1.5rem 1rem 1rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content div {
  flex: 1 1 200px;
  margin: 0.8rem 0;
  padding: 0 1rem;
}

footer h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 4px;
}

footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

footer li {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.copyright {
  text-align: center;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

/* Responsive - Tablette */
@media (max-width: 992px) {
  .burger-menu {
    display: flex;
  }
  
  .header-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    height: 100vh;
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    flex-direction: column;
    padding: 4rem 1.5rem 1.5rem;
  }
  
  .nav-left ul,
  .nav-right ul {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .nav-right {
    margin-top: 1.5rem;
  }
  
  .menu-select {
    width: 100%;
    margin: 4px 0;
    padding: 0.6rem;
  }
  
  .grid-cycle,
  .grid-procedure {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  body {
    padding-top: 55px;
  }
  
  .logo {
    height: 40px;
  }
  
  .main-container {
    padding: 0.8rem;
  }
  
  .grid-cycle,
  .grid-procedure {
    grid-template-columns: 1fr;
  }
  
  .card {
    padding: 0.8rem;
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background: #fefefe;
  margin: 1% auto;
  padding: 12px;
  border: 1px solid #888;
  width: 90%;
  max-width: 700px;
  border-radius: 6px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
}

/* Onglets */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background: #f1f1f1;
  border-radius: 4px 4px 0 0;
}

.tab button {
  background: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 6px 10px;
  transition: 0.3s;
  font-size: 0.8rem;
}

.tab button.active {
  background: #4CAF50;
  color: #fff;
}

.tabcontent {
  display: none;
  padding: 12px;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 4px 4px;
}

/* Sections du formulaire */
.section {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.section h2 {
  color: #4CAF50;
  margin-bottom: 8px;
  font-size: 1rem;
}

/* Groupes de formulaire */
.form-group {
  margin-bottom: 8px;
}

.form-group label {
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
  font-size: 0.8rem;
}

.form-control,
.form-select {
  width: 100%;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 3px;
  box-sizing: border-box;
  font-size: 0.8rem;
}

/* Cases à cocher */
.form-check-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-check {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.form-check-input {
  margin-right: 4px;
}

.specialite-option {
  margin-left: 12px;
}

/* Pied de modal */
.modal-footer {
  text-align: right;
  padding: 8px 0 0 0;
  border-top: 1px solid #eee;
  margin-top: 12px;
}

.btn {
  padding: 5px 10px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  margin-left: 6px;
  font-size: 0.8rem;
}

.btn-secondary {
  background: #6c757d;
  color: #fff;
}

.btn-primary {
  background: #4CAF50;
  color: #fff;
}
/* ========== BOUTON BURGER & MENU MOBILE ========== */
.burger-menu {
  display: none; /* Caché sur desktop par défaut */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
  margin-left: 15px;
  transition: all 0.4s ease;
}

.burger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Animation quand le menu est ouvert */
.burger-menu.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger-menu.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Menu mobile - État ouvert */
.header-nav.active {
  left: 0 !important;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
}

/* Empêche le défilement quand le menu est ouvert */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Styles spécifiques mobile */
@media (max-width: 992px) {
  .burger-menu {
    display: flex; /* Affiche le burger en mobile */
  }

  .header-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    height: 100vh;
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 2rem 2rem;
    margin-left: 0;
    transition: all 0.5s ease;
  }

  .nav-left ul, 
  .nav-right ul {
    flex-direction: column;
    width: 100%;
  }

  .nav-left ul li a,
  .nav-right ul li a {
    padding: 12px 0;
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-right {
    margin-top: 30px;
    width: 100%;
  }
}
.procedure-section h2 {
  text-align: center;
  color: #4CAF50;
  margin-bottom: 1rem; /* Contrôle l'espace entre h2 et p */
  
}

.procedure-section h2 + p {
  text-align: center;
  margin-top: 1rem; /* Espace supplémentaire */
  margin-bottom: 2rem;
  padding: 0 10%;
}
  /* Style pour le nouveau modal */
    .modal-dossier {
      display: none;
      position: fixed;
      z-index: 2100;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0,0,0,0.4);
    }
    
    .modal-content-dossier {
      background-color: #fefefe;
      margin: 15% auto;
      padding: 20px;
      border: 1px solid #888;
      width: 350px;
      border-radius: 5px;
      box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    }
    
    .close-dossier {
      color: #aaa;
      float: right;
      font-size: 28px;
      font-weight: bold;
      cursor: pointer;
    }
    
    .close-dossier:hover {
      color: black;
    }
    
    .form-group-dossier {
      margin-bottom: 15px;
    }
    
    .form-group-dossier label {
      display: block;
      margin-bottom: 5px;
      font-weight: bold;
    }
    
    .form-group-dossier input {
      width: 100%;
      padding: 8px;
      border: 1px solid #ddd;
      border-radius: 4px;
    }
    
    .modal-footer-dossier {
      margin-top: 20px;
      text-align: right;
    }
    
    .btn {
      padding: 8px 15px;
      border: none;
      border-radius: 4px;
      cursor: pointer;
    }
    
    .btn-primary {
      background-color: #2e7d32;
      color: white;
    }
    
    .btn-secondary {
      background-color: #6c757d;
      color: white;
      margin-right: 10px;
    }
   /* Ajoutez ceci à votre fichier CSS */
.specialite-item {
    transition: all 0.3s ease;
    margin: 8px 0;
    padding: 8px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.specialite-item[style*="display: none"] {
    height: 0;
    opacity: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
}

.specialite-option {
    margin-left: 20px;
}

.form-check-input {
    margin-right: 10px;
}

.form-check-label {
    cursor: pointer;
} 
/* Style pour l'alignement des options */
    .specialite-option {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin-left: 10px;
    }

    .specialite-option-item {
        display: flex;
        align-items: center;
        padding: 6px 12px;
        background-color: #f8f9fa;
        border-radius: 4px;
        transition: all 0.2s;
    }

    .specialite-option-item:hover {
        background-color: #e9ecef;
    }

    .specialite-radio {
        margin-right: 8px;
        width: 16px;
        height: 16px;
    }

    .specialite-option-item label {
        margin-bottom: 0;
        cursor: pointer;
        white-space: nowrap;
    }