/* --- RESET --- */
*{margin:0;padding:0;box-sizing:border-box;}
body{
  font-family: Verdana, sans-serif;
  background:#fff;color:#000;
  min-height:100vh;display:flex;flex-direction:column;
  scroll-behavior:smooth;
}

/* --- VARIABLES --- */
:root{
  --red: #902300;
  --green-hover: #78883A;
}

/* === LOADING SCREEN === */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: all 0.5s ease-out;
}

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-logo {
  width: 30vw;
  max-width: 400px;
  min-width: 200px;
  height: auto;
  z-index: 2;
  position: relative;
}

.pulse-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #902300;
  background: transparent;
  opacity: 0;
  z-index: 1;
}

.pulse-animation.pulse-1 {
  animation: pulseRippleExpand 2s ease-out;
  animation-delay: 0.5s;
}

.pulse-animation.pulse-2 {
  animation: pulseRippleExpand 2s ease-out;
  animation-delay: 1.5s;
}

.pulse-animation.pulse-3 {
  border-color: #78883A;
  animation: pulseRippleExpandGreen 2s ease-out;
  animation-delay: 2.5s;
}

@keyframes pulseRippleExpand {
  0% {
    width: 150px;
    height: 150px;
    opacity: 1;
    border-width: 3px;
  }
  50% {
    width: 600px;
    height: 600px;
    opacity: 0.5;
    border-width: 2px;
  }
  100% {
    width: 1200px;
    height: 1200px;
    opacity: 0;
    border-width: 1px;
  }
}

@keyframes pulseRippleExpandGreen {
  0% {
    width: 150px;
    height: 150px;
    opacity: 1;
    border-width: 3px;
  }
  50% {
    width: 600px;
    height: 600px;
    opacity: 0.5;
    border-width: 2px;
  }
  100% {
    width: 1200px;
    height: 1200px;
    opacity: 0;
    border-width: 1px;
  }
}

/* Responsive pour le logo */
@media (max-width: 768px) {
  .loading-logo {
    width: 40vw;
    min-width: 150px;
  }
  
  .pulse-animation {
    width: 100px;
    height: 100px;
  }
  
  @keyframes pulseRippleExpand {
    0% {
      width: 100px;
      height: 100px;
      opacity: 1;
      border-width: 3px;
    }
    50% {
      width: 400px;
      height: 400px;
      opacity: 0.5;
      border-width: 2px;
    }
    100% {
      width: 800px;
      height: 800px;
      opacity: 0;
      border-width: 1px;
    }
  }
  
  @keyframes pulseRippleExpandGreen {
    0% {
      width: 100px;
      height: 100px;
      opacity: 1;
      border-width: 3px;
    }
    50% {
      width: 400px;
      height: 400px;
      opacity: 0.5;
      border-width: 2px;
    }
    100% {
      width: 800px;
      height: 800px;
      opacity: 0;
      border-width: 1px;
    }
  }
}

@media (max-width: 480px) {
  .loading-logo {
    width: 45vw;
    min-width: 125px;
  }
  
  .pulse-animation {
    width: 80px;
    height: 80px;
  }
  
  @keyframes pulseRippleExpand {
    0% {
      width: 80px;
      height: 80px;
      opacity: 1;
      border-width: 3px;
    }
    50% {
      width: 320px;
      height: 320px;
      opacity: 0.5;
      border-width: 2px;
    }
    100% {
      width: 640px;
      height: 640px;
      opacity: 0;
      border-width: 1px;
    }
  }
  
  @keyframes pulseRippleExpandGreen {
    0% {
      width: 80px;
      height: 80px;
      opacity: 1;
      border-width: 3px;
    }
    50% {
      width: 320px;
      height: 320px;
      opacity: 0.5;
      border-width: 2px;
    }
    100% {
      width: 640px;
      height: 640px;
      opacity: 0;
      border-width: 1px;
    }
  }
}

/* === ANIMATIONS ULTRA-FLUIDES AMÉLIORÉES === */
* {
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Amélioration des animations existantes avec des courbes plus fluides */
.nav-links a,
.dropdown-menu a,
.contact-btn-inline,
.notification-bell,
.mail-bell,
.rdv-bell,
.carousel-btn,
.back-to-top,
.accordion-header,
.footer-nav a {
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Animations spéciales pour les éléments interactifs */
.nav-links a:hover,
.dropdown-menu a:hover,
.footer-nav a:hover {
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* === HEADER STYLES === */
header {
  background: #fff;
  padding: 10px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

.logo-section {
  flex: 0 0 auto;
  position: absolute;
  left: 40px;
  top: 0;
}

.logo-section a {
  display: block;
}

.logo-section img {
  height: 60px;
  width: auto;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.logo-section a:hover img {
  transform: scale(1.05);
}

.nav-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  max-width: 800px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-links li {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-links a {
  color: var(--red);
  text-decoration: none;
  padding: 12px 16px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--green-hover);
  transform: translateY(-1px);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--green-hover);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 75%;
}

.separator {
  color: var(--red);
  margin: 0 8px;
  font-weight: 300;
  font-size: 16px;
  opacity: 0.6;
  flex-shrink: 0;
}

.subtitle {
  font-size: 12px;
  color: var(--red);
  margin-top: 8px;
  text-align: center;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  white-space: nowrap;
}

.subtitle .separator {
  color: var(--red);
  font-weight: 300;
  font-size: 12px;
  opacity: 0.6;
  margin: 0;
}

/* === DROPDOWN MENU MODERNE === */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.dropdown-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(120, 136, 58, 0.1), transparent);
  transition: left 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.dropdown:hover .dropdown-toggle::before {
  left: 100%;
}

.chevron {
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  margin-left: 4px;
}

.dropdown:hover .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1000;
  min-width: 280px;
  padding: 12px 0;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-menu li {
  display: block;
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 14px 24px;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.dropdown-menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(120, 136, 58, 0.08), transparent);
  transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.dropdown-menu a:hover::before {
  left: 100%;
}

.dropdown-menu a:hover {
  background: linear-gradient(135deg, rgba(120, 136, 58, 0.05), rgba(120, 136, 58, 0.1));
  color: var(--red);
  transform: translateX(8px);
  border-radius: 8px;
  margin: 0 8px;
}

.dropdown-menu a::after {
  display: none;
}

/* Effet de stagger pour les éléments du menu */
.dropdown-menu li:nth-child(1) a { transition-delay: 0.05s; }
.dropdown-menu li:nth-child(2) a { transition-delay: 0.1s; }
.dropdown-menu li:nth-child(3) a { transition-delay: 0.15s; }
.dropdown-menu li:nth-child(4) a { transition-delay: 0.2s; }
.dropdown-menu li:nth-child(5) a { transition-delay: 0.25s; }

/* === CONTACT BUTTON SECTION === */
.contact-button-section {
  flex: 0 0 auto;
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
}

/* === CONTACT BUTTON INLINE - TOUJOURS VERT === */
.contact-btn-inline {
  background: none;
  border: none;
  color: #78883A !important; /* Toujours vert */
  font-family: Verdana, sans-serif;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  padding: 0;
  white-space: nowrap;
}

/* RESTE VERT AU SURVOL */
.contact-btn-inline:hover {
  color: #78883A !important; /* Reste vert au survol */
  transform: translateY(-1px);
}

/* UNDERLINE TOUJOURS VERT */
.contact-btn-inline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: #78883A; /* Underline vert */
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform: translateX(-50%);
}

.contact-btn-inline:hover::after {
  width: 75%;
}

/* RESTE VERT APRÈS CLIC */
.contact-btn-inline.phone-visible {
  color: #78883A !important; /* Reste vert après clic */
}

.contact-btn-inline.phone-visible:hover {
  color: #78883A !important; /* Reste vert au survol après clic */
}

/* RESTE VERT DANS TOUS LES ÉTATS */
.contact-btn-inline:active,
.contact-btn-inline:focus,
.contact-btn-inline:visited {
  color: #78883A !important;
}

/* === NOTIFICATION BELL === */
.notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--red);
  color: white;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center;
  margin-left: -10px;
}

.notification-bell:hover {
  background-color: var(--green-hover);
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 12px 35px rgba(120, 136, 58, 0.5);
}

.notification-bell:active {
  transform: translateY(-2px) scale(0.98);
  transition: all 0.2s ease;
}

/* === NOTIFICATION BADGE - ANIMATION DE DISPARITION === */
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #dc3545;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid white;
  animation: pulse 2s infinite;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* === MAIL BELL === */
.mail-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--red);
  color: white;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center;
}

.mail-bell:hover {
  background-color: var(--green-hover);
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 12px 35px rgba(120, 136, 58, 0.5);
}

.mail-bell:active {
  transform: translateY(-2px) scale(0.98);
  transition: all 0.2s ease;
}

/* Animation de balancement pour l'enveloppe au survol */
.mail-bell:hover svg {
  animation: mailFloat 1s ease-in-out;
}

@keyframes mailFloat {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-4px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(-3px); }
}

/* === RDV BELL (NOUVEAU BOUTON) === */
.rdv-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--red);
  color: white;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center;
}

.rdv-bell:hover {
  background-color: var(--green-hover);
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 12px 35px rgba(120, 136, 58, 0.5);
}

.rdv-bell:active {
  transform: translateY(-2px) scale(0.98);
  transition: all 0.2s ease;
}

/* Animation de pulsation pour le calendrier au survol */
.rdv-bell:hover svg {
  animation: calendarPulse 1.2s ease-in-out;
}

@keyframes calendarPulse {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.1); }
  50% { transform: scale(1.05); }
  75% { transform: scale(1.08); }
}

/* === TOOLTIPS - APPARITION RAPIDE === */
.tooltip {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1000;
  pointer-events: none;
}

.tooltip::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid rgba(0, 0, 0, 0.8);
}

.tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-8px);
}

/* === NEWSLETTER OVERLAY CENTRÉ - PLUS GRAND === */
.newsletter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: opacity, visibility;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  cursor: pointer;
}

.newsletter-overlay.active {
  opacity: 1;
  visibility: visible;
}

.newsletter-content {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 50px;
  transform: scale(0.8) translateY(30px);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  cursor: default;
}

.newsletter-overlay.active .newsletter-content {
  transform: scale(1) translateY(0);
}

.newsletter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.1s;
  will-change: transform, opacity;
}

.newsletter-overlay.active .newsletter-header {
  opacity: 1;
  transform: translateY(0);
}

.newsletter-header h3 {
  color: var(--red);
  font-size: 1.6rem;
  margin: 0;
}

.close-newsletter {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform: rotate(0deg);
  will-change: transform;
}

.close-newsletter:hover {
  background-color: #f0f0f0;
  color: var(--red);
  transform: rotate(90deg) scale(1.15);
}

.close-newsletter:active {
  transform: rotate(90deg) scale(0.95);
  transition: all 0.1s ease;
}

.newsletter-body {
  flex: 1;
}

/* === MAIL OVERLAY CENTRÉ - SANS SCROLL === */
.mail-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: opacity, visibility;
  backface-visibility: hidden;
  cursor: pointer;
}

.mail-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mail-content {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 600px;
  height: 90vh;
  overflow: hidden;
  padding: 30px;
  transform: scale(0.8) translateY(30px);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform, opacity;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  cursor: default;
}

.mail-overlay.active .mail-content {
  transform: scale(1) translateY(0);
}

.mail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.1s;
  flex-shrink: 0;
}

.mail-overlay.active .mail-header {
  opacity: 1;
  transform: translateY(0);
}

.mail-header h3 {
  color: #902300;
  font-size: 1.4rem;
  margin: 0;
}

.close-mail {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform: rotate(0deg);
}

.close-mail:hover {
  background-color: #f0f0f0;
  color: var(--red);
  transform: rotate(90deg) scale(1.15);
}

.mail-separator {
  width: 100%;
  height: 2px;
  background-color: #f0f0f0;
  margin-bottom: 15px;
  opacity: 0;
  transform: scaleX(0);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.15s;
  flex-shrink: 0;
}

.mail-overlay.active .mail-separator {
  opacity: 1;
  transform: scaleX(1);
}

.mail-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mail-body p {
  color: #000;
  line-height: 1.6;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.2s;
  flex-shrink: 0;
}

.mail-overlay.active .mail-body p {
  opacity: 1;
  transform: translateY(0);
}

.mail-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
  overflow: hidden;
}

.mail-form .form-group {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  flex-shrink: 0;
}

.mail-overlay.active .mail-form .form-group {
  opacity: 1;
  transform: translateY(0);
}

.mail-overlay.active .mail-form .form-group:nth-child(1) {
  transition-delay: 0.25s;
}

.mail-overlay.active .mail-form .form-group:nth-child(2) {
  transition-delay: 0.3s;
}

.mail-overlay.active .mail-form .form-group:nth-child(3) {
  transition-delay: 0.35s;
}

.mail-overlay.active .mail-form .form-group:nth-child(4) {
  transition-delay: 0.4s;
}

.mail-form .form-group label {
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 14px;
}

.mail-form .form-group:nth-child(1) label,
.mail-form .form-group:nth-child(2) label,
.mail-form .form-group:nth-child(3) label {
  color: #902300;
}

.mail-form .form-group:nth-child(4) label {
  color: #78883A;
}

.mail-form input[type="email"],
.mail-form input[type="text"],
.mail-form textarea {
  padding: 10px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: Verdana, sans-serif;
  font-size: 14px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.mail-form input::placeholder,
.mail-form textarea::placeholder {
  color: #999;
}

.mail-form textarea {
  min-height: 80px;
  resize: none;
  flex: 1;
}

.mail-form input:focus,
.mail-form textarea:focus {
  outline: none;
  border-color: var(--red);
  transform: scale(1.02);
  box-shadow: 0 0 0 3px rgba(144, 35, 0, 0.1);
}

.privacy-notice {
  font-size: 11px;
  color: #000;
  line-height: 1.4;
  padding: 12px;
  background-color: #f9f9f9;
  border-radius: 6px;
  margin: 8px 0;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  flex-shrink: 0;
}

.mail-overlay.active .privacy-notice {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}

.mail-submit {
  background-color: #902300;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: Verdana, sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  margin-top: 8px;
  transform: translateY(15px);
  opacity: 0;
  flex-shrink: 0;
}

.mail-overlay.active .mail-submit {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.5s;
}

.mail-submit:hover {
  background-color: var(--green-hover);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 20px rgba(120, 136, 58, 0.4);
}

.mail-submit:active {
  transform: translateY(0) scale(0.98);
  transition: all 0.1s ease;
}

.mail-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* === BLUR OVERLAY ULTRA-OPTIMISÉ === */
.blur-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.blur-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Animation de pulsation pour le badge */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(220, 53, 69, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}

/* Animation de balancement pour la cloche au survol */
.notification-bell:hover svg {
  animation: bellRing 0.8s ease-in-out;
}

@keyframes bellRing {
  0%, 100% { transform: rotate(0deg); }
  10%, 30%, 50%, 70%, 90% { transform: rotate(-12deg); }
  20%, 40%, 60%, 80% { transform: rotate(12deg); }
}

/* --- HERO --- */
.hero{
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  text-align:center;min-height:100vh;padding:0 20px;position:relative;
  background:url("images/entree_cabinet.jpg") no-repeat center center/cover;
  border-bottom: 1px solid #ddd;
}

/* --- TITRES CLIQUABLES --- */
h2 a {
  color: var(--red);
  text-decoration: none;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  display: inline-block;
}

h2 a:hover {
  color: var(--green-hover);
  transform: translateY(-1px);
}

h2 a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--green-hover);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

h2 a:hover::after {
  width: 75%;
}

/* --- TITRES --- */
h2 {
  text-align: left;
  margin-bottom: 20px;
}

/* --- TEXTES --- */
section p,
.services .intro,
.accordion-content,
.team p,
.about p,
.contact p {
  color: #000;
  line-height:1.6;
  max-width: 700px;
  text-align: left;
}

/* --- SERVICES --- */
.services{background:#fff;color:#000;padding:80px 20px;}
.services-container{
  max-width:1200px;margin:0 auto;display:grid;
  grid-template-columns:1fr 1fr;gap:40px;align-items:center;
}

.services-left{
  display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
}

.services-spacing {
  height: 20px;
}

.services-right img{
  width:100%;height:auto;max-height:400px;object-fit:cover;
  border-radius:12px;box-shadow:0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.services-right img:hover {
  transform: scale(1.02);
}

@media(max-width:900px){
  .services-container{grid-template-columns:1fr;text-align:center;}
  .services-right img{max-width:90%;margin:20px auto;}
  .services-left{align-items:center;}
}

/* --- ACCORDION --- */
.accordion-item{border-top:1px solid rgba(200,200,200,0.6);}
.accordion-header{
  width:100%;text-align:left;padding:15px;background:none;border:none;
  font-size:1.1rem;font-weight:500;cursor:pointer;
  display:flex;justify-content:space-between;align-items:center;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);color: #902300;
}

.accordion-header:hover{
  background:#eee;
  transform: translateX(5px);
}

.accordion-header.active {
  color: #78883A;
}

.accordion-header .chevron{
  display:flex;align-items:center;
  transition:transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.accordion-header.active .chevron{transform:rotate(180deg);}

.accordion-content{
  height:0;overflow:hidden;opacity:0;padding:0 15px;
  line-height:1.6;color:#000;font-size:.9rem;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.accordion-content ul{list-style:none;padding-left:0;}
.accordion-content ul li{
  position:relative;padding-left:20px;margin-bottom:8px;color:#000;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.accordion-content ul li::before{content:"-";position:absolute;left:0;font-weight:bold;}

/* --- TEAM CAROUSEL --- */
.team{
  padding:80px 20px;background:#f9f9f9;
}

.team-content {
  max-width: 1200px;
  margin: 0 auto;
}

.team h2 {
  text-align: left;
  margin-bottom: 40px;
  margin-left: 0;
}

.carousel-container {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}

.carousel-btn {
  background-color: var(--red);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  flex-shrink: 0;
  z-index: 10;
  margin-top: 140px;
}

.carousel-btn:hover {
  background-color: var(--green-hover);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(120, 136, 58, 0.4);
}

.team-carousel {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  flex-wrap: wrap;
  max-width: 1000px;
}

.team-member {
  display: none;
  max-width: 220px;
  text-align: center;
  flex: 0 0 calc(25% - 15px);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.team-member.active {
  display: block;
}

.member-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 15px;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.member-image-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.team-member img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.member-image-container:hover img {
  transform: scale(1.05);
}

.member-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  padding: 15px;
  text-align: center;
}

.member-image-container:hover .member-overlay {
  opacity: 1;
}

.member-overlay p {
  color: var(--green-hover);
  font-size: 0.85rem;
  line-height: 1.3;
  margin: 0;
  text-align: center;
  width: 100%;
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0.1s;
}

.member-image-container:hover .member-overlay p {
  transform: translateY(0);
}

.team-member h3 {
  margin-bottom: 5px;
  font-size: 1.1rem;
  color: var(--red);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.team-member:hover h3 {
  color: var(--green-hover);
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .team-carousel {
    gap: 15px;
  }
  
  .team-member {
    max-width: 200px;
    flex: 0 0 calc(25% - 12px);
  }
  
  .team-member img {
    height: 250px;
  }
  
  .carousel-btn {
    margin-top: 125px;
  }
}

@media (max-width: 768px) {
  .carousel-container {
    gap: 15px;
  }
  
  .team-carousel {
    gap: 10px;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    margin-top: 100px;
  }
  
  .team-member {
    max-width: 150px;
    flex: 0 0 calc(50% - 5px);
  }
  
  .team-member img {
    height: 200px;
  }
  
  .team-member h3 {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .team-member {
    flex: 0 0 calc(100% - 10px);
    max-width: 200px;
  }
  
  .carousel-btn {
    margin-top: 100px;
  }
}

/* --- ABOUT --- */
.about{
  padding:80px 20px;background:#f9f9f9;
}

.about-container{
  max-width:1200px;margin:0 auto;display:grid;
  grid-template-columns:1fr 1fr;gap:40px;align-items:center;
}

.about-left img{
  width:100%;height:auto;max-height:400px;object-fit:cover;
  border-radius:12px;box-shadow:0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.about-left img:hover {
  transform: scale(1.02);
}

.about-right{
  display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
}

.about-right h2 {
  text-align: left;
}

.about-right p{text-align:left;}

@media(max-width:900px){
  .about-container{grid-template-columns:1fr;text-align:center;}
  .about-left img{max-width:90%;margin:20px auto;}
  .about-right{align-items:center;}
}

/* --- ENGAGEMENTS --- */
.engagements{
  padding:80px 20px;background:#fff;
}

.engagements-container{
  max-width:1200px;margin:0 auto;display:grid;
  grid-template-columns:1fr 1fr;gap:40px;align-items:center;
}

.engagements-left{
  display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
}

.engagements-right img{
  width:100%;height:auto;max-height:400px;object-fit:cover;
  border-radius:12px;box-shadow:0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.engagements-right img:hover {
  transform: scale(1.02);
}

@media(max-width:900px){
  .engagements-container{grid-template-columns:1fr;text-align:center;}
  .engagements-right img{max-width:90%;margin:20px auto;}
  .engagements-left{align-items:center;}
}

/* --- CONTACT --- */
.contact{
  padding:80px 20px;background:#f9f9f9;
}

.contact-container{
  max-width:1200px;margin:0 auto;display:grid;
  grid-template-columns:1fr 1fr;gap:40px;align-items:center;
}

.contact-left img{
  width:100%;height:auto;max-height:400px;object-fit:cover;
  border-radius:12px;box-shadow:0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-left img:hover {
  transform: scale(1.02);
}

.contact-right{
  display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
}

.contact-right h2 {
  text-align: left;
}

.contact-right p{text-align:left;}

@media(max-width:900px){
  .contact-container{grid-template-columns:1fr;text-align:center;}
  .contact-left img{max-width:90%;margin:20px auto;}
  .contact-right{align-items:center;}
}

/* --- FOOTER --- */
footer {
  background: #fff;
  padding: 40px 20px;
  border-top: 1px solid #ddd;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
  align-items: center;
}

.footer-left h4 {
  margin-bottom: 15px;
  color: #000;
}

.linkedin-link {
  color: var(--red);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.linkedin-link:hover {
  color: var(--green-hover);
  transform: translateY(-2px) scale(1.1);
}

.footer-center {
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.footer-nav a {
  color: var(--red);
  text-decoration: none;
  padding: 12px 16px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

.footer-nav a:hover {
  color: var(--green-hover);
  transform: translateY(-1px);
}

.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--green-hover);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform: translateX(-50%);
}

.footer-nav a:hover::after {
  width: 75%;
}

.footer-nav .separator {
  color: var(--red);
  margin: 0 8px;
  font-weight: 300;
  font-size: 16px;
  opacity: 0.6;
}

.footer-right {
  text-align: right;
}

.footer-right p {
  color: #555;
  font-size: 14px;
  margin: 0;
}

@media(max-width:900px){
  .footer-container{
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  
  .footer-right {
    text-align: center;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-nav .separator {
    display: none;
  }
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background-color: var(--red);
  color: white;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--green-hover);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 30px rgba(120, 136, 58, 0.4);
}

/* === RESPONSIVE POUR LES OVERLAYS CENTRÉS === */
@media (max-width: 768px) {
  .newsletter-content {
    width: 95%;
    max-width: 95%;
    max-height: 90vh;
    padding: 30px 25px;
    border-radius: 15px;
  }
  
  .mail-content {
    width: 95%;
    max-width: 95%;
    height: 95vh;
    padding: 25px 20px;
    border-radius: 15px;
  }
  
  .newsletter-header h3,
  .mail-header h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .newsletter-content {
    width: 98%;
    padding: 25px 20px;
    border-radius: 12px;
  }
  
  .mail-content {
    width: 98%;
    height: 98vh;
    padding: 20px 15px;
    border-radius: 12px;
  }
  
  .newsletter-header h3,
  .mail-header h3 {
    font-size: 1.2rem;
  }
  
  .mail-form {
    gap: 12px;
  }
  
  .mail-form textarea {
    min-height: 60px;
  }
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
  .header-container {
    max-width: 100%;
    padding: 0 20px;
  }
  
  .logo-section {
    left: 20px;
  }
  
  .contact-button-section {
    right: 5px;
  }
}

@media (max-width: 1100px) {
  .header-container {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    position: relative;
  }
  
  .logo-section {
    order: 1;
    position: static;
    left: auto;
    top: auto;
  }
  
  .nav-center {
    order: 2;
    margin: 0;
    max-width: none;
  }
  
  .contact-button-section {
    order: 3;
    position: static;
    right: auto;
    top: auto;
    transform: none;
    justify-content: center;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}