/**
 * Electropo — Hero + BannerStrip + ReassuranceSection CSS
 *
 * Réplique pixel-perfect de :
 *   - HeroSection.tsx (gradient bg, orbes, eyebrow pill, H1 fluid, CTAs pill)
 *   - BannerStrip.tsx (grid 2→4 colonnes, icône + titre + sub)
 *   - ReassuranceSection.tsx (cards 1→2→4 colonnes, icon bg-cyan/10, hover shadow)
 *
 * BEM namespace : .ep-* (Electropo Prefix)
 * Chargé via : inc/enqueue-hero.php (priorité 998, avant mobile-responsive 999)
 *
 * Tokens de design (Source : electropo.fr Tailwind config) :
 *   --ep-cyan        : #08AAC5
 *   --ep-navy        : #052B40
 *   --ep-navy-mid    : #083E5E
 *   --ep-navy-light  : #0A5578
 *   --ep-gray-bg     : #F5F5F7
 *   --ep-text-dark   : #1d1d1f
 *   --ep-text-muted  : #6e6e73
 *   --ep-border      : #d2d2d7
 *
 * Version : 1.0.0 — 2026-08-31
 */

/* ════════════════════════════════════════════════════════════════════════════
   TOKENS
════════════════════════════════════════════════════════════════════════════ */
:root {
  --ep-cyan:        #08AAC5;
  --ep-cyan-15:     rgba(8, 170, 197, 0.15);
  --ep-cyan-30:     rgba(8, 170, 197, 0.30);
  --ep-cyan-10:     rgba(8, 170, 197, 0.10);
  --ep-navy:        #052B40;
  --ep-navy-mid:    #083E5E;
  --ep-navy-light:  #0A5578;
  --ep-gray-bg:     #F5F5F7;
  --ep-text-dark:   #1d1d1f;
  --ep-text-muted:  #6e6e73;
  --ep-border:      #d2d2d7;
  --ep-white:       #ffffff;
  --ep-radius-pill: 9999px;
  --ep-radius-xl:   1rem;
  --ep-radius-2xl:  1.25rem;
}

/* ════════════════════════════════════════════════════════════════════════════
   CONTAINER PRINCIPAL — .ep-container
   Mappe Tailwind .container-main : max-w-screen-xl + px-4/sm:px-6/lg:px-8
════════════════════════════════════════════════════════════════════════════ */
.ep-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;         /* px-4 */
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .ep-container {
    padding-left: 1.5rem;     /* sm:px-6 */
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .ep-container {
    padding-left: 2rem;       /* lg:px-8 */
    padding-right: 2rem;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   HERO SECTION — .ep-hero
════════════════════════════════════════════════════════════════════════════ */

/* Section wrapper */
.ep-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* min-height via inline style : clamp(420px, 60vh, 580px) */
  /* background via inline style : linear-gradient(145deg, #052B40 0%, #083E5E 55%, #0A5578 100%) */
}

/* ── Orbes décoratifs ── */
.ep-hero__orb {
  position: absolute;
  border-radius: 50%;
  /* background via inline style (radial-gradient) */
}

/* Orbe top-right : w-[560px] h-[560px] -top-32 right-[-80px] opacity-[0.12] */
.ep-hero__orb--tr {
  width: 560px;
  height: 560px;
  top: -128px;
  right: -80px;
  opacity: 0.12;
}

/* Orbe bottom-left : w-[400px] h-[400px] bottom-[-100px] left-[-60px] opacity-[0.08] */
.ep-hero__orb--bl {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -60px;
  opacity: 0.08;
}

/* Orbe center : w-[700px] h-[700px] top-1/2 left-1/2 -translate opacity-[0.04] */
.ep-hero__orb--center {
  width: 700px;
  height: 700px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.04;
}

/* ── Contenu ── */
.ep-hero__content {
  position: relative;
  z-index: 10;
  padding-top: 3.5rem;     /* py-14 */
  padding-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .ep-hero__content {
    padding-top: 5rem;     /* md:py-20 */
    padding-bottom: 5rem;
  }
}

@media (min-width: 1024px) {
  .ep-hero__content {
    padding-top: 7rem;     /* lg:py-28 */
    padding-bottom: 7rem;
  }
}

/* Inner : max-w-4xl */
.ep-hero__inner {
  max-width: 56rem; /* 896px ≈ max-w-4xl */
}

/* ── Eyebrow pill ── */
.ep-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;             /* gap-2 */
  background: var(--ep-cyan-15);
  border: 1px solid var(--ep-cyan-30);
  border-radius: var(--ep-radius-pill);
  padding: 0.375rem 1rem;  /* py-1.5 px-4 */
  margin-bottom: 1.5rem;   /* mb-6 */
}

@media (min-width: 768px) {
  .ep-hero__eyebrow {
    margin-bottom: 2rem;   /* md:mb-8 */
  }
}

.ep-hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ep-cyan);
  flex-shrink: 0;
}

.ep-hero__eyebrow-text {
  color: var(--ep-cyan);
  font-size: 0.75rem;      /* text-xs */
  font-weight: 600;
  letter-spacing: 0.1em;   /* tracking-widest */
  text-transform: uppercase;
}

/* ── Headline H1 — taille fluide clamp ── */
.ep-hero__title {
  font-size: 1.75rem;      /* base */
  font-weight: 700;
  color: var(--ep-white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;  /* mb-5 */
}

@media (min-width: 480px) {
  .ep-hero__title { font-size: 2.6rem; }   /* sm */
}

@media (min-width: 768px) {
  .ep-hero__title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem; /* md:mb-6 */
  }
}

@media (min-width: 1024px) {
  .ep-hero__title { font-size: 4.8rem; }   /* lg */
}

/* ── Subtitle ── */
.ep-hero__subtitle {
  font-size: 1.125rem;     /* text-lg */
  color: rgba(255, 255, 255, 0.65); /* text-white/65 */
  line-height: 1.625;
  max-width: 32rem;        /* max-w-lg */
  margin-bottom: 2.5rem;   /* mb-10 */
}

@media (min-width: 768px) {
  .ep-hero__subtitle { font-size: 1.25rem; } /* md:text-xl */
}

/* ── CTAs row ── */
.ep-hero__ctas {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;            /* gap-3 */
}

/* ── Overlay bottom ── */
.ep-hero__overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4rem;            /* h-16 */
  pointer-events: none;
  /* background via inline style */
}

/* ════════════════════════════════════════════════════════════════════════════
   BOUTONS — .ep-btn (pill)
   btn-glass-primary : fond cyan opaque, white text
   btn-glass         : fond blanc/transparent, white/90 text
════════════════════════════════════════════════════════════════════════════ */

.ep-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;             /* gap-2 */
  padding: 0.625rem 1.25rem; /* py-2.5 px-5 */
  font-weight: 600;
  border-radius: var(--ep-radius-pill);
  font-size: 0.875rem;     /* text-sm */
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  min-height: 44px;        /* WCAG 2.5.5 */
}

@media (min-width: 768px) {
  .ep-btn {
    padding: 0.75rem 1.5rem; /* md:px-6 md:py-3 */
    font-size: 1rem;          /* md:text-base */
  }
}

.ep-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.ep-btn:active {
  transform: translateY(0);
  opacity: 1;
}

/* Primary : fond cyan solid */
.ep-btn--primary {
  background: var(--ep-cyan);
  color: var(--ep-white);
  box-shadow: 0 4px 14px rgba(8, 170, 197, 0.35);
}

/* Ghost : fond blanc semi-transparent + border blanc */
.ep-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Flèche SVG dans le bouton */
.ep-btn__arrow {
  width: 0.875rem;   /* w-3.5 */
  height: 0.875rem;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   BANNER STRIP — .ep-banner-strip
   bg-[#F5F5F7] border-b border-[#d2d2d7]/40
   Grid 2col mobile → 4col sm+
════════════════════════════════════════════════════════════════════════════ */

.ep-banner-strip {
  background: var(--ep-gray-bg);
  border-bottom: 1px solid rgba(210, 210, 215, 0.40);
}

.ep-banner-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .ep-banner-strip__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ep-banner__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;           /* gap-2.5 */
  padding: 1rem 0.75rem;   /* px-3 py-4 */
}

@media (min-width: 640px) {
  .ep-banner__item {
    gap: 0.875rem;           /* sm:gap-3.5 */
    padding: 1.5rem 1.25rem; /* sm:px-5 sm:py-6 */
  }
}

.ep-banner__icon-wrap {
  flex-shrink: 0;
  width: 2.5rem;           /* w-10 */
  height: 2.5rem;          /* h-10 */
  border-radius: 0.75rem;  /* rounded-xl */
  background: var(--ep-white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08); /* shadow-sm */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ep-cyan);
}

.ep-banner__icon-svg {
  width: 1.5rem;   /* w-6 */
  height: 1.5rem;
}

.ep-banner__text {
  min-width: 0;
}

.ep-banner__title {
  font-size: 0.875rem;     /* text-sm */
  font-weight: 600;
  color: var(--ep-text-dark);
  line-height: 1.375;
  margin: 0;
}

.ep-banner__sub {
  font-size: 0.75rem;      /* text-xs */
  color: var(--ep-text-muted);
  margin: 0.125rem 0 0;    /* mt-0.5 */
  line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════════════════════
   REASSURANCE SECTION — .ep-reassurance
   bg-[#F5F5F7] py-10 md:py-16 lg:py-20
   Header centré + grid 1col → 2col → 4col
════════════════════════════════════════════════════════════════════════════ */

.ep-reassurance {
  background: var(--ep-gray-bg);
  padding-top: 2.5rem;     /* py-10 */
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .ep-reassurance {
    padding-top: 4rem;     /* md:py-16 */
    padding-bottom: 4rem;
  }
}

@media (min-width: 1024px) {
  .ep-reassurance {
    padding-top: 5rem;     /* lg:py-20 */
    padding-bottom: 5rem;
  }
}

/* Header centré */
.ep-reassurance__header {
  text-align: center;
  margin-bottom: 2rem;     /* mb-8 */
}

@media (min-width: 768px) {
  .ep-reassurance__header {
    margin-bottom: 3rem;   /* md:mb-12 */
  }
}

.ep-reassurance__eyebrow {
  font-size: 0.75rem;      /* text-xs */
  font-weight: 700;
  color: var(--ep-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.75rem;     /* mb-3 */
}

.ep-reassurance__headline {
  font-size: 1.5rem;       /* text-2xl */
  font-weight: 700;
  color: var(--ep-text-dark);
  letter-spacing: -0.015em;
  margin: 0;
}

@media (min-width: 640px) {
  .ep-reassurance__headline { font-size: 1.875rem; } /* sm:text-3xl */
}

@media (min-width: 768px) {
  .ep-reassurance__headline { font-size: 2.25rem; }  /* md:text-4xl */
}

/* Grid 4 cards */
.ep-reassurance__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;               /* gap-4 */
}

@media (min-width: 640px) {
  .ep-reassurance__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ep-reassurance__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Cards */
.ep-reassurance__card {
  background: var(--ep-white);
  border-radius: var(--ep-radius-2xl); /* rounded-2xl */
  padding: 1.25rem;        /* p-5 */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;               /* gap-4 */
  box-shadow: 0 1px 3px rgba(0,0,0,0.06); /* shadow-sm */
  transition: box-shadow 0.3s ease;
}

.ep-reassurance__card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10); /* hover:shadow-md */
}

@media (min-width: 768px) {
  .ep-reassurance__card {
    padding: 2rem;         /* md:p-8 */
  }
}

/* Icon wrapper */
.ep-reassurance__icon-wrap {
  width: 3.5rem;           /* w-14 */
  height: 3.5rem;          /* h-14 */
  border-radius: var(--ep-radius-xl); /* rounded-2xl */
  background: var(--ep-cyan-10);
  color: var(--ep-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ep-reassurance__icon-svg {
  width: 1.75rem;          /* w-7 */
  height: 1.75rem;
}

/* Card text */
.ep-reassurance__card-text {
  /* nothing — uses gap from flex parent */
}

.ep-reassurance__card-title {
  font-size: 0.875rem;     /* text-sm */
  font-weight: 600;
  color: var(--ep-text-dark);
  line-height: 1.375;
  margin: 0;
}

.ep-reassurance__card-sub {
  font-size: 0.75rem;      /* text-xs */
  color: var(--ep-text-muted);
  margin: 0.375rem 0 0;    /* mt-1.5 */
  line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════════════════════
   MOBILE OVERRIDES (≤ 480px) — ajustements fins
════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
  /* Hero title légèrement réduit sur très petit écran */
  .ep-hero__title {
    font-size: 1.6rem;
  }

  /* Subtitle taille réduite */
  .ep-hero__subtitle {
    font-size: 0.95rem;
  }

  /* CTAs : stack vertical si trop serré */
  .ep-hero__ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .ep-btn {
    width: auto;
    min-width: 180px;
  }

  /* BannerStrip : réduire gap et padding */
  .ep-banner__item {
    padding: 0.75rem 0.5rem;
    gap: 0.5rem;
  }

  .ep-banner__icon-wrap {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
  }

  .ep-banner__icon-svg {
    width: 1.125rem;
    height: 1.125rem;
  }

  /* Reassurance cards : padding réduit */
  .ep-reassurance__card {
    padding: 1rem;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   NOTE : les wrappers des orbes utilisent des styles inline pour éviter toute
   dépendance à Tailwind CSS. Aucun utilitaire Tailwind n'est requis.
════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════

/* ═══════════════════════════════════════════════════════════════════════════
   PATCH 2026-09-03 v2 — Bannière image electropo.webp (shorthand override)
   ═══════════════════════════════════════════════════════════════════════════ */
.ep-hero {
  background:
    linear-gradient(90deg, rgba(5, 43, 64, 0.85) 0%, rgba(8, 62, 94, 0.60) 40%, rgba(10, 85, 120, 0.30) 70%, transparent 100%),
    url('../images/hero-banner.webp') center right / cover no-repeat,
    #052B40 !important;
}

.ep-hero__orb { display: none !important; }

@media (min-width: 640px) {
  .ep-hero { min-height: clamp(420px, 55vh, 640px) !important; }
}
@media (min-width: 1024px) {
  .ep-hero { min-height: clamp(500px, 60vh, 720px) !important; }
}
@media (max-width: 639px) {
  .ep-hero {
    background:
      linear-gradient(180deg, rgba(5, 43, 64, 0.80) 0%, rgba(8, 62, 94, 0.55) 50%, rgba(10, 85, 120, 0.35) 100%),
      url('../images/hero-banner.webp') 65% center / cover no-repeat,
      #052B40 !important;
    min-height: clamp(400px, 55vh, 520px) !important;
  }
}
