/* EPEG Header — front.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ══ RESET ══ */
.epegh-header *, .epegh-header *::before, .epegh-header *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.epegh-header {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  width: 100%;
  z-index: 9999;
  position: relative;
}
.epegh-header.epegh-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
.epegh-header.epegh-ombre .epegh-navbar {
  box-shadow: 0 3px 16px rgba(0,0,0,.18);
}
.epegh-spacer { display: block; }

/* ══ BARRE SUPÉRIEURE ══ */
.epegh-topbar {
  background: var(--epegh-topbar-bg, #1a3a6e);
  color: var(--epegh-topbar-color, #fff);
}
.epegh-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Ticker flash */
.epegh-flash {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.epegh-flash-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--epegh-flash-color, #f0c040);
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  flex-shrink: 0;
}
.epegh-ticker-wrap {
  flex: 1;
  overflow: hidden;
}
.epegh-ticker {
  display: inline-flex;
  white-space: nowrap;
  animation: epegh-scroll linear infinite;
  animation-duration: 28s;
}
.epegh-ticker:hover { animation-play-state: paused; }
.epegh-ticker-item {
  font-size: 13px;
  font-weight: 500;
  color: var(--epegh-topbar-color, #fff);
  padding-right: 80px;
  display: inline-block;
}
.epegh-ticker-item a { color: inherit; text-decoration: none; }
.epegh-ticker-item a:hover { text-decoration: underline; }
@keyframes epegh-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Infos droite (adresse + contact) */
.epegh-topbar-right {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}
.epegh-topbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.epegh-ico {
  width: 18px;
  height: 18px;
  stroke: var(--epegh-flash-color, #f0c040);
  flex-shrink: 0;
}
.epegh-item-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--epegh-flash-color, #f0c040);
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1;
}
.epegh-item-val {
  font-size: 12px;
  font-weight: 500;
  color: var(--epegh-topbar-color, #fff);
  line-height: 1.3;
  margin-top: 1px;
}
.epegh-item-val a { color: inherit; text-decoration: none; }
.epegh-item-val a:hover { text-decoration: underline; }

/* ══ BARRE DE NAVIGATION ══
   Le logo dépasse au-dessus et en-dessous : overflow visible
══ */
.epegh-navbar {
  background: var(--epegh-navbar-bg, #c8a84b);
  position: relative;
  overflow: visible;         /* logo déborde */
}
.epegh-navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: var(--epegh-navbar-h, 62px);
  display: flex;
  align-items: center;
  gap: 0;
  overflow: visible;
}

/* ── Logo qui déborde ── */
.epegh-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 32px;
  /* Le logo déborde en haut et en bas de la navbar */
  position: relative;
  z-index: 2;
}
.epegh-logo-img {
  height: var(--epegh-logo-h, 90px);   /* plus grand que la navbar → débordement */
  width: auto;
  object-fit: contain;
  display: block;
  /* Légère ombre pour le faire ressortir sur le fond */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.2));
}
.epegh-logo-text {
  font-size: 22px;
  font-weight: 900;
  color: var(--epegh-navbar-color, #fff);
  letter-spacing: -.3px;
}

/* ── Menu desktop ── */
.epegh-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  height: var(--epegh-navbar-h, 62px);
}
.epegh-menu-item { position: relative; height: 100%; display: flex; align-items: center; }
.epegh-menu-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  height: 100%;
  font-size: 14px;
  font-weight: 600;
  color: var(--epegh-navbar-color, #fff);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
  letter-spacing: .01em;
}
.epegh-menu-link:hover,
.epegh-menu-item.epegh-active > .epegh-menu-link {
  color: var(--epegh-navbar-active, #f0c040);
}
.epegh-chevron {
  width: 12px;
  height: 12px;
  transition: transform .2s;
  flex-shrink: 0;
}
.epegh-menu-item:hover > .epegh-menu-link .epegh-chevron {
  transform: rotate(180deg);
}

/* Sous-menu */
.epegh-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 0 0 10px 10px;
  min-width: 210px;
  padding: 6px 0;
  box-shadow: 0 8px 28px rgba(0,0,0,.14);
  border: 1px solid #e8e0ed;
  border-top: 3px solid var(--epegh-navbar-bg, #c8a84b);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 100;
  list-style: none;
}
.epegh-menu-item:hover .epegh-submenu,
.epegh-menu-item:focus-within .epegh-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.epegh-submenu li a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  transition: background .12s, color .12s;
}
.epegh-submenu li a:hover {
  background: #f5f0fb;
  color: var(--epegh-navbar-bg, #c8a84b);
}

/* ── Bouton CTA ── */
.epegh-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  margin-left: 20px;
  background: var(--epegh-cta-bg, #ffffff);
  color: var(--epegh-cta-color, #c8a84b) !important;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  border: 2px solid var(--epegh-cta-bg, #ffffff);
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.epegh-cta:hover {
  background: var(--epegh-cta-bg-hover, #f0c040) !important;
  color: var(--epegh-cta-color-hover, #ffffff) !important;
  border-color: var(--epegh-cta-bg-hover, #f0c040);
  transform: translateY(-1px);
}

/* ── Hamburger ── */
.epegh-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.epegh-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--epegh-hamburger, #fff);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.epegh-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.epegh-hamburger.open span:nth-child(2) { opacity: 0; }
.epegh-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Menu mobile ── */
.epegh-mobile-menu {
  display: none;
  background: var(--epegh-navbar-bg, #c8a84b);
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.epegh-mobile-menu.open { max-height: 700px; }
.epegh-mobile-list { list-style: none; padding: 4px 0; }
.epegh-mobile-list li > a {
  display: block;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--epegh-navbar-color, #fff);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.epegh-mobile-list li:last-child > a { border-bottom: none; }
.epegh-mobile-list ul { list-style: none; background: rgba(0,0,0,.1); }
.epegh-mobile-list ul li a {
  padding: 10px 20px 10px 34px;
  font-size: 13px;
  opacity: .85;
}
.epegh-cta-mobile {
  display: block;
  margin: 14px 16px 16px;
  text-align: center;
  border-radius: 10px;
  margin-left: auto;
  margin-right: auto;
  max-width: 240px;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 1024px) {
  .epegh-menu-link { padding: 0 10px; font-size: 13px; }
}

@media (max-width: 768px) {
  .epegh-topbar-right { display: none; }
  .epegh-menu { display: none; }
  .epegh-cta:not(.epegh-cta-mobile) { display: none; }
  .epegh-hamburger { display: flex; }
  .epegh-mobile-menu { display: block; }
  .epegh-topbar-inner { padding: 0 16px; }
  .epegh-navbar-inner { padding: 0 16px; }
  .epegh-logo { margin-right: auto; }
  .epegh-logo-img { height: 56px; }
}
