/* -------------------------------
   Réinitialisation générale
--------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Lexend', sans-serif;
}

/*################################################################
# Permet de gérer le margin global entre les éléments principaux #
##################################################################*/
#main-content{
  margin: 200px auto;
}


/* ✅ Écran de chargement avec le logo */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1a3a66;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;                   /*A mettre à plus de 1 obligatoirement afin que le header et le footer ne soient pas affichés durant l'animation de lancement */
  transition: opacity 0.8s ease-out;
}

/* Affichage du logo (2s avant disparition) */
#loading-logo {
  width: 500px;
  max-width: 100%;
  opacity: 1;
  display: block;
  animation: fadeOutLogo 1s ease-in-out 2s forwards;
}

/* Centrer le contenu (logo + texte) */
#loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Style du texte */
#loading-text {
  font-size: 24px;
  color: white;
  margin-top: 15px;
  opacity: 1;
  animation: fadeOutLogo 1s ease-in-out 2s forwards;
}

/* nimation de disparition du logo */
@keyframes fadeOutLogo {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

/* ✅ Animation d'apparition du site */
@keyframes siteAppear {
  0% {
    opacity: 0;
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

/* ==========================
   ✅ Navbar principale
========================== */

.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 1000;
}

.navbar-logo {
  height: 75px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 21px;
  cursor: pointer;
}

.nav-links a:hover {
  color: #ffcc00;
  transform: scale(1.10);
  transition: 0.2s;
}

.burger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.burger-menu .bar {
  transition: transform 0.3s ease, opacity 0.3s ease;
  width: 35px;
  height: 4px;
  background: white;
  margin: 5px 0;
  transition: 0.3s;
}

.burger-menu.open .bar:nth-child(1) {
  transform: translateY(12px) rotate(-45deg);
}

.burger-menu.open .bar:nth-child(2) {
  opacity: 0;
}

.burger-menu.open .bar:nth-child(3) {
  transform: translateY(-12px) rotate(45deg);
}

@media screen and (max-width: 768px) {
  .contact-page {
    padding: 0 15px;
  }
  
  .contact-container {
    padding: 20px;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 220px;
    gap: 10px;
    transition: left 0.3s ease-in-out;
    z-index: 999;
  }

  .nav-links.open {
    left: 0;
  }

  .nav-links a {
    color: white;
    font-size: 24px;
    text-decoration: none;
    padding: 10px;
    margin-top: 5px;
    transition: color 0.3s ease;
  }

  .nav-links a:hover {
    color: #ffcc00;
  }

  .burger-menu {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 1000;
    position: absolute;
    top: 15px;
    right: 15px;
  }

  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

  .overlay.active {
    display: block;
  }
}

/* -------------------------------
   Corps de la page
--------------------------------- */

body {
  position: relative;
  background: linear-gradient(135deg, #1a3a66, #223b5f, #2c4673, #354d7b);
  background-size: 400% 400%;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: background-position;
  min-height: 100vh;    /* Le body prend toute la hauteur de la fenêtre, ce qui permet que les éléments des "fausses" pages prennent toute la place et que le footer soit collé en bas */
}


@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* -------------------------------
   Section pour centrer le contenu
--------------------------------- */
.contact-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* -------------------------------
   Section formulaire de contact
--------------------------------- */
.contact-container {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  max-width: 500px;
  /* Animation d'apparition plus prononcée */
  animation: pronouncedFadeInUp 1s ease-out;
}

@keyframes pronouncedFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0px) scale(1);
  }
}

.contact-container .logo {
  display: block;
  width: 80%;
  margin: 0 auto 20px;
}

.contact-container h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

input, textarea, button {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #007BFF;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

textarea {
  resize: vertical;
}

button {
  background: linear-gradient(135deg, #007BFF, #0056b3);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

button:hover {
  background: linear-gradient(135deg, #0056b3, #003f7f);
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  box-shadow: none;
}

.spinner {
  margin-right: 8px;
}

/* -------------------------------
   Icônes des réseaux sociaux
--------------------------------- */
.social-icons {
  margin-top: 25px;
  text-align: center;
}

.social-icons a {
  color: #fff;
  margin: 0 15px 15px;
  font-size: 2rem;
  transition: color 0.3s ease, transform 0.2s;
  display: inline-block;
}

.social-icons a:hover {
  color: #ffcc00;
  transform: scale(1.1);
}

.social-icons i {
  vertical-align: middle;
}

/* Adaptation de la séparation pour le format téléphone */
@media screen and (max-width: 768px) {
  .contact-page {
    margin-bottom: 125px; /* Ajustez cette valeur selon vos besoins */
  }
}

/* -------------------------------
   Section "Nos partners"
--------------------------------- */
#partners {
  text-align: center;
  padding: 15px;
  border-radius: 15px;
  max-width: 1200px;
  width: 100%;
  margin: 20px auto;
  animation: fadeInDown 1s ease-out;
}

/* Animation d'apparition */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#partners h2 {
  font-size: 2rem;
  margin-bottom: 60px;
}

.partners-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

#partner-event-selector {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
}

#partner-event-selector button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #007BFF;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
  width: auto;
}

#partner-event-selector button.active {
  background: #1a3a66;
  color: #ffcc00;
  border: 2px solid #ffcc00;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.7);
}

#partner-event-selector button:hover {
  background: #1a3a66;
  color: #ffcc00;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  width: 100%;
}

.partner-card {
  border-radius: 10px;
  padding: 15px;
  width: 180px;
  text-align: center;
  transition: transform 0.4s, box-shadow 0.4s, color 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: default;
}

.partner-card:hover {
  transform: scale(1.10);
  box-shadow: 0 0px 12px rgba(255, 255, 255, 0.3);
}

.partner-card:hover .partner-name {
  color: #ffcc00;
}

.partner-card img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}

.partner-card .partner-name {
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  transition: color 0.4s;
  cursor: pointer;
}

.partner-card .partner-name:hover {
  color: #ffcc00;
}

.promo-code {
  margin-top: 8px;
  background: rgba(255, 204, 0, 0.2);
  color: #ffcc00;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: fit-content;
  min-width: 120px;
  transition: background 0.4s, transform 0.4s;
  cursor: pointer;
  flex-wrap: wrap;
  gap: 6px;
}

.promo-code:hover {
  transform: scale(1.05);
  background: rgba(255, 204, 0, 0.4);
}

.copy-icon {
  color: #ffcc00;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
}

.copy-icon:hover {
  color: #ffffff;
  transform: scale(1.2);
}

@media screen and (max-width: 768px) {
  .partner-card {
    width: calc(50% - 20px);
  }
  .promo-code {
    font-size: 13px;
    padding: 5px 10px;
    min-width: auto;
  }
  .copy-icon {
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  #partner-event-selector button {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .partner-card img {
    height: 60px;
  }
  .partner-card .partner-name {
    font-size: 0.85rem;
  }
  .promo-code {
    font-size: 11px;
    padding: 4px 6px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 80px;
  }
  .copy-icon {
    font-size: 12px;
  }
}

@keyframes fadeInPartners {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  animation: fadeInPartners 0.5s ease-in-out;
}

/* ==========================
   ✅ Footer Principal
========================== */

footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  z-index: 1000;
}


.footer-container {
  display: flex;
  width: 100%;
  /* Garder ou retirer max-width selon que vous vouliez
     centrer le contenu ou non */
  max-width: 1200px;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 25px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s, transform 0.2s;
}

.footer-links a:hover {
  color: #ffcc00;
  transform: scale(1.1);
}

.back-to-top {
  background: #ffcc00;
  color: black;
  font-weight: bold;
  padding: 10px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.back-to-top:hover {
  background: #d4a700;
  transform: scale(1.1);
}

@media screen and (max-width: 768px) {
  .footer {
    position: relative;
    flex-direction: column;
    text-align: center;
    }
  .footer-container {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  .partners-container {
    margin-bottom: 50px;
  }
}

/* ✅ Effet de flou sur l'arrière-plan quand la modale est ouverte */
body.modal-open {
  overflow: hidden;
}

body.modal-open::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 999;
}

/* ✅ Animation d'apparition */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeOutScale {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.3);
  }
}

/* ✅ Styles de la modal */
.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal.hide {
  opacity: 0;
  visibility: hidden;
}

.modal-content {
  background: white;
  color: black;
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
  text-align: center;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  animation: fadeInScale 0.3s ease-out forwards;
}

.modal.hide .modal-content {
  animation: fadeOutScale 0.3s ease-out forwards;
}

.close-modal {
  position: absolute;
  top: -10px;
  right: 8px;
  font-size: 42px;
  cursor: pointer;
  color: red;
}

.close-modal:hover {
  transition: transform 0.2s;
  transform: scale(1.30);
}

.modal-title {
  margin-bottom: 35px;
  font-size: 28px;
}

.assoc-contact,
.cloudflare-contact {
  color: #007BFF;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: all 0.2s ease-in-out;
}

.assoc-contact:hover,
.cloudflare-contact:hover {
  text-decoration: none;
  color: #0056b3;
  transform: scale(1.10);
}

.separator {
  height: 1px;
  margin: 15px 0;
  background: #ddd;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

/* Gestion des cookies */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 20px;
  text-align: left;
  font-size: 16px;
  z-index: 10000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

#cookie-banner.show {
  transform: scale(1);
  opacity: 1;
}

.cookie-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

#accept-cookies {
  background: #28a745;
  color: white;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s;
  width: 150px;
  text-align: center;
}

#accept-cookies:hover {
  background: #218838;
}

#decline-cookies {
  background: #dc3545;
  color: white;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s;
  width: 150px;
  text-align: center;
}

#decline-cookies:hover {
  background: #c82333;
}

/* ------------------------------------
      Galerie d'évènements
-------------------------------------- */
html, body {
  overflow-x: hidden;
}

#gallery-selector-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  animation: fadeInUpGallery 1s ease-out; /* Animation d'apparition */
}

@keyframes fadeInUpGallery {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#gallery-event-selector {
  display: flex;
  justify-content: center;
  gap: 10px;
}
#gallery-event-selector button {
  background: #007BFF;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
}
#gallery-event-selector button.active {
  background: #1a3a66;
  color: #ffcc00;
  border: 2px solid #ffcc00;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.7);
}
#gallery-event-selector button:hover {
  background: #1a3a66;
  color: #ffcc00;
}

#event-preview-thumbnails {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}
#event-preview-thumbnails img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s;
}
#event-preview-thumbnails img:hover {
  transform: scale(1.05);
}

#open-gallery-button {
  background: #28a745;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
  width: auto;
}
#open-gallery-button:hover {
  background: #218838;
}

@media (max-width: 768px) {
  #open-gallery-button {
    max-width: auto;
    font-size: 14px;
    padding: 8px 12px;
  }
}

#gallery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  z-index: 1000;
  padding: 20px;
}

#gallery-overlay-close {
  position: fixed;
  top: 10px;
  right: 50px;
  font-size: 65px;
  color: #ff0000;
  cursor: pointer;
  transform-origin: center;
  transition: transform 0.3s ease, color 0.3s ease;
}
#gallery-overlay-close:hover {
  transform: scale(1.35);
  color: #cc0000;
}

.gallery-grid-overlay {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  width: 90%;
  max-width: 1200px;
  margin: 80px auto 0;
}
.gallery-grid-overlay img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s;
}
.gallery-grid-overlay img:hover {
  transform: scale(1.05);
}

/* ---------------------------------------------------
   Conteneur global de la lightbox
--------------------------------------------------- */
#lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

/* ---------------------------------------------------
   Conteneur du contenu : image + flèches
--------------------------------------------------- */
.lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 95%;
  max-height: 90vh;
  padding: 10px;
  overflow: visible;
}

@media (min-width: 768px) {
  .lightbox-content {
    width: 70%;
    max-width: 800px;
    max-height: 70vh;
  }
}

#lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 5px;
  width: auto;
  height: auto;
}

#lightbox-close {
  position: fixed;
  top: 10px;
  right: 50px;
  font-size: 65px;
  color: #ff0000;
  cursor: pointer;
  transform-origin: center;
  transition: transform 0.3s ease, color 0.3s ease;
}
#lightbox-close:hover {
  transform: scale(1.35);
  color: #cc0000;
}

.lightbox-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 65px;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #ffcc00;
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s, transform 0.2s;
}

.lightbox-nav-button:hover {
  background: rgba(0,0,0,0.7);
  transform: translateY(-50%) scale(1.2);
}

.lightbox-nav-button.left {
  left: -100px;
}
.lightbox-nav-button.right {
  right: -100px;
}

@media (max-width: 768px) {
  #event-preview-thumbnails {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 10px;
  }
  #event-preview-thumbnails img:nth-child(n+3) {
    display: none;
  }

  #gallery-overlay {
    padding: 20px 10px;
  }
  .gallery-grid-overlay {
    width: 100%;
    padding: 0 10px;
    margin: 80px auto 0;
  }

  #event-preview-thumbnails img:hover,
  .gallery-grid-overlay img:hover {
    transform: none;
  }

  #lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 65px;
    color: #ff0000;
    cursor: pointer;
    transform-origin: center;
  }
  #lightbox-close:hover {
    color: #ff0000;
  }
  .lightbox-nav-button {
    font-size: 50px;
    padding: 10px;
    transition: none;
  }
  .lightbox-nav-button.left {
    left: 50px;
  }
  .lightbox-nav-button.right {
    right: 50px;
  }
  .lightbox-nav-button:hover {
    background: rgba(0,0,0,0.5);
    transform: translateY(-50%);
  }
}

/* =========================
   Section "Notre équipe"
========================= */

.team-page {
  width: auto;
  margin: 0 auto;
  margin-bottom: 50px;
}

.team-container {
  border-radius: 15px;
  padding: 25px;
  background-color: #1a3a66; /* couleur de fond mise à jour */
}

/* Titre */
.team-container h2 {
  font-size: 2rem;
  margin-bottom: 35px;
  color: #fff;
  text-align: center;
}

/* Conteneur flex pour les cartes */
.team-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
}

/* Cartes des membres */
.team-member {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  width: 220px;
  text-align: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s, box-shadow 0.4s, height 0.3s ease;
  position: relative;
  cursor: default;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: var(--fade-delay, 0s);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 0;
  height: 100%;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 0px 12px rgba(255, 255, 255, 0.3);
}

/* Photo */
.team-member-photo img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ffcc00;
  margin-bottom: 15px;
}

/* Nom et rôle */
.member-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 5px;
}

.member-role {
  font-size: 1rem;
  color: #ffcc00;
  margin-bottom: 15px;
}

/* Liens sociaux */
.team-member-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 48px; /* Hauteur fixe pour maintenir l'espace */
  padding: 5px 0; /* Espacement vertical réduit */
}

.team-member-social a {
  font-size: 2.5rem;
  color: #fff;
  transition: color 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  transform: scale(1.1); /* Applique le scale par défaut */
  transform-origin: center center; /* Assure que le scale s'applique depuis le centre */
}

.team-member-social a:hover {
  color: #ffcc00;
  transform: scale(1.2); /* Légère augmentation au survol */
}

/* Structure de la carte */
.team-member-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Éléments principaux de la carte */
.team-member-photo,
.member-name,
.member-role {
  flex-shrink: 0;
}

.team-member-photo {
  margin-bottom: 15px;
}

.member-name {
  margin: 0 0 5px 0;
  line-height: 1.2;
  min-height: 2.4em; /* Hauteur minimale pour deux lignes de texte */
}

.member-role {
  margin: 0 0 15px 0;
  line-height: 1.2;
  min-height: 1.2em; /* Hauteur minimale pour une ligne de texte */
}

/* Conteneur pour le bouton et les réseaux sociaux */
.team-member-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bouton En savoir plus */
.toggle-description {
  background-color: transparent;
  border: 1px solid #ffcc00;
  border-radius: 5px;
  padding: 8px 15px;
  color: #ffcc00;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 15px 0;
  display: inline-block;
  width: auto;
  align-self: center;
  flex-shrink: 0;
}

.toggle-description:hover {
  background-color: #ffcc00;
  color: #000;
  transform: translateY(-2px);
}

/* -- Keyframes pour le fade + slide up -- */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   Overlay de description
========================= */
.description-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
}

/* On rend le contenu scrollable si trop grand */
.description-content {
  background: linear-gradient(135deg, #1a3a66, #223b5f, #2c4673, #354d7b);
  border-radius: 15px;
  padding: 30px;
  width: 80%;
  max-width: 600px;
  color: #fff;
  position: relative;
  animation: fadeInScale 0.3s ease-out forwards;

  /* ✅ Hauteur max + scroll */
  max-height: 80vh;     /* On limite à 80% de la hauteur de la fenêtre */
  overflow-y: auto;     /* Active la barre de défilement interne si besoin */
}

/* Animation de fermeture */
.fade-out {
  animation: fadeOutScale 0.3s ease-out forwards;
}

/* Bouton de fermeture */
.close-overlay {
  position: absolute;
  top: 0px;
  right: 15px;
  font-size: 45px;
  cursor: pointer;
  color: red;
  transition: transform 0.3s;
}

.close-overlay:hover {
  transform: scale(1.4);
}

/* Photo dans l'overlay */
.desc-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #ffcc00;
  display: block;
  margin: 15px auto;
}

/* Rôle dans l'overlay */
.desc-role {
  font-size: 1.2rem;
  color: #ffcc00;
  text-align: center;
  margin-bottom: 10px;
  margin-top: 10px;
}

/* Texte de la description */
.desc-text {
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 25px;
}

/* Animation d'apparition pour l'overlay */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation de fermeture pour l'overlay */
@keyframes fadeOutScale {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
}

/* =========================
   Responsive : Tablette (max-width: 768px)
========================= */
@media screen and (max-width: 768px) {
  .team-cards {
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
  }
  .team-member {
    width: calc(50% - 20px);
    margin: 0 0 20px 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }

  .team-member-photo img {
    width: 100px;
    height: 100px;
  }
  .member-name {
    font-size: 1.1rem;
    margin: 10px 0 5px;
  }
  .member-role {
    font-size: 1rem;
    margin: 0 0 15px;
  }
}
