/* =============================
   🔤 FONTS & GLOBAL RESET
============================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  background-color: #f8f8f8;
  color: #333;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 0;
  overflow-y: scroll;
  transition: none !important;
  -webkit-tap-highlight-color: transparent;
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
}

main::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url("../img/logo.jpeg") no-repeat center;
  background-size: contain;
  opacity: 0.04;
  z-index: -1;
  pointer-events: none;
}

/* =============================
   🧱 STRUCTURE DES BLOCS
============================= */
section {
  padding: 20px;
  margin: 10px auto;
  max-width: 800px;
  border-radius: 8px;
}

footer {
  background: #f5f9f7;
  color: #126756;
  padding: 2px 0;
  font-size: 0.95rem;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}

/* =============================
   🟢 HEADER ET LOGO
============================= */
header {
  background: linear-gradient(
    to bottom,
    #126756 0%,
    rgba(18, 103, 86, 0.95) 25%,
    rgba(18, 103, 86, 0.85) 50%,
    rgba(18, 103, 86, 0.6) 75%,
    #d6f3ec 100% );
  position: relative;
  color: white;
  padding: 5px 0;
  text-align: center;
  box-shadow: none;
  z-index: 1000;
  overflow: visible;
}

header.shrink {
  padding: 1px 0;
  box-shadow: none;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(60px, 10vw, 100px);
  position: relative;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 0 2vw;
  min-width: 0;
  overflow: visible;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-left {
  padding-left: 2vw;
  text-align: left;
  padding: 0;
  flex-shrink: 0;
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.header-right nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: auto;
}

.logo {
  width: clamp(40px, 8vw, 80px);
  height: clamp(40px, 8vw, 80px);
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease;
  display: block;
  transition: height 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

.logo:focus, .logo:active {
  outline: none;
  box-shadow: none;
  border-radius: 50%;
  transition: box-shadow 0.2s;
}

header.shrink .logo {
  height: 50px;
}
  
.site-title {
  font-size: clamp(1rem, 3vw, 2rem);
  font-weight: 700;
  color: #fbf4e4;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

header.shrink .site-title {
  font-size: clamp(0.9rem, 2.5vw, 1.5rem);
}

header.blurred {
  filter: blur(5px);
  transition: filter 0.3s ease;
}

/* =============================
   🍔 HAMBURGER MENU (ALWAYS VISIBLE)
============================= */
#toggle-menu {
  position: relative;
  top: 0 !important;
  margin: 0;
  align-self: center;
  display: flex; /* Always visible on all screen sizes */
  background: rgba(255, 255, 255, 0.1);
  border: none !important;
  border-radius: 8px;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s ease;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  z-index: 10000;
}

#toggle-menu:hover, #toggle-menu:focus {
  background: #faf3e3;
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(18, 103, 86, 0.18);
  transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}

#toggle-menu:focus, #toggle-menu:active {
  outline: none;
  box-shadow: none;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background-color: white;
  margin: 2px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hamburger animation when menu is active */
#toggle-menu[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#toggle-menu[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

#toggle-menu[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Desktop hamburger menu - original round brown design */
@media (min-width: 769px) {
  #toggle-menu {
    background: #faf3e3;
    border: 2px solid #126756;
    border-radius: 50%;
    color: #126756;
    width: clamp(40px, 8vw, 80px);
    height: clamp(40px, 8vw, 80px);
    box-shadow: 0 2px 8px rgba(18, 103, 86, 0.2);
  }

  #toggle-menu:hover {
    background: #faf3e3;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(18, 103, 86, 0.3);
  }

  .hamburger-line {
    background-color: #126756;
    width: 18px;
    height: 2px;
    margin: 2px 0;
  }
}

/* =============================
   📋 MENU NAVIGATION (DESKTOP - DROPDOWN)
============================= */
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none; /* Hidden by default */
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  min-width: 250px;
  z-index: 1000;
  padding: 15px 0;
  margin-top: 10px;
  flex-direction: column;
  gap: 0;
}

.menu.active {
  display: block; /* Show when active */
  background: #faf3e3 !important;
}

.menu > li {
  position: relative;
  margin: 0;
}

.menu a {
  color: #333;
  text-decoration: none;
  padding: 12px 25px;
  transition: all 0.3s ease;
  display: block;
  font-weight: 500;
  border-radius: 0;
  min-height: 44px;
}

.menu a:hover {
  background-color: #f8f8f8;
  color: #126756;
  transform: translateX(5px);
}

.menu a:active {
  transform: scale(0.97);
  transition: transform 0.08s;
}

/* Classic desktop submenu (to the right) when menu is not active */
.menu .submenu {
  display: none;
}

@media (min-width: 769px) {
  /* Classic horizontal menu: submenu to the right */
  .menu:not(.active) > li:hover > .submenu {
    background: #faf3e3 !important;
    display: block !important;
    position: absolute !important;
    left: 100% !important;
    right: auto !important;
    top: 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(18, 103, 86, 0.12) !important;
    min-width: 220px !important;
    padding: 18px 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    max-height: 400px !important;
    overflow: visible !important;
    margin-left: 10px !important;
    margin-top: 0 !important;
    z-index: 1000 !important;
  }

  /* Hamburger menu open: submenu to the left */
  .menu.active > li:hover > .submenu {
    background: #faf3e3 !important;
    display: block !important;
    position: absolute !important;
    left: auto !important;
    right: 100% !important;
    top: 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(18, 103, 86, 0.12) !important;
    min-width: 220px !important;
    padding: 18px 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    max-height: 400px !important;
    overflow: visible !important;
    margin-right: 10px !important;
    margin-top: 0 !important;
    z-index: 1000 !important;
  }

  .menu .submenu li a {
    color: #126756 !important;
    background: transparent !important;
    padding: 12px 32px !important;
    font-size: 1.08rem !important;
    border-radius: 8px !important;
    margin: 2px 0 !important;
    transition: background 0.2s, color 0.2s;
    border: none !important;
    box-shadow: none !important;
  }
  .menu .submenu li a:hover {
    background: #f8f8f8 !important;
    color: #158c72 !important;
  }
}

/* When hamburger menu is open, show submenu below */
.menu.active .submenu {
  position: static !important;
  left: 0 !important;
  top: auto !important;
  background: rgba(255,255,255,0.95) !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-top: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  max-height: none !important;
  overflow: visible !important;
  display: none;
}
.menu.active .submenu.open {
  display: block;
}

.menu.active .submenu li a {
  color: #126756 !important;
  background: transparent !important;
  padding-left: 35px !important;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .menu,
  .menu.active {
    max-height: 100vh !important;
    overflow-y: auto !important;
    padding-bottom: max(150px, env(safe-area-inset-bottom, 0px)) !important;
  }

  .menu.active .submenu {
    display: block !important;
  }

  .menu.active .submenu li a {
    color: #126756 !important;
    background: rgba(255,255,255,0.05) !important;
    padding-left: 35px !important;
  }
}

/* =============================
   🏠 PAGE D'ACCUEIL 
============================= */
.accueil-navigation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  margin: 40px 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.card-link, .service, .membre {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 44px;
}

.card-link {
  display: block;
  background: white;
  border-radius: 22px;
  box-shadow: 0 6px 32px rgba(18, 103, 86, 0.13);
  padding: 40px 30px 32px 30px;
  text-decoration: none;
  color: #126756;
  font-weight: 600;
  font-size: 1.18rem;
  transition: box-shadow 0.22s, transform 0.22s, background 0.22s, border 0.22s;
  cursor: pointer;
  position: relative;
  outline: none;
  border: 2px solid transparent;
  overflow: hidden;
}

.card-link:hover, .card-link:focus {
  background: #f5f9f7;
  box-shadow: 0 12px 40px rgba(18, 103, 86, 0.18);
  transform: translateY(-6px) scale(1.035);
  color: #158c72;
  text-decoration: none;
}

.card-link:active {
  transform: scale(0.97);
  transition: transform 0.08s;
}

.card-link h3 {
  color: #126756;
  text-align: center !important;
  margin-bottom: 14px;
  font-size: 1.28rem;
  font-weight: 700;
  margin-top: 18px;
}

.card-link p {
  color: #666;
  margin-bottom: 0;
  line-height: 1.6;
  font-size: 1.04rem;
}

h2 {
  color: #126756;
  text-align: center;
  margin: 30px 0 20px 0;
  font-size: 2rem;
  font-weight: 700;
}

/* =============================
   👥 ÉQUIPE
============================= */
.equipe-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.membre {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.membre:hover, .membre:focus {
  background: #f5f9f7;
  box-shadow: 0 12px 40px rgba(18, 103, 86, 0.18);
  transform: translateY(-6px) scale(1.035);
  color: #158c72;
  text-decoration: none;
}

.membre:active {
  transform: scale(0.97);
  transition: transform 0.08s;
}

.membre img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #126756;
}

.membre h3 {
  color: #126756;
  margin-bottom: 5px;
  font-size: 1.4rem;
}

.fonction {
  color: #666;
  font-style: italic;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.description {
  color: #333;
  line-height: 1.6;
  text-align: left;
}

/* =============================
   🧑‍⚕️ Pop-up MODALE
============================= */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  margin: auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal.active .modal-content {
  animation: modalSlideIn 0.3s ease-out;
}

.modal-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  display: block;
  border: 3px solid #126756;
}

.modal-content h3 {
  color: #126756;
  text-align: center;
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.modal-content .fonction {
  text-align: center;
  color: #666;
  font-style: italic;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.modal-content .description {
  color: #333;
  line-height: 1.8;
  text-align: justify;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-modal:hover {
  background-color: #f0f0f0;
  color: #333;
}

/* =============================
   📰 ACTUALITES
============================= */
.actualite-box {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.actualite-box img {
  width: 100%;
  max-height: 800px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.btn-page {
  margin: 0 5px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background-color: #126756;
  color: white;
  cursor: pointer;
}

.btn-page.active {
  background-color: #158c72;
}

.actualite-header {
  display: flex;
  justify-content: flex-end;
}

.actualite-date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 5px;
}

/* =============================
   📝 FORMULAIRE CONTACT
============================= */
form {
  max-width: 500px;
  margin: 0 auto;
  font-family: sans-serif;
}

label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

input, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 16px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  background: #158c72;
  color: #fff;
  border-radius: 8px;
  border: none;
  padding: 12px 28px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

button:hover, button:focus {
  background: #126756;
  transform: translateY(-2px) scale(1.03);
}

/* =============================
   🏥 Services
============================= */
.service {
  display: block;
  text-decoration: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: center;
  color: inherit;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.service:hover, .service:focus {
  background: #f5f9f7;
  box-shadow: 0 12px 40px rgba(18, 103, 86, 0.18);
  transform: translateY(-6px) scale(1.035);
  color: #158c72;
  text-decoration: none;
}

.service:active {
  transform: scale(0.97);
  transition: transform 0.08s;
}

.service-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.service h3 {
  margin: 12px 0;
  font-size: 1.1rem;
  color: #126756;
  padding: 0 10px;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.service {
  width: 320px;
  max-width: 90vw;
  margin: 0;
}

/* === Page Services : largeur + grille 3 colonnes === */
.page-services {                 /* <section class="page-services"> ... */
  max-width: 1200px;             /* dépasse la limite globale de 800px */
}

.page-services .services-container {
  display: grid;                 /* force la grille ici */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
  padding: 0 24px;               /* respiration sur les côtés */
}

/* Responsive (optionnel) */
@media (max-width: 900px) {
  .page-services .services-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .page-services .services-container { grid-template-columns: 1fr; }
}

.services-intro {
  max-width: 800px; /* même largeur que l’index */
  margin: 0 auto 30px auto; /* centre horizontalement et espace en bas */
  padding: 0 20px; /* un peu de marge interne */
  text-align: left
}

/* =============================
   🗺️ Carte
============================= */
.map-container {
  position: relative;
  width: 100%;
  height: 350px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

/* =============================
   📱 MOBILE RESPONSIVENESS
============================= */
@media (max-width: 768px) {
  /* Mobile menu - dropdown style */
  .menu {
    display: none;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    width: 280px !important;
    height: auto !important;
    background: #faf3e3 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    min-width: auto !important;
    z-index: 1000 !important;
    padding: 15px 0 !important;
    margin-top: 10px !important;
    box-sizing: border-box;
    overflow: visible;
    flex-direction: column;
    gap: 0;
      max-height: 90vh;
      overflow-y: auto;
      padding-bottom: calc(100px + env(safe-area-inset-bottom, 100px));
  }

  .menu.active {
    display: block !important;
  }

  .menu > li {
    margin: 0;
  }

  .menu a {
    color: white !important;
    font-size: 1.1rem;
    padding: 15px 25px;
    border-radius: 0;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
  }

  .menu a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    transform: translateX(5px) !important;
  }

  /* Submenu mobile - dropdown style */
  .submenu {
    position: static !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    max-height: none !important;
    overflow: visible !important;
    margin-left: 0 !important;
  }

  .submenu li {
    margin: 0;
  }

  .submenu li a {
    color: white !important;
    font-size: 1rem;
    padding: 12px 35px;
    background: rgba(255, 255, 255, 0.05);
  }

  .submenu li a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    transform: translateX(5px) !important;
  }

  /* Basic mobile adjustments */
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Header adjustments */
  .header-container {
    padding: 0 15px;
    height: 70px;
  }

  .logo {
    width: 50px;
    height: 50px;
  }

  .site-title {
    font-size: 1.2rem;
    white-space: normal;
    text-align: center;
  }

  /* Content adjustments */
  .section {
    padding: 15px;
    margin: 10px auto;
  }

  /* Card navigation */
  .accueil-navigation {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
  }

  .card-link {
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: white;
    border: 1px solid rgba(18, 103, 86, 0.1);
  }

  .card-link a {
    font-size: 1.1rem;
    padding: 15px 0;
    display: block;
  }

  /* Team member cards */
  .equipe-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px;
  }

  .membre {
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: white;
    border: 1px solid rgba(18, 103, 86, 0.1);
  }

  .membre img {
    width: 120px;
    height: 120px;
  }

  /* Service cards */
  .services-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px;
  }

  .service {
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: white;
    border: 1px solid rgba(18, 103, 86, 0.1);
  }

  /* Modal improvements */
  .modal-content {
    width: 95%;
    max-width: 400px;
    margin: 20px auto;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal {
    padding: 10px;
  }

  /* Form improvements */
  form {
    padding: 20px;
  }

  input, textarea {
    padding: 15px;
    font-size: 16px;
  }

  button {
    padding: 15px 30px;
    font-size: 16px;
  }

  /* Map container */
  .map-container {
    height: 300px;
    margin: 15px 0;
  }

  /* Better spacing */
  h1, h2, h3 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
  }

  p {
    margin-bottom: 1em;
  }

  /* Better footer */
  footer {
    padding: 20px 15px;
    font-size: 0.9rem;
  }
}

@media (max-width: 400px) {
  .logo,
  #toggle-menu {
    width: 45px;
    height: 45px;
  }

  .site-title {
    font-size: 1rem;
  }

  .section {
    padding: 10px;
  }

  .card-link, .membre, .service {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .map-container {
    height: 250px;
  }
}

/* =============================
   🎯 TOUCH IMPROVEMENTS
============================= */
@media (hover: none) and (pointer: coarse) {
  /* Touch device optimizations */
  .menu a:hover,
  .card-link:hover,
  .membre:hover,
  .service:hover {
    transform: none;
  }

  .menu a:active,
  .card-link:active,
  .membre:active,
  .service:active {
    transform: scale(0.98);
  }
}

/* =============================
   ⚡ PERFORMANCE & LOADING
============================= */
/* Smooth scrolling for the whole page */
html {
  scroll-behavior: smooth;
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: 2px solid #158c72;
  outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #126756;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.skip-link:focus {
  top: 6px;
  opacity: 1;
  pointer-events: auto;
}

/* =============================
   🌟 ANIMATIONS & TRANSITIONS
============================= */
/* Fade in animation for content */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.7s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Pulse animation for loading states */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Modal animation */
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.menu.active a {
  color: #126756 !important;
}

.header-left a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(40px, 8vw, 80px);
  height: clamp(40px, 8vw, 80px);
  border-radius: 50%;
  padding: 0;
  margin: 0;
}

h1, h2, h3 {
  text-align: left !important;
}
.card-link h3 {
  text-align: center !important;
}
