/* ===== Global ===== */
html {
  scroll-behavior: smooth;
  height: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}


/* ===== Burger Menu ===== */
.burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 1001;
}

.burger span {
  width: 25px;
  height: 3px;
  background: rgb(255, 255, 255);
  border-radius: 2px;
  transition: all 0.3s ease;
}


/* Animation du burger en croix */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Menu de navigation mobile */
@media (max-width: 1300px) {
  .burger {
    display: flex;
  }

.nav-links {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(116, 88, 3, 0.371); /* transparence */
  backdrop-filter: blur(100px);     /* flou */
  -webkit-backdrop-filter: blur(10px); /* pour Safari */
  width: 100%;
  height: 0;
  overflow: hidden;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  transition: height 0.4s ease;
}

  .nav-links.active {
    height: 300px; /* ajustable */
  }

.cta-group {
  flex-direction: column;
  align-items: flex-end; /* 👈 AJOUTE CECI */
  gap: 20px;
  margin-top: 0;
  padding-right: 30px; /* 👈 OPTIONNEL : décale les liens du bord droit */
}


  .cta-button {
    font-size: 18px;
    padding: 10px;
  }
}

body {
  min-height: 100vh;
  background-color: #2d3227; /* fallback */
  background:
    linear-gradient(to right, #2d3227, #3c2f23),
    url('images/logo4.png') center / cover no-repeat;
  background-attachment: scroll;
}



body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(0, 0, 0, 0.429), rgba(0, 0, 0, 0.5)),
    url('images/logo4_cropped.png') center center / cover no-repeat;
  background-attachment: fixed;
  background-position: center top;

  z-index: -1;
}



@media (max-width: 1600px) {
  body {
    background: none;
  }

  body::before {
    height: 100vh;
    background:
      linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5)),
      url('images/logo3.jpg') center center / cover no-repeat;
    background-attachment: scroll;
  }
}




a {
  text-decoration: none;
  color: inherit;
}

p {
  font-size: 21px;
  margin: 0;
}

h1, h3 {
  font-family: 'Roboto', sans-serif;
  margin: 0;
}

h3 {
  font-size: 26px;
}

/* ===== Header ===== */
header {
  width: 80%;
  max-width: 1200px;
  height: 110px;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1%;
  max-height: 18vh;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(112, 110, 0, 0.219);
  border-radius: 0 0 20px 20px;
  z-index: 10;
}

header h1 {
  width: 15%;
  height: auto;
  display: flex;
  align-items: center;
}

header h1 img {
  width: 100%;
  height: 100px;
  object-fit: contain;
}

/* ===== Overlay ===== */
.overlay {
  width: 100%;
  padding: 100px;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .overlay {
    padding: 60px 20px;
  }
}

/* ===== Hero ===== */
.hero h1 {
  font-size: 3vw;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.5vw;
  margin-bottom: 15px;
}

@media (max-width: 1100px) {
  .hero h1 {
    font-size: 2em;
  }

  .hero p {
    font-size: 1.2em;
  }
}

@media (max-width: 1080px) {
  .service-card {
    width: 10%;        /* réduis la largeur de 100% à 80% */
    max-width: 280px;  /* limite une largeur max */
    aspect-ratio: 1 / 1;
  }

  .card-front h3,
  .card-back h3 {
    font-size: 0.1rem;  /* un peu plus petit */
  }

  .card-front p,
  .card-back p {
    font-size: 0.8rem;  /* un peu plus petit */
  }
}


/* ===== CTA Buttons ===== */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 55px;
}

.cta-button {
  position: relative;
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 18px;
  padding-bottom: 5px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  color: #ffb04962;
  transform: scale(1.05);
}

.cta-button::after {
  content: "";
  position: absolute;
  left: 0;
  top: -6px;
  height: 2px;
  width: 0%;
  background-color: #ffb04962;
  transition: width 0.4s ease;
}

.cta-button:hover::after {
  width: 100%;
}

@media (max-width: 1100px) {
  .cta-group {
    gap: 20px;
    margin: 25px 5px;
    flex-direction: column;
  }
  .cta-button {
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  .cta-button {
    font-size: 16px;
    text-align: center;
  }
}

/* ===== Sections ===== */
section {
  padding: 50px 30px;
  max-width: 1200px;
  margin: auto;
  background: none;
  color: #e2ded9;
  box-sizing: border-box;
}

section h2 {
  font-family: 'parisienne', cursive;
  font-size: 50px;
  margin-bottom: 20px;
  border-bottom: 2px solid #ffb04962;
  display: inline-block;
  padding-bottom: 5px;
}

@media (max-width: 480px) {
  section h2 {
    font-size: 36px;
  }
}

/* Style amélioré pour la section À propos */

section#a-propos {
  margin-top: 160px; /* éloigne visuellement du menu */
  padding: 0px 30px 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(3, 3, 3, 0);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}



section#a-propos p {
  font-family: 'Roboto', sans-serif;
  font-size: 21px;
  line-height: 1.8;
  margin-bottom: 25px;
  color: #e9e5df;
}

section#a-propos:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}


/* ===== Service Cards Container ===== */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  width: 100%;
}

/* ===== Each Service Card ===== */
.service-card {
  perspective: 1000px;
  width: 30%;
  min-width: 260px;
  aspect-ratio: 3 / 2; /* pour garder une bonne proportion */
  position: relative;
  box-sizing: border-box;
}

/* ===== Flip Wrapper ===== */
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.card-inner.flipped {
  transform: rotateY(180deg);
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover .card-inner {
    transform: rotateY(180deg);
  }
}


/* ===== Common Style for Both Faces ===== */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  background: rgba(167, 109, 3, 0.432);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

/* ===== Back Face Style ===== */
.card-back {
  transform: rotateY(180deg);
  font-style: italic;
  background: rgba(67, 67, 67, 0.432);
}

/* ===== Text Styling ===== */
.card-front h3,
.card-back h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card-front p,
.card-back p {
  font-size: 1rem;
  margin: 5px 0;
}

/* ===== Responsive Breakpoints ===== */
@media (max-width: 1100px) {
  .service-card {
    width: 45%;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 768px) {
  .service-card {
    width: 90%;
    aspect-ratio: 5 / 3;
  }
}

@media (max-width: 480px) {
  .service-card {
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  .card-front h3,
  .card-back h3 {
    font-size: 1rem;
  }

  .card-front p,
  .card-back p {
    font-size: 0.9rem;
  }
}


.details-cards {
  display: flex;
  flex-direction: column;
  align-items: center; /* ✅ centre horizontalement les cards */
  gap: 30px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}


.detail-card {
  background: rgba(167, 109, 3, 0.432);
  backdrop-filter: blur(5px);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.detail-card h3 {
  text-align: center;
}


/* ===== Hover effect (optional) ===== */
.detail-card:hover {
  transform: scale(1.03);
}

/* ===== Card Title and Text ===== */
.detail-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.detail-card p {
  font-size: 1rem;
  line-height: 1.5;
}

/* ===== Disclaimers (outside the cards) ===== */
.disclaimer {
  margin-top: 40px;
  padding: 0 10%;
  color: #ddd;
  font-size: 0.9rem;
  text-align: center;
}

/* ===== Responsive Breakpoints ===== */
@media (max-width: 1100px) {
  .detail-card {
    width: 45%;
  }
}

@media (max-width: 768px) {
  .detail-card {
    width: 90%;
  }
}




/* ===== Testimonials ===== */
.temoignages {
  margin-top: 50px;
  text-align: center;
}

.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;

  /* Hauteur animée pour s’adapter au contenu */
  height: auto;
  transition: height 0.4s ease-in-out;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.temoignage {
  min-width: 100%;
  background: rgba(167, 109, 3, 0.15);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);

  /* Empêcher le texte d’être tronqué */
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
}

.temoignage p {
  font-style: italic;
  font-size: 1.1rem;
}

.temoignage strong {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

/* Boutons navigation */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(167, 109, 3, 0.7);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 5px 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.carousel-btn:hover {
  background: rgba(167, 109, 3, 1);
}

.prev {
  left: 10px;
}
.next {
  right: 10px;
}

/* Petits points */
.carousel-dots {
  margin-top: 15px;
}
.carousel-dots button {
  border: none;
  background: #ccc;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s;
}
.carousel-dots button.active {
  background: rgba(167, 109, 3, 1);
}


/* ===== Footer ===== */
footer {
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  text-align: center;
  padding: 20px 0;
  position: relative;
  bottom: 0;
  width: 100%;
  font-size: 16px;
  box-sizing: border-box;
}

.facebook-icon {
  width: 30px;   /* ou une taille qui te convient */
  height: auto;  /* pour garder les proportions */
  vertical-align: middle; /* pour aligner verticalement avec le texte */
  margin-right: 8px; /* un petit espace entre l’icône et le texte */
}

/* Contact Section */
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px 20px;
  background: #8c672bd9;
  border-radius: 10px;
  max-width: 900px;
  margin: 40px auto;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.contact-info {
  flex: 1 1 300px;
  font-family: 'Poppins', sans-serif;
  color: #333;
}

.contact-info h2 {
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 2rem;
  color: #2c3e50;
}

.contact-info p {
  margin: 8px 0;
  font-size: 1.1rem;
}

.contact-info a {
  color: #dee0e4; /* Facebook blue for links */
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  text-decoration: underline;
}

.facebook-button {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  background-color: #3b5998; /* bleu Facebook */
  color: white;
  padding: 10px 18px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(59, 89, 152, 0.5);
  transition: background-color 0.3s ease;
}

.facebook-button:hover {
  background-color: #2d4373; /* bleu plus foncé au hover */
  color: white; /* s’assurer que le texte reste blanc */
}


.facebook-icon {
  width: 40px;       /* taille carrée */
  height: 40px;
  border-radius: 50%; /* rond */
  object-fit: cover;  /* pour que l'image remplisse bien le rond */
  margin-right: 10px; /* espace entre l'icône et le texte */
  border: 1px solid #ccc; /* optionnel : une petite bordure douce */
  background-color: white; /* optionnel : fond blanc pour que ça ressorte */
}


/* Contact Form */
.contact-form {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form h3 {
  margin-bottom: 15px;
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: #2c3e50;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 15px;
  border: 1.8px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #3b5998;
  outline: none;
}

.contact-form textarea {
  min-height: 120px;
}

.contact-form button {
  padding: 12px 20px;
  background-color: #3b5998;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #2d4373;
}

#status-msg {
  margin-top: 10px;
  font-style: italic;
  color: #27ae60; /* green for success, adapt if needed */
}


/* ===== Responsive Utility ===== */
@media (max-width: 600px) {
  header {
    width: 90%;
    height: 80px;
    padding: 0 10px;
  }

  header h1 img {
    height: 60px;
  }

  .cta-group {
    flex-direction: column;
    gap: 15px;
  }

  section {
    padding: 30px 15px;
  }
}
