/* --- 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;
}

/* Version mobile - écran de chargement pleine taille */
@media (max-width: 768px) {
  .loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 10000;
  }
}

.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;
  animation: logoFadeIn 0.8s ease-out;
}

.pulse-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid #902300;
  background: transparent;
  opacity: 0;
  z-index: 1;
}

.pulse-animation.pulse-1 {
  animation: modernRipple 1.2s ease-out;
  animation-delay: 0.3s;
}

.pulse-animation.pulse-2 {
  animation: modernRipple 1.2s ease-out;
  animation-delay: 0.8s;
}

.pulse-animation.pulse-3 {
  border-color: #78883A;
  animation: modernRippleGreen 1.2s ease-out;
  animation-delay: 1.3s;
}

@keyframes logoFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes modernRipple {
  0% {
    width: 120px;
    height: 120px;
    opacity: 0.8;
    border-width: 2px;
  }
  50% {
    width: 300px;
    height: 300px;
    opacity: 0.4;
    border-width: 1px;
  }
  100% {
    width: 450px;
    height: 450px;
    opacity: 0;
    border-width: 0px;
  }
}

@keyframes modernRippleGreen {
  0% {
    width: 120px;
    height: 120px;
    opacity: 0.8;
    border-width: 2px;
  }
  50% {
    width: 300px;
    height: 300px;
    opacity: 0.4;
    border-width: 1px;
  }
  100% {
    width: 450px;
    height: 450px;
    opacity: 0;
    border-width: 0px;
  }
}

/* Responsive pour le logo */
@media (max-width: 768px) {
  .loading-logo {
    width: 40vw;
    min-width: 150px;
  }
  
  .pulse-animation {
    width: 100px;
    height: 100px;
  }
  
  @keyframes modernRipple {
    0% {
      width: 100px;
      height: 100px;
      opacity: 0.8;
      border-width: 2px;
    }
    50% {
      width: 250px;
      height: 250px;
      opacity: 0.4;
      border-width: 1px;
    }
    100% {
      width: 380px;
      height: 380px;
      opacity: 0;
      border-width: 0px;
    }
  }
  
  @keyframes modernRippleGreen {
    0% {
      width: 100px;
      height: 100px;
      opacity: 0.8;
      border-width: 2px;
    }
    50% {
      width: 250px;
      height: 250px;
      opacity: 0.4;
      border-width: 1px;
    }
    100% {
      width: 380px;
      height: 380px;
      opacity: 0;
      border-width: 0px;
    }
  }
}

@media (max-width: 480px) {
  .loading-logo {
    width: 45vw;
    min-width: 125px;
  }
  
  .pulse-animation {
    width: 80px;
    height: 80px;
  }
  
  @keyframes modernRipple {
    0% {
      width: 80px;
      height: 80px;
      opacity: 0.8;
      border-width: 2px;
    }
    50% {
      width: 200px;
      height: 200px;
      opacity: 0.4;
      border-width: 1px;
    }
    100% {
      width: 320px;
      height: 320px;
      opacity: 0;
      border-width: 0px;
    }
  }
  
  @keyframes modernRippleGreen {
    0% {
      width: 80px;
      height: 80px;
      opacity: 0.8;
      border-width: 2px;
    }
    50% {
      width: 200px;
      height: 200px;
      opacity: 0.4;
      border-width: 1px;
    }
    100% {
      width: 320px;
      height: 320px;
      opacity: 0;
      border-width: 0px;
    }
  }
}

/* === 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);
}

/* === INTERACTIONS TACTILES MOBILES === */
@media (hover: none) and (pointer: coarse) {
  /* Remplacer les effets hover par des états actifs sur mobile */
  .nav-links a:active,
  .dropdown-menu a:active,
  .footer-nav a:active {
    color: var(--green-hover);
    transform: translateY(-1px);
  }
  
  .nav-links a:active::after,
  .footer-nav a:active::after {
    width: 75%;
  }
  
  .notification-bell:active,
  .mail-bell:active,
  .rdv-bell:active {
    background-color: var(--green-hover);
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 12px 35px rgba(120, 136, 58, 0.5);
  }
  
  .carousel-btn:active {
    background-color: var(--green-hover);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(120, 136, 58, 0.4);
  }
  
  .back-to-top:active {
    background-color: var(--green-hover);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(120, 136, 58, 0.4);
  }
  
  .accordion-header:active {
    background: #eee;
    transform: translateX(5px);
  }
  
  .member-image-container:active {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }
  
  .member-image-container:active img {
    transform: scale(1.05);
  }
  
  .member-image-container:active .member-overlay {
    opacity: 1;
  }
  
  .member-image-container:active .member-overlay p {
    transform: translateY(0);
  }
  
  .team-member:active h3 {
    color: var(--green-hover);
    transform: translateY(-2px);
  }
  
  .services-right img:active,
  .about-left img:active,
  .engagements-right img:active,
  .contact-left img:active {
    transform: scale(1.02);
  }
  
  .logo-section a:active img {
    transform: scale(1.05);
  }
  
  .linkedin-link:active {
    color: var(--green-hover);
    transform: translateY(-2px) scale(1.1);
  }
  
  h2 a:active {
    color: var(--green-hover);
    transform: translateY(-1px);
  }
  
  h2 a:active::after {
    width: 75%;
  }
  
  .contact-btn-inline:active {
    transform: translateY(-1px);
  }
  
  .contact-btn-inline:active::after {
    width: 75%;
  }
  
  .mail-submit:active {
    background-color: var(--green-hover);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 20px rgba(120, 136, 58, 0.4);
  }
  
  /* Désactiver les animations hover sur mobile */
  .nav-links a:hover,
  .dropdown-menu a:hover,
  .footer-nav a:hover,
  .notification-bell:hover,
  .mail-bell:hover,
  .rdv-bell:hover,
  .carousel-btn:hover,
  .back-to-top:hover,
  .accordion-header:hover,
  .member-image-container:hover,
  .team-member:hover h3,
  .services-right img:hover,
  .about-left img:hover,
  .engagements-right img:hover,
  .contact-left img:hover,
  .logo-section a:hover img,
  .linkedin-link:hover,
  h2 a:hover,
  .contact-btn-inline:hover,
  .mail-submit:hover {
    transform: none;
    color: inherit;
    background-color: inherit;
    box-shadow: none;
  }
  
  .nav-links a:hover::after,
  .footer-nav a:hover::after,
  h2 a:hover::after,
  .contact-btn-inline:hover::after {
    width: 0;
  }
  
  .member-image-container:hover .member-overlay {
    opacity: 0;
  }
  
  .member-image-container:hover .member-overlay p {
    transform: translateY(10px);
  }
}

/* === 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);
}

/* === BURGER MENU BUTTON === */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.burger-line {
  width: 30px;
  height: 3px;
  background-color: var(--red);
  margin: 3px 0;
  border-radius: 2px;
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(9px, 9px);
  background-color: var(--green-hover);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(9px, -9px);
  background-color: var(--green-hover);
}

/* === MOBILE MENU OVERLAY - S'OUVRE PAR LA DROITE === */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -100%; /* Commence hors écran à droite */
  width: 100%;
  height: 100vh;
  background: #fff;
  z-index: 1000;
  opacity: 1;
  visibility: visible;
  transition: right 0.3s ease-in-out; /* Animation de glissement */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mobile-menu-overlay.active {
  right: 0; /* Glisse vers la gauche pour apparaître */
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 80px 20px 20px;
  position: relative;
}

/* === BOUTON DE FERMETURE (CROIX) === */
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1001;
}

.mobile-menu-close:hover {
  background-color: #f0f0f0;
  color: var(--green-hover);
  transform: rotate(90deg) scale(1.1);
}

.mobile-menu-close:active {
  transform: rotate(90deg) scale(0.95);
  transition: all 0.1s ease;
}

.mobile-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.mobile-nav-links li {
  margin: 0 0 20px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-menu-overlay.active .mobile-nav-links li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-links li:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav-links li:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav-links li:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav-links li:nth-child(5) { transition-delay: 0.3s; }

.mobile-nav-links a {
  color: var(--red); /* Couleur rouge comme le header desktop */
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 500;
  padding: 15px 20px;
  display: block;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.mobile-nav-links a::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);
}

.mobile-nav-links a:active::before {
  left: 100%;
}

.mobile-nav-links a:active {
  color: var(--green-hover);
  background: rgba(120, 136, 58, 0.05);
  transform: scale(1.05);
}

/* === MOBILE DROPDOWN === */
.mobile-dropdown {
  position: relative;
}

.mobile-dropdown-toggle {
  background: none;
  border: none;
  color: var(--red); /* Couleur rouge comme le header desktop */
  font-size: 1.4rem;
  font-weight: 500;
  padding: 15px 20px;
  width: 100%;
  text-align: center;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.mobile-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);
}

.mobile-dropdown-toggle:active::before {
  left: 100%;
}

.mobile-dropdown-toggle:active {
  color: var(--green-hover);
  background: rgba(120, 136, 58, 0.05);
  transform: scale(1.05);
}

.mobile-chevron {
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  color: var(--red); /* Couleur rouge */
}

.mobile-dropdown-menu {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  height: 0;
  overflow: hidden;
  transition: height 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-dropdown-menu li {
  margin: 8px 0;
  opacity: 0.9;
}

.mobile-dropdown-menu a {
  font-size: 1.1rem;
  color: var(--red); /* Couleur rouge */
  padding: 12px 15px;
  margin: 0 20px;
  border-left: 3px solid var(--green-hover);
  background: rgba(144, 35, 0, 0.05); /* Fond légèrement rouge */
}

.mobile-dropdown-menu a:active {
  color: var(--green-hover);
  background: rgba(120, 136, 58, 0.1);
  border-left-color: var(--green-hover);
}

/* === MOBILE SUBTITLE === */
.mobile-subtitle {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  text-align: center;
}

.mobile-menu-overlay.active .mobile-subtitle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

.mobile-subtitle p {
  /* Suppression du texte expert-comptable */
  display: none;
}

.mobile-contact-btn {
  background: none;
  border: 2px solid var(--green-hover);
  color: var(--green-hover);
  font-family: Verdana, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.mobile-contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--green-hover);
  transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: -1;
}

.mobile-contact-btn:active::before {
  left: 0;
}

.mobile-contact-btn:active {
  color: white;
  transform: scale(1.05);
}

.mobile-contact-btn.phone-visible {
  color: var(--green-hover);
  border-color: var(--green-hover);
  cursor: pointer;
}

.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;
}

/* MODIFICATION PRINCIPALE : Uniformisation du style pour "Nos services" */
.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;
}

/* Style uniforme pour tous les liens de navigation, y compris "Nos services" */
.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,
.dropdown.active .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 AVEC FONCTIONNALITÉ TÉLÉPHONE === */
.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 ET DEVIENT CLIQUABLE POUR APPEL */
.contact-btn-inline.phone-visible {
  color: #78883A !important; /* Reste vert après clic */
  cursor: pointer; /* Reste cliquable pour l'appel */
}

.contact-btn-inline.phone-visible:hover {
  color: #78883A !important; /* Reste vert au survol après clic */
  text-decoration: underline; /* Indication visuelle que c'est cliquable */
}

/* 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;
}

/* Titres centrés sur mobile */
@media (max-width: 768px) {
  h2 {
    text-align: center;
  }
}

/* --- 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;
  position: relative;
}

.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);
}

/* Suppression du fond sur mobile et réorganisation */
@media (max-width: 768px) {
  .services {
    background: #fff;
  }
  
  .services-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .services-left {
    order: 1;
    align-items: center;
  }
  
  .services-right {
    order: 2;
  }
  
  .services-right img {
    max-width: 90%;
    margin: 20px auto;
  }
}

@media(max-width:900px){
  .services-container{grid-template-columns:1fr;text-align:center;}
  .services-left{order:1;align-items:center;}
  .services-right{order:2;}
  .services-right img{max-width:90%;margin:20px auto;}
}

/* --- 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 mobile - 2 par 2 avec chevrons sur les côtés */
  .carousel-container {
    flex-direction: row;
    gap: 15px;
    align-items: center;
  }
  
  .carousel-btn {
    order: initial;
    margin-top: 0;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  
  .prev-btn {
    order: 1;
  }
  
  .team-carousel {
    order: 2;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    justify-items: center;
  }
  
  .next-btn {
    order: 3;
  }
  
  .team-member {
    max-width: 140px;
    width: 100%;
  }
  
  .team-member img {
    height: 180px;
    width: 100%;
    object-fit: cover;
  }
}

@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;
  position: relative;
}

.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;}

/* Suppression du fond sur mobile et réorganisation */
@media (max-width: 768px) {
  .about {
    background: #f9f9f9;
  }
  
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about-right {
    order: 1;
    align-items: center;
  }
  
  .about-left {
    order: 2;
  }
  
  .about-left img {
    max-width: 90%;
    margin: 20px auto;
  }
}

@media(max-width:900px){
  .about-container{grid-template-columns:1fr;text-align:center;}
  .about-right{order:1;align-items:center;}
  .about-left{order:2;}
  .about-left img{max-width:90%;margin:20px auto;}
}

/* --- ENGAGEMENTS --- */
.engagements{
  padding:80px 20px;
  background:#fff;
  position: relative;
}

.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);
}

/* Suppression du fond sur mobile et réorganisation */
@media (max-width: 768px) {
  .engagements {
    background: #fff;
  }
  
  .engagements-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .engagements-left {
    order: 1;
    align-items: center;
  }
  
  .engagements-right {
    order: 2;
  }
  
  .engagements-right img {
    max-width: 90%;
    margin: 20px auto;
  }
}

@media(max-width:900px){
  .engagements-container{grid-template-columns:1fr;text-align:center;}
  .engagements-left{order:1;align-items:center;}
  .engagements-right{order:2;}
  .engagements-right img{max-width:90%;margin:20px auto;}
}

/* --- CONTACT --- */
.contact{
  padding:80px 20px;
  background:#f9f9f9;
  position: relative;
}

.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;}

/* Suppression du fond sur mobile et réorganisation */
@media (max-width: 768px) {
  .contact {
    background: #f9f9f9;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .contact-right {
    order: 1;
    align-items: center;
  }
  
  .contact-left {
    order: 2;
  }
  
  .contact-left img {
    max-width: 90%;
    margin: 20px auto;
  }
}

@media(max-width:900px){
  .contact-container{grid-template-columns:1fr;text-align:center;}
  .contact-right{order:1;align-items:center;}
  .contact-left{order:2;}
  .contact-left img{max-width:90%;margin:20px auto;}
}

/* --- 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 mobile avec disposition spécifique */
@media (max-width: 768px) {
  .footer-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
  }
  
  .footer-left {
    align-self: flex-start;
    width: 100%;
  }
  
  .footer-center {
    order: 3;
    width: 100%;
  }
  
  .footer-right {
    order: 4;
    text-align: center;
    width: 100%;
  }
}

.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 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 12px;
  }
  
  .footer-nav a {
    padding: 8px 6px;
    font-size: 11px;
    white-space: nowrap;
  }
  
  .footer-nav .separator {
    margin: 0 3px;
    font-size: 11px;
  }
}

@media(max-width:480px){
  .footer-nav {
    font-size: 10px;
  }
  
  .footer-nav a {
    padding: 6px 4px;
    font-size: 9px;
  }
  
  .footer-nav .separator {
    margin: 0 2px;
    font-size: 9px;
  }
}

/* --- 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;
  }
}

/* === RESPONSIVE MOBILE AVEC BURGER MENU === */
@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    gap: 0;
  }
  
  .logo-section {
    position: static;
    order: 1; /* Logo à gauche */
  }
  
  .logo-section img {
    height: 50px;
  }
  
  .burger-menu {
    display: flex;
    order: 3; /* Burger à droite */
  }
  
  .nav-center {
    display: none;
  }
  
  .contact-button-section {
    order: 2; /* Toolkits au centre */
    position: static;
    right: auto;
    top: auto;
    transform: none;
    gap: 10px;
    justify-content: center;
    flex: 1;
  }
  
  .contact-button-section .notification-bell,
  .contact-button-section .mail-bell,
  .contact-button-section .rdv-bell {
    width: 40px;
    height: 40px;
  }
  
  /* Hero responsive */
  .hero {
    min-height: 70vh;
    padding: 0 15px;
  }
  
  /* Sections responsive */
  .services,
  .about,
  .engagements,
  .contact,
  .team {
    padding: 60px 15px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 10px;
  }
  
  .logo-section img {
    height: 45px;
  }
  
  .burger-menu {
    width: 45px;
    height: 45px;
  }
  
  .burger-line {
    width: 25px;
    height: 2px;
  }
  
  .contact-button-section {
    gap: 8px;
  }
  
  .contact-button-section .notification-bell,
  .contact-button-section .mail-bell,
  .contact-button-section .rdv-bell {
    width: 35px;
    height: 35px;
  }
  
  /* Hero très petit écran */
  .hero {
    min-height: 60vh;
    padding: 0 10px;
  }
  
  /* Sections très petit écran */
  .services,
  .about,
  .engagements,
  .contact,
  .team {
    padding: 50px 10px;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  /* Accordion mobile */
  .accordion-header {
    padding: 12px;
    font-size: 1rem;
  }
  
  .accordion-content {
    padding: 0 12px;
    font-size: 0.85rem;
  }
  
  /* Mobile menu responsive */
  .mobile-nav-links a {
    font-size: 1.2rem;
    padding: 12px 15px;
  }
  
  .mobile-dropdown-toggle {
    font-size: 1.2rem;
    padding: 12px 15px;
  }
  
  .mobile-dropdown-menu a {
    font-size: 1rem;
    padding: 10px 12px;
    margin: 0 15px;
  }
  
  .mobile-contact-btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}