/* 👥 STYLES SPÉCIFIQUES POUR LA PAGE QUI SOMMES-NOUS - IDENTIQUE À L'ORIGINAL ASTRO */

/* === STYLES POUR LE TEXTE D'INTRODUCTION AMÉLIORÉ === */
.introduction-texte {
  margin-bottom: 3rem;
}

.introduction-texte p {
  color: #4a5568;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
  margin: 0;
  text-indent: 1.5rem;
  
  /* Améliorer la lisibilité */
  hyphens: auto;
  word-spacing: 0.1em;
}

/* === STYLES POUR LES TITRES DE SECTION === */
.equipe-intro-header {
  text-align: center;
  margin-bottom: 2rem;
}

.equipe-intro-header h2 {
  color: #212B79;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.equipe-intro-subtitle {
  color: #212B79;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
  font-style: italic;
}

/* === STYLES POUR DISPOSITION EN QUINQUONCE === */
.texte-image-quinquonce,
.pascal-quinquonce,
.parcours-quinquonce {
  margin: 3rem 0;
}

.quinquonce-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
  padding: 2rem 0;
}

.quinquonce-item.quinquonce-reverse {
  grid-template-columns: 1fr 1fr;
}

.quinquonce-item.quinquonce-reverse .quinquonce-image {
  grid-column: 1;
}

.quinquonce-item.quinquonce-reverse .quinquonce-texte {
  grid-column: 2;
}

.quinquonce-texte {
  padding: 1.5rem;
}

.quinquonce-texte p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4a5568;
  margin: 0;
}

.quinquonce-image {
  text-align: center;
}

.quinquonce-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quinquonce-img:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.quinquonce-final {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
  margin-top: 3rem;
  border-left: 4px solid #212B79;
}

.quinquonce-final p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4a5568;
  margin: 0;
}

.parcours-section {
  margin-top: 4rem;
}

.parcours-section h3 {
  text-align: center;
  color: #212B79;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

/* === RESPONSIVITÉ POUR LE TEXTE === */
@media (max-width: 768px) {
  .introduction-texte p {
    font-size: 1rem;
    line-height: 1.7;
    text-indent: 1rem;
    text-align: left;
  }
  
  .equipe-intro-header h2 {
    font-size: 2rem;
  }
  
  .equipe-intro-subtitle {
    font-size: 1.2rem;
  }
  
  /* Responsive pour quinquonce */
  .quinquonce-item,
  .quinquonce-item.quinquonce-reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: center;
  }
  
  .quinquonce-item.quinquonce-reverse .quinquonce-image,
  .quinquonce-item.quinquonce-reverse .quinquonce-texte {
    grid-column: 1;
  }
  
  .quinquonce-img {
    height: 200px;
    max-width: 350px;
    margin: 0 auto;
  }
  
  .quinquonce-texte {
    padding: 1rem;
  }
  
  .quinquonce-texte p {
    font-size: 1rem;
  }
  
  .parcours-section h3 {
    font-size: 1.5rem;
  }
}

.hero-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-logo {
  max-width: 150px;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.hero {
  background: #f8fafc;
  color: #1a202c;
  padding: 6rem 0;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

/* Bannière image derrière "UNE ÉQUIPE" */
.hero-equipe {
  position: relative;
  background: none;
  color: #fff;
}
.hero-equipe::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/union.png') center/cover no-repeat;
  filter: brightness(0.9);
}
/* Variante bannière pour la page Rôle du Maire */
.hero-equipe.hero-equipe--mairie::before {
  background: url('../assets/images/Flyer1-Mairie.png') center/cover no-repeat;
}
.hero-equipe::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.4) 100%);
}
.hero-equipe .container {
  position: relative;
  z-index: 1;
}
.hero-equipe h1 {
  color: #62AD2B;
  text-shadow: 0 3px 12px rgba(0,0,0,0.65);
  font-size: 3.25rem;
}
.hero-equipe .hero-subtitle { color: #f0f4f8; }
.hero-equipe .hero-logo { display: none; }

/* Panneau translucide derrière le titre pour meilleure lisibilité */
.hero-equipe .hero-banner {
  background: rgba(0,0,0,0.2);
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

@media (max-width: 768px) {
  .hero-equipe h1 { font-size: 2.25rem; }
  .hero-equipe .hero-banner { padding: 1.25rem 1.5rem; }
}

.hero h1 {
  color: #f0f4f8;
  font-size: 3rem;
  margin: 0;
  font-weight: 700;
  text-align: center;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #4a5568;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}

.team-intro {
  text-align: center;
  font-size: 1.1rem;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto 3rem auto;
  line-height: 1.6;
}

/* Bloc d'intro sans images */
.equipe-intro-full p {
  color: #4a5568;
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0 0 1rem 0;
  text-align: justify;
}

/* Crée une respiration entre les deux blocs d'intro */
.equipe-block-gap {
  clear: both;
  margin-top: 3rem;
  padding-top: 0.75rem;
}

/* Séparateur visuel entre les deux blocs */
/* .equipe-divider supprimé (plus de trait visuel) */

/* Galerie d'images des étangs */
.etangs-block { margin-top: 1.5rem; }
.etangs-title {
  text-align: center;
  color: #212B79;
  margin: 1rem 0 0.75rem 0;
  font-size: 1.6rem;
}
.etangs-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.etangs-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.etangs-gallery img:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.16);
}
@media (max-width: 480px) {
  .etangs-gallery img { height: 150px; }
}

/* Variante image unique */
.etang-single { text-align: center; }
.etang-single img {
  float: right;
  width: 38%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  margin: -0.5rem 0 1.1rem 1.25rem;
  /* Améliorer l'habillage du texte autour de l'image */
  shape-outside: inset(0 round 12px);
  shape-margin: 10px;
}
/* Variante flottante à gauche, même taille et style */
.etang-single-left img {
  float: left;
  width: 38%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  margin: -0.5rem 1.25rem 1.1rem 0;
  shape-outside: inset(0 round 12px);
  shape-margin: 10px;
}
.etang-float-right {
  float: right;
  width: 34%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  margin: 0 0 1.1rem 1.25rem;
  shape-outside: inset(0 round 12px);
  shape-margin: 10px;
}

.etang-float-left {
  float: left;
  width: 34%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  margin: 0 1.25rem 1.1rem 0;
  shape-outside: inset(0 round 12px);
  shape-margin: 10px;
}

/* Corriger les marges négatives qui causent des problèmes */
@media (min-width: 769px) {
  .etang-single img {
    margin-top: 0.5rem; /* Éviter les marges négatives qui causent des superpositions */
  }
  .etang-single-left img {
    margin-top: 0.5rem; /* Éviter les marges négatives qui causent des superpositions */
  }
}

@media (max-width: 768px) {
  .etang-single img, .etang-single-left img,
  .etang-float-right, .etang-float-left { float: none; width: 100%; margin: 0 0 1rem 0; }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Message d'équipe à venir */
.team-completion-notice {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 600;
  color: #212B79;
  margin-top: 1.25rem;
}

/* ==============================================
   👨‍💼 SECTION PASCAL SERGENT
   ============================================== */

.pascal-section h3 {
  color: #000;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  margin: 2rem 0 1rem 0;
}

.italic-quote {
  font-style: italic;
  color: #4a5568;
  font-size: 1.1rem;
}

.italic-quote::before,
.italic-quote::after {
  color: #62AD2B;
  font-size: 2rem;
  font-weight: bold;
}

.italic-quote::before {
  content: '"';
}

.italic-quote::after {
  content: '"';
}

.pascal-section {
  background: white;
}

.pascal-section h2 {
  color: #212B79;
  text-align: center;
  margin-bottom: 2rem;
}

.pascal-content {
  max-width: 900px;
  margin: 0 auto;
}

.pascal-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 1.5rem;
  text-align: justify;
}

/* Image intégrée dans le texte de Pascal */
.leader-inline-image {
  float: left;
  width: 180px;
  height: auto;
  border-radius: 8px;
  margin: 0 1rem 0.75rem 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border: 3px solid #fff;
}

@media (max-width: 768px) {
  .leader-inline-image {
    float: none;
    display: block;
    margin: 0 auto 1rem auto;
    width: 55%;
    max-width: 240px;
  }
}

/* ==============================================
   📢 MESSAGE ÉQUIPE À VENIR
   ============================================== */

.team-coming-soon {
  background: #f8fafc;
  padding: 2rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.coming-soon-message {
  text-align: center;
  font-size: 1.1rem;
  color: #64748b;
  font-style: italic;
  margin: 0;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #62AD2B;
  max-width: 600px;
  margin: 0 auto;
}


/* ==============================================
   👤 CARTES MEMBRES DE L'ÉQUIPE - STYLES ORIGINAUX EXACTS
   ============================================== */

.person-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(98, 173, 43, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.person-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #62AD2B, #4a8520);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.person-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.person-card:hover::before {
  transform: scaleX(1);
}

.person-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  border: 3px solid #62AD2B;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.person-photo::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: rgba(98, 173, 43, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.person-card:hover .person-photo::after {
  opacity: 1;
}

.person-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.person-card:hover .person-image {
  transform: scale(1.1);
}

.person-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.person-info h3 {
  color: #212B79;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.person-role {
  color: #62AD2B;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.person-description {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  font-style: italic;
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  flex: 1;
}

/* Éléments du composant CarteElu original */
.member-main-content {
  flex: 1;
}

.member-quote {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 4px solid #62AD2B;
  padding: 1.2rem;
  margin: 1rem 0 0 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #1e40af;
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
  min-height: 80px;
  display: flex;
  align-items: center;
}

.member-quote::before {
  content: '"';
  position: absolute;
  top: -5px;
  left: 10px;
  font-size: 2rem;
  color: #62AD2B;
  line-height: 1;
}

.team-member-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.learn-more {
  color: #62AD2B;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.person-card:hover .learn-more {
  color: #4a8520;
}

.person-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 2rem;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.person-card:hover .person-overlay {
  opacity: 1;
  transform: translateY(0);
}

.person-btn {
  background: linear-gradient(135deg, #212B79 0%, #1a2261 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.person-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -3px rgba(33, 43, 121, 0.2);
}

/* ==============================================
   📱 MODAL POUR LES MEMBRES - STYLES ORIGINAUX
   ============================================== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  transform: translateY(50px) scale(0.9);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.modal.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #64748b;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  z-index: 1001;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.modal-photo {
  flex-shrink: 0;
}

.modal-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 4px solid #62AD2B;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.modal-info {
  flex: 1;
}

.modal-role {
  color: #62AD2B;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 1rem 0;
}

.modal-bio {
  color: #4a5568;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.modal-citation {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 4px solid #62AD2B;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #1e40af;
  position: relative;
}

.modal-citation::before {
  content: '"';
  position: absolute;
  top: -5px;
  left: 10px;
  font-size: 2rem;
  color: #62AD2B;
  line-height: 1;
}

/* .modal-contact {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid #62AD2B;
} */

.modal-contact p {
  margin: 0;
  font-size: 0.95rem;
}

.modal-contact a {
  color: #62AD2B;
  text-decoration: none;
}

.modal-contact a:hover {
  text-decoration: underline;
}

/* ==============================================
   💎 SECTION VALEURS - STYLES ORIGINAUX
   ============================================== */

.vision-section {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.vision-content {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.vision-text {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-item {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(98, 173, 43, 0.1);
  transition: all 0.3s ease;
}

.value-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.value-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #62AD2B;
}

.value-item h3 {
  color: #212B79;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.value-item p {
  color: #64748b;
  line-height: 1.6;
  font-size: 1rem;
}

/* ==============================================
   📝 PHILOSOPHIE DE L'ÉQUIPE
   ============================================== */

.equipe-philosophy {
  max-width: 900px;
  margin: 0 auto;
}

.equipe-philosophy p {
  font-size: 1rem;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.equipe-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

/* ==============================================
   📱 RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 768px) {
  .hero {
    padding: 4rem 0;
  }
  
  .hero-banner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .hero h1 {
    font-size: 2rem;
    text-align: center;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .team-intro {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .person-card {
    padding: 1.5rem;
  }
  
  .vision-text {
    font-size: 1.1rem;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .value-item {
    padding: 1.5rem;
  }

  .modal-content {
    width: 95%;
    margin: 1rem;
    max-height: 85vh;
  }
  
  .modal-body {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .modal-photo {
    align-self: center;
    flex-shrink: 0;
  }
  
  .modal-image {
    width: 100px;
    height: 100px;
  }
}
