/**********************************
 *      CSS projet AnnuaireSF     *
 *				                  *
 * author : Ambre RIPPE           *
 **********************************/
@font-face {
  font-family: 'TT Fors';
  src: url('../fonts/TT Fors Trial Regular.ttf') format('ttf');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Fors';
  src: url('../fonts/TT Fors Trial Bold.ttf') format('ttf');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Styles généraux --- */
body {
  font-family: 'TT Fors', Arial, sans-serif;
  color: #333333;
}

.nav-link {
color       : #C9B2B3;
font-weight : bold;
}

.container {
color : #CEAEAF;
}

h1, h2, h5 {
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Section 1 & Section 2 spacing */
section {
}

/* Hero Section */
header {
  background-color: #f8f9fa;
  padding: 4rem 0;
}

/* Button primary overrides */
.btn-primary, .btn-success {
  border-radius: 0.25rem;
  padding: 0.75rem 1.25rem;
}

/* Footer */
footer {
  font-size: 0.875rem;
  color: #666;
}

/* Container rond et fond couleur */
.search-section .container {
  background-color: #ECE1E1;
  border-radius: 2rem;
  padding: 1rem 2rem 1rem;
  margin-top: 0.5rem;
}
/* Champs de recherche bord rond, bordures et couleur */
.search-section .form-control {
  background-color: #ECE1E1;
  border: 3px solid #CEAEAF;
  border-radius: 2rem;
  color: #CEAEAF;
}
.search-section .form-control::placeholder {
  color: #CEAEAF;
}
/* Bouton Rechercher arrondi, couleur de fond et texte */
.search-section .btn-success {
  background-color: #C9B2B3;
  border-radius: 2rem;
  border: none;
  color: #fff;
}

.img-col-30, .img-col-70 {
  padding: 0;
}

.img-col-30 {
  flex: 0 0 29%;
  max-width: 29%;
  margin-right: 1%;
}
.img-col-70 {
  flex: 0 0 70%;
  max-width: 70%;
}

.images-section .d-flex {
  height: 400px;
  flex-wrap: nowrap;
}

.images-section .container {
  padding-left : 0;
  padding-right : 0;
}

.img-col-30 img,
.img-col-70 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* Footer styles */
.footer-section {
  background-color: transparent;
}

.footer-section .container {
  background-color : #ECE1E1;
  padding: 1rem;
}

.footer-section .btn-success {
  background-color: #A36A6E;
  border-radius: 2rem;
  border: none;
  color: #fff;
}

#imgjoin {
  display: flex;
  height: 100%;
}

#imgjoin img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section pleine largeur avec image de fond */
.contact-section {
  margin: 0 auto;
  background-image: url("../img/img4.png");
  padding: 6rem 0; /* espace haut/bas */
}


/* Conteneur centré à 80 % de la largeur */
.contact-overlay {
  width: 80%;
  margin: 0 auto;
  background-color: rgba(206, 174, 175, 0.5); /* #CEAEAF à 20% d'opacité */
  padding: 2rem;
  border-radius: 0.5rem;
  color : white;
}

.contact-overlay h2 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.contact-overlay p {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* On s'assure que les colonnes aient suffisamment de séparateur */
.contact-overlay .row {
  align-items: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;         /* espace entre les icônes */
  margin-bottom: 2rem;
}
.social-icons a {
  color: #fff;
  font-size: 2rem;   /* icônes un peu plus grandes */
}

.contact-overlay .col-lg-7 {
  display: flex;
  flex-direction: column;
  justify-content: center;  /* centre verticalement contenu */
  align-items: center;      /* centre horizontalement contenu */
  text-align: center;
}

.contact-overlay .form-control {
  background-color: transparent;
  border: 1px solid #fff;
  border-radius: 0.25rem;
  color: #fff;
}

.contact-overlay p.subtitle {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.contact-overlay .form-control::placeholder {
  color: #fff;
  opacity: 0.8;
}

/* Bouton « Envoyer » identique au btn-success globa */
.contact-overlay .btn-primary,
.contact-overlay .btn-success {
  background-color: #A36A6E;
  border: none;
  color: #fff;
  border-radius: 0.25rem;
  padding: 0.75rem 1.25rem;
}

/* Full width sur colonne formulaire */
.contact-overlay form .btn {
  width: 100%;
}

/* --- Résultats Recherche Sage-Femmes --- */
.section-title {
  font-size: 1.8rem;
}

.sf-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #ECE1E1;
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
  transition: box-shadow 0.3s ease;
}

.sf-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.sf-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 0.5rem auto; /* réduit l'écart sous la photo */
}

.sf-nom {
  font-weight: bold;
  font-size: 1rem;
  color: #A582A5;
}

.sf-texte {
  font-size: 0.9rem;
  color: #333333;
  margin-bottom: 0.5rem;
  text-align: left;
  padding-left: 10px;
  padding-right: 10px;
}

.sf-btn {
  background-color: #A582A5;
  border: none;
  border-radius: 2rem;
  padding: 0.75rem 1.25rem;
  color: #fff;
  text-align: center;
  transition: background-color 0.3s ease;
}

.sf-btn:hover {
  background-color: #A582A5;
  color: #fff;
}

.sf-btn:disabled {
  opacity: 0.7;
}

/* Pagination personnalisée */
.pagination .page-item .page-link {
  color: #A582A5;
  border: 1px solid #A582A5;
  border-radius: 2rem;
}

.pagination .page-item.active .page-link {
  background-color: #A582A5;
  border-color: #A582A5;
  color: #fff;
}

.pagination .page-item .page-link:hover {
  background-color: #A582A5;
  color: #fff;
}

/* --- Encart global fiche sage-femme --- */
.sf-encart-global {
  background-color: #ECE1E1;
  border-radius: 2rem;
  padding: 2rem;
}

/* --- Animation ouverture modale --- */
.modal-animated {
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.3s ease-out;
}

.modal.show .modal-animated {
  transform: scale(1);
  opacity: 1;
}

/* --- Ombre douce sous le modal --- */
.modal-content {
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.2);
}


.autoComplete_wrapper
{
width : 100% !important ;
}

.encart-comparatif {
  background-color: #fff;
  min-width: 280px;
  overflow: hidden;
  border: 2px solid #C9B2B3;
  border-radius: 1rem;
  transition: transform 0.2s ease-in-out;
}
.encart-comparatif:hover {
  transform: scale(1.02);
}
