/* =====================================================
   Mediwalk Le Mag — hero + footer à la charte du site
   (n'agit que sur .mg-hero et .ep-footer : le contenu des articles n'est pas touché)
   ===================================================== */
.mg-hero {
  --mg-navy: #0c243b; --mg-ink: #0f2d4a; --mg-blue: #1194d6; --mg-sky: #5cc4f5; --mg-coral: #ff5a1f; --mg-mist: #c9dbeb;
  position: relative; display: flex; align-items: center; min-height: 420px; margin: 70px 0 0 !important; padding: 0 !important;
  overflow: hidden; background: var(--mg-navy); color: #fff; text-align: left;
  font: 400 17px/1.6 "Inter", "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased;
}
.mg-hero *, .mg-hero *::before, .mg-hero *::after { box-sizing: border-box; }
.mg-hero .mg-hero__bg { position: absolute; top: 0; right: 0; bottom: 0; left: auto; width: 60%; height: 100%; max-width: none; margin: 0; object-fit: cover; object-position: center 30%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 18%, rgba(0,0,0,.85) 38%, #000 55%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 18%, rgba(0,0,0,.85) 38%, #000 55%); }
.mg-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,36,59,.6) 0%, rgba(12,36,59,.35) 45%, rgba(12,36,59,0) 70%); pointer-events: none; }
.mg-hero .mg-hero__inner { position: relative; z-index: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 46px 32px; }
.mg-hero .mg-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--mg-mist); font-size: 13.5px; line-height: 1.4; }
.mg-hero .mg-crumbs a { color: #fff; text-decoration: none; }
.mg-hero .mg-crumbs a:hover { color: var(--mg-sky); }
.mg-hero .mg-crumbs span[aria-current] { max-width: 420px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mg-hero .mg-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px !important; padding: 7px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.1); color: #fff !important; font: 700 12px/1 "Inter", Arial, sans-serif !important; letter-spacing: .12em; text-transform: uppercase; }
.mg-hero .mg-kicker i { color: var(--mg-sky); }
.mg-hero .mg-hero__title { max-width: 660px; margin: 0 !important; padding: 0 !important; color: #fff !important; font: 800 40px/1.12 "Manrope", "Segoe UI", Arial, sans-serif !important; letter-spacing: -.01em; text-align: left !important; text-transform: none !important; text-shadow: none !important; background: none !important; border: 0 !important; }
.mg-hero .mg-hero__title::before, .mg-hero .mg-hero__title::after { content: none !important; display: none !important; }
.mg-hero .mg-hero__title span, .mg-hero .mg-hero__title strong { color: var(--mg-sky) !important; }
.mg-hero .mg-hero__lead { max-width: 580px; margin: 14px 0 0 !important; color: var(--mg-mist) !important; font: 500 17.5px/1.55 "Inter", Arial, sans-serif !important; text-align: left !important; }
.mg-hero .mg-hero__lead * { color: inherit !important; }
.mg-hero .mg-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0 !important; padding: 0 !important; list-style: none !important; }
.mg-hero .mg-meta li { display: inline-flex; align-items: center; gap: 7px; margin: 0 !important; padding: 0 !important; color: var(--mg-mist) !important; font: 600 14px/1.3 "Inter", Arial, sans-serif !important; list-style: none !important; }
.mg-hero .mg-meta li::before { content: none !important; }
.mg-hero .mg-meta i { color: var(--mg-sky); }
.mg-hero .mg-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.mg-hero .mg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border: 2px solid transparent; border-radius: 14px; font: 700 15px/1.2 "Inter", Arial, sans-serif; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.mg-hero .mg-btn:hover { transform: translateY(-1px); }
.mg-hero .mg-btn--coral { background: linear-gradient(180deg, #ff6a33, #ff5a1f); color: #fff !important; box-shadow: 0 12px 26px rgba(255,90,31,.32); }
.mg-hero .mg-btn--ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); color: #fff !important; }
#mg-article { display: block; position: relative; top: -90px; visibility: hidden; }
@media (max-width: 860px) {
  .mg-hero { min-height: 0; text-align: center; }
  .mg-hero .mg-hero__bg { left: 0; width: 100%; filter: blur(1.5px); transform: scale(1.03); -webkit-mask-image: none; mask-image: none; }
  .mg-hero::after { background: rgba(12,36,59,.8); }
  .mg-hero .mg-hero__inner { padding: 32px 18px 38px; }
  .mg-hero .mg-crumbs, .mg-hero .mg-meta, .mg-hero .mg-hero__ctas { justify-content: center; }
  .mg-hero .mg-crumbs span[aria-current] { max-width: 100%; }
  .mg-hero .mg-hero__title { margin: 0 auto !important; font-size: 28px !important; text-align: center !important; }
  .mg-hero .mg-hero__lead { margin-left: auto !important; margin-right: auto !important; font-size: 16px !important; text-align: center !important; }
  .mg-hero .mg-btn { width: 100%; }
}

/* ==================================================
   FOOTER PRO (.ep-footer) + signature ELYA by Mediwalk
   ================================================== */
.ep-footer {
  --f-bg: #0c243b;
  --f-text: #b9cadb;
  --f-muted: #8aa1b8;
  --f-line: rgba(255, 255, 255, .1);
  position: relative;
  clear: both;
  margin-top: 40px;
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(17, 148, 214, .18), transparent 70%),
    var(--f-bg);
  color: var(--f-text);
  font: 400 15px/1.6 "Inter", "Segoe UI", Arial, sans-serif;
  text-align: left;
}
.ep-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #1194d6, #14a37f 50%, #ff5a1f); }
.ep-footer *, .ep-footer *::before, .ep-footer *::after { box-sizing: border-box; }
.ep-footer a { color: var(--f-text); text-decoration: none; transition: color .2s; }
.ep-footer a:hover { color: #fff; text-decoration: none; }
.ep-footer ul { margin: 0; padding: 0; list-style: none; }
.ep-footer p { margin: 0; }
.ep-footer__wrap { max-width: 1240px; margin: 0 auto; padding: 64px 32px 0; }
.ep-footer__grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.15fr; gap: 44px; padding-bottom: 44px; }

.ep-footer__tagline { margin: 18px 0 16px !important; max-width: 320px; color: var(--f-text); font-size: 14.5px; }
.ep-footer__addr { margin-bottom: 12px !important; font-size: 14.5px; }
.ep-footer__addr i { width: 18px; color: #33b6e8; }
.ep-footer__phone {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px; padding: 10px 16px;
  border-radius: 12px; background: #fff; color: #0f2d4a !important;
  font: 800 18px/1 "Manrope", Arial, sans-serif;
}
.ep-footer__phone i { color: #14a37f; }
.ep-footer__phone:hover { background: #e8f4fc; }
.ep-footer__hours { margin-bottom: 18px !important; font-size: 13.5px; }
.ep-footer__hours li { display: flex; justify-content: space-between; gap: 12px; max-width: 280px; padding: 3px 0; border-bottom: 1px dashed var(--f-line); }
.ep-footer__hours span { color: #fff; font-weight: 600; }
.ep-footer__social { display: flex; gap: 8px; }
.ep-footer__social a {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: #fff; font-size: 15px;
}
.ep-footer__social a:hover { background: #1194d6; }

/* Colonnes */
.ep-footer__title { margin: 4px 0 14px !important; color: #fff; font: 700 13px/1.3 "Inter", Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.ep-footer__title--sub { margin-top: 26px !important; }
.ep-footer__col li { padding: 5px 0; font-size: 15px; }
.ep-footer__col li a { position: relative; }
.ep-footer__col li a:hover { padding-left: 4px; }
.ep-footer__account {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 24px; padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px;
  color: #fff !important; font-size: 14.5px; font-weight: 600;
}
.ep-footer__account:hover { background: rgba(255, 255, 255, .08); }
.ep-footer__small { color: var(--f-muted); font-size: 13.5px; line-height: 1.55; }
.ep-footer__pay { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ep-footer__pay span {
  display: inline-flex; align-items: center; gap: 3px;
  height: 26px; padding: 0 9px; border-radius: 6px;
  background: rgba(255, 255, 255, .1); color: #fff;
  font: 700 12px/1 "Inter", Arial, sans-serif;
}
.ep-footer__pay i { font-size: 16px; }

/* Barre légale */
.ep-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  padding: 20px 0 26px; border-top: 1px solid var(--f-line);
  color: var(--f-muted); font-size: 13px;
}
.ep-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ep-footer__bottom a { color: var(--f-muted); }
.ep-footer__bottom a:hover { color: #fff; }

@media (max-width: 1000px) {
  .ep-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .ep-footer__wrap { padding: 48px 18px calc(84px + env(safe-area-inset-bottom)); }
  .ep-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .ep-footer__brand { grid-column: 1 / -1; text-align: center; }
  .ep-footer__tagline { margin-left: auto !important; margin-right: auto !important; }
  .ep-footer__hours li { max-width: 300px; margin: 0 auto; }
  .ep-footer__social { justify-content: center; }
  .ep-footer__col:last-child { grid-column: 1 / -1; }
  .ep-footer__bottom { flex-direction: column; text-align: center; }
  .ep-footer__bottom ul { justify-content: center; }
}


.ep-footer p, .ep-footer li { font-family: "Inter", "Segoe UI", Arial, sans-serif; font-size: inherit; }
.duo-foot-logo { display: inline-flex; align-items: center; gap: 16px; text-decoration: none !important; }
.duo-foot-logo img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 10px 30px rgba(0,0,0,.35); background: #1560d8; }
.duo-foot-name { font: 800 24px/1 "Manrope", Arial, sans-serif; letter-spacing: .06em; }
.duo-foot-name span { color: #fff; }
.duo-foot-name b { color: #ff8a1f; font-weight: 800; }
.duo-foot-name sup { color: #ff8a1f; font-size: .45em; top: -1em; }
@media (max-width: 860px) { .duo-foot-logo { flex-direction: column; gap: 12px; } }

@media (max-width: 860px) {
  #hm-page .hm-btn--sm { padding: 14px 18px; font-size: 15px; }
}

/* Protection contre les styles globaux des articles */
.ep-footer ul, .ep-footer li { list-style: none !important; margin-left: 0 !important; }
.ep-footer li::before { content: none !important; }
.ep-footer p { text-align: left !important; font-size: inherit; line-height: inherit; }
.ep-footer .ep-footer__addr, .ep-footer .ep-footer__small, .ep-footer .ep-footer__tagline { color: var(--f-text) !important; }
.ep-footer h2, .ep-footer h3, .ep-footer h4 { text-align: left !important; text-transform: uppercase; }
.ep-footer h2::after, .ep-footer h3::after, .ep-footer h4::after, .ep-footer h2::before, .ep-footer h3::before, .ep-footer h4::before { content: none !important; display: none !important; }

/* Variante "icône" (annuaires) : halo bleu + pictogramme net à droite */
.mg-hero.mg-hero--icon { background: radial-gradient(circle at 80% 45%, rgba(17,148,214,.35), transparent 42%), linear-gradient(135deg, #0f2d4a, #0c243b); }
.mg-hero.mg-hero--icon::after { background: none; }
.mg-hero.mg-hero--icon .mg-hero__bg { top: 50%; bottom: auto; left: auto; right: max(40px, calc((100% - 1240px) / 2 + 60px)); width: 220px; height: 220px; transform: translateY(-50%); object-fit: contain; opacity: .95; border-radius: 50%; filter: drop-shadow(0 18px 40px rgba(0,0,0,.35)); -webkit-mask-image: none; mask-image: none; }
@media (max-width: 860px) {
  .mg-hero.mg-hero--icon .mg-hero__bg { position: relative; top: auto; right: auto; display: block; width: 84px; height: 84px; margin: 26px auto 0; transform: none; filter: none; opacity: 1; }
  .mg-hero.mg-hero--icon { flex-direction: column; }
  .mg-hero.mg-hero--icon .mg-hero__inner { padding-top: 14px; }
}
