/* =============================================
   EPUREAU CI — Main Stylesheet
   ============================================= */

/* --- CSS Custom Properties --- */
:root {
  --ep-blue: #1C3FFC;
  --ep-mid: #1C75FF;
  --ep-cyan: #14A8F9;
  --ep-ink: #0F1B2D;
  --ep-wash: #F4F7FA;
  --ep-bg: #e9edf2;
  --ep-border: #D9E2EC;
  --ep-slate: #5A6B7B;
  --ep-tint: #eaf6fe;
  --ep-light: #EDF2F7;
  --ep-lighter: #EDF4FF;
  --ep-white: #ffffff;
  --ep-font: "Trebuchet MS", Tahoma, Geneva, Verdana, sans-serif;
  --ep-radius: 10px;
  --ep-radius-sm: 6px;
  --ep-radius-pill: 99px;
  --ep-shadow: 0 10px 24px rgba(28,117,255,0.12);
  --ep-shadow-lg: 0 14px 30px rgba(28,117,255,0.16);
  --ep-shadow-header: 0 8px 26px rgba(15,27,45,0.10);
  --ep-transition: .35s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ep-bg);
  font-family: var(--ep-font);
  color: var(--ep-ink);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ep-blue); text-decoration: none; }
a:hover { color: var(--ep-cyan); text-decoration: underline; }
::selection { background: #d3e9fd; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }

/* --- Animations --- */
@keyframes epFadeUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:none; } }
@keyframes epPageIn { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }
@keyframes epAurora { 0% { transform:translate3d(-6%,0,0) scale(1); } 50% { transform:translate3d(7%,-5%,0) scale(1.18); } 100% { transform:translate3d(-6%,0,0) scale(1); } }
@keyframes epBubble { 0% { transform:translateY(30px) scale(.6); opacity:0; } 15% { opacity:.5; } 100% { transform:translateY(-300px) scale(1); opacity:0; } }
@keyframes epWave { 0% { transform:translateX(-3%) scaleY(1); } 50% { transform:translateX(3%) scaleY(1.12); } 100% { transform:translateX(-3%) scaleY(1); } }
@keyframes epPulse { 0% { box-shadow:0 0 0 0 rgba(20,168,249,.5); } 70% { box-shadow:0 0 0 20px rgba(20,168,249,0); } 100% { box-shadow:0 0 0 0 rgba(20,168,249,0); } }
@keyframes epSheen { from { transform:translateX(-140%); } to { transform:translateX(260%); } }
@keyframes epRule { from { transform:scaleX(0); } to { transform:scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ep-rv { opacity: 1 !important; transform: none !important; }
}

/* --- Reveal on scroll --- */
.ep-rv { opacity: 0; transform: translateY(30px); transition: opacity .85s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1); }
.ep-rv.ep-in { opacity: 1; transform: none; }

/* --- Frame --- */
.ep-frame {
  max-width: 100%;
  background: var(--ep-white);
  min-height: 100vh;
}

/* --- Page transition --- */
.ep-page { animation: epPageIn .55s cubic-bezier(.16,1,.3,1) both; }

/* =============================================
   HEADER
   ============================================= */
.ep-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ep-white);
  border-bottom: 1px solid var(--ep-border);
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: box-shadow var(--ep-transition), padding var(--ep-transition);
}
.ep-header.shrunk { box-shadow: var(--ep-shadow-header); }

/* Progress bar */
.ep-progress {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--ep-cyan), var(--ep-blue));
  will-change: transform;
}

/* Logo */
.ep-logo {
  height: 46px;
  cursor: pointer;
  padding: 11px 0;
  box-sizing: content-box;
  transform-origin: left center;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.ep-header.shrunk .ep-logo { transform: scale(.78); }

/* Desktop nav */
.ep-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.ep-nav-item { position: relative; }
.ep-nav-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  padding: 24px 11px 21px;
  color: var(--ep-ink);
  border-bottom: 3px solid transparent;
  font-family: inherit;
  /* Les entrées de menu sont des <a> : neutraliser le soulignement global
     des liens, absent de la maquette. */
  text-decoration: none;
  transition: color .2s ease;
}
.ep-nav-btn:hover { color: var(--ep-cyan); text-decoration: none; }
.ep-nav-btn.active { color: var(--ep-blue); border-bottom-color: var(--ep-cyan); }

/* Dropdown */
.ep-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--ep-white);
  border: 1px solid var(--ep-border);
  border-top: 3px solid var(--ep-cyan);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 12px 28px rgba(15,27,45,0.14);
  display: none;
  flex-direction: column;
  padding: 4px 0;
  z-index: 50;
}
.ep-nav-item:hover .ep-dropdown,
.ep-nav-item.open .ep-dropdown { display: flex; }
.ep-dropdown a {
  text-align: left;
  font-size: 13px;
  padding: 10px 14px;
  color: var(--ep-ink);
  font-weight: 400;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.ep-dropdown a:hover { background: var(--ep-wash); color: var(--ep-blue); text-decoration: none; }
.ep-dropdown a.active { font-weight: 700; }

/* Lang toggle */
.ep-lang {
  display: flex;
  align-self: center;
  margin-left: 8px;
  border: 1.5px solid var(--ep-cyan);
  border-radius: var(--ep-radius-pill);
  overflow: hidden;
  flex: none;
}
.ep-lang a {
  border: none;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.ep-lang a.active { background: var(--ep-mid); color: var(--ep-white); }
.ep-lang a:not(.active) { background: transparent; color: var(--ep-cyan); }
.ep-lang a:not(.active):hover { background: var(--ep-tint); text-decoration: none; }

/* CTA button in header */
.ep-header-cta {
  margin-left: 8px;
  border: none;
  background: var(--ep-mid);
  color: var(--ep-white);
  padding: 10px 16px;
  border-radius: var(--ep-radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .25s ease;
}
.ep-header-cta:hover { background: var(--ep-blue); color: var(--ep-white); text-decoration: none; }

/* Mobile hamburger */
.ep-hamburger {
  display: none;
  border: 1px solid var(--ep-mid);
  color: var(--ep-blue);
  background: var(--ep-white);
  border-radius: var(--ep-radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

/* Mobile menu */
.ep-mobile-menu {
  display: none;
  border-bottom: 1px solid var(--ep-border);
  background: var(--ep-wash);
  flex-direction: column;
  padding: 6px 0;
}
.ep-mobile-menu.open { display: flex; }
.ep-mobile-menu a {
  text-align: left;
  font-size: 14px;
  padding: 11px 20px;
  color: var(--ep-ink);
  font-weight: 400;
  text-decoration: none;
}
.ep-mobile-menu a:hover { color: var(--ep-blue); text-decoration: none; }
.ep-mobile-menu a.active { color: var(--ep-blue); font-weight: 700; }
.ep-mobile-menu a.sub-item { padding-left: 34px; }
.ep-mobile-menu .group-label {
  padding: 11px 20px;
  color: var(--ep-slate);
  font-weight: 700;
  font-size: 14px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  position: relative;
  overflow: hidden;
  border: none;
  background: var(--ep-mid);
  color: var(--ep-white);
  padding: 13px 22px;
  border-radius: var(--ep-radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform .22s cubic-bezier(.16,1,.3,1), background .25s ease, color .25s ease, box-shadow .3s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--ep-blue); color: var(--ep-white); text-decoration: none; }
.btn:active { transform: translateY(0) scale(.985); }
.btn::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-140%);
  pointer-events: none;
}
.btn:hover::after { animation: epSheen .8s ease; }

.btn-outline {
  position: relative;
  overflow: hidden;
  border: 1.5px solid var(--ep-mid);
  background: var(--ep-white);
  color: var(--ep-blue);
  padding: 11px 20px;
  border-radius: var(--ep-radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform .22s cubic-bezier(.16,1,.3,1), background .25s ease, box-shadow .3s ease;
}
.btn-outline:hover { background: var(--ep-tint); transform: translateY(-2px); text-decoration: none; color: var(--ep-blue); }
.btn-outline::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-140%);
  pointer-events: none;
}
.btn-outline:hover::after { animation: epSheen .8s ease; }

.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
  border-radius: var(--ep-radius-sm);
}

/* --- Survol générique (fidèle à la maquette) ---
   La maquette applique le léger soulèvement et le reflet « sheen » à TOUS les
   boutons du cadre, y compris ceux de la navigation. Les puces du carrousel
   vidéo en sont exclues : les animer n'aurait pas de sens à 9px. */
.ep-frame button:not(.ep-video-dot),
.ep-nav-btn {
  position: relative;
  overflow: hidden;
  transition: transform .22s cubic-bezier(.16,1,.3,1), background .25s ease,
              color .25s ease, box-shadow .3s ease, border-color .25s ease;
}
.ep-frame button:not(.ep-video-dot):hover,
.ep-nav-btn:hover {
  transform: translateY(-2px);
}
.ep-frame button:not(.ep-video-dot):active,
.ep-nav-btn:active {
  transform: translateY(0) scale(.985);
}
.ep-frame button:not(.ep-video-dot)::after,
.ep-nav-btn::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-140%);
  pointer-events: none;
}
.ep-frame button:not(.ep-video-dot):hover::after,
.ep-nav-btn:hover::after {
  animation: epSheen .8s ease;
}

/* Les images du cadre s'animent de la même façon partout. */
.ep-frame img { transition: transform .55s cubic-bezier(.16,1,.3,1); }

/* =============================================
   HERO (Accueil)
   ============================================= */
.ep-hero {
  position: relative;
  overflow: hidden;
  /* Voile clair par-dessus la photo de fond, comme dans la maquette. */
  background: linear-gradient(135deg, rgba(255,255,255,0.90) 0%, rgba(244,247,250,0.72) 100%),
              url('../images/hero-bg.jpg') center/cover no-repeat;
  padding: 72px 4% 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: center;
}

.ep-hero-aurora {
  position: absolute;
  pointer-events: none;
}
.ep-hero-aurora-1 {
  top: -30%; left: -10%; width: 60%; height: 150%;
  background: radial-gradient(closest-side, rgba(20,168,249,0.22), transparent 70%);
  animation: epAurora 18s ease-in-out infinite;
}
.ep-hero-aurora-2 {
  bottom: -40%; right: -5%; width: 55%; height: 150%;
  background: radial-gradient(closest-side, rgba(28,63,252,0.16), transparent 70%);
  animation: epAurora 24s ease-in-out infinite reverse;
}

.ep-hero-glow {
  position: absolute;
  top: 0; left: 0;
  width: 420px; height: 420px;
  margin: -210px 0 0 -210px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(20,168,249,0.28), transparent 72%);
  opacity: 0;
  transition: opacity .5s ease;
  will-change: transform;
}

.ep-bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ep-hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 70px;
  overflow: hidden;
  pointer-events: none;
}
.ep-hero-wave svg {
  width: 112%;
  margin-left: -6%;
  height: 70px;
  display: block;
  transform-origin: 50% 100%;
  animation: epWave 11s ease-in-out infinite;
}

.ep-hero-copy {
  position: relative;
  flex: 2 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ep-hero-copy > * { animation: epFadeUp .9s cubic-bezier(.16,1,.3,1) both; }
.ep-hero-copy > *:nth-child(1) { animation-delay: .06s; }
.ep-hero-copy > *:nth-child(2) { animation-delay: .18s; }
.ep-hero-copy > *:nth-child(3) { animation-delay: .3s; }
.ep-hero-copy > *:nth-child(4) { animation-delay: .42s; }

.ep-hero-label {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--ep-mid);
  font-weight: 700;
  text-transform: uppercase;
}
.ep-hero h1 {
  margin: 0;
  font-size: 50px;
  line-height: 1.15;
  color: var(--ep-blue);
  font-weight: 700;
}
.ep-hero-sub {
  margin: 0;
  font-size: 18px;
  color: var(--ep-ink);
  line-height: 1.6;
  max-width: 54ch;
}
.ep-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

.ep-hero-media {
  position: relative;
  flex: 1 1 300px;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: epFadeUp 1s cubic-bezier(.16,1,.3,1) .34s both;
}

.ep-video-card {
  position: relative;
  /* La carte adopte le format des vidéos (16/9) : avec une hauteur fixe, le
     rapport variait selon la largeur et l'image se retrouvait rognée. */
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: var(--ep-radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--ep-tint), #d3e9fd);
  /* Filet dessiné en « outline » et non en « border » : une bordure aurait été
     déduite de la boîte de contenu (box-sizing: border-box), dont le rapport
     n'aurait alors plus été exactement 16/9 — d'où de fines bandes sombres sur
     les côtés de la vidéo. L'outline ne consomme aucune place. */
  outline: 1px solid var(--ep-border);
  outline-offset: -1px;
  box-shadow: var(--ep-shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  transition: box-shadow .35s ease;
}
.ep-video-card:hover { box-shadow: var(--ep-shadow-lg); }

/* Lecteur occupant toute la carte */
.ep-video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* La carte étant exactement au format des vidéos (16/9), « cover » remplit
     sans rien rogner, tout en absorbant les arrondis au sous-pixel qui, avec
     « contain », laisseraient apparaître un liseré du fond.
     ⚠ Toute nouvelle vidéo doit donc être fournie en 16/9. */
  object-fit: cover;
  display: block;
  background: transparent;
}

/* Habillage par-dessus la vidéo : ne capte le clic que sur les boutons. */
.ep-video-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ep-video-title {
  align-self: center;
  color: var(--ep-white);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 6px 16px;
  margin: 0 12px 12px;
  background: rgba(15,27,45,0.62);
  border-radius: var(--ep-radius-sm);
  max-width: calc(100% - 24px);
}

.ep-video-badge {
  align-self: flex-start;
  margin: 12px;
  background: rgba(15,27,45,0.62);
  color: var(--ep-white);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--ep-radius-pill);
}

.ep-video-controls {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  gap: 8px;
  pointer-events: auto;
}
.ep-video-btn {
  width: 34px; height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(15,27,45,0.62);
  color: var(--ep-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background .25s ease;
}
.ep-video-btn:hover { background: var(--ep-mid); }

.ep-video-dots {
  display: flex;
  gap: 7px;
  justify-content: center;
}
.ep-video-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(28,117,255,0.25);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background .3s ease;
}
.ep-video-dot.active { background: var(--ep-cyan); }

/* =============================================
   SECTION HEADER
   ============================================= */
.section-bar {
  width: 44px;
  height: 4px;
  background: var(--ep-cyan);
  border-radius: 2px;
}
.section-title {
  margin: 0;
  font-size: 32px;
  color: var(--ep-blue);
  font-weight: 700;
}
.section-title-sm {
  margin: 0;
  font-size: 26px;
  color: var(--ep-blue);
  font-weight: 700;
}

/* =============================================
   ACTIVITY CARDS (Accueil)
   ============================================= */
.ep-poles { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; }
.ep-pole {
  border: 1px solid var(--ep-border);
  border-radius: 8px;
  padding: 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--ep-white);
  text-decoration: none;
  transition: box-shadow .35s ease, border-color .3s ease;
}
.ep-pole:hover { border-color: var(--ep-cyan); box-shadow: var(--ep-shadow); text-decoration: none; }
.ep-pole b { font-size: 24px; color: var(--ep-ink); }
.ep-pole .desc { font-size: 13.5px; color: var(--ep-slate); line-height: 1.5; }
.ep-pole .cta { font-size: 13px; color: var(--ep-blue); font-weight: 700; }

/* =============================================
   PROJECT CARDS
   ============================================= */
.ep-projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.ep-project-card {
  background: var(--ep-white);
  border: 1px solid var(--ep-border);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow .35s ease;
}
.ep-project-card:hover { box-shadow: 0 12px 26px rgba(28,117,255,0.14); }
.ep-project-card .photo {
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ep-wash);
}
.ep-project-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.16,1,.3,1);
}
.ep-project-card:hover .photo img { transform: scale(1.05); }
.ep-project-card .cat { font-size: 13px; font-weight: 700; color: var(--ep-cyan); }
.ep-project-card .title { font-size: 19px; line-height: 1.25; color: var(--ep-blue); text-transform: uppercase; font-weight: 700; }
.ep-project-card .sep { height: 1px; background: var(--ep-border); margin: 4px 0; }
.ep-project-card .lieu { font-size: 13.5px; font-weight: 700; color: var(--ep-ink); }
.ep-project-card .secteur { font-size: 13.5px; color: var(--ep-mid); }
.ep-project-card .prestations { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ep-slate); }
.ep-project-card .prestations span { border-left: 1px solid var(--ep-border); padding-left: 10px; }
.ep-project-card .prestations span:first-child { border-left: none; padding-left: 0; }

/* =============================================
   PARTNERS / CLIENTS
   ============================================= */
.ep-partners-clients { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: start; }
.ep-box {
  border: 1px solid var(--ep-border);
  border-radius: 8px;
  background: var(--ep-white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ep-box-header {
  background: var(--ep-tint);
  color: var(--ep-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 11px 20px;
  border-bottom: 1px solid var(--ep-border);
  text-align: center;
}
.ep-partner-logo {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.ep-partner-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ep-clients-grid { padding: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.ep-client-logo {
  height: 58px;
  border: 1px solid var(--ep-light);
  border-radius: 5px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.ep-client-logo:hover { border-color: var(--ep-cyan); box-shadow: 0 4px 12px rgba(28,117,255,0.08); }
.ep-client-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* =============================================
   CTA BAND
   ============================================= */
.ep-cta-band {
  padding: 28px 32px;
  background: var(--ep-tint);
  border: 1px solid var(--ep-border);
  border-left: 4px solid var(--ep-cyan);
  border-radius: var(--ep-radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.ep-cta-band b { color: var(--ep-blue); font-size: 19px; }
.ep-cta-band .sub { color: var(--ep-slate); font-size: 14.5px; }

/* =============================================
   INNER PAGE HEADER
   ============================================= */
.ep-page-header {
  background: radial-gradient(900px 320px at 12% 0%, rgba(20,168,249,0.14), transparent 65%),
              linear-gradient(100deg, #EDF6FF 0%, #FFFFFF 78%);
  border-bottom: 1px solid #E3EDF9;
  padding: 56px 4%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ep-breadcrumb { font-size: 12px; color: var(--ep-slate); }
.ep-breadcrumb a { cursor: pointer; color: var(--ep-blue); text-decoration: none; }
.ep-breadcrumb a:hover { text-decoration: underline; }
.ep-page-header h1 {
  margin: 0;
  font-size: 36px;
  color: var(--ep-blue);
  font-weight: 700;
}

/* =============================================
   CONTENT SECTIONS
   ============================================= */
.ep-section { padding: 56px 4%; }
.ep-section-bg { padding: 64px 4%; background: var(--ep-border); }
.ep-section-home { padding: 64px 4%; }

.ep-content { display: flex; gap: 32px; flex-wrap: wrap; }
.ep-content-main { flex: 2 1 340px; display: flex; flex-direction: column; gap: 16px; font-size: 17.5px; line-height: 1.7; }
.ep-content-side { flex: 1 1 280px; min-height: 260px; }
.ep-content-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--ep-radius);
}

/* =============================================
   PROCESS STEPS
   ============================================= */
.ep-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.ep-step {
  position: relative;
  background: var(--ep-white);
  border: 1px solid var(--ep-border);
  border-top: 4px solid var(--ep-cyan);
  border-radius: var(--ep-radius);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .35s ease;
}
.ep-step:hover { border-color: var(--ep-cyan); box-shadow: 0 12px 28px rgba(28,117,255,0.14); }
.ep-step-num {
  position: absolute;
  top: 6px; right: 16px;
  font-size: 60px;
  font-weight: 700;
  color: var(--ep-lighter);
  line-height: 1;
  pointer-events: none;
}
.ep-step-icon {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--ep-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ep-step b { position: relative; font-size: 19px; color: var(--ep-blue); }
.ep-step-sep { height: 1px; background: var(--ep-light); }
.ep-step-list { position: relative; display: flex; flex-direction: column; gap: 9px; }

/* Bullet points */
.ep-bullet {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ep-ink);
}
.ep-bullet::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ep-cyan);
  margin-top: 8px;
}

/* =============================================
   STATS (À propos)
   ============================================= */
.ep-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 10px; }
.ep-stat {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}
.ep-stat-bg {
  background: var(--ep-tint);
  border: 1px solid var(--ep-border);
}
.ep-stat-img {
  position: relative;
}
.ep-stat-img .overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.80);
  pointer-events: none;
  border-radius: 24px;
}
.ep-stat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  border-radius: 24px;
}
.ep-stat .number {
  font-size: 58px;
  line-height: 1;
  font-weight: 700;
  color: var(--ep-blue);
  position: relative;
}
.ep-stat .label {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  position: relative;
}

/* =============================================
   INFO BOX
   ============================================= */
.ep-info-box {
  background: var(--ep-wash);
  border-radius: var(--ep-radius);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14.5px;
}
.ep-info-box b { color: var(--ep-blue); }

.ep-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.ep-info-item { display: flex; flex-direction: column; gap: 8px; }
.ep-info-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* =============================================
   HYGIENE CARDS
   ============================================= */
.ep-hyg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.ep-hyg-card {
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .3s ease, box-shadow .35s ease;
}
.ep-hyg-card:hover { border-color: var(--ep-cyan); box-shadow: 0 12px 26px rgba(28,117,255,0.12); }
.ep-hyg-card .photo {
  height: 150px;
  overflow: hidden;
  background: var(--ep-wash);
}
.ep-hyg-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.16,1,.3,1);
}
.ep-hyg-card:hover .photo img { transform: scale(1.05); }
.ep-hyg-card .content { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.ep-hyg-card b { font-size: 17px; color: var(--ep-blue); }

/* =============================================
   HIGHLIGHT BANDS
   ============================================= */
.ep-highlight {
  background: var(--ep-wash);
  border-left: 4px solid var(--ep-cyan);
  border-radius: 0 var(--ep-radius) var(--ep-radius) 0;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ep-highlight b {
  font-size: 15px;
  color: var(--ep-blue);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.ep-highlight p { margin: 0; font-size: 17px; line-height: 1.7; }
.ep-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.ep-highlight-alt { border-left-color: var(--ep-blue); }

/* =============================================
   NEGOCE CARDS
   ============================================= */
.ep-negoce-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.ep-negoce-card {
  background: var(--ep-wash);
  border-radius: var(--ep-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ep-negoce-card b { font-size: 16px; color: var(--ep-blue); }
.ep-negoce-card .desc { font-size: 14.5px; line-height: 1.6; }

/* Bordered variant */
.ep-negoce-card-border {
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--ep-white);
}
.ep-negoce-card-border b { font-size: 16px; color: var(--ep-blue); }

/* Chips */
.ep-chips { display: flex; gap: 7px; flex-wrap: wrap; font-size: 13px; }
.ep-chip {
  background: var(--ep-tint);
  color: var(--ep-ink);
  border-radius: var(--ep-radius-pill);
  padding: 5px 12px;
}

/* Prestation tags */
.ep-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.ep-tag {
  background: var(--ep-tint);
  color: var(--ep-blue);
  border-radius: var(--ep-radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
}

/* =============================================
   GALLERY
   ============================================= */
.ep-gallery-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.ep-filter-btn {
  border: 1px solid var(--ep-border);
  color: var(--ep-slate);
  border-radius: var(--ep-radius-pill);
  padding: 7px 16px;
  font-size: 13px;
  cursor: pointer;
  background: var(--ep-white);
  font-family: inherit;
  transition: border-color .2s, color .2s, background .2s;
}
.ep-filter-btn:hover { border-color: var(--ep-cyan); color: var(--ep-blue); }
.ep-filter-btn.active { background: var(--ep-mid); color: var(--ep-white); border-color: var(--ep-mid); font-weight: 600; }

.ep-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ep-gallery-item {
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ep-wash);
  cursor: pointer;
}
.ep-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.16,1,.3,1);
}
.ep-gallery-item:hover img { transform: scale(1.08); }

/* =============================================
   VIDEO GALLERY
   ============================================= */
.ep-video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.ep-video-item {
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .35s ease;
}
.ep-video-item:hover { box-shadow: 0 12px 26px rgba(28,117,255,0.14); }
.ep-video-thumb {
  position: relative;
  /* Même format que les vidéos : l'aperçu (souvent porteur de texte) n'est
     donc jamais rogné. */
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, var(--ep-tint), #d3e9fd);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Voile sombre pour que le bouton de lecture reste lisible sur l'aperçu. */
.ep-video-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15,27,45,0.28);
  transition: background .3s ease;
}
.ep-video-item:hover .ep-video-thumb::before { background: rgba(15,27,45,0.14); }
.ep-video-play { position: relative; }
.ep-video-play {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--ep-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s;
}
.ep-video-item:hover .ep-video-play { background: var(--ep-mid); }
.ep-video-info { padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.ep-video-info b { font-size: 14.5px; color: var(--ep-ink); }
.ep-video-info span { font-size: 12.5px; color: var(--ep-slate); }

/* =============================================
   BROCHURES
   ============================================= */
.ep-brochures { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.ep-brochure {
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  transition: border-color .3s ease;
}
.ep-brochure:hover { border-color: var(--ep-cyan); }
.ep-brochure-info { display: flex; align-items: center; gap: 14px; }
.ep-brochure-icon {
  width: 42px; height: 42px;
  border-radius: 8px;
  background: var(--ep-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ep-cyan);
  font-weight: 700;
  font-size: 11px;
  flex: none;
}
.ep-brochure-info b { font-size: 15px; color: var(--ep-ink); display: block; }
.ep-brochure-info span { font-size: 12.5px; color: var(--ep-slate); }

/* =============================================
   BLOG
   ============================================= */
.ep-blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.ep-blog-card {
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: box-shadow .35s ease;
}
.ep-blog-card:hover { box-shadow: 0 12px 26px rgba(28,117,255,0.14); }
.ep-blog-card .photo {
  height: 140px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--ep-tint), #d3e9fd);
}
.ep-blog-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.16,1,.3,1);
}
.ep-blog-card:hover .photo img { transform: scale(1.05); }
.ep-blog-card .content { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.ep-blog-card .cat {
  font-size: 11.5px;
  color: var(--ep-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ep-blog-card .content b { font-size: 15.5px; color: var(--ep-ink); line-height: 1.35; }
.ep-blog-card .chapo { font-size: 13px; color: var(--ep-slate); line-height: 1.5; }
.ep-blog-card .date { font-size: 12px; color: var(--ep-slate); margin-top: 4px; }

/* =============================================
   CONTACT
   ============================================= */
.ep-contact-wrap { display: flex; gap: 28px; flex-wrap: wrap; }
.ep-contact-form-wrap {
  flex: 1.3 1 340px;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ep-contact-form-wrap > b { font-size: 18px; color: var(--ep-blue); }
.ep-contact-form-wrap > span { font-size: 13.5px; color: var(--ep-slate); }

.ep-form { display: flex; flex-direction: column; gap: 10px; }
.ep-form-row { display: flex; gap: 10px; flex-wrap: wrap; }
/* Le flex-basis n'a de sens que pour les champs disposés en ligne : appliqué aux
   enfants directs de .ep-form (conteneur en colonne), il imposerait une hauteur
   de 150px — c'est ce qui étirait le menu déroulant « Objet ». */
.ep-form-row input,
.ep-form-row select { flex: 1 1 150px; min-width: 0; }

.ep-form input,
.ep-form select,
.ep-form textarea {
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-sm);
  padding: 11px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ep-ink);
  background: var(--ep-white);
  transition: border-color .2s;
}
.ep-form input:focus,
.ep-form select:focus,
.ep-form textarea:focus {
  outline: none;
  border-color: var(--ep-mid);
  box-shadow: 0 0 0 3px rgba(28,117,255,0.1);
}
.ep-form textarea { resize: vertical; }

.ep-contact-sidebar { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.ep-contact-info {
  background: var(--ep-wash);
  border-radius: var(--ep-radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.ep-contact-info b { font-size: 16px; color: var(--ep-blue); }

.ep-social { display: flex; gap: 10px; margin-top: 4px; }
.ep-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ep-tint);
  border: 1px solid var(--ep-mid);
  color: var(--ep-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}
.ep-social a:hover { background: #d3e9fd; text-decoration: none; }

.ep-map {
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  width: 100%;
  flex: 1;
  min-height: 220px;
}

.ep-success {
  background: var(--ep-tint);
  border: 1px solid var(--ep-cyan);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ep-success b { color: var(--ep-blue); font-size: 15px; }

/* =============================================
   PROJECT DETAIL
   ============================================= */
.ep-projet-detail { display: flex; gap: 32px; flex-wrap: wrap; }
.ep-projet-info { flex: 1.1 1 320px; display: flex; flex-direction: column; gap: 20px; }
.ep-projet-photos { flex: 1.4 1 380px; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 12px; }
.ep-projet-photos .main { grid-column: span 2; grid-row: span 2; }
.ep-projet-photos .wide { grid-column: span 2; }
.ep-projet-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--ep-radius); }

.ep-projet-meta { display: flex; flex-direction: column; gap: 14px; }
.ep-projet-meta-item { display: flex; align-items: center; gap: 14px; }
.ep-projet-meta-icon {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ep-tint);
  border: 1px solid var(--ep-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ep-projet-meta-item span { font-size: 15px; color: var(--ep-ink); }
.ep-projet-meta-item b { color: var(--ep-cyan); letter-spacing: 0.5px; }

.ep-projet-quote {
  background: var(--ep-wash);
  border-left: 4px solid var(--ep-cyan);
  border-radius: var(--ep-radius);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ep-projet-quote b { color: var(--ep-blue); font-size: 17px; }

/* =============================================
   FOOTER
   ============================================= */
.ep-footer {
  background: var(--ep-white);
  border-top: 4px solid var(--ep-cyan);
  color: var(--ep-slate);
  padding: 48px 4% 0;
}
.ep-footer-grid { display: flex; flex-wrap: wrap; gap: 32px; padding-bottom: 28px; }
.ep-footer-brand { flex: 1.2 1 220px; display: flex; flex-direction: column; gap: 12px; }
.ep-footer-brand img { height: 32px; display: block; }
.ep-footer-brand span { font-size: 13.5px; line-height: 1.6; }
.ep-footer-col { flex: 1 1 170px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.ep-footer-col b { color: var(--ep-blue); font-size: 14px; }
.ep-footer-col a {
  color: var(--ep-slate);
  text-decoration: none;
  transition: color .2s;
}
.ep-footer-col a:hover { color: var(--ep-mid); text-decoration: none; }
.ep-footer-contact { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.ep-footer-contact b { color: var(--ep-blue); font-size: 14px; }
.ep-footer-bottom {
  border-top: 1px solid var(--ep-border);
  padding: 16px 0 20px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* =============================================
   PAGES LÉGALES
   ============================================= */
.ep-legal-body {
  max-width: 78ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ep-ink);
}
.ep-legal-body h2 {
  margin: 34px 0 10px;
  font-size: 19px;
  color: var(--ep-blue);
  font-weight: 700;
}
.ep-legal-body h2:first-child { margin-top: 0; }
.ep-legal-body p { margin: 0 0 14px; }
.ep-legal-body ul { margin: 0 0 14px; padding-left: 20px; }
.ep-legal-body li { margin-bottom: 6px; }
.ep-legal-body code {
  background: var(--ep-wash);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 14px;
}
.ep-legal-intro {
  background: var(--ep-tint);
  border-left: 4px solid var(--ep-cyan);
  border-radius: 0 var(--ep-radius) var(--ep-radius) 0;
  padding: 18px 22px;
  margin-bottom: 28px !important;
}
.ep-req { color: var(--ep-slate); font-size: 14px; }
.ep-legal-date {
  margin-top: 32px !important;
  padding-top: 16px;
  border-top: 1px solid var(--ep-border);
  font-size: 13.5px;
  color: var(--ep-slate);
}
/* Mention en attente d'information du client — visible sans être alarmante. */
.ep-todo {
  background: #FFF8E5;
  border: 1px dashed #E0B85C;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14.5px;
  color: #7A5B12;
}
.ep-footer-legal a { color: var(--ep-slate); text-decoration: none; }
.ep-footer-legal a:hover { color: var(--ep-mid); text-decoration: underline; }

/* =============================================
   FOCUS STYLES
   ============================================= */
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ep-mid);
  outline-offset: 2px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  .ep-nav { display: none; }
  .ep-lang-desktop { display: none; }
  .ep-header-cta-desktop { display: none; }
  .ep-hamburger { display: block; }

  .ep-hero { padding: 48px 4% 72px; }
  .ep-hero h1 { font-size: 30px; }
  .ep-hero-sub { font-size: 16px; }

  .ep-page-header h1 { font-size: 28px; }

  .ep-partners-clients { grid-template-columns: 1fr; }
  .ep-clients-box { grid-column: span 1; }

  .ep-projet-detail { flex-direction: column; }
  .ep-projet-photos { grid-auto-rows: 120px; }

  .ep-contact-wrap { flex-direction: column; }

  .ep-footer-grid { flex-direction: column; gap: 24px; }
}

@media (max-width: 640px) {
  .ep-poles { grid-template-columns: 1fr; }
  .ep-projects-grid { grid-template-columns: 1fr; }
  .ep-steps { grid-template-columns: 1fr; }
  .ep-stats { grid-template-columns: 1fr; }
  .ep-hyg-cards { grid-template-columns: 1fr; }
  .ep-negoce-cards { grid-template-columns: 1fr; }
  .ep-blog-grid { grid-template-columns: 1fr; }
  .ep-gallery { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .ep-video-grid { grid-template-columns: 1fr; }

  .ep-cta-band { flex-direction: column; text-align: center; }
  .ep-cta-band .btn { width: 100%; justify-content: center; }

  .section-title { font-size: 26px; }

  .ep-hero-btns { flex-direction: column; }
  .ep-hero-btns .btn { width: 100%; justify-content: center; }
}

/* =============================================
   LIGHTBOX
   ============================================= */
.ep-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15,27,45,0.85);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ep-lightbox.open { display: flex; }
.ep-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.ep-lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: var(--ep-white);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

/* =============================================
   VIDEO MODAL
   ============================================= */
.ep-video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15,27,45,0.90);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ep-video-modal.open { display: flex; }
.ep-video-modal video {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
}
.ep-video-modal-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: var(--ep-white);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Page 404 ---------- */
.ep-404 {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.ep-404-code {
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  color: var(--ep-blue);
  letter-spacing: -2px;
}
.ep-404-lead {
  font-size: 18px;
  color: var(--ep-ink);
  margin: 18px 0 0;
}
.ep-404-help {
  font-size: 14px;
  color: var(--ep-slate);
  margin: 24px 0 12px;
}
.ep-404-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.ep-404-links a {
  background: var(--ep-white);
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-sm);
  padding: 9px 14px;
  font-size: 14px;
  color: var(--ep-mid);
  text-decoration: none;
}
.ep-404-links a:hover {
  border-color: var(--ep-mid);
  background: var(--ep-lighter);
}
@media (max-width: 600px) {
  .ep-404-code { font-size: 64px; }
  .ep-404-lead { font-size: 16px; }
}

/* ---------- Formulaire : consentement et pot de miel ---------- */
.ep-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ep-slate);
}
/* Neutralise les styles de champ texte de .ep-form, qui donneraient à la case
   une bordure et un rembourrage de 11px. */
.ep-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  accent-color: var(--ep-mid);
  flex: none;
}
.ep-consent a { color: var(--ep-mid); text-decoration: underline; }

/* Champ leurre : invisible à l'écran et ignoré par les lecteurs d'écran, mais
   rempli par les robots qui complètent aveuglément tous les champs. Pas de
   display:none, que certains robots détectent et contournent. */
.ep-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Cartes d'actualité devenues cliquables ---------- */
/* .ep-blog-card était un <div> dans la maquette ; c'est désormais un <a> vers
   la page article. Sans ces règles, le titre et le chapô hériteraient du bleu
   souligné des liens. */
a.ep-blog-card { text-decoration: none; color: inherit; }
a.ep-blog-card:hover { text-decoration: none; }

/* ---------- Article détaillé ---------- */
.ep-article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  max-width: 820px;
  margin: 0 auto;
}
.ep-article-photo {
  aspect-ratio: 16 / 9;
  border-radius: var(--ep-radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--ep-tint), #d3e9fd);
}
.ep-article-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-article-corps { display: flex; flex-direction: column; gap: 14px; }
.ep-article-cat {
  font-size: 13px;
  font-weight: 700;
  color: var(--ep-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ep-article-corps h2 {
  font-size: 28px;
  line-height: 1.25;
  color: var(--ep-blue);
  margin: 0;
}
.ep-article-date { font-size: 13px; color: var(--ep-slate); }
.ep-article-chapo {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ep-ink);
  font-weight: bold;
  margin: 0;
}
.ep-article-corps p { font-size: 16px; line-height: 1.75; margin: 0; }
@media (max-width: 600px) {
  .ep-article-corps h2 { font-size: 22px; }
  .ep-article-chapo { font-size: 16px; }
}
