/* Reset et polices */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}

.overlay {
  position:relative;
  padding-bottom: 70px; /* Espace pour le footer */
  background-image: url("./rectifie.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed; /* Ajouté pour fixer l'image sur toute la page */
  min-height: 100vh;
  width: 100%;
}



body {
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
  display: flex; /* Garder flex mais changer la direction */
  flex-direction: row; /* Changer de column à row */
  align-items: center;
  justify-content: space-between; /* Aligner les éléments sur toute la largeur */
  flex-wrap: nowrap; /* Permettre le retour à la ligne si nécessaire */
}

/* Nouveau style pour le menu supérieur */
.top-menu {
  display: flex;
  gap: 60px;
  flex-wrap: nowrap;
  justify-content: center;
  order: 1; /* Placer en premier */
  flex: 1; /* Prendre 1/3 de l'espace */
}

/* Conteneur du logo */
.logo-container {
  order: 2; /* Placer au milieu */
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Menu de droite */
.right-menu {
  display: flex;
  gap: 60px;
  flex-wrap: nowrap;
  justify-content: center;
  order: 3; /* Placer en dernier */
  flex: 1; /* Prendre 1/3 de l'espace */
}

/* Style pour le bouton de connexion */
.login-button {
  margin-left: 10px;
}

.login-button:hover {
  background-color: #ffbb4d; /* une teinte plus foncée de #c7a76a */
  color: white;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.top-menu a {
  color: #c7a76a;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
}

.menu a {
  color: #c7a76a;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
}

.menu a:hover {
  border-bottom: 2px solid #c7a76a;}

.right-menu a {
  color: #c7a76a;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
}

.top-menu a:hover {
  border-bottom: 2px solid #c7a76a;
}

.right-menu a:hover {
  border-bottom: 2px solid #c7a76a;
}

header img {
  margin: 10px 0;
}

header button {
  background-color: #c7a76a;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

/* Menu principal */
.menu {
  width: 202px;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
    background: linear-gradient(
    225deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(199, 167, 106, 0.9) 80%
    
  );
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  padding: 20px 10px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  overflow-y: visible;
  z-index: 40;
  transition: transform 0.5s ease;
}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu ul li {
  margin: 40px 0;
}

.menu a {
  display: block;
  padding: 5px 10px;
  text-decoration: none;
  color: #000;
}

.menu a:hover {
  background-color: #b08c53; /* une teinte plus foncée de #c7a76a */
  color: white;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.menu details {
  position: relative; /* important pour ne pas enfermer le menu */
  margin-bottom: 0px;
  overflow:visible;
}

.menu summary {
  position: relative;
  z-index: 40;
  cursor: pointer;
}

.menu > ul > li > details > summary {
  display: block;
  width: 100%;
  padding: 30px;
  cursor: pointer;
  box-sizing: border-box;
  font-weight: bold;
  user-select: none;
}

.menu details[open] > ul > li {
  margin: 5px; /* Aucun espacement entre les options du sous-menu */
}

/* sous-menu flottant */
.menu details[open] > ul {
  position: absolute;
  left: 192px;
  top: 0;
  background: linear-gradient(
    135deg,
    rgba(199, 167, 106, 0.9) 0%,
    rgba(255, 255, 255, 0.5) 80%
  );
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  border: 1px solid #ddd;
  min-width: 202px;
  padding: 2px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 20;
  animation: popup 0.3s ease forwards;
}

.menu summary:hover {
  background-color: #b08c53; /* une teinte plus foncée de #c7a76a */
  color: white;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}


.hamburger {
  position: fixed;
  top: 10px;
  left: 10px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 50;
  color:#000;
}
.menu.closed {
  transform: translateX(-100%);
}

/* Slider */
.ortho-slider {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.ortho-slider h1 {
  text-align: center;
  color: #000 !important;
  margin-bottom: 20px;
}

.slider-container {
  position: :relative;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  padding: 30px;
  margin-bottom: 15px;
}

.slide {
  text-align: center;
}

.slide h3 {
  color: #ffffff;
  margin-bottom: 10px;
}

.slide a {
  color: #c0d3ce;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-top: 10px;
}

.slider-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  padding: 0 15px;
  transform: translateY(-50%);
  z-index: 2;
}

.slider-controls button {
  background-color: #a3b18a;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
}

.prev {
  background-color: red !important;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
}

.next {
  background-color: #12e00b !important;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
}

       .ortho-slider {
            position: relative;
            max-width: 1000px;
            margin: 2rem auto;
            overflow: hidden;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }
        
        .ortho-slider h1 {
            text-align: center;
            color: #ffffff;
            font-size: 2.5rem;
            margin-bottom: 20px;
            padding: 10px;
        }
        
        .slider-container {
            position: relative;
            height: 500px;
            border-radius: 15px;
            overflow: hidden;
        }
        
        .slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 1s ease-in-out;
            text-align:center !important;
        }
        
        .slide.active {
            opacity: 1;
            z-index: 10;
            text-align:center !important;
        }
        
        .slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        
        .slide-content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: rgba(128, 128, 128, 0.7); /* 50% transparent */
            backdrop-filter: blur(1px);
            -webkit-backdrop-filter: blur(1px);
            color: white;
            padding: 25px;
            text-align:center !important;
        }
        
        .slide-content h3 {
            font-size: 1.8rem;
            margin-bottom: 10px;
            text-align:center !important;
        }
        
        .slide-content p {
            font-size: 1.1rem;
            margin-bottom: 20px;
            max-width: 80%;
            text-align: center;
            margin-left: auto;
            margin-right: auto;
        }

        
        .slide-content a {
            display: inline-block;
            background: #b08c53;
            color: #ffffff;
            padding: 10px 25px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: bold;
            transition: all 0.3s;
            text-align:center !important;
        }
        
        .slide-content a:hover {
            background: #ffbb4d;
            transform: translateY(-3px);
            box-shadow: #b08c53;
        }
        
        .slider-controls {
            position: absolute;
            top: 50%;
            width: 100%;
            display: flex;
            justify-content: space-between;
            transform: translateY(-50%);
            z-index: 20;
            padding: 0 20px;
        }
        
        .slider-controls button {
            background: rgba(255, 255, 255, 0.7);
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }
        
        .slider-controls button:hover {
            background: #a3b18a;
            transform: scale(1.1);
        }
        
        .slide-indicators {
            display: flex;
            justify-content: center;
            gap: 10px;
            position: absolute;
            bottom: 20px;
            left: 0;
            right: 0;
            z-index: 20;
        }
        
        .indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: #ffffff;
            cursor: pointer;
            transition: all 0.3s ease;  
        }
        
        .indicator.active {
            background: #b08c53;
            transform: scale(1.2);
        }

.conteneur-parent {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  padding: 30px;
  width: 100%;
  max-width: 100%;
  flex-wrap: nowrap; /* ❌ wrap => nowrap pour côte à côte */
}

/* Bloc avis */
.historique-consultation {
  width: 60%; /* ✅ largeur contrôlée */
  flex: 1;
}

.cards-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
  justify-content: flex-start;
}

.card {
  background-color: #f0f0f0;
  padding: 12px;
  border-radius: 8px;
  width: 220px; /* ✅ un peu plus petit */
  box-sizing: border-box;
  text-align: center; /* facultatif pour centrer */
}

/* Bloc feedback */
.feedback-form {
  background-color: rgba(199, 167, 106, 0.8);
  backdrop-filter: blur(5px);
  padding: 20px;
  border-radius: 8px;
  width: 320px; /* ✅ réduit pour laisser de l’espace */
  flex-shrink: 0;
}

.feedback-form input,
.feedback-form label,
.feedback-form textarea {
  width: 100%;
  margin-bottom: 50px;
  padding: 8px;
  resize: none;
}

.feedback-form .message {
  height: 150px;
  resize: none;
  padding: 8px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.feedback-form button {
  padding: 10px 20px;
  background-color: #c7a76a;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.feedback-form button:hover {
  background-color: #ffbb4d; /* une teinte plus foncée de #c7a76a */
  color: white;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
        
.profile-pic {
  width: 60px;  /* Réduit de 80px */
  height: 60px; /* Réduit de 80px */
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 8px;
}

.card h3 {
  margin: 5px 0;
  font-size: 14px; /* Optionnel : texte plus petit */
}

.card p {
  margin: 8px 0;
  font-size: 13px; /* Optionnel : texte plus petit */
  line-height: 1.3;
}

.card a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-top: 10px;
}

.stars {
  margin-top: 8px;
}

.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  margin: 10px 0;
}
.star-rating input { display: none; }
.star-rating label {
  font-size: 24px;
  color: #ccc;
  cursor: pointer;
  padding: 0 2px;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #ffc107;
}

/* Biographie */
.biographie {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.biographie h1 {
  color: #000;
  margin-bottom: 20px;
  text-align: center;
}

.biographie p {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 25px;
      padding: 40px;
      max-width: 1200px;
      margin: auto;
    }

    .service-box {
      position: relative;
      overflow: hidden;
      height: 350px;  
      border-radius: 16px;
      box-shadow: 0 8px 16px rgba(0,0,0,0.08);
      padding: 0px;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      border-left: 6px solid #c7a76a;
    }

    .service-box:hover {
      transform: translateY(-8px);
      box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    }

    .service-box h3 {
      color: #c7a76a;
      margin-bottom: 10px;
      font-size: 1.3rem;
    }

    .service-box p {
      font-size: 1rem;
      line-height: 1.6;
      color: #444;
    }
    
    .service-box .image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.content {
  z-index: 2;
  position: absolute;
  inset: 0;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.0)
  );

  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Fait apparaître le contenu uniquement au hover */
.service-box:hover .content {
  opacity: 1;
}


.content p {
  color: white
}

/* Google Maps */
iframe {
  width: 100%;
  max-width: 800px;
  height: 450px;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 3px 10px #a3b18a;
}

/* Footer */
body > p {
  text-align: center;
  margin: 20px 0;
  color: #a3b18a;
  font-size: 0.9rem;
}

.fil-actualite{
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, rgba(199,167,106,0.9), rgba(255,255,255,0.5));
  padding: 10px 0;
  overflow: hidden;
  z-index: 60;
  direction: ltr; /* parent LTR */
}

.fil-wrapper{
  width: 100%;
  overflow: hidden;
}

.contenu{
  display: inline-flex;        /* copies côte à côte */
  white-space: nowrap;
  animation: arabic-marquee 20s linear infinite;
  will-change: transform;
  align-items: center;
  direction: ltr;
}

.contenu .item{
  display: inline-block;
  padding: 0 2rem;    /* espace entre copies */
  direction: ltr;
}

@keyframes arabic-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
    }
}


.fil-actualite a {
    color: #0066cc;
    text-decoration: underline;
    font-weight: 500;
}

.fil-actualite a:hover {
    color: #004499;
    text-decoration: none;
}

.fil-actualite:hover .contenu {
    animation-play-state: paused;
}

/* Style for icons */
.icon {
    height: 20px;
    vertical-align: middle;
    margin: 0 5px;
}

.gmail-icon {
    height: 16px;
    vertical-align: middle;
    margin: 0 5px;
}

/* Mobile improvements */
@media (max-width: 768px) {
    .fil-actualite .contenu {
        font-size: 14px;
        animation-duration: 15s;
    }
}

.new-biographie {
    text-align: center;

}
#lang-toggle {
  position: fixed;
  top: 85%;
  right: 0px;
  background: rgba(128, 128, 128, 0.7); /* 50% transparent */;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1000;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#languageBox {
  position: fixed;
  top: 85%;
  transform: translateY(-50%);
  right: 0px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 5px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  z-index: 1000;
}

#languageBox a {
  display: block;
  padding: 5px 15px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

#languageBox a:hover {
  background: #f0f0f0;
}

.hidden {
  display: none;
}

 .faq-item {
  background-color: white;
  border-left: 5px solid goldenrod;
  border-radius: 5px;
  padding: 5px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-item p {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  margin-top: 10px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

.faq-item.active p {
  max-height: 500px; /* assez pour tout le texte */
  opacity: 1;
}

.faq-item::after {
  content: "➕";
  font-size: 1.3rem;
  color: gold;
  transition: transform 0.3s ease;
}

.faq-item.active::after {
  content: "➖";
  transform: rotate(0deg);
}

.faq-item:hover {
  background: #f0f8ff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Styles pour la fenêtre modale des cas critiques */
.critical-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.1);
  overflow: auto;
}

.critical-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 25px;
  border-radius: 10px;
  width: 80%;
  max-width: 800px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.critical-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
}

.critical-close:hover,
.critical-close:focus {
  color: #000;
  text-decoration: none;
}

.critical-content h2 {
  color: #c7a76a;
  margin-bottom: 20px;
  padding-right: 30px;
}

.critical-content p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.critical-content ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.critical-content li {
  margin-bottom: 8px;
}

.critical-content em {
  display: block;
  margin-top: 20px;
  font-style: italic;
  color: #555;
}
#google-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
@keyframes defilement {
      0%   { transform: translateX(0); }
      100% { transform: translateX(-100%); }
    }

/* Solution garantie pour mobile - Avis + Feedback */
@media screen and (max-width: 768px) {
  /* 1. Désactiver complètement flexbox sur mobile */
  .conteneur-parent {
    display: block !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 15px !important;
    margin: 0 !important;
    gap: 0 !important;
  }
  
  /* 2. Forcer les deux blocs à être en dessous l'un de l'autre */
  .conteneur-parent > * {
    display: block !important;
    float: none !important;
    clear: both !important;
    position: static !important;
    transform: none !important;
  }
  
  /* 3. Bloc avis */
  .historique-consultation {
    width: 100% !important;
    flex: none !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 30px 0 !important;
    padding: 0 !important;
    order: 1 !important;
    display: block !important;
  }
  
  /* 4. Bloc feedback - FORCÉ à être en dessous */
  .feedback-form {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    flex-shrink: 1 !important;
    margin: 30px auto 0 auto !important;
    padding: 20px !important;
    display: block !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    order: 2 !important;
    background-color: rgba(199, 167, 106, 0.8) !important;
  }
  
  /* 5. Conteneur des cartes */
  .cards-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 15px !important;
    width: 100% !important;
  }
  
  /* 6. S'assurer qu'il n'y a pas de débordement */
  .conteneur-parent,
  .historique-consultation,
  .feedback-form {
    overflow: visible !important;
    box-sizing: border-box !important;
  }
}