*, html, body {
  font-family: 'Times New Roman', Times, serif;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
}

.body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

p {
  margin: 0 0 15px;
  font-size: 17px;
  text-align: justify;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "EB Garamond", sans-serif;
  margin: 0 0 15px;
  color: #9c4f07;
  font-weight: 500;
  position: relative;
}

h1 {
  font-size: 48px;
  line-height: 50px;
}

h2 {
  font-size: 38px;
  line-height: 40px;
}

h3 {
  font-size: 30px;
  line-height: 32px;
}

h4 {
  font-size: 24px;
  line-height: 26px;
}

h5 {
  font-size: 20px;
  line-height: 22px;
}

h6 {
  font-size: 16px;
  line-height: 20px;
}

.text-danger {
  color: red;
}

/* S'assurer que les champs de saisie ont un fond blanc */
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="time"], textarea, select {
  background-color: #fff !important; /* Fond blanc */
  border: 1px solid #ccc;  /* Bordure grise */
  color: #333; /* Texte gris foncé */
}

input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, input[type="date"]:focus, input[type="time"]:focus, textarea:focus, select:focus {
  background-color: #fff !important; /* Fond blanc au focus */
  border-color: #007bff; /* Bordure bleue au focus */
  outline: none; /* Supprimer le contour par défaut */
}

/* Modifier la bordure de tous les champs input */
input.form-control {
    border-radius: 5px; /* Bordure arrondie */
    padding: 10px; /* Espacement interne */
}

/* Modifier la bordure au focus */
input.form-control:focus {
    border-color: #9c4f07; /* Bordure orange au focus */
    box-shadow: 0 0 5px rgba(255, 152, 0, 0.7); /* Ombre au focus */
} textarea

/* Modifier la bordure de tous les champs input */
textarea.form-control {
  border-radius: 5px; /* Bordure arrondie */
  padding: 10px; /* Espacement interne */
}

/* Modifier la bordure au focus */
textarea.form-control:focus {
  border-color: #9c4f07; /* Bordure orange au focus */
  box-shadow: 0 0 5px rgba(156, 79, 7, 0.7); /* Ombre au focus */
}
/* Modifier la bordure de tous les champs input */
select.form-control {
  border-radius: 5px; /* Bordure arrondie */
  padding: 10px; /* Espacement interne */
}

/* Modifier la bordure au focus */
select.form-control:focus {
  border-color: #9c4f07; /* Bordure orange au focus */
  box-shadow: 0 0 5px rgba(156, 79, 7, 0.7); /* Ombre au focus */
}

/* Forcer la visibilité du placeholder pour la date */
#date_rdv::placeholder,
#heure_rdv::placeholder {
  color: #888 !important; /* Couleur claire mais visible */
  opacity: 1 !important;  /* Assurez-vous que l'opacité est à 1 */
}

/* Assurez-vous que les champs prennent toute la largeur sur les petits écrans */
@media (max-width: 768px) {
  #date_rdv,
  #heure_rdv {
    width: 100%;  /* Assurez-vous que les champs prennent toute la largeur */
    font-size: 16px;  /* Ajuster la taille de police pour les petits écrans */
  }

  #date_rdv::placeholder,
  #heure_rdv::placeholder {
    font-size: 16px;  /* Taille du placeholder pour les petits écrans */
  }
}


/* surligne des titres */
.line-with-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10%;
  margin: 0 auto;
  margin-bottom: 20px;
}

.line {
  flex-grow: 1;
  height: 2px;
  background-color: #9c4f07;
}

.box {
  width: 10px;
  height: 10px;
  background-color: #9c4f07;
  transform: rotate(45deg);
  margin: 0;
}

a {
  transition: all 0.3s ease 0s;
  text-decoration: none;
  color: inherit;
}

a:hover {
  color: #9c4f07 ;
  text-decoration: none;
}

a:active,
a:hover {
  outline: 0 none;
}

/* Couleur par defaut du site */
.text-yelian {
  color: #9c4f07;
}

body {
  font-size: 14px;
  text-align: left;
  overflow-x: hidden;
  line-height: 22px;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
}
/* Effet de transition de chaque section */
/* Les éléments sont invisibles au départ */
.hidden {
  opacity: 0;
  transform: translateY(20px); /* Déplacement initial vers le bas */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Animation fluide */
}

/* Les éléments visibles apparaissent */
.visible {
  opacity: 1;
  transform: translateY(0); /* Revient à sa position d'origine */
}

/* Le conteneur principal prend toute la hauteur disponible */
.content-wrapper {
  min-height: 100%; 
  display: flex;
  flex-direction: column;
}

/* Permet au container de prendre tout l'espace disponible */
.container {
  flex-grow: 1;
}

/* Carousel Header CSS DEBUT */
.carousel-inner img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

/* Centrer le texte à l'intérieur du carousel */
.carousel-item {
  position: relative;
}

.carousel-caption {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 0;
  top: 70px;
  left: 50px;
  right: 50px;
}

/* Carousel Header CSS FIN */

/* Le footer reste en bas */
.footer {
  color: black;
  background-color: #9c4f07;
  margin-top: auto; 
}

/* Couverture */
.cover-container {
  box-shadow: 100px;
  z-index: 3;
}
.cover-photo {
  position: relative;
  height: 300px; /* Ajustez la hauteur selon vos besoins */
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: #9c4f07;
  z-index: 2;
}

.cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Pour remplir la div avec l'image sans déformation */
  object-position: center;
  box-shadow: 20px;
}

.cover-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 1; /* Assurez-vous que le texte est au-dessus du fond */
  padding: 20px;
  width: 100%; /* Ajustement pour le centrage du texte */
  max-width: 600px; /* Ajustement pour le centrage du texte */
}

.cover-photo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Fond noir semi-transparent */
  z-index: 0; /* Assurez-vous que le fond est derrière l'image */
}
.title-cover {
  font-size: 4rem;
  font-weight: bold;
}

.subtitle-cover {
  font-size: 1.5rem;
  opacity: 0.95;
}
.card-text {
  color: #1c1c1c
}
.card-img-top {
  height: 250px;
}
@media (max-width: 576px) {
  .cover-photo {
    height: 200px;
  }
  .title-cover {
    font-size: 2.5rem;
  }

  .subtitle-cover {
    font-size: 0.9rem;
  }

  .card-text {
    font-size: 0.85rem;
  }
}


.section {
  margin-bottom: 40px;
}

.section h3 {
  font-size: 1.8rem;
  text-transform: uppercase;
  font-weight: bold;
  color: #444;
  margin-bottom: 20px;
}

.section p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.section img {
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.section img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* style pour la section service */
/* Section Services */
#services {
  text-align: center;
  padding: 50px 20px;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
}

/* Cartes de service */
.service-card {
  width: 300px;
  text-align: center;
}

.service-card h3 {
  margin-top: 15px;
  font-size: 1.2rem;
  color: #444;
}

/* Animation d'image */
.image-card-service {
  perspective: 1000px;
  position: relative;
  width: 100%;
  height: 200px;
}

.image-card-service:hover {
  transform: rotateY(180deg);
}

.image-card-service {
  transform-style: preserve-3d;
  transition: transform 0.6s ease-in-out;
}

.image-back h2 {
  color: white;
  margin-bottom: 10px; /* Ajouter un peu d'espace sous le titre */
  font-size: 1.5rem; /* Optionnel, ajustez la taille du titre si nécessaire */
}

/* Ajuster l'espacement entre le titre et le paragraphe */
.image-back p {
  color: white;
  text-align: center;
  margin-top: 0; /* Pour enlever les marges par défaut et éviter trop d'espace */
  font-size: 1rem; /* Taille de la police du paragraphe */
  padding: 0 10px; /* Ajouter un peu de padding pour que le texte ne touche pas les bords */
}

.image-front,
.image-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
}

.image-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.image-back {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #9c4f07d6;
  color: white;
  transform: rotateY(180deg);
  padding: 20px;
  text-align: center;
  border-radius: 10px;
}
/* fin Section Services */

.header-cover {
  background: radial-gradient(circle, #7b472f, #582c03); 
  color: #fff;
  text-align: center;
  display: flex;           /* Utilisation de flexbox */
  justify-content: center; /* Centrer horizontalement */
  align-items: center;     /* Centrer verticalement */
  flex-direction: column;  /* Aligne le contenu verticalement */
  min-height: 20rem;
  padding: 20px;
  box-shadow: #fff;
}
