/* ============================================================
   MonMedEnLigne — Header & Footer (Direction A « Clarté »)
   Chargé après custom.css dans base.html.twig
   ============================================================ */

/* ============================================================
   HEADER
   ============================================================ */

.mml-hd {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #eee;
  transition: box-shadow .2s;
}

/* Classe ajoutée par JS après 30px de scroll → header fixé en haut */
.mml-hd.is-scrolled {
  position: fixed;
  box-shadow: 0 4px 18px rgba(20, 25, 35, .06);
}

/* Spacer : compense la hauteur du header quand il passe en fixed */
.mml-hd-spacer {
  height: 0;
  transition: height 0s;
}

.mml-hd-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 20px 40px;
  transition: padding .2s;
}

/* État condensé au scroll */
.mml-hd.is-scrolled .mml-hd-inner {
  padding: 14px 40px;
}
.mml-hd.is-scrolled .mml-hd-logo img {
  width: 160px;
}

/* Logo */
.mml-hd-logo img {
  width: 240px;
  height: auto;
  display: block;
  transition: width .2s;
}

/* Navigation desktop */
.mml-hd-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.mml-hd-link {
  position: relative;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #1b2734;
  white-space: nowrap;
  border-radius: 8px;
  text-decoration: none;
}
.mml-hd-link:hover {
  color: #a03863;
  text-decoration: none;
}
.mml-hd-link.is-active {
  color: #a03863;
  font-weight: 700;
}
.mml-hd-link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: #a03863;
}

/* Actions desktop */
.mml-hd-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Sélecteur de pays */
.mml-hd-country {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #414141;
  white-space: nowrap;
}
.mml-hd-country img {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  display: block;
  object-fit: cover;
}
.mml-hd-country .fa {
  font-size: 12px;
  opacity: .6;
}

/* dropdown Bootstrap 3 réutilisé */
.mml-hd-country-wrap {
  position: relative;
}
.mml-hd-country-wrap .dropdown-menu {
  min-width: 180px;
  border-radius: 10px;
  border: 1px solid #eee;
  box-shadow: 0 8px 24px rgba(20,25,35,.10);
  padding: 6px 0;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
}
.mml-hd-country-wrap .dropdown-item {
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mml-hd-country-wrap .dropdown-item:hover {
  background: #f7f7f9;
  text-decoration: none;
}
.mml-hd-country-wrap .dropdown-item h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1b2734;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mml-hd-country-wrap .country-flag {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  object-fit: cover;
}

/* Lien connexion */
.mml-hd-signin {
  font-size: 15px;
  font-weight: 700;
  color: #1b2734;
  padding: 10px 6px;
  white-space: nowrap;
  text-decoration: none;
}
.mml-hd-signin:hover {
  color: #a03863;
  text-decoration: none;
}

/* CTA Prendre rendez-vous */
.mml-hd-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #a03863;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(160, 56, 99, .28);
  text-decoration: none;
  transition: background .15s;
}
.mml-hd-cta:hover {
  background: #872f57;
  color: #fff;
  text-decoration: none;
}

/* Utilisateur connecté */
.mml-hd-user {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  color: #1b2734;
}
.mml-hd-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #a03863;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}
.mml-hd-avatar--pro {
  background: transparent;
  padding: 0;
  overflow: hidden;
}
.mml-hd-avatar--pro img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  display: block;
}
.mml-hd-logout {
  color: #979797;
  font-size: 18px;
  text-decoration: none;
  line-height: 1;
}
.mml-hd-logout:hover {
  color: #a03863;
  text-decoration: none;
}

/* Burger */
.mml-hd-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  color: #1b2734;
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- Menu mobile plein écran ---- */
.mml-hd-mobile {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mml-hd-mobile[hidden] {
  display: none;
}

.mml-hd-mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}
.mml-hd-mobile-top img {
  height: 30px;
  width: auto;
}

.mml-hd-mclose {
  width: 42px;
  height: 42px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  color: #1b2734;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mml-hd-mlist {
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mml-hd-mlist a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 6px;
  font-size: 17px;
  font-weight: 600;
  color: #1b2734;
  border-bottom: 1px solid #eee;
  text-decoration: none;
}
.mml-hd-mlist a .fa {
  color: #979797;
}
.mml-hd-mlist a:hover {
  color: #a03863;
  text-decoration: none;
}
.mml-hd-mlist a.is-active {
  color: #a03863;
  font-weight: 700;
}

/* Sélecteur pays mobile */
.mml-hd-mcountry-wrap {
  position: relative;
}
.mml-hd-mcountry-wrap .dropdown-menu {
  position: static;
  float: none;
  width: 100%;
  box-shadow: none;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-top: 4px;
  display: none;
}
.mml-hd-mcountry-wrap.open .dropdown-menu {
  display: block;
}

.mml-hd-mactions {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.mml-hd-cta--block {
  justify-content: center;
  padding: 15px;
  border-radius: 12px;
  font-size: 16px;
  text-align: center;
}
.mml-hd-mghost {
  display: block;
  text-align: center;
  border: 1.5px solid #eee;
  color: #1b2734;
  font-weight: 700;
  font-size: 16px;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
}
.mml-hd-mghost:hover {
  color: #a03863;
  text-decoration: none;
  border-color: #a03863;
}

/* ============================================================
   FOOTER
   ============================================================ */

.mml-ft {
  background: #161d27;
  color: #fff;
}

.mml-ft-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 48px 26px;
}

.mml-ft-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

/* Col 1 — marque */
.mml-ft-word {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 14px;
  font-family: 'Open Sans', sans-serif;
  color: #fff;
}
.mml-ft-word span {
  color: #fff;
}

.mml-ft-tagline {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .6);
  max-width: 280px;
}

.mml-ft-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, .72);
}
.mml-ft-contact li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.mml-ft-contact .fa {
  width: 16px;
  color: #ca6698;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Colonnes 2–4 */
.mml-ft-col h4 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.mml-ft-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.mml-ft-col a {
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
  text-decoration: none;
  transition: color .15s;
}
.mml-ft-col a:hover {
  color: #fff;
  text-decoration: none;
}

/* Ligne basse */
.mml-ft-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  flex-wrap: wrap;
  gap: 16px;
}
.mml-ft-bottom p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
}

.mml-ft-social {
  display: flex;
  gap: 10px;
}
.mml-ft-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  transition: background .15s;
}
.mml-ft-social a:hover {
  background: #a03863;
  text-decoration: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Styles du bloc ESI speciality_spotlights dans le footer */
.mml-ft-col-spotlights .footer-text h3 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.mml-ft-col-spotlights .footer-text ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.mml-ft-col-spotlights .footer-text a {
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
  text-decoration: none;
}
.mml-ft-col-spotlights .footer-text a:hover {
  color: #fff;
}

@media (max-width: 992px) {
  .mml-hd-nav {
    display: none;
  }
  .mml-hd-actions {
    display: none;
  }
  .mml-hd-burger {
    display: inline-flex;
  }
  .mml-ft-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  /* On masque la col spécialités sur tablette/mobile comme avant */
  .mml-ft-col-spotlights {
    display: none;
  }
}

@media (max-width: 712px) {
  .mml-hd-inner {
    padding: 16px 18px;
  }
  .mml-ft-inner {
    padding: 40px 20px 22px;
  }
  .mml-ft-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Supprime la marge négative que BS3 impose parfois sur les navbar */
.mml-hd ~ .container,
.mml-hd ~ .container-fluid {
  margin-top: 0;
}
