/* EES Menu — PC / tablette / mobile + badge En cours */

/* Évite le double menu Blocksy (menu + menu-secondary) */
html body #header [data-id="menu-secondary"],
html body #header #header-menu-2,
html body #header .header-menu-2 {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Masquer l’ancien bouton « Nous contacter » */
html body #header [data-id="button"],
html body #header .ct-header-cta {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Contact = bouton cadre rouge + sous-menus */
@media (min-width: 1000px) {
  /* Menu + Contact centrés dans l’espace libre à droite des logos */
  html body #header [data-device="desktop"] [data-id="menu"] {
    flex: 0 0 auto !important;
    width: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    --menu-items-spacing: 10px;
  }

  html body #header [data-device="desktop"] [data-id="menu"] > .menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
    width: auto !important;
    gap: 6px;
    column-gap: 6px;
  }

  html body #header [data-device="desktop"] [data-id="menu"] > .menu > .menu-item:not(.ees-menu-contact-cta) > .ct-menu-link,
  html body #header [data-device="desktop"] [data-id="menu"] > .menu > .menu-item:not(.ees-menu-contact-cta) > a {
    padding-inline: 10px !important;
    padding-block: 6px !important;
  }

  html body #header [data-device="desktop"] [data-id="menu"] > .menu > .menu-item:not(.ees-menu-contact-cta) > .sub-menu .ct-menu-link {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
    padding-inline: 14px !important;
  }

  /* Contact reste collé au groupe menu (plus de push vers le bord droit) */
  html body #header [data-device="desktop"] [data-id="menu"] > .menu > .ees-menu-contact-cta {
    margin-left: 18px !important;
    padding-left: 0;
  }

  html body #header [data-device="desktop"] [data-id="menu"] > .menu > .ees-menu-contact-cta > .ct-menu-link,
  html body #header [data-device="desktop"] [data-id="menu"] > .menu > .ees-menu-contact-cta > a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    border: 2px solid #C82028 !important;
    background: #C82028 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.2 !important;
    box-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  html body #header [data-device="desktop"] [data-id="menu"] > .menu > .ees-menu-contact-cta:hover > .ct-menu-link,
  html body #header [data-device="desktop"] [data-id="menu"] > .menu > .ees-menu-contact-cta:hover > a,
  html body #header [data-device="desktop"] [data-id="menu"] > .menu > .ees-menu-contact-cta.ct-focus > .ct-menu-link {
    background: #9A181E !important;
    border-color: #9A181E !important;
    color: #ffffff !important;
  }

  /* Sur header transparent (accueil) : garder le cadre rouge plein */
  html body #header [data-device="desktop"][data-transparent] [data-transparent-row="yes"] [data-id="menu"] > .menu > .ees-menu-contact-cta > .ct-menu-link,
  html body #header [data-device="desktop"][data-transparent] [data-transparent-row="yes"] [data-id="menu"] > .menu > .ees-menu-contact-cta > a {
    color: #ffffff !important;
    background: #C82028 !important;
    border-color: #C82028 !important;
  }

  /* Scroll / sticky : texte Contact toujours blanc (pas navy) */
  html body.ees-scrolled #header [data-device="desktop"] [data-id="menu"] > .menu > .ees-menu-contact-cta > .ct-menu-link,
  html body.ees-scrolled #header [data-device="desktop"] [data-id="menu"] > .menu > .ees-menu-contact-cta > a,
  html body.home.ees-scrolled #header [data-device="desktop"] [data-id="menu"] > .menu > .ees-menu-contact-cta > .ct-menu-link,
  html body.home.ees-scrolled #header [data-device="desktop"] [data-id="menu"] > .menu > .ees-menu-contact-cta > a,
  html body #header [data-sticky*="yes"] [data-id="menu"] > .menu > .ees-menu-contact-cta > .ct-menu-link,
  html body #header [data-sticky*="yes"] [data-id="menu"] > .menu > .ees-menu-contact-cta > a {
    color: #ffffff !important;
    background: #C82028 !important;
    border-color: #C82028 !important;
  }

  html body.ees-scrolled #header [data-device="desktop"] [data-id="menu"] > .menu > .ees-menu-contact-cta:hover > .ct-menu-link,
  html body.ees-scrolled #header [data-device="desktop"] [data-id="menu"] > .menu > .ees-menu-contact-cta:hover > a,
  html body #header [data-sticky*="yes"] [data-id="menu"] > .menu > .ees-menu-contact-cta:hover > .ct-menu-link,
  html body #header [data-sticky*="yes"] [data-id="menu"] > .menu > .ees-menu-contact-cta:hover > a {
    color: #ffffff !important;
    background: #9A181E !important;
    border-color: #9A181E !important;
  }

  html body #header [data-device="desktop"] [data-id="menu"] > .menu > .ees-menu-contact-cta > .sub-menu {
    min-width: 220px;
    right: 0;
    left: auto;
  }
}

/* Mobile / tablette : Contact mis en avant dans le panneau */
@media (max-width: 999.98px) {
  .ct-panel .menu > .ees-menu-contact-cta > a,
  .ct-panel .menu > .ees-menu-contact-cta > .ct-menu-link {
    display: inline-flex !important;
    margin: 8px 0;
    padding: 10px 14px !important;
    border-radius: 4px;
    border: 2px solid #C82028;
    background: #C82028;
    color: #ffffff !important;
    font-weight: 600;
    text-transform: uppercase;
  }
}

.ees-menu-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #0B2E4A;
  background: #F7CA18;
  line-height: 1.4;
}

#header .menu .ees-menu-item-pending > a .ees-menu-badge,
.ct-panel .menu .ees-menu-item-pending > a .ees-menu-badge {
  color: #0B2E4A;
  background: #F7CA18;
}

/* Sous-menus desktop : lisibilité */
@media (min-width: 1000px) {
  html body #header [data-device="desktop"] .menu .sub-menu {
    min-width: 260px;
    padding: 10px 0;
  }

  html body #header [data-device="desktop"] .menu .sub-menu .ct-menu-link,
  html body #header [data-device="desktop"] .menu .sub-menu a {
    white-space: normal;
    line-height: 1.35;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  html body #header [data-device="desktop"] .menu > .menu-item-has-children > .ct-menu-link {
    position: relative;
  }

  /* Survol sous-menu : jaune remarquable (à la place du bleu) */
  html body #header [data-device="desktop"] [data-id="menu"] {
    --menu-indicator-hover-color: #F7CA18 !important;
    --menu-indicator-active-color: #F7CA18 !important;
  }

  html body #header [data-device="desktop"] .sub-menu {
    --theme-link-hover-color: #0B2E4A !important;
  }

  html body #header [data-device="desktop"] .sub-menu .menu-item > .ct-menu-link,
  html body #header [data-device="desktop"] .sub-menu .menu-item > a {
    transition: background-color 0.18s ease, color 0.18s ease;
  }

  html body #header [data-device="desktop"] .sub-menu .menu-item:hover > .ct-menu-link,
  html body #header [data-device="desktop"] .sub-menu .menu-item:hover > a,
  html body #header [data-device="desktop"] .sub-menu .menu-item.focus > .ct-menu-link,
  html body #header [data-device="desktop"] .sub-menu .menu-item.ct-focus > .ct-menu-link,
  html body #header [data-device="desktop"] .sub-menu .current-menu-item > .ct-menu-link {
    color: #0B2E4A !important;
    background-color: #F7CA18 !important;
  }

  html body #header [data-device="desktop"] .sub-menu .menu-item:hover > .ct-menu-link .ees-menu-badge,
  html body #header [data-device="desktop"] .sub-menu .menu-item:hover > a .ees-menu-badge {
    background: #0B2E4A;
    color: #F7CA18;
  }
}

/* Mobile : survol / focus jaune aussi */
.ct-panel .menu .sub-menu .menu-item > a:hover,
.ct-panel .menu .sub-menu .menu-item > .ct-menu-link:hover {
  color: #0B2E4A !important;
  background-color: #F7CA18 !important;
}

/* Newsletter — page publique */
.ees-newsletters {
  max-width: 860px;
  margin: 0 auto 40px;
}

.ees-newsletters__intro {
  margin: 0 0 24px;
  color: #3a4a58;
  line-height: 1.55;
}

.ees-newsletter-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.ees-newsletter-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: #f7f9fc;
  border: 1px solid rgba(11, 46, 74, 0.12);
  border-left: 4px solid #F7CA18;
}

.ees-newsletter-item__title {
  margin: 0 0 4px;
  font-size: 18px;
  color: #0B2E4A;
}

.ees-newsletter-item__meta {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.ees-newsletter-item__btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 4px;
  background: #0B2E4A;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
}

.ees-newsletter-item__btn:hover {
  background: #C82028;
}

.ees-newsletter-form {
  padding: 22px 20px;
  background: linear-gradient(165deg, rgba(247, 202, 24, 0.12), transparent 55%), #0B2E4A;
  color: #fff;
  border-radius: 4px;
}

.ees-newsletter-form h3 {
  margin: 0 0 8px;
  color: #F7CA18;
  font-size: 20px;
}

.ees-newsletter-form p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.88);
}

.ees-newsletter-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ees-newsletter-form input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  height: 42px;
  padding: 8px 12px;
  font-size: 15px;
  line-height: 1.3;
  color: #0B2E4A !important;
  background: #fff !important;
  border: 1.5px solid #fff !important;
  border-radius: 4px;
  outline: none;
  box-shadow: none;
  caret-color: #0B2E4A;
  -webkit-text-fill-color: #0B2E4A;
}

.ees-newsletter-form input[type="email"]::placeholder {
  color: #6b7c8a !important;
  opacity: 1;
  -webkit-text-fill-color: #6b7c8a;
}

.ees-newsletter-form input[type="email"]:focus {
  border-color: #F7CA18 !important;
  box-shadow: 0 0 0 2px rgba(247, 202, 24, 0.45);
}

.ees-newsletter-form button {
  padding: 10px 16px;
  border: 0;
  border-radius: 4px;
  background: #F7CA18;
  color: #0B2E4A;
  font-weight: 700;
  cursor: pointer;
}

.ees-newsletter-form button:hover {
  background: #fff;
}

.ees-newsletter-form__msg {
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.ees-newsletter-form__msg--ok {
  border-left: 3px solid #F7CA18;
}

.ees-newsletter-form__msg--err {
  border-left: 3px solid #C82028;
}

/* Compteur d’abonnés */
.ees-nl-count--card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #0B2E4A 0%, #1070B8 100%);
  color: #fff;
  border-radius: 8px;
  border-left: 4px solid #F7CA18;
  box-shadow: 0 10px 28px rgba(11, 46, 74, 0.18);
}

.ees-nl-count__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(247, 202, 24, 0.18);
  color: #F7CA18;
}

.ees-nl-count__prefix {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.ees-nl-count__value {
  margin: 0;
  line-height: 1;
}

.ees-nl-count__num {
  font-size: 34px;
  font-weight: 800;
  color: #F7CA18;
  letter-spacing: -0.02em;
}

.ees-nl-count--card .ees-nl-count__label {
  margin: 4px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}

.ees-nl-count--badge {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 12px;
  background: rgba(247, 202, 24, 0.16);
  border: 1px solid rgba(247, 202, 24, 0.55);
  border-radius: 999px;
  color: #fff;
}

.ees-nl-count--badge .ees-nl-count__num {
  font-size: 18px;
  color: #F7CA18;
}

.ees-nl-count--badge .ees-nl-count__label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.ees-nl-count--inline {
  display: inline;
  color: inherit;
}

.ees-nl-count--inline .ees-nl-count__num {
  font-size: 1.15em;
  color: #C82028;
}

.ees-newsletter-form .ees-nl-count--card {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.ees-newsletter-form--footer .ees-nl-count--badge {
  margin-bottom: 10px;
}

.ees-newsletters > .ees-nl-count--card {
  margin-bottom: 22px;
}

/* Newsletter compacte dans le pied de page */
.ct-footer .ees-newsletter-form--footer,
.ees-newsletter-form--footer {
  margin-top: 22px;
  padding: 16px 14px;
  border-radius: 4px;
  background: linear-gradient(160deg, rgba(247, 202, 24, 0.18), transparent 60%), #0B2E4A;
}

.ees-newsletter-form--footer h3 {
  font-size: 17px;
  margin: 0 0 6px;
  color: #F7CA18;
}

.ees-newsletter-form--footer p {
  font-size: 13px;
  margin: 0 0 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

.ees-newsletter-form--footer .ees-newsletter-form__row {
  flex-direction: column;
  gap: 8px;
}

.ees-newsletter-form--footer input[type="email"],
.ees-newsletter-form--footer button {
  width: 100%;
  box-sizing: border-box;
}

.ees-newsletter-form--footer input[type="email"] {
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 3px 10px !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  color: #0B2E4A !important;
  background: #fff !important;
  border: 1.5px solid #F7CA18 !important;
  border-radius: 3px !important;
  outline: none !important;
  box-shadow: none !important;
}

.ees-newsletter-form--footer input[type="email"]:focus {
  border-color: #F7CA18 !important;
  box-shadow: 0 0 0 2px rgba(247, 202, 24, 0.45) !important;
}


.ees-newsletter-form--footer .ees-newsletter-form__more {
  margin: 10px 0 0;
  font-size: 12px;
}

.ees-newsletter-form--footer .ees-newsletter-form__more a {
  color: #F7CA18 !important;
  text-decoration: underline;
}

.ees-newsletter-form--footer .ees-newsletter-form__more a:hover {
  color: #fff !important;
}

/* Pied de page : liens + empilement responsive */
.ct-footer .ees-footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ct-footer .ees-footer-nav li {
  margin: 0 0 6px;
  padding: 0;
}

.ct-footer .ees-footer-nav a {
  text-decoration: none;
  line-height: 1.35;
}

.ct-footer .ct-widget a {
  transition: color 0.15s ease;
}

.ct-footer .ct-widget a:hover {
  color: #F7CA18 !important;
}

.ct-footer .ees-footer-newsletter-widget {
  margin-top: 4px;
}

@media (max-width: 999.98px) {
  .ct-footer [data-row="middle"] .ct-widget {
    margin-bottom: 8px;
  }

  .ct-footer .ees-newsletter-form--footer {
    margin-top: 18px;
  }

  .ees-newsletter-form--footer .ees-newsletter-form__row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ees-newsletter-form--footer input[type="email"] {
    flex: 1 1 180px;
    width: auto;
  }

  .ees-newsletter-form--footer button {
    flex: 0 0 auto;
    width: auto;
  }
}

@media (max-width: 689.98px) {
  .ees-newsletter-form--footer .ees-newsletter-form__row {
    flex-direction: column;
  }

  .ees-newsletter-form--footer input[type="email"],
  .ees-newsletter-form--footer button {
    width: 100%;
  }
}

/* Tablette / mobile : panneau offcanvas */
@media (max-width: 999.98px) {
  .ct-panel .menu > .menu-item {
    border-bottom: 1px solid rgba(11, 46, 74, 0.08);
  }

  .ct-panel .menu .sub-menu {
    margin: 0 0 8px 12px;
    padding: 0;
  }

  .ct-panel .menu .sub-menu a,
  .ct-panel .menu .sub-menu .ct-menu-link {
    font-size: 14px;
    line-height: 1.4;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .ct-panel .menu .ees-menu-badge {
    font-size: 9px;
    padding: 1px 5px;
  }
}

/* Pages en attente de contenu */
.ees-page-pending {
  max-width: 720px;
  margin: 24px auto 48px;
  padding: 28px 24px;
  background:
    linear-gradient(165deg, rgba(16, 112, 184, 0.06), transparent 50%),
    #f7f9fc;
  border: 1px solid rgba(11, 46, 74, 0.12);
  border-left: 4px solid #F7CA18;
}

.ees-pending-badge {
  display: inline-block !important;
  margin: 0 0 12px !important;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0B2E4A;
  background: #F7CA18;
}
