@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

body {
  font-family: 'Poppins', Times, serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
  color: #555;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
}
h3 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}
h4 {
  font-size: clamp(1rem, 2vw, 1.5rem);
}
h5 {
  font-size: clamp(16px, 2vw, 1rem);
}
p, ol li, button {
  font-size: clamp(12.5px, 1.2vw, 14px);
}

/* Section */
.daaf-service {
  text-align: center;
  margin: 10px;
}

.container-daaf {
  width: 75%;
  margin: 2rem auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.section-desach {
  width: 75%;
  margin: 20px auto;
  padding: 50px 30px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px -50px 36px -28px inset;
  border-radius: 0 0 40px 40px;
}
.section-desach p {
  text-align: justify;
}
.section-desach ol li {
  list-style-type: upper-roman !important;
  padding-left: 1em;
}


.btn-primary:hover {
  background-color: #004080;
}
.btn-primary i {
  margin-right: 0.5rem;
}

/* Tous les boutons génériques */
button {
  background-color: #003366;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.3s ease;
  width: 100%;
 
}
button:hover {
  background-color: #004080;
}

/* Groupement */
.btn-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.service-search-wrap {
  margin: 12px 0 18px;
}
.service-search-input {
  width: 100%;
  border: 1px solid #ccd7e6;
  border-radius: 8px;
  padding: 11px 12px;
  outline: none;
  background: #fff;
}
.service-search-input:focus {
  border-color: #1a3d7c;
  box-shadow: 0 0 0 3px rgba(26, 61, 124, 0.14);
}
.service-search-empty {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff3f3;
  color: #9b1c1c;
}
.service-card {
  width: 100%;
}
/* Animation Collapse */
.collapse {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.collapse.show {
  display: block; /* garde le flux normal */
  max-height: 1000px; /* une valeur suffisante pour couvrir le contenu */
  opacity: 1;
}


/* Card */
.card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
  border: none;
  padding: 1rem;
  margin-top: 1rem;
  text-align: left;
}

/* Texte */
.text-daaf {
  flex: 1 1 45%;
  padding: 30px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;

}
.text-def{
 
}
.text-daaf h3 {
  margin-bottom: 15px;
  color: #003366;
  text-align: center;
}
.text-daaf p {
  text-align: justify;
  margin-bottom: 10px;
}

/* Animations */
.spin-icon {
  animation: spin 1s ease-in-out;
  -webkit-animation: spin 1s ease-in-out;
}
@keyframes spin {
  from { transform: rotate(0deg); -webkit-transform: rotate(0deg); -moz-transform: rotate(0deg); -ms-transform: rotate(0deg); -o-transform: rotate(0deg); }
  to { transform: rotate(360deg); -webkit-transform: rotate(360deg); -moz-transform: rotate(360deg); -ms-transform: rotate(360deg); -o-transform: rotate(360deg); }
}

/* Listes */
ol {
  list-style-type: upper-roman !important;
  padding-left: 1em;
}
ol li {
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 999px) {
  .container-daaf {
    display: block !important;
    width: 90% !important;
  }
  .section-desach {
    width: 90% !important;
  }
  .text-daaf {
    width: 100% !important;
    margin-bottom: 50px;
    flex: 1 1 100%;
  }
  button {
    margin-bottom: 15px;
  }
}

@media (max-width: 768px) {
  .container-daaf, .section-desach {
    width: 90% !important;
  }
  .text-daaf {
    width: 100% !important;
  }
}

@media (max-width: 600px) {
  .container-daaf, .section-desach {
    width: 90% !important;
  }
  .text-daaf {
    width: 100% !important;
  }
}
