/* 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;
  background-image: url("./rectifie.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  width: 100%;
}

body {
  color: #333;
  line-height: 1.6;
  background: transparent !important;
}

/* Header */
header {
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  background: transparent !important;
}

.top-menu {
  display: flex;
  gap: 80px;
  flex-wrap: nowrap;
  justify-content: center;
  order: 1;
  flex: 1;
}

.logo-container {
  order: 2;
  flex: 1;
  display: flex;
  justify-content: center;
}

.right-menu {
  display: flex;
  gap: 60px;
  flex-wrap: nowrap;
  justify-content: center;
  order: 3;
  flex: 1;
}

.login-button {
  margin-left: 10px;
}

.login-button:hover {
  background-color: #ffbb4d;
  color: white;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.top-menu a,
.menu a,
.right-menu a {
  color: #c7a76a;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
}

.menu a:hover,
.top-menu a:hover,
.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;
  color: white;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.menu details {
  position: relative;
  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;
}

.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;
  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 {
  position: relative;
  max-width: 1000px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: transparent !important;
}

.ortho-slider h1 {
  text-align: center;
  color: #000000;
  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 h3 {
  color: #ffffff;
  margin-bottom: 10px;
}

.slide a {
  color: #c0d3ce;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-top: 10px;
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(128, 128, 128, 0.7);
  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);
}

.prev {
  background-color: red !important;
}

.next {
  background-color: #12e00b !important;
}

.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 */
.conteneur-parent {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding: 30px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: transparent !important;
}

.historique-consultation {
  flex: 1;
  min-width: 0;
  background: transparent !important;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  width: 100%;
  background: transparent !important;
}

.card {
  background: #f0f0f0 !important;
  padding: 12px;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.card h3 {
  color: #000;
  margin-bottom: 10px;
}

.card a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-top: 10px;
}

/* Bloc feedback */
.feedback-form {
  background-color: rgba(199, 167, 106, 0.8) !important;
  backdrop-filter: blur(5px);
  padding: 20px;
  border-radius: 8px;
  width: 400px;
  flex-shrink: 0;
}

.feedback-form input,
.feedback-form label,
.feedback-form textarea {
  width: 100%;
  margin-bottom: 15px;
  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;
  color: white;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.profile-pic {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 8px;
}

/* Biographie */
.biographie {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  background: transparent !important;
}

.biographie h1 {
  color: #000;
  margin-bottom: 20px;
  text-align: center;
}

.biographie p {
  background-color: #ffffff !important;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 40px;
  max-width: 1200px;
  margin: auto;
  background: transparent !important;
}

.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;
  background: transparent !important;
}

.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: #ffffff;
}

.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;
}

.service-box:hover .content {
  opacity: 1;
}

.content p {
  color: white;
}

/* FAQ */
.faq-item {
  background-color: white !important;
  border-left: 5px solid goldenrod;
  border-radius: 5px;
  padding: 15px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.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;
  opacity: 1;
}

.faq-item::after {
  content: "➕";
  font-size: 1.3rem;
  color: gold;
  transition: transform 0.3s ease;
  position: absolute;
  left: 15px;
  top: 15px;
}

.faq-item.active::after {
  content: "➖";
  transform: rotate(0deg);
}

.faq-item:hover {
  background: #f0f8ff !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* 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 */
footer {
  position: relative;
  bottom: 0;
  right: 0;
  padding: 10px;
  text-align: right;
  direction: ltr;
  background: transparent !important;
}

footer small {
  color: #a3b18a;
  font-size: 0.9rem;
}

/* Fil d'actualité */
.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;
}

.fil-wrapper {
  width: 100%;
  overflow: hidden;
}

.contenu {
  display: inline-flex;
  white-space: nowrap;
  animation: arabic-marquee 15s linear infinite;
  will-change: transform;
  align-items: center;
  direction: rtl;
}

.contenu .item {
  display: inline-block;
  padding: 0 2rem;
  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;
}

.icon {
  height: 20px;
  vertical-align: middle;
  margin: 0 5px;
}

.gmail-icon {
  height: 16px;
  vertical-align: middle;
  margin: 0 5px;
}

/* Sélecteur de langue */
#lang-toggle {
  position: fixed;
  top: 85%;
  right: 0px;
  background: rgba(128, 128, 128, 0.7);
  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;
}

/* Modal 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.5);
  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;
}

/* Styles pour les popups */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-content {
  background: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  text-align: center;
  min-width: 300px;
}

.popup-content .close {
  cursor: pointer;
  float: right;
  font-size: 20px;
}

/* Image rotator */
.image-rotator {
  position: relative;
  width: 100%;
  height: 100%;
}

.rotating-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.rotating-image.active {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .menu ul {
    flex-direction: column;
    align-items: center;
  }
  
  .menu details ul {
    position: static;
    box-shadow: none;
  }
  
  .cards-container {
    grid-template-columns: 1fr;
  }
  
  .fil-actualite .contenu {
    font-size: 14px;
    animation-duration: 15s;
  }
  
  .conteneur-parent {
    flex-direction: column;
  }
  
  .feedback-form {
    width: 100%;
  }
  
  .top-menu, .right-menu {
    gap: 30px;
  }
}
/* Styles pour les popups */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
    min-width: 300px;
    max-width: 500px;
    position: relative;
}

.popup-content .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}

.popup-content .close:hover {
    color: #000;
}

.popup-content h2 {
    color: #c7a76a;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.popup-content p {
    margin: 10px 0;
    line-height: 1.6;
    color: #333;
}
/* Styles pour les popups */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
    min-width: 320px;
    max-width: 500px;
    position: relative;
    border: 2px solid #c7a76a;
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-content .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-content .close:hover {
    color: #ff0000;
    background: #f5f5f5;
    border-radius: 50%;
}

.popup-content h2 {
    color: #c7a76a;
    margin-bottom: 25px;
    font-size: 1.6rem;
    padding-right: 30px;
    padding-left: 30px;
}

.popup-content p {
    margin: 15px 0;
    line-height: 1.7;
    color: #333;
    font-size: 1.1rem;
}

.popup-content strong {
    color: #c7a76a;
    font-weight: 600;
}

/* Animation de fermeture */
.popup.closing {
    animation: popupFadeOut 0.2s ease-in;
}

@keyframes popupFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}