/* =============================================
   INDEX.CSS — Styles spécifiques à index.html
   ============================================= */

/* ===== 1. HERO ===== */
.hero-section {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-overlay { position: absolute; inset: 0; background: var(--gradient-hero); z-index: 1; }

/* ===== DIAPO HERO (3 images — crossfade JS) ===== */
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

.badge-hero {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.3); border-radius: 50px;
  color: white; padding: 0.4rem 1.2rem; font-size: 0.8rem;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.dot { width: 8px; height: 8px; background: #F2B93B; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(242, 185, 59, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(242, 185, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 185, 59, 0); }
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800; color: white; line-height: 1.1;
  text-shadow: 0 4px 30px rgba(0,0,0,0.3); margin-bottom: 1.5rem;
}
.hero-name-gold {
  background: linear-gradient(90deg, #F2B93B, #C9941A);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255,255,255,0.88);
  font-weight: 300; line-height: 1.7; margin-bottom: 2.5rem;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.cta-secondary-hero {
  border: 2px solid rgba(255,255,255,0.5); color: white;
  padding: 0.9rem 2rem; border-radius: 50px; font-weight: 600;
  backdrop-filter: blur(8px); transition: all 0.3s ease; display: inline-block;
}
.cta-secondary-hero:hover { background: rgba(255,255,255,0.15); border-color: #F2B93B; color: #F2B93B; }

/* Fix : scroll-indicator est désormais enfant direct de .hero-section (position: relative)
   et non plus de .hero-content — l'ancrage absolu est maintenant correct */
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.6); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  z-index: 10;
}
/* Fix : transform-origin doit être sur l'élément, pas dans @keyframes (non standard) */
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollDown 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollDown {
  0%, 100% { transform: scaleY(0); }
  50%       { transform: scaleY(1); }
}

/* ===== 2. STATS ===== */
.stats-section { background: linear-gradient(160deg, #FFFFFF 0%, #EEF2FF 100%); position: relative; z-index: 10; }
.stat-card {
  padding: 2rem 1.5rem; text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative; overflow: hidden; background: white;
}
.stat-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--gradient-gold);
  transform: scaleX(0); transition: transform 0.4s ease;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(27,60,140,0.15); }
.stat-card:hover::before { transform: scaleX(1); }
.stat-icon { display: flex; justify-content: center; margin-bottom: 0.75rem; color: var(--gold); }
.stat-icon svg { width: 2.5rem; height: 2.5rem; stroke-width: 1.5px; }
.stat-number { font-family: 'Playfair Display', serif; font-size: 2.8rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-weight: 600; color: var(--text-primary); margin-top: 0.5rem; font-size: 0.9rem; }
.stat-sublabel { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ===== 3. PRÉSENTATION ===== */
.portrait-wrap { position: relative; }
.portrait-frame {
  position: relative; border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(27,60,140,0.2);
}
.portrait-frame img { width: 100%; height: 500px; object-fit: cover; object-position: top; }
.portrait-badge { position: absolute; bottom: 20px; left: 20px; right: 20px; padding: 1rem 1.5rem; }
.portrait-badge strong { display: block; color: var(--primary); font-size: 1rem; }
.portrait-badge span { color: var(--text-muted); font-size: 0.8rem; }
.deco-rect { position: absolute; border-radius: 12px; }
.deco-blue { width: 80px; height: 80px; background: var(--primary); opacity: 0.15; top: -20px; right: -20px; z-index: -1; }
.deco-gold { width: 120px; height: 8px; background: var(--gold); bottom: -10px; right: 30px; z-index: -1; }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.value-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem; background: var(--gold-pale);
  border-radius: 12px; font-weight: 500; font-size: 0.9rem; color: var(--text-primary);
  border: 1px solid rgba(201,148,26,0.15);
}
.value-icon { color: var(--primary); display: flex; align-items: center; }
.value-icon svg { width: 1.25rem; height: 1.25rem; stroke-width: 2px; }

/* ===== 4. PILIERS ===== */
.pilier-card {
  padding: 0; text-align: center; cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s;
  overflow: hidden; /* clip l'image aux coins arrondis de la card */
}
.pilier-card:hover { transform: translateY(-10px); box-shadow: 0 30px 70px rgba(27,60,140,0.2); }
.pilier-img { width: 100%; height: 160px; overflow: hidden; flex-shrink: 0; }
.pilier-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.pilier-card:hover .pilier-img img { transform: scale(1.05); }
/* contenu sous l'image */
.pilier-body { padding: 1.75rem 2rem 2rem; display: flex; flex-direction: column; align-items: center; }
.pilier-icon { display: flex; justify-content: center; margin-bottom: 1.25rem; color: var(--primary); }
.pilier-icon svg { width: 3rem; height: 3rem; stroke-width: 1.5px; }
.pilier-card h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
.pilier-card p { color: var(--text-secondary); line-height: 1.7; font-size: 0.9rem; margin-bottom: 1.5rem; }
.pilier-link { color: var(--gold); font-weight: 600; font-size: 0.9rem; transition: gap 0.2s; display: inline-flex; align-items: center; gap: 4px; }
.pilier-link:hover { gap: 8px; }
.pilier-featured {
  background: linear-gradient(145deg, rgba(27,60,140,0.06), rgba(201,148,26,0.06)) !important;
  border: 1.5px solid rgba(201,148,26,0.3) !important;
  position: relative;
}
/* Fix : badge repositionné en overlay sur l'image (top:-12px était clippé par overflow:hidden) */
.pilier-badge {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-gold); color: white;
  padding: 0.3rem 1rem; border-radius: 50px; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap;
  z-index: 10;
}

/* ===== 5. CITATION ===== */
.quote-mark {
  font-family: 'Playfair Display', serif; font-size: 10rem; font-weight: 800;
  color: var(--gold); opacity: 0.15; line-height: 0.8;
  margin-bottom: -2rem; display: block;
}
.quote-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600;
  color: var(--primary); line-height: 1.5; margin-bottom: 2rem;
}
.quote-text em { color: var(--gold); font-style: italic; }
.quote-portrait {
  width: 80px; height: 80px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 1rem; border: 3px solid var(--gold);
}
.quote-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.quote-attribution {
  display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-direction: column;
}
.attribution-line { width: 3px; height: 40px; background: var(--gradient-gold); border-radius: 3px; }
.quote-attribution strong { display: block; color: var(--primary); font-size: 1rem; }
.quote-attribution span { color: var(--text-muted); font-size: 0.85rem; }

/* ===== 6. ACTUALITÉS ===== */
.actu-card { display: flex; flex-direction: column; overflow: hidden; }
.actu-img { width: 100%; height: 180px; overflow: hidden; flex-shrink: 0; }
.actu-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.actu-card:hover .actu-img img { transform: scale(1.05); }
.actu-card-body {
  padding: 1.5rem; display: flex; flex-direction: column;
  gap: 0.75rem; align-items: flex-start; flex: 1;
}
.actu-date { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.actu-card h4 { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--primary); line-height: 1.3; }
.actu-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; flex: 1; }
.read-more { color: var(--gold); font-weight: 600; font-size: 0.85rem; align-self: flex-start; transition: gap 0.2s; display: inline-flex; align-items: center; gap: 4px; }
.read-more:hover { gap: 8px; }

/* ===== 7. CTA FINAL ===== */
.section-piliers   { background: var(--gradient-section); }
.section-cta-final { background: var(--gradient-blue); }

.cta-section-title {
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}
.cta-section-title em { color: #F2B93B; }

.cta-section-desc {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
}
.cta-section-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.cta-white {
  background: white; color: var(--primary);
  padding: 1rem 2.5rem; border-radius: 50px; font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2); transition: all 0.3s;
  display: inline-block;
}
.cta-white:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); color: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Hero */
  .hero-ctas { flex-direction: column; align-items: center; }
  .cta-primary, .cta-secondary-hero { width: 100%; max-width: 300px; justify-content: center; text-align: center; display: flex; }
  .scroll-indicator { bottom: 1rem; }

  /* Stats */
  .stat-card { padding: 1.5rem 1rem; }
  .stat-number { font-size: 2.2rem; }
  .stat-label { font-size: 0.82rem; }

  /* Présentation */
  .portrait-frame img { height: 360px; }
  .values-grid { grid-template-columns: 1fr; }
  .value-item { font-size: 0.85rem; }

  /* Piliers */
  .pilier-body { padding: 1.25rem 1.5rem 1.5rem; }
  .pilier-card h3 { font-size: 1.2rem; }

  /* Citation */
  .quote-mark { font-size: 7rem; margin-bottom: -1.5rem; }

  /* Actualités */
  .actu-img { height: 160px; }
  .actu-card-body { padding: 1.25rem; }

  /* CTA final */
  .cta-section-buttons { flex-direction: column; align-items: center; }
  .cta-white { width: 100%; max-width: 300px; text-align: center; }
}

@media (max-width: 480px) {
  /* Hero */
  .badge-hero { font-size: 0.7rem; padding: 0.35rem 0.9rem; }

  /* Stats — 2 col reste OK mais on réduit les chiffres */
  .stat-number { font-size: 1.9rem; }
  .stat-sublabel { font-size: 0.7rem; }

  /* Présentation */
  .portrait-frame img { height: 280px; }
  .portrait-badge { padding: 0.75rem 1rem; }
  .portrait-badge strong { font-size: 0.9rem; }

  /* Piliers */
  .pilier-img { height: 140px; }
  .pilier-card h3 { font-size: 1.1rem; }

  /* Citation */
  .quote-mark { font-size: 5rem; }
  .quote-attribution { gap: 0.75rem; }
  .attribution-line { display: none; }

  /* Actu */
  .actu-img { height: 140px; }
}
