/* Modernisation accueil et registres ouverts */

.conteneur {
      display: none;
      margin-left: 150px;
      background-color: white;
      padding: 5px;
    }

    .visible {
      display: block !important;
    }

.conteneur {
  display: none;
}

.conteneur.visible {
  display: block;
}



.accueil-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 2.5rem;
  padding: 0;
  background: linear-gradient(120deg, #f0fdfa 60%, #e0e7ff 100%);
  border-radius: 22px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.07);
  overflow: hidden;
}

.accueil-col-gauche {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #e0f2fe 60%, #f0fdfa 100%);
}

.accueil-infos {
  flex: 2 1 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.accueil-image-slider {
  width: 410px;
  height: 330px;
  background: linear-gradient(120deg, #e0f2fe 60%, #f0fdfa 100%);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(3,105,161,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2em;
  position: relative;
  overflow: hidden;
  border: 2px solid #bae6fd;
}

.accueil-image-slider img {
  width: 380px;
  height: 300px;
  object-fit: contain;
  border-radius: 12px;
  transition: opacity 0.6s;
  opacity: 1;
  background: #fff;
}

.accueil-infos h2 {
  font-size: 20px;
  color: #0369a1;
  margin-bottom: 0.7em;
  font-weight: 700;
  letter-spacing: -1px;
}

.accueil-infos p, .accueil-infos ul {
  font-size: 14px;
  color: #222;
  line-height: 1.7;
  margin-bottom: 0.7em;
}

.accueil-infos ul {
  margin-left: 1.2em;
  margin-bottom: 1.2em;
}

.accueil-infos a {
  color: #0e7490;
  text-decoration: underline;
  font-weight: 500;
}

.cadre-registres-ouverts {
  margin-top: 2.5em;
  padding: 2.2em 2em 1.5em 2em;
  background: linear-gradient(120deg, #f0fdfa 60%, #e0e7ff 100%);
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(3,105,161,0.07);
  border-left: 6px solid #0369a1;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cadre-registres-ouverts h3 {
  color: #0369a1;
  margin-bottom: 1.2em;
  font-size: 1.4em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5em;
}



.info-registres-ouverts {
  color: #64748b;
  font-style: italic;
  font-size: 1.08em;
  text-align: center;
  padding: 1.2em 0;
  background: #f1f5f9;
  border-radius: 10px;
  border: 1px dashed #bae6fd;
}

@media (max-width: 900px) {
  .accueil-flex {
    flex-direction: column;
    padding: 0.5em;
  }
  .accueil-col-gauche, .accueil-infos {
    padding: 1.2em 0.7em;
  }
  .cadre-registres-ouverts {
    padding: 1.2em 0.7em;
  }
}

.liste-registres-ouverts {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: flex-start;
}
.registre-carte {
  background: #f8fafc;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(3,105,161,0.07);
  border: 1px solid #e0e7ef;
  padding: 1.2em 1em 1em 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc((100% - 8em) / 5); /* 5 par ligne, 4 gaps de 2em */
  min-width: 180px;
  max-width: 260px;
  min-height: 320px;
  margin-bottom: 2em;
  transition: box-shadow 0.2s;
  box-sizing: border-box;
}
.registre-carte:hover {
  box-shadow: 0 8px 32px rgba(3,105,161,0.14);
}
.registre-carte-photo {
  width: 100%;
  max-width: 220px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1em;
  background: #e0e7ef;
}
.registre-carte-infos h4 {
  font-size: 1.1em;
  color: #0369a1;
  margin-bottom: 0.5em;
  text-align: center;
}
.btn-registre-voir {
  display: inline-block;
  margin-top: 1em;
  padding: 0.5em 1.2em;
  background: #0369a1;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-registre-voir:hover {
  background: #047857;
}



/* Slider horizontal pour les derniers registres */
.dernier-registres-slider-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.liste-derniers-registres {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1.2em;
  padding: 1em 0.5em;
  width: 100%;
  scrollbar-width: thin;
}

.registre-carte-accueil {
  min-width: 220px;
  max-width: 220px;
  height: auto;
  font-size: 13px;
  background: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(3,105,161,0.07);
  border: 1px solid #e0e7ef;
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.7em 0.7em 0.7em 0.7em;
  transition: box-shadow 0.2s;
  flex-shrink: 0;
}

.registre-carte-photo-accueil {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  background: #e0e7ef;
  margin-right: 0.7em;
}

.registre-carte-infos {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.registre-carte-infos h4 {
  font-size: 1em;
  color: #0369a1;
  margin: 0 0 0.2em 0;
  font-weight: 600;
  line-height: 1.2;
}

.registre-carte-infos p {
  font-size: 0.93em;
  margin: 0 0 0.3em 0;
  color: #444;
}

.btn-registre-voir {
  font-size: 0.95em;
  padding: 0.2em 0.7em;
  border-radius: 7px;
  background: #0369a1;
  color: #fff;
  text-decoration: none;
  margin-top: 0.2em;
  display: inline-block;
  transition: background 0.2s;
}
.btn-registre-voir:hover {
  background: #0e7490;
}

.slider-arrow {
  background: #e0e7ef;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  color: #0369a1;
  cursor: pointer;
  margin: 0 0.5em;
  transition: background 0.2s;
  z-index: 2;
}
.slider-arrow:hover {
  background: #bae6fd;
}

@media (max-width: 700px) {
  .registre-carte {
    min-width: 170px;
    max-width: 170px;
    height: 100px;
    font-size: 0.92em;
  }
  .registre-carte-photo {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 1600px) {
  .accueil-infos p, .accueil-infos ul {
    font-size: 12px;
    margin-bottom: 0px;
  }

  .accueil-infos h2 {
    font-size: 16px;
    margin-bottom: 0.2em;
  }

  .registre-carte-accueil {
    min-width: 300px;
    max-width: 300px;
  }
}

/* 5 par ligne sur grand écran */
.registre-carte {
  flex: 1 1 calc((100% - 8em) / 5); /* 5 cartes + 4 gaps de 2em */
  max-width: calc((100% - 8em) / 5);
  min-width: 180px;
  margin-bottom: 2em;
}

/* 3 par ligne sur écran moyen */
@media (max-width: 1200px) {
  .registre-carte {
    flex: 1 1 calc((100% - 4em) / 3);
    max-width: calc((100% - 4em) / 3);
  }
}

/* 2 par ligne sur tablette */
@media (max-width: 900px) {
  .registre-carte {
    flex: 1 1 calc((100% - 2em) / 2);
    max-width: calc((100% - 2em) / 2);
  }
}

/* 1 par ligne sur mobile */
@media (max-width: 600px) {
  .registre-carte {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  #banner {
    margin-left: 0px;
  }

  .conteneur {
    margin-left: 0px;
  }

  .accueil-infos {
    flex: none;
  }
}


/* ...existing code... */

.accueil-infos-modern .accueil-infos-grid {
  display: flex;
  gap: 1.2em;
  flex-wrap: nowrap;         /* NE PAS passer à la ligne */
  justify-content: center;
  margin-top: 1.2em;
}

.accueil-infos-bloc {
  background: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(3,105,161,0.07);
  padding: 1.2em 1em 1em 1em;
  max-width: 220px;
  min-width: 180px;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.accueil-infos-icone {
  font-size: 1em;
  color: #0ea5e9;
}

.accueil-infos-bloc h3 {
  font-size: 1em;
  color: #0369a1;
  margin-bottom: 0.5em;
  font-weight: 700;
  letter-spacing: -1px;
}

.accueil-infos-bloc p {
  font-size: 14px;
  color: #222;
  margin-bottom: 0.8em;
  line-height: 1.5;
}

.btn-accueil-modern {
  display: inline-block;
  background: #0ea5e9;
  color: #fff;
  border-radius: 7px;
  padding: 0.4em 1em;
  font-weight: 600;
  font-size: 0.95em;
  text-decoration: none;
  transition: background 0.2s;
  margin-top: auto;
}
.btn-accueil-modern:hover {
  background: #0369a1;
}

@media (max-width: 900px) {
  .accueil-infos-modern .accueil-infos-grid {
    flex-direction: column;
    gap: 1em;
  }
  .accueil-infos-bloc {
    max-width: 100%;
    min-width: 0;
  }
}



.faq {
  max-width: 700px;
  margin: 2em auto 0 auto;
}
.faq-item {
  border-bottom: 1px solid #e0e7ef;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.08em;
  font-weight: 600;
  color: #0369a1;
  padding: 1em 0.5em;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  gap: 0.7em;
  transition: background 0.2s;
}
.faq-question:hover {
  background: #f0fdfa;
}
.faq-answer {
  display: none;
  padding: 0 1.5em 1em 2.2em;
  color: #222;
  font-size: 1em;
  background: #f8fafc;
  border-radius: 0 0 10px 10px;
}
.faq-item.active .faq-answer {
  display: block;
}



.form-contact {
  max-width: 420px;
  margin: 2em auto 0 auto;
  background: #f8fafc;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(3,105,161,0.07);
  padding: 2em 1.5em 1.5em 1.5em;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}
.form-contact label {
  font-weight: 600;
  color: #0369a1;
}
.form-contact input,
.form-contact textarea {
  border: 1px solid #bae6fd;
  border-radius: 7px;
  padding: 0.7em;
  font-size: 1em;
  background: #fff;
  color: #222;
  transition: border 0.2s;
}
.form-contact input:focus,
.form-contact textarea:focus {
  border: 1.5px solid #0ea5e9;
  outline: none;
}
.btn-contact-envoyer {
  background: #0ea5e9;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 0.7em 1.5em;
  font-size: 1.08em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5em;
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.btn-contact-envoyer:hover {
  background: #0369a1;
}


.form-compte {
  max-width: 340px;
  margin: 2em auto 0 auto;
  background: #f8fafc;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(3,105,161,0.07);
  padding: 2em 1.5em 1.5em 1.5em;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}
.form-compte .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}
.form-compte label {
  font-weight: 600;
  color: #0369a1;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.form-compte input {
  border: 1px solid #bae6fd;
  border-radius: 7px;
  padding: 0.7em;
  font-size: 1em;
  background: #fff;
  color: #222;
  transition: border 0.2s;
}
.form-compte input:focus {
  border: 1.5px solid #0ea5e9;
  outline: none;
}
.btn-compte-valider {
  background: #0ea5e9;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 0.7em 1.5em;
  font-size: 1.08em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5em;
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.btn-compte-valider:hover {
  background: #0369a1;
}