/* ==========================================================================
   BAO · enhancements.css
   Animations au scroll, Témoignages, Blog, Annuaire membres
   ========================================================================== */

/* ===== Scroll reveal animations =====
   Uniquement si JS actif (classe .js posée dans le <head>) : sans JS, tout reste visible. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.js [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.js [data-reveal-stagger].is-revealed > * {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-stagger].is-revealed > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-stagger].is-revealed > *:nth-child(2) { transition-delay: 0.15s; }
[data-reveal-stagger].is-revealed > *:nth-child(3) { transition-delay: 0.25s; }
[data-reveal-stagger].is-revealed > *:nth-child(4) { transition-delay: 0.35s; }
[data-reveal-stagger].is-revealed > *:nth-child(5) { transition-delay: 0.45s; }
[data-reveal-stagger].is-revealed > *:nth-child(6) { transition-delay: 0.55s; }
[data-reveal-stagger].is-revealed > *:nth-child(n+7) { transition-delay: 0.65s; }

/* Compteurs animés hero-stats */
.hero-stats [data-counter] {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* Carte : lift + glow doux au hover */
.card,
.feature-card,
.member-card,
.event-card,
.testimonial-card,
.blog-card,
.directory-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease;
}

.card:hover,
.feature-card:hover,
.member-card:hover,
.event-card:hover,
.testimonial-card:hover,
.blog-card:hover,
.directory-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 70px rgba(10, 21, 25, 0.18);
}

/* Respect des préférences utilisateur */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .card:hover,
  .feature-card:hover,
  .member-card:hover,
  .event-card:hover,
  .testimonial-card:hover,
  .blog-card:hover,
  .directory-card:hover {
    transform: none;
  }
}

/* ==========================================================================
   Section Témoignages
   ========================================================================== */
.testimonials-section {
  background:
    radial-gradient(600px 400px at 90% 10%, rgba(200, 168, 106, 0.1), transparent 70%),
    radial-gradient(500px 300px at 10% 90%, rgba(15, 29, 34, 0.05), transparent 70%);
}

.testimonials-grid {
  gap: 24px;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid rgba(16, 20, 23, 0.08);
  border-radius: 18px;
  padding: 36px 30px 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: -18px;
  right: 20px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 180px;
  line-height: 1;
  color: rgba(200, 168, 106, 0.18);
  pointer-events: none;
}

.testimonial-rating {
  display: flex;
  gap: 3px;
  font-size: 18px;
  letter-spacing: 2px;
}

.testimonial-rating .star {
  color: rgba(200, 168, 106, 0.25);
}

.testimonial-rating .star.is-filled {
  color: #c8a86a;
}

.testimonial-quote {
  margin: 0;
}

.testimonial-quote p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  line-height: 1.55;
  color: #0a1519;
  margin: 0;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 14px;
  border-top: 1px solid rgba(16, 20, 23, 0.08);
}

.testimonial-author strong {
  font-weight: 600;
  color: #0a1519;
}

.testimonial-author span {
  font-size: 14px;
  color: #5f6b77;
}

/* ==========================================================================
   Blog (archive + single)
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background: #ffffff;
  border: 1px solid rgba(16, 20, 23, 0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f2ede4;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.blog-card-body h2,
.blog-card-body h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.blog-card-body h2 a,
.blog-card-body h3 a {
  color: #0a1519;
  transition: color 0.25s ease;
}

.blog-card-body h2 a:hover,
.blog-card-body h3 a:hover {
  color: #b08745;
}

.blog-meta {
  font-size: 13px;
  color: #5f6b77;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.blog-read-more {
  margin-top: auto;
  font-weight: 600;
  color: #b08745;
  align-self: flex-start;
  position: relative;
}

.blog-read-more::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-read-more:hover::after {
  transform-origin: left;
  transform: scaleX(1);
}

.blog-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.blog-pagination .nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(16, 20, 23, 0.1);
  font-weight: 600;
  color: #0a1519;
  transition: all 0.25s ease;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  background: #c8a86a;
  color: #ffffff;
  border-color: #c8a86a;
}

.blog-empty {
  text-align: center;
  padding: 60px 20px;
  color: #5f6b77;
}

/* Blog single */
.blog-single-inner {
  max-width: 780px;
}

.blog-single-head {
  margin-bottom: 40px;
}

.blog-single-head h1 {
  font-size: 48px;
  margin: 10px 0 18px;
}

.blog-single-head .eyebrow a {
  color: #b08745;
}

.blog-single-thumb {
  margin: 0 0 40px;
  border-radius: 18px;
  overflow: hidden;
}

.blog-single-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-single-content {
  font-size: 18px;
  line-height: 1.8;
  color: #1a2229;
}

.blog-single-content h2,
.blog-single-content h3 {
  margin-top: 40px;
}

.blog-single-content p {
  margin: 0 0 20px;
}

.blog-single-content a {
  color: #b08745;
  border-bottom: 1px solid rgba(176, 135, 69, 0.4);
}

.blog-single-content a:hover {
  border-bottom-color: #b08745;
}

.blog-single-content blockquote {
  border-left: 3px solid #c8a86a;
  padding: 10px 0 10px 24px;
  margin: 30px 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-style: italic;
  color: #0a1519;
}

.blog-single-foot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(16, 20, 23, 0.1);
}

.blog-tags {
  font-size: 14px;
  color: #5f6b77;
  margin: 0 0 6px;
}

.blog-tags a {
  color: #b08745;
}

@media (max-width: 640px) {
  .blog-single-head h1 {
    font-size: 32px;
  }

  .blog-single-content {
    font-size: 17px;
  }
}

/* ==========================================================================
   Annuaire des membres (privé)
   ========================================================================== */
.directory-hero {
  padding: 80px 0 40px;
}

.directory {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.directory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid rgba(16, 20, 23, 0.08);
  border-radius: 14px;
  align-items: center;
}

.directory-filters input[type="search"],
.directory-filters select {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(16, 20, 23, 0.12);
  background: #faf8f3;
  font-size: 15px;
  color: #0a1519;
  font-family: inherit;
}

.directory-filters input[type="search"]:focus,
.directory-filters select:focus {
  outline: 2px solid rgba(200, 168, 106, 0.4);
  border-color: #c8a86a;
}

.directory-reset {
  font-size: 14px;
  color: #5f6b77;
  text-decoration: underline;
}

.directory-count {
  font-size: 14px;
  color: #5f6b77;
  margin: 0;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .directory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .directory-grid {
    grid-template-columns: 1fr;
  }
}

.directory-card {
  background: #ffffff;
  border: 1px solid rgba(16, 20, 23, 0.08);
  border-radius: 16px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.directory-card-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.directory-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #c8a86a, #b08745);
  display: flex;
  align-items: center;
  justify-content: center;
}

.directory-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.directory-initials {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 1px;
}

.directory-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.directory-role {
  font-size: 14px;
  color: #5f6b77;
  margin: 0 0 8px;
}

.directory-tag {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  background: rgba(200, 168, 106, 0.15);
  color: #b08745;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.directory-bio {
  font-size: 15px;
  color: #3a4550;
  margin: 0;
  line-height: 1.6;
}

.directory-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(16, 20, 23, 0.08);
}

.directory-links li {
  font-size: 14px;
}

.directory-links a {
  color: #3a4550;
  transition: color 0.25s ease;
}

.directory-links a:hover {
  color: #b08745;
}

.directory-locked {
  text-align: center;
  padding: 60px 20px;
  font-size: 18px;
  color: #5f6b77;
  background: #ffffff;
  border-radius: 16px;
}

.directory-locked a {
  color: #b08745;
  font-weight: 600;
  text-decoration: underline;
}

.directory-empty {
  text-align: center;
  padding: 40px 20px;
  color: #5f6b77;
}

.directory-logout {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.directory-logout p {
  margin: 0;
  color: #e6ecf0;
}
