/* =====================================================================
   MONSIEUR HUGO — HEADER ET MEGA-MENU
   ---------------------------------------------------------------------
   Repris de la maquette, avec toutes les classes préfixées « mh- » : ce
   header remplace celui de Divi sur l'ensemble du site, il ne doit donc
   entrer en collision avec aucun sélecteur du thème parent.
   ===================================================================== */

.mh-site-header {
  --mh-h-blue:  #006eac;
  --mh-h-cyan:  #00c7dd;
  --mh-h-ink:   #0f172a;
  --mh-h-muted: #64748b;
  --mh-h-faint: #94a3b8;
  --mh-h-line:  #e2e8f0;
  --mh-h-sky:   #f0f9ff;

  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(135deg, #006eac 0%, #00c7dd 100%);
  border-bottom: 1px solid rgba(255,255,255,.15);
  transition: box-shadow .25s ease;
  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
}
.mh-site-header.mh-scrolled { box-shadow: 0 6px 24px -10px rgba(0,110,172,.5); }

.mh-site-header *,
.mh-mobile-menu * { box-sizing: border-box; }

.mh-header-inner {
  /* Même conteneur que le héro (et que le site dev) : le logo et le
     surtitre tombent sur la même verticale. */
  width: 100%; max-width: 1536px; margin: 0 auto;
  padding: 0 16px; height: 70px;
  display: flex; justify-content: space-between; align-items: center;
}
@media (min-width: 768px) { .mh-header-inner { padding: 0 24px; } }

/* ---- Marque ---- */
.mh-site-header .mh-brand,
.mh-mobile-menu .mh-brand {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; text-decoration: none;
}
.mh-brand-mark {
  width: 42px; height: 42px; border-radius: 12px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px -3px rgba(0,0,0,.25);
  transition: transform .2s ease; flex-shrink: 0;
}
.mh-brand-mark img { display: block; width: 24px; height: 24px; object-fit: contain; }
.mh-brand:hover .mh-brand-mark { transform: rotate(3deg); }
.mh-brand-name { font-size: 22px; font-weight: 900; color: #fff; letter-spacing: -.02em; }

/* ---- Navigation ---- */
.mh-nav { display: flex; align-items: center; gap: 2px; }
.mh-nav-item { position: static; display: flex; align-items: center; height: 70px; }

.mh-site-header .mh-nav-trigger {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 14px; font-family: inherit;
  font-size: 15px; font-weight: 700;
  color: rgba(255,255,255,.92); background: none; border: none;
  cursor: pointer; border-radius: 9px; text-decoration: none;
  transition: color .2s ease, background .2s ease;
}
.mh-nav-trigger i { font-size: 10px; color: rgba(255,255,255,.55); transition: transform .25s ease, color .2s ease; }
.mh-nav-item:hover .mh-nav-trigger,
.mh-nav-item.mh-ouvert .mh-nav-trigger { color: #fff; background: rgba(255,255,255,.15); }
.mh-nav-item:hover .mh-nav-trigger i,
.mh-nav-item.mh-ouvert .mh-nav-trigger i { transform: rotate(180deg); color: #fff; }

/* ---- Actions ---- */
.mh-header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.mh-site-header .mh-nav-login {
  font-size: 15px; font-weight: 700; color: rgba(255,255,255,.92);
  text-decoration: none; transition: color .2s ease;
}
.mh-site-header .mh-nav-login:hover { color: #fff; }
.mh-btn-trial {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--mh-h-blue, #006eac);
  font-size: 15px; font-weight: 800; padding: 11px 22px; border-radius: 50px;
  text-decoration: none; box-shadow: 0 4px 14px -4px rgba(0,0,0,.2);
  transition: transform .3s ease, box-shadow .3s ease;
}
.mh-btn-trial:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -6px rgba(0,0,0,.3); }
.mh-btn-trial i { font-size: 12px; }

/* ---- Panneaux ---- */
.mh-mega {
  position: absolute; left: 50%; top: 70px;
  transform: translateX(-50%) translateY(10px);
  width: min(880px, calc(100vw - 32px));
  padding-top: 12px; z-index: 1001;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.mh-mega--large { width: min(1120px, calc(100vw - 32px)); }
.mh-nav-item:hover .mh-mega,
.mh-nav-item.mh-ouvert .mh-mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mh-mega-card {
  background: #fff; border: 1px solid var(--mh-h-line, #e2e8f0);
  border-radius: 18px; padding: 26px 28px;
  box-shadow: 0 28px 64px -16px rgba(15,23,42,.22);
}

/* Le nombre de colonnes suit le menu : aucune classe à maintenir. */
.mh-mega-grid { display: grid; gap: 22px; grid-template-columns: repeat(var(--mh-cols, 3), minmax(0, 1fr)); }

.mh-mega-col-title {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--mh-h-faint, #94a3b8);
  margin: 0 0 12px;
}

/* Liens riches */
.mh-mega-liens { display: flex; flex-direction: column; }
.mh-mega-col--grille .mh-mega-liens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }

.mh-mega-card a.mh-mega-lien {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px; border-radius: 11px; text-decoration: none;
  transition: background .2s ease;
}
.mh-mega-card a.mh-mega-lien:hover { background: var(--mh-h-sky, #f0f9ff); }
.mh-mega-lien-ic {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px;
  background: #f0f9ff; display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.mh-mega-lien:hover .mh-mega-lien-ic { background: linear-gradient(135deg,#006eac,#00c7dd); }
.mh-mega-lien-ic i {
  font-size: 15px;
  background: linear-gradient(135deg,#006eac,#00c7dd);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; transition: all .2s ease;
}
.mh-mega-lien:hover .mh-mega-lien-ic i { background: #fff; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.mh-mega-lien strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--mh-h-ink, #0f172a); line-height: 1.3; }
.mh-mega-lien em { display: block; font-style: normal; font-size: 12.5px; color: var(--mh-h-muted, #64748b); margin-top: 2px; line-height: 1.35; }

/* Liens compacts */
.mh-mega-col--compact .mh-mega-liens { gap: 2px; }
.mh-mega-col--compact .mh-mega-liens a {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 8px;
  font-size: 14px; color: #334155; text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.mh-mega-col--compact .mh-mega-liens a i {
  font-size: 12px; color: var(--mh-h-faint, #94a3b8);
  width: 16px; text-align: center; transition: color .2s;
}
.mh-mega-col--compact .mh-mega-liens a:hover { background: var(--mh-h-sky, #f0f9ff); color: var(--mh-h-blue, #006eac); }
.mh-mega-col--compact .mh-mega-liens a:hover i { color: var(--mh-h-blue, #006eac); }

/* Carte promo */
.mh-mega-card a.mh-mega-promo {
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  background: linear-gradient(140deg,#006eac,#00c7dd); color: #fff;
  border-radius: 14px; padding: 22px; text-decoration: none;
}
.mh-mega-promo-badge {
  align-self: flex-start; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  background: rgba(255,255,255,.2); padding: 4px 10px; border-radius: 20px; margin-bottom: 4px;
}
.mh-mega-promo strong { font-size: 24px; font-weight: 900; line-height: 1.15; }
.mh-mega-promo-desc { font-size: 13.5px; color: rgba(255,255,255,.9); line-height: 1.45; }
.mh-mega-promo-cta {
  margin-top: 10px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; color: var(--mh-h-blue, #006eac);
  font-weight: 700; font-size: 14px; line-height: 1.25; padding: 10px 18px; border-radius: 50px;
}
.mh-mega-promo-cta i { font-size: 11px; flex-shrink: 0; }

/* Pied de panneau — pastilles */
.mh-mega-foot {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--mh-h-line, #e2e8f0);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.mh-mega-foot-label {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--mh-h-faint, #94a3b8); margin-right: 2px;
}
.mh-mega-foot a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: #334155;
  background: #f1f5f9; padding: 7px 13px; border-radius: 50px;
  text-decoration: none; transition: background .2s, color .2s;
}
.mh-mega-foot a:hover { background: var(--mh-h-sky, #f0f9ff); color: var(--mh-h-blue, #006eac); }

/* ---- Burger ---- */
.mh-burger {
  display: none; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  font-size: 22px; color: #fff;
}

/* ---- Mobile ---- */
.mh-mobile-menu, .mh-mobile-overlay { display: none; }

@media (max-width: 1024px) {
  .mh-nav, .mh-header-actions { display: none; }
  .mh-burger { display: flex; }

  .mh-mobile-overlay {
    display: block; position: fixed; inset: 0;
    background: rgba(15,23,42,.5); z-index: 1100;
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
  }
  .mh-mobile-overlay.mh-open { opacity: 1; visibility: visible; }

  .mh-mobile-menu {
    display: block; position: fixed; top: 0; right: 0; height: 100%;
    width: min(360px, 88vw); background: #fff; z-index: 1101;
    transform: translateX(100%); transition: transform .3s ease;
    overflow-y: auto; box-shadow: -10px 0 40px rgba(0,0,0,.2);
    font-family: 'Source Sans Pro', -apple-system, sans-serif;
  }
  .mh-mobile-menu.mh-open { transform: translateX(0); }

  .mh-mobile-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px; background: linear-gradient(135deg,#006eac,#00c7dd);
  }
  .mh-mobile-close {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: none; border: none; font-size: 22px; color: rgba(255,255,255,.85); cursor: pointer;
  }
  .mh-mobile-body { padding: 12px 16px 28px; }

  .mh-acc { border-bottom: 1px solid #f1f5f9; }
  .mh-mobile-menu .mh-acc-btn {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    background: none; border: none; cursor: pointer; font-family: inherit;
    font-size: 16px; font-weight: 700; color: #0f172a; padding: 16px 6px;
    text-align: left; text-decoration: none;
  }
  .mh-mobile-menu .mh-acc-lien { border-bottom: 1px solid #f1f5f9; }
  .mh-acc-btn i { color: #94a3b8; font-size: 13px; transition: transform .25s ease; }
  .mh-acc.mh-open .mh-acc-btn i { transform: rotate(180deg); }

  .mh-acc-panel { display: none; padding: 0 6px 12px; }
  .mh-acc.mh-open .mh-acc-panel { display: block; }
  .mh-acc-titre {
    font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .08em; color: #94a3b8; margin: 12px 12px 4px;
  }
  .mh-acc-panel a {
    display: block; padding: 9px 12px; font-size: 14.5px;
    color: #475569; border-radius: 8px; text-decoration: none;
  }
  .mh-acc-panel a:hover { background: #f0f9ff; color: #006eac; }
  .mh-acc-promo {
    display: block; margin: 8px 12px; padding: 12px 14px !important;
    background: linear-gradient(135deg,#006eac,#00c7dd); color: #fff !important;
    border-radius: 10px; font-weight: 700;
  }
  .mh-mobile-menu .mh-acc-login {
    display: block; padding: 16px 6px; font-size: 16px;
    font-weight: 700; color: #0f172a; text-decoration: none;
  }
  .mh-trial-mobile {
    width: 100%; justify-content: center; margin-top: 10px;
    background: linear-gradient(135deg,#006eac,#00c7dd); color: #fff;
  }
  .mh-trial-mobile:hover { color: #fff; }
}

@media (max-width: 480px) {
  .mh-header-inner { height: 62px; }
  .mh-brand-name { font-size: 17px; }
  .mh-mega { top: 62px; }
}

/* Divi réserve parfois une marge au-dessus du contenu pour son propre
   header fixe : notre header étant sticky, elle n'a plus lieu d'être. */
body.et_fixed_nav #page-container { padding-top: 0 !important; }

/* Pictos réseaux sociaux du pied de page (module Divi) : servis par Font
   Awesome 6, déjà chargé partout, plutôt que par la police ETmodules de
   Divi, qui ne se chargeait pas sur la recette (carrés vides). */
.et_pb_social_media_follow li a.icon::before {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}
.et_pb_social_media_follow li.et-social-facebook a.icon::before  { content: "\f39e" !important; }
.et_pb_social_media_follow li.et-social-linkedin a.icon::before  { content: "\f0e1" !important; }
.et_pb_social_media_follow li.et-social-instagram a.icon::before { content: "\f16d" !important; }
.et_pb_social_media_follow li.et-social-twitter a.icon::before   { content: "\e61b" !important; }
.et_pb_social_media_follow li.et-social-youtube a.icon::before   { content: "\f167" !important; }
