/* ============================================
   HERO — Layout centré, sans photo
   ============================================ */

.pei-hero {
  min-height: auto;
  background: linear-gradient(135deg, #0a1f38 0%, #1a3a5c 55%, #1e4d7a 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

/* Motif géométrique subtil en fond */
.pei-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(232,160,32,0.08) 0%, transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.04) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(10,31,56,0.4) 0%, transparent 50%);
  pointer-events: none;
}

.pei-hero::after {
  display: none;
}

.pei-hero__inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 40px 56px;
  position: relative;
  z-index: 1;
  text-align: center !important;
  box-sizing: border-box;
}

/* Forcer centrage sur tous les enfants directs */
.pei-hero__inner * {
  text-align: center;
}
.pei-hero__inner .pei-hero__nav,
.pei-hero__inner .pei-hero__ctas,
.pei-hero__inner .pei-hero__stats-row,
.pei-hero__inner .pei-hero__snpi {
  display: flex;
  justify-content: center;
}

/* ---- BADGE ---- */
.pei-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,160,32,0.15);
  border: 1px solid rgba(232,160,32,0.35);
  color: #f0b535;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.pei-hero__badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #f0b535;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ---- TITRE ---- */
.pei-hero__title {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  color: #ffffff;
  margin: 0 0 16px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.pei-hero__title span {
  color: #f0b535;
}

/* ---- SOUS-TITRE ---- */
.pei-hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  margin: 0 auto 40px;
  font-weight: 400;
  line-height: 1.65;
  max-width: 720px;
}

/* ---- CTAs ---- */
.pei-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 48px;
}

.pei-hero__cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e8a020;
  color: #fff;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(232,160,32,0.4);
}
.pei-hero__cta-primary:hover {
  background: #c4861a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,160,32,0.55);
}

.pei-hero__cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}
.pei-hero__cta-secondary:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}

/* ---- STATS EN LIGNE ---- */
.pei-hero__stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 24px 40px;
  margin: 0 auto 32px;
  max-width: 800px;
  backdrop-filter: blur(8px);
}

.pei-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.pei-hero__stat-nb {
  font-size: 2rem;
  font-weight: 800;
  color: #f0b535;
  line-height: 1;
  margin-bottom: 6px;
}

.pei-hero__stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.pei-hero__stat-sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
  margin: 0 8px;
}

/* ---- SNPI ---- */
.pei-hero__snpi {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 28px;
}

.pei-hero__snpi strong { color: rgba(255,255,255,0.9); }

/* ---- SÉPARATEUR ---- */
.pei-hero__divider {
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,0.2);
  margin: 0 auto 24px;
}

/* ---- NAV PILLS ---- */
.pei-hero__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.pei-hero__nav-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 4px;
}

.pei-hero__nav a {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.12);
  text-decoration: none;
  transition: all 0.2s ease;
}

.pei-hero__nav a:hover {
  background: rgba(232,160,32,0.2);
  color: #f0b535;
  border-color: rgba(232,160,32,0.35);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .pei-hero {
    min-height: auto;
  }
  .pei-hero__inner {
    padding: 80px 24px 60px;
  }
  .pei-hero__title {
    font-size: 2rem;
  }
  .pei-hero__subtitle {
    font-size: 1rem;
  }
  .pei-hero__ctas {
    flex-direction: column;
    align-items: center;
  }
  .pei-hero__cta-primary,
  .pei-hero__cta-secondary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
  .pei-hero__stats-row {
    padding: 18px 16px;
    gap: 0;
  }
  .pei-hero__stat-nb {
    font-size: 1.5rem;
  }
  .pei-hero__stat-label {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .pei-hero__stats-row {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }
  .pei-hero__stat-sep {
    width: 40px;
    height: 1px;
    margin: 0;
  }
}

/* ── Override Astra text-align forcé ── */
.entry-content .pei-hero__inner,
.entry-content .pei-hero .pei-hero__inner {
  text-align: center !important;
}
.entry-content .pei-hero__title,
.entry-content .pei-hero__subtitle,
.entry-content .pei-hero__badge,
.entry-content .pei-hero__nav-label {
  text-align: center !important;
}

/* ── Centrage via flexbox — indépendant de text-align ── */
.pei-hero .pei-hero__content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
}
.pei-hero .pei-hero__title {
  width: 100%;
  text-align: center !important;
}
.pei-hero .pei-hero__subtitle {
  text-align: center !important;
}
.pei-hero .pei-hero__badge {
  align-self: center;
}
