.hero-banner.team-hero {
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a3c31;
  text-align: center;
  overflow: visible; /* pour que les images en bas soient visibles */
  flex-direction: column; /* empile verticalement */
}


.hero-banner.team-hero .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
}

.hero-banner.team-hero .hero-content {
  position: relative;
  z-index: 3;
  margin-bottom: 120px; /* espace fixe en dessous du titre */
}

.hero-banner.team-hero h1 {
  font-family: 'Anton', sans-serif;
  font-size: 6rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0em;
  margin: 0;
}

/* Images styles */
.hero-img {
  position: absolute;
  width: auto;
  height: 450px;
  opacity: 0;
  z-index: 2;
  transition: all 1s ease-out;
  bottom: -200px; /* descente plus importante */
}


.left-img {
  left: -500px;
  animation: slideInLeft 1s forwards 0.5s;
}

.right-img {
  right: -500px;
  animation: slideInRight 1s forwards 0.5s;
}

@keyframes slideInLeft {
  to {
    left: 20px;
    opacity: 1;
  }
}

@keyframes slideInRight {
  to {
    right: 20px;
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-img {
    display: none;
  }
  .hero-banner.team-hero h1 {
    font-size: 3rem;
  }
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-top: 180px; /* valeur ajustable pour descendre */
  color: #000;
}

.hero-content .subtitle {
  font-size: 1.10rem;
  color: #333;
  margin-top: 1rem;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
    .mouse-scroll {
  width: 30px;
  height: 50px;
  border: 2px solid #000;
  border-radius: 20px;
  position: relative;
  margin: 35px auto 0; /* un peu plus espacé */
  bottom: 60px;
}

.mouse-scroll::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background-color: #000;
  border-radius: 50%;
  animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
  0% { transform: translate(-50%, 0); opacity: 1; }
  50% { transform: translate(-50%, 10px); opacity: 0.5; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  background-color: transparent; /* fond transparent */
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, background-color 0.25s ease;
  z-index: 9999;
}

.cursor.active {
  width: 36px;
  height: 36px;
  background-color: transparent; /* fond transparent aussi au hover */
}
.hero-banner .btn-custom {
  background-color: #393837;
  color: #fff;
  border: 2px solid #393837;
  border-radius: 25px;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  display: inline-block;
  text-decoration: none;
  margin-top: 30px
}

.hero-banner .btn-custom:hover {
  background-color: transparent;
  color: #393837;
  border-color: #393837;
}
.team-section-alt {
  margin-top: 8rem; /* plus bas */
  padding: 4rem 0;
  width: 100vw;
  background-color: #fff; /* fond blanc */
  display: flex;
  justify-content: center;
}

.team-section-alt .container {
  max-width: 1200px;
  width: 100%;
  padding: 0 2rem;
}

.section-title {
  font-family: 'Anton', sans-serif;
  font-size: 3rem;
  color: #393837;
  text-align: center;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Flex container for cards */
.team-members {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Flip card container */
.team-card {
  background: transparent;
  width: 360px;
  height: 480px;
  perspective: 1500px;
}

/* Flip inner wrapper */
.team-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  cursor: pointer;
}

.team-card:hover .team-card-inner {
  transform: rotateY(180deg);
}

/* Front and back face */
.team-card-front, 
.team-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 6px 6px rgba(0, 0, 0, 0.10);
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background-color: #f6ede7;
  color: #393837;
}

/* Front face */
.team-card-front {
  z-index: 2;
}

.team-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.team-card-front h3 {
  margin: 0.75rem 0 1rem 0;
  font-family: 'Anton', sans-serif;
  font-size: 2rem;
  color: #393837;
}

/* Back face */
.team-card-back {
  transform: rotateY(180deg);
  justify-content: center;
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
  padding: 3rem 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 6px 6px rgba(0, 0, 0, 0.10);
}

/* LinkedIn icon bottom on front face */
.linkedin-link {
  margin-top: auto;
}

.linkedin-link img {
  width: 36px;
  height: 36px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.linkedin-link:hover img {
  filter: none;
}


/* ---- Section Team ---- */
.team-section-alt {
  position: relative;
  padding: 80px 20px;
  overflow: hidden;
  text-align: center;
}

.team-section-alt .section-title {
  position: relative;
  font-size: 2.5rem;
  z-index: 2;
  margin-bottom: 60px; /* espace sous le titre */
}

.team-section-alt .section-title::before {
  content: "NOTRE TEAM"; /* filigrane */
  position: absolute;
  top: 55%; /* plus centré verticalement derrière le titre */
  left: 50%; /* centre horizontalement */
  transform: translate(-50%, -50%);
  font-size: 7rem;
  color: rgba(0, 0, 0, 0.05);
  font-weight: 900;
  z-index: -1;
  white-space: nowrap;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  .team-card {
    width: 90vw;
    height: auto;
  }

  .team-card-inner, 
  .team-card-front, 
  .team-card-back {
    height: auto;
    position: relative;
    transform: none !important;
    box-shadow: none;
  }

  .team-card-back {
    margin-top: 1rem;
    font-style: normal;
  }

  .team-members {
    flex-direction: column;
    gap: 2rem;
  }
}
.team-card-front .contact-info {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.3;
}

.team-card-front .contact-info a {
  color: #393837;
  text-decoration: none;
  display: block;
  margin-top: 0.25rem;
}

.team-card-front .contact-info a:hover {
  text-decoration: underline;
}

/* ---- Section Actualités ---- */
.actualites {
  position: relative;
  padding: 80px 20px;
  overflow: hidden;
}

.actualites h2 {
  position: relative;
  font-size: 2.5rem;
  z-index: 2;
}

.actualites h2::before {
  content: "ACTUALITÉS"; /* filigrane */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8rem;
  color: rgba(0, 0, 0, 0.05);
  font-weight: 900;
  z-index: -1;
  white-space: nowrap;
  pointer-events: none;
}

/* Animation des cartes */
.card {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}



/* Bouton*/
 .btn-wrapper {
  margin-top: 1.5rem; /* ou 2rem selon le rendu souhaité */
}




.btn {
  background-color: #393837;
  color: #fff;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none !important;
  font-weight: bold;
  min-width: 200px;
  text-align: center;
  font-size: 1.1rem;
  border: 2px solid transparent;
  margin: 0.5rem auto 0; /* remonte le bouton */
  display: inline-block;
  transition: all 0.3s ease;
}

/* Hover du bouton */
.btn:hover {
  background-color: transparent;
  color: #393837;
  border: 2px solid #393837;
}

.animate-section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.animate-section.visible {
  opacity: 1;
  transform: translateY(0);
}
/* ---- Section Avis ---- */

/* Ancienne règle h3 Google Reviews (conservée si besoin ailleurs) */
.google-reviews-section h3 {
  font-size: 1.2rem;
  font-weight: normal;
  line-height: 1.3;
  margin-top: 0.5em;
}

/* Section générale */
.avis-section {
  position: relative;
  padding: 100px 20px;
  background: linear-gradient(135deg, #fdfaf6, #f9f5ef);
  text-align: center;
  overflow: hidden;
}

/* Titre principal avec filigrane */
.avis-section h2 {
  position: relative;
  font-size: 2.8rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 15px;
  z-index: 2;
}

.avis-section h2::before {
  content: "RECOMMANDATIONS";
  position: absolute;
  top: 65%; /* descend un peu le filigrane */
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 7rem;
  color: rgba(0, 0, 0, 0.05);
  font-weight: 900;
  white-space: nowrap;
  pointer-events: none;
  z-index: -1;
  text-transform: uppercase;
  animation: floatText 8s ease-in-out infinite;
}

/* Sous-titre */
.avis-section h3 {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 50px;
}

/* Carrousel */
.avis-carousel {
  display: flex;
  gap: 20px;
  overflow: hidden;
  scroll-behavior: smooth;
}

/* Carte avis */
.avis-card {
  flex: 0 0 300px;
  background: #fff;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
  transition: transform .3s ease;
}
.avis-card:hover {
  transform: translateY(-8px);
}

/* Photo */
.avis-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
}

/* Commentaire */
.avis-commentaire {
  font-style: italic;
  color: #333;
  margin-bottom: 15px;
}

/* Note */
.avis-note {
  color: #d4af37;
  margin-bottom: 10px;
}

/* Nom */
.avis-nom {
  font-weight: bold;
  color: #111;
}

/* Animations filigrane */
@keyframes floatText {
  0%, 100% { transform: translate(-50%, -50%) rotate(-1deg); }
  50% { transform: translate(-50%, -52%) rotate(1deg); }
}

/* section google maps */

#localisation {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
}

#localisation h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

#localisation iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ---- Section Localisation ---- */
#localisation {
  position: relative;
  padding: 80px 20px;
  overflow: hidden;
  text-align: center;
}

#localisation h2 {
  position: relative;
  font-size: 2.5rem;
  z-index: 2;
  display: inline-block; /* permet un centrage parfait */
}

#localisation h2 {
  position: relative;
  font-size: 2.5rem;
  z-index: 2;
}

#localisation h2::before {
  content: "LOCALISATION"; /* filigrane */
  position: absolute;
  top: 65%;       /* descend légèrement */
  left: 50%;      /* centre horizontalement */
  transform: translate(-50%, -50%); /* centre exact sur le point de référence */
  font-size: 7rem;
  color: rgba(0, 0, 0, 0.05);
  font-weight: 900;
  z-index: -1;
  white-space: nowrap;
  pointer-events: none;
}

#localisation > div {
  margin-top: 40px; /* ajuste la valeur selon l’espace souhaité */
}
/* ===== Hero Banner - Mobile (max-width: 768px) ===== */
@media screen and (max-width: 768px) {
  .hero-banner.team-hero {
    height: auto;               /* Hauteur automatique pour s'adapter au contenu */
    max-height: 400px;          /* Limite maximale de hauteur */
    padding: 60px 20px 40px;    /* Espace réduit haut/bas */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;           /* Masque mascottes et images flottantes */
    text-align: center;
  }

  .hero-banner.team-hero .hero-content {
    margin-bottom: 10px;        /* Réduit l’espace sous le titre */
    position: relative;
    z-index: 2;
  }

  .hero-banner.team-hero h1 {
    font-size: 2rem;            /* Texte plus petit */
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .hero-banner.team-hero .subtitle {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #333;
  }

  .floating-mascotte {
    display: none;              /* Masque les mascottes */
  }

  .mouse-scroll {
    margin: 10px auto 0;
    width: 25px;
    height: 35px;
    bottom: 0;
    border: 2px solid #000;
    border-radius: 20px;
  }

  .mouse-scroll::before {
    width: 5px;
    height: 5px;
  }

  .hero-banner .btn-custom {
    font-size: 0.95rem;
    padding: 0.5rem 1.5rem;
    margin-top: 15px;
  }

  /* Réduire l’espace autour du hero-buttons si utilisé */
  .hero-buttons.top-buttons,
  .hero-buttons.bottom-button {
    flex-direction: column;
    gap: 8px;
  }

  /* Masquer toutes les images décoratives */
  .hero-banner.team-hero .hero-img {
    display: none;
  }
}
/* ===== Team Section - Mobile (max-width: 768px) ===== */
@media screen and (max-width: 768px) {

  /* Conteneur principal */
  .team-section-alt {
    padding: 40px 15px;       /* Réduit le padding pour mobile */
    margin-top: 4rem;         /* Réduit l’espace au-dessus */
  }

  .team-section-alt .container {
    padding: 0 10px;          /* Moins de padding latéral */
  }

  /* Titre de section */
  .team-section-alt .section-title {
    font-size: 2rem;          /* Texte plus petit */
    margin-bottom: 40px;      /* Réduit l’espace sous le titre */
  }

  .team-section-alt .section-title::before {
    font-size: 4.5rem;        /* Filigrane plus petit */
    top: 50%;
  }

  /* Cards container */
  .team-members {
    flex-direction: column;   /* Empile les cartes */
    gap: 1.5rem;              /* Moins d’espace entre les cartes */
    align-items: center;      /* Centre les cartes horizontalement */
  }

  /* Cards individuelles */
  .team-card {
    width: 95%;               /* Occupe presque toute la largeur */
    max-width: 360px;         /* Limite la taille pour ne pas dépasser */
    height: auto;             /* Ajuste automatiquement la hauteur */
    margin: 0 auto;
  }

  .team-card-inner,
  .team-card-front,
  .team-card-back {
    height: auto;
    transform: none !important; /* Désactive le flip pour mobile */
    box-shadow: 0 6px 10px rgba(0,0,0,0.08); /* Ombrage plus léger */
    padding: 1.5rem;         /* Réduit le padding interne */
  }

  .team-card-back {
    margin-top: 1rem;
    font-size: 0.95rem;       /* Texte légèrement plus petit */
    font-style: normal;       /* Pas d’italique */
    line-height: 1.4;
  }

  .team-card-front h3 {
    font-size: 1.5rem;        /* Nom plus petit */
  }

  .team-photo {
    width: 140px;              /* Photo plus petite */
    height: 140px;
    margin-bottom: 1rem;
  }

  .linkedin-link img {
    width: 28px;               /* Icône LinkedIn plus petite */
    height: 28px;
  }

  .team-card-front .contact-info {
    font-size: 0.85rem;
  }
}
