/* ==========================================
   PAGE ACCUEIL (INDEX) - ASSOCIATION BEAUFIEF
   Styles spécifiques à la page d'accueil uniquement.
   Les styles globaux (header, footer, nav, etc.)
   sont définis dans style.css
========================================== */

/* ==========================================
   VIDÉO BANNIÈRE
========================================== */
.video-sticky-wrapper {
  position: relative;
  height: 85vh;
  overflow: hidden;
  z-index: 0;
  width: 100%;
  max-width: 100vw;
}
.video-sticky-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
section.video-banner {
  height: 85vh;
  position: relative;
  z-index: 0;
  overflow: hidden;
  width: 100%;
}
section.video-banner + section {
  position: relative;
  z-index: 1;
  background: var(--beige-lin);
}

/* Dégradé bas pour montrer qu'il y a du contenu en dessous */
.video-sticky-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, rgba(246, 240, 230, 0.85));
  z-index: 2;
  pointer-events: none;
}

/* Flèche de scroll animée */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.scroll-indicator span {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--jaune-moutarde);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.scroll-arrow {
  width: 44px;
  height: 44px;
  border: 3px solid var(--jaune-moutarde);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 1.8s ease-in-out infinite;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
}
.scroll-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--terre-cuite);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ==========================================
   HERO SECTION
========================================== */
.hero {
  padding: 60px 0;
  background: linear-gradient(135deg, rgba(246, 240, 230, 0.95), rgba(92, 111, 92, 0.05));
  position: relative;
  overflow: hidden;
  width: 100%;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(216, 178, 74, 0.15), transparent);
  border-radius: 50%;
}
.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h2 {
  font-family: var(--font-title);
  font-size: 2.6rem;
  color: var(--terre-cuite);
  margin-bottom: 12px;
  line-height: 1.1;
}
.hero p {
  font-size: 1.05rem;
  margin-bottom: 18px;
  color: var(--texte);
}
.hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.hero-card {
  background: var(--blanc);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-card h2.hero-card-title, .hero-card h3 {
  font-family: var(--font-title);
  color: var(--vert-sauge);
  margin-bottom: 12px;
  font-size: 1.2rem;
}
.hero-card ul {
  list-style: none;
  margin-top: 10px;
}
.hero-card ul li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  color: var(--gris);
}
.hero-card ul li:last-child {
  border-bottom: none;
}

/* ==========================================
   PRÉSENTATION GRID
========================================== */
.presentation-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: center;
}
.presentation-grid img {
  border-radius: 16px;
  width: 100%;
  object-fit: cover;
}
.presentation-grid h2 {
  font-family: var(--font-title);
  color: var(--terre-cuite);
  font-size: 2rem;
  margin-bottom: 15px;
}
.presentation-grid p {
  margin-bottom: 15px;
  color: var(--texte);
}
.values-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.value-item h3.value-title, .value-item h4 {
  font-family: var(--font-title);
  color: var(--terre-cuite);
  margin: 0;
  font-size: 1rem;
}
.value-icon::before {
  content: '✓';
  display: flex;
  width: 35px;
  height: 35px;
  background: var(--jaune-moutarde);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--blanc);
  font-weight: 700;
  font-size: 20px;
}

/* ==========================================
   MEMBRES ASSOCIÉS & PARTENAIRES
========================================== */
.membres-section {
  margin-top: 55px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.membres-bloc {
  background: var(--blanc);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.membres-bloc-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 25px;
}
.membres-bloc-header--associes {
  background: linear-gradient(135deg, rgba(180, 70, 58, 0.08), rgba(180, 70, 58, 0.03));
  border-bottom: 3px solid var(--terre-cuite);
}
.membres-bloc-header--partenaires {
  background: linear-gradient(135deg, rgba(92, 111, 92, 0.08), rgba(92, 111, 92, 0.03));
  border-bottom: 3px solid var(--vert-sauge);
}

.membres-bloc-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.membres-bloc-header h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  margin-bottom: 3px;
}
.membres-bloc-header--associes h3 { color: var(--terre-cuite); }
.membres-bloc-header--partenaires h3 { color: var(--vert-sauge); }

.membres-bloc-header p {
  font-size: 0.85rem;
  color: var(--gris);
  margin: 0;
}

.membres-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 25px;
}

.membre-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  background: var(--beige-lin);
  color: var(--texte);
  transition: 0.2s;
}
.membre-tag:hover {
  transform: translateX(4px);
}
.membre-tag--placeholder {
  opacity: 0.45;
  font-style: italic;
  font-weight: 400;
}

.membre-tag-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--terre-cuite);
}

.membres-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 25px;
  text-align: center;
  color: var(--gris);
  font-size: 0.95rem;
}
.membres-coming-icon {
  font-size: 2.2rem;
  opacity: 0.5;
}
.membres-coming-soon p { margin: 0; }

@media (max-width: 768px) {
  .membres-section {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   RESPONSIVE - TABLETTES (max-width: 992px)
========================================== */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero h2 {
    font-size: 2.2rem;
  }
  .presentation-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .video-sticky-wrapper,
  section.video-banner {
    height: 70vh;
  }
}

/* ==========================================
   RESPONSIVE - MOBILES (max-width: 768px)
========================================== */
@media (max-width: 768px) {
  .hero {
    padding: 40px 0;
  }
  .hero h2 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .hero-card {
    padding: 20px;
  }
  .video-sticky-wrapper,
  section.video-banner {
    height: 50vh;
    /* Sur mobile, désactiver le sticky pour éviter les bugs de scroll */
    position: relative;
  }
  .video-sticky-wrapper {
    position: relative;
    top: auto;
  }
}

/* ==========================================
   RESPONSIVE - PETITS MOBILES (max-width: 480px)
========================================== */
@media (max-width: 480px) {
  .hero h2 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 0.9rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions a {
    width: 100%;
    text-align: center;
  }
  .video-sticky-wrapper,
  section.video-banner {
    height: 40vh;
  }
}

/* ==========================================
   RESPONSIVE - TRÈS PETITS MOBILES (max-width: 400px)
========================================== */
@media (max-width: 400px) {
  .hero h2 {
    font-size: 1.3rem;
  }
}

/* ==========================================
   GRILLE 4 COLONNES (espaces & activités)
   Le style inline a été retiré du HTML,
   on redéfinit ici avec le responsive.
========================================== */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   RESPONSIVE SUPPLÉMENTAIRE
========================================== */
@media (max-width: 992px) {
  .footer-grid-main {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 768px) {
  .histo-item {
    grid-template-columns: 20px 1fr !important;
    grid-template-rows: auto auto;
  }
  .histo-year { grid-column: 2; }
  .histo-content { grid-column: 2; }
  .histo-dot { grid-row: 1 / 3; }
  .stats-grid-3 {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
}
@media (max-width: 560px) {
  .footer-grid-main {
    grid-template-columns: 1fr !important;
  }
}