/* MTN x MEDISOFT Landing UI - CSP friendly: external CSS only */
:root{
  --mtn-yellow:#ffcc00;
  --mtn-yellow-2:#ffe45c;
  --mtn-yellow-3:#f4b900;
  --mtn-black:#050505;
  --mtn-ink:#111827;
  --mtn-muted:#6b7280;
  --mtn-line:#e5e7eb;
  --mtn-bg:#f8fafc;
  --mtn-white:#ffffff;
  --mtn-radius:24px;
  --mtn-radius-xl:34px;
  --mtn-shadow:0 24px 70px rgba(0,0,0,.22);
  --mtn-soft:0 14px 35px rgba(17,24,39,.10);
}

*{
  box-sizing:border-box;
}

html,
body{
  min-height:100%;
}

body{
  font-family:'Poppins','Open Sans',Arial,sans-serif!important;
  color:var(--mtn-ink);
  overflow-x:hidden;
}

img{
  max-width:100%;
  height:auto;
  object-fit:contain;
}

.mtn-img-safe{
  max-width:100%;
  height:auto;
  display:block;
  object-fit:contain;
}

/* Kill legacy green */
.btn-success,
.btn-success:hover,
.btn-success:focus,
.btn-success:active{
  background:linear-gradient(135deg,#050505,#202020)!important;
  border-color:#050505!important;
  color:var(--mtn-yellow)!important;
  font-weight:800!important;
  border-radius:16px!important;
  box-shadow:none!important;
}

.btn-info,
.btn-info:hover,
.btn-info:focus,
.btn-info:active{
  background:linear-gradient(135deg,var(--mtn-yellow),var(--mtn-yellow-2))!important;
  border-color:var(--mtn-yellow)!important;
  color:#000!important;
  font-weight:800!important;
  border-radius:16px!important;
}

.text-success,
.text-primary,
a.text-success,
a.text-primary{
  color:#111!important;
}

a{
  transition:all .2s ease;
}

/* Header */
.mtnx-header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:999;
  padding:14px 0;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);
  border-bottom:1px solid rgba(17,24,39,.07);
}

.mtnx-header-wrap{
  display:flex;
  align-items:center;
  gap:22px;
}

.mtnx-brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  min-width:max-content;
}

.mtnx-logo-medisoft{
  max-height:48px;
  max-width:210px;
}

.mtnx-logo-mtn{
  max-height:44px;
  max-width:92px;
  padding:6px 10px;
  border-radius:14px;
  background:#050505;
  box-shadow:0 12px 28px rgba(0,0,0,.12);
}

.mtnx-login-form{
  flex:1;
  display:grid;
  grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) auto minmax(130px,190px);
  gap:12px;
  align-items:start;
  margin:0;
}

.mtnx-login-form .form-control{
  height:46px;
  border:1px solid rgba(17,24,39,.12);
  border-radius:16px;
  background:#fff;
  font-size:13px;
  box-shadow:0 8px 22px rgba(0,0,0,.04);
}

.mtnx-login-form .form-control:focus,
.mtnx-card .form-control:focus{
  border-color:var(--mtn-yellow)!important;
  box-shadow:0 0 0 5px rgba(255,204,0,.18)!important;
}

.mtnx-login-btn{
  height:46px;
  padding:0 24px;
  border:0;
  border-radius:16px;
  background:#050505;
  color:var(--mtn-yellow);
  font-weight:900;
}

.mtnx-login-btn:hover{
  color:var(--mtn-yellow-2);
  transform:translateY(-1px);
}

.mtnx-forgot{
  display:block;
  margin-top:5px;
  color:#111!important;
  text-decoration:none;
  font-size:11px;
  font-weight:700;
}

.mtnx-forgot:hover{
  color:var(--mtn-yellow)!important;
  background:transparent!important;
}

.mtnx-days{
  font-size:12px;
  line-height:1.45;
  color:#111;
  font-weight:700;
  margin:0;
  padding-top:4px;
}

/* Hero */
.mtnx-hero{
  min-height:auto!important;
  padding:126px 0 70px!important;
  position:relative;
  display:block!important;
  overflow:visible!important;
}

.mtnx-hero:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 10% 15%,rgba(255,204,0,.42),transparent 25%),
    radial-gradient(circle at 85% 8%,rgba(255,255,255,.40),transparent 24%),
    linear-gradient(120deg,rgba(0,0,0,.84),rgba(0,0,0,.52) 48%,rgba(0,0,0,.38));
  z-index:1;
  pointer-events:none;
}

.mtnx-hero:after{
  content:"";
  position:absolute;
  right:-160px;
  bottom:-200px;
  width:560px;
  height:560px;
  border-radius:999px;
  background:rgba(255,204,0,.20);
  filter:blur(14px);
  z-index:1;
}

.mtnx-hero-inner{
  position:relative;
  z-index:2;
}

.mtnx-hero-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(430px,640px);
  gap:42px;
  align-items:start!important;
}

.mtnx-hero-left{
  position:sticky;
  top:120px;
}

.mtnx-hero-right{
  position:relative!important;
  z-index:5;
  max-height:none!important;
  overflow:visible!important;
}

.mtnx-copy{
  color:#fff;
  padding:30px 8px;
}

.mtnx-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:9px 15px;
  border-radius:999px;
  background:rgba(255,204,0,.15);
  border:1px solid rgba(255,204,0,.45);
  font-size:13px;
  font-weight:800;
  margin-bottom:20px;
}

.mtnx-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--mtn-yellow);
  box-shadow:0 0 0 7px rgba(255,204,0,.20);
}

.mtnx-title{
  font-size:clamp(44px,6.2vw,82px);
  font-weight:950;
  line-height:.92;
  letter-spacing:-3px;
  margin:0 0 22px;
}

.mtnx-title span{
  color:var(--mtn-yellow);
}

.mtnx-subtitle{
  max-width:600px;
  font-size:18px;
  line-height:1.75;
  color:rgba(255,255,255,.88);
  margin:0 0 28px;
}

.mtnx-feature-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  max-width:560px;
  margin-bottom:30px;
}

.mtnx-feature{
  display:flex;
  align-items:center;
  gap:11px;
  padding:13px 14px;
  border-radius:20px;
  background:rgba(255,255,255,.11);
  border:1px solid rgba(255,255,255,.14);
  font-size:13px;
  font-weight:750;
}

.mtnx-feature i{
  color:var(--mtn-yellow);
  font-size:18px;
}

.mtnx-main-cta{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:16px 24px;
  border-radius:18px;
  background:linear-gradient(135deg,var(--mtn-yellow),var(--mtn-yellow-2));
  color:#000!important;
  font-weight:950;
  text-decoration:none!important;
  box-shadow:0 22px 50px rgba(255,204,0,.26);
}

.mtnx-main-cta:hover{
  color:#000!important;
  background:linear-gradient(135deg,var(--mtn-yellow-2),var(--mtn-yellow));
  transform:translateY(-2px);
}

/* Form card */
.mtnx-card{
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(26px);
  -webkit-backdrop-filter:blur(26px);
  border:1px solid rgba(255,255,255,.70);
  border-radius:34px;
  box-shadow:var(--mtn-shadow);
  overflow:visible!important;
  position:relative;
  max-width:640px;
  margin-left:auto;
  max-height:none!important;
}

.mtnx-card:before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:9px;
  border-radius:34px 34px 0 0;
  background:linear-gradient(90deg,var(--mtn-yellow),var(--mtn-yellow-2),var(--mtn-yellow));
}

.mtnx-card-head{
  padding:28px 28px 20px;
  background:linear-gradient(135deg,rgba(255,204,0,.22),rgba(255,255,255,.98)),#fff;
  border-bottom:1px solid rgba(17,24,39,.07);
  border-radius:34px 34px 0 0;
}

.mtnx-card-head-row{
  display:flex;
  gap:15px;
  align-items:flex-start;
}

.mtnx-card-icon{
  width:54px;
  height:54px;
  border-radius:18px;
  background:#050505;
  color:var(--mtn-yellow);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  flex:0 0 auto;
}

.mtnx-card h3{
  margin:0 0 6px;
  font-size:24px;
  line-height:1.15;
  font-weight:950;
  color:#111;
  letter-spacing:-.4px;
}

.mtnx-card h5{
  margin:0;
  font-size:13px;
  line-height:1.55;
  color:var(--mtn-muted);
  font-weight:500;
}

.mtnx-privacy{
  margin-top:15px;
  display:flex;
  gap:9px;
  padding:11px 13px;
  border-radius:16px;
  background:#fff8d8;
  color:#4b3a00;
  border:1px solid rgba(255,204,0,.45);
  font-size:12px;
  line-height:1.45;
}

.mtnx-card-body{
  padding:26px 28px 28px;
}

.mtnx-section{
  display:flex;
  align-items:center;
  gap:10px;
  margin:6px 0 16px;
  color:#111;
  font-size:12px;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.mtnx-section:before{
  content:"";
  width:8px;
  height:25px;
  border-radius:999px;
  background:var(--mtn-yellow);
}

.mtnx-field{
  margin-bottom:15px;
}

.mtnx-field label{
  display:block;
  margin-bottom:6px;
  color:#374151;
  font-size:12px;
  font-weight:800;
}

.mtnx-card .form-control{
  height:47px!important;
  border:1px solid var(--mtn-line)!important;
  border-radius:16px!important;
  background:#fff!important;
  color:#111!important;
  font-size:13px!important;
  box-shadow:none!important;
}

.mtnx-date-grid{
  display:grid;
  grid-template-columns:1fr 1.15fr 1.35fr;
  gap:8px;
}

.mtnx-phone-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  align-items:end;
}

#btn_envoi_code_sms{
  height:47px!important;
  border-radius:16px!important;
  padding:0 17px!important;
  background:#050505!important;
  color:var(--mtn-yellow)!important;
  border:0!important;
  font-weight:900!important;
}

#btn_envoi_code_sms:hover{
  background:#111!important;
  color:var(--mtn-yellow-2)!important;
}

#img_loader_envoyer_code_sms_id,
#img_loader_id{
  display:none!important;
  max-height:28px;
  margin-right:6px;
}

.mtnx-cgu-card{
  padding:14px 15px;
  border:1px solid #ededed;
  border-radius:18px;
  background:linear-gradient(135deg,#fff,#fafafa);
  font-size:13px;
}

.mtnx-cgu-card label{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:0;
}

.mtnx-cgu-card input{
  margin-top:3px;
}

.mtnx-submit{
  text-align:center;
  margin-top:12px;
}

#btn_inscription{
  height:52px!important;
  min-width:210px;
  border-radius:18px!important;
  background:linear-gradient(135deg,#050505,#242424)!important;
  color:var(--mtn-yellow)!important;
  border:0!important;
  font-weight:950!important;
  letter-spacing:.03em;
  box-shadow:0 18px 40px rgba(0,0,0,.18);
}

#btn_inscription:hover{
  background:linear-gradient(135deg,#111,#000)!important;
  color:var(--mtn-yellow-2)!important;
  transform:translateY(-1px);
}

.mtnx-map{
  width:100%;
  min-height:0;
  border-radius:18px;
  overflow:hidden;
}

.mtnx-modal-title-center{
  text-align:center;
}

.input-group-addon{
  border:0!important;
  background:transparent!important;
}

#btnGroupAddon,
#btnGroupAddon_trash{
  border-radius:14px!important;
}

.display_none,
.style_display_none{
  display:none;
}

.width_100{
  width:100%;
}

.padding0_margin0{
  padding:0!important;
  margin:0!important;
}

.padding0_margin0_unlineblock{
  display:inline-block;
  padding:0!important;
  margin:0!important;
}

.custum_img1{
  max-height:30px;
  margin-right:8px;
}

/* Footer MTN cleanup */
#footer{
  border-top:8px solid var(--mtn-yellow)!important;
  background:#ffffff!important;
  color:#111111!important;
}

#footer .footer-top,
#footer .container,
#footer .copyright,
#footer .credits{
  background:#ffffff!important;
  color:#111111!important;
}

#footer .footer-top{
  padding-top:70px;
  padding-bottom:60px;
}

#footer h4{
  color:#111111!important;
  font-weight:900!important;
  letter-spacing:-.3px;
}

#footer p,
#footer li,
#footer .copyright,
#footer .credits{
  color:#111111!important;
}

#footer strong,
#footer span{
  color:#111111!important;
}

#footer a,
#footer a strong,
#footer .credits a,
#footer .footer-links ul a{
  color:#111111!important;
  text-decoration:none!important;
  background:transparent!important;
}

#footer a:hover,
#footer .footer-links ul a:hover,
#footer .credits a:hover{
  color:var(--mtn-yellow)!important;
  background:transparent!important;
}

#footer .footer-links ul i{
  color:var(--mtn-yellow)!important;
}

#footer .social-links a{
  background:#111111!important;
  color:var(--mtn-yellow)!important;
}

#footer .social-links a i{
  color:var(--mtn-yellow)!important;
}

#footer .social-links a:hover{
  background:var(--mtn-yellow)!important;
  color:#111111!important;
}

#footer .social-links a:hover i{
  color:#111111!important;
}

.back-to-top,
.back-to-top:focus{
  background:#111111!important;
  color:var(--mtn-yellow)!important;
}

.back-to-top i{
  color:var(--mtn-yellow)!important;
}

.back-to-top:hover{
  background:var(--mtn-yellow)!important;
  color:#111111!important;
}

.back-to-top:hover i{
  color:#111111!important;
}

/* Selection and hover legacy */
::selection{
  background:var(--mtn-yellow);
  color:#111;
}

.footer-links a:hover,
.footer-contact a:hover,
.social-links a:hover{
  background:transparent!important;
}

/* Mobile / tablet */
@media(max-width:991px){
  .mtnx-header{
    position:relative;
  }

  .mtnx-header-wrap{
    flex-direction:column;
    align-items:stretch;
  }

  .mtnx-brand{
    justify-content:center;
  }

  .mtnx-login-form{
    grid-template-columns:1fr;
  }

  .mtnx-days{
    text-align:center;
  }

  .mtnx-hero{
    padding:42px 0 54px!important;
  }

  .mtnx-hero-grid{
    grid-template-columns:1fr!important;
    gap:24px;
  }

  .mtnx-hero-left{
    position:relative!important;
    top:auto!important;
  }

  .mtnx-copy{
    text-align:center;
  }

  .mtnx-subtitle{
    margin-left:auto;
    margin-right:auto;
  }

  .mtnx-feature-grid{
    grid-template-columns:1fr;
    margin-left:auto;
    margin-right:auto;
  }

  .mtnx-card{
    margin:28px auto 0;
    border-radius:28px;
  }

  .mtnx-card:before{
    border-radius:28px 28px 0 0;
  }

  .mtnx-card-head{
    border-radius:28px 28px 0 0;
  }

  .mtnx-card-head,
  .mtnx-card-body{
    padding-left:18px;
    padding-right:18px;
  }

  .mtnx-date-grid,
  .mtnx-phone-row{
    grid-template-columns:1fr;
  }

  .mtnx-title{
    letter-spacing:-1.6px;
  }

  .mtnx-logo-medisoft{
    max-width:150px;
  }

  .mtnx-logo-mtn{
    max-width:78px;
  }

  #footer .footer-top{
    padding-top:40px;
    padding-bottom:35px;
  }
}

/* =========================================================
   PATCH FINAL MTN - à mettre TOUT EN BAS DU CSS
   ========================================================= */

/* 1) Corrige le chevauchement hero/formulaire avec TON HTML réel */
.mtnx-hero{
  min-height:auto !important;
  height:auto !important;
  padding:130px 0 80px !important;
  display:block !important;
  overflow:visible !important;
}

.mtnx-hero-inner{
  position:relative !important;
  z-index:2 !important;
}

.mtnx-hero-inner > .row{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(460px,660px) !important;
  gap:44px !important;
  align-items:start !important;
}

.mtnx-hero-inner > .row > [class*="col-"]{
  width:auto !important;
  max-width:none !important;
  flex:none !important;
  float:none !important;
  position:relative !important;
}

.mtnx-card{
  position:relative !important;
  z-index:5 !important;
  max-height:none !important;
  height:auto !important;
  overflow:visible !important;
  margin-left:0 !important;
  width:100% !important;
}

.mtnx-card-body{
  max-height:none !important;
  overflow:visible !important;
}

/* 2) Cache les loaders par défaut */
#preloader,
#img_loader_envoyer_code_sms_id,
#img_loader_id{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
}

/* 3) Supprime vraiment le vert legacy partout */
a,
a:visited,
a:focus{
  color:#111111 !important;
}

a:hover{
  color:#ffcc00 !important;
  background:transparent !important;
}

.btn-success,
.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active{
  background:#050505 !important;
  border-color:#050505 !important;
  color:#ffcc00 !important;
  box-shadow:none !important;
}

.btn-info,
.btn-info:hover,
.btn-info:focus,
.btn-info:active,
.btn-warning,
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active{
  background:#ffcc00 !important;
  border-color:#ffcc00 !important;
  color:#050505 !important;
  box-shadow:none !important;
}

.text-success,
.text-primary,
.text-info,
.text-warning{
  color:#111111 !important;
}

/* 4) Footer sans vert */
#footer,
#footer .footer-top,
#footer .container,
#footer .row,
#footer .copyright,
#footer .credits{
  background:#ffffff !important;
  color:#111111 !important;
}

#footer{
  border-top:10px solid #ffcc00 !important;
}

#footer h4,
#footer strong,
#footer span,
#footer p,
#footer li{
  color:#111111 !important;
}

#footer a,
#footer a strong,
#footer .footer-links ul a,
#footer .credits a{
  color:#111111 !important;
  background:transparent !important;
  text-decoration:none !important;
}

#footer a:hover,
#footer .footer-links ul a:hover,
#footer .credits a:hover{
  color:#ffcc00 !important;
  background:transparent !important;
}

#footer .footer-links ul i{
  color:#ffcc00 !important;
}

#footer .social-links a{
  background:#050505 !important;
  color:#ffcc00 !important;
}

#footer .social-links a i{
  color:#ffcc00 !important;
}

#footer .social-links a:hover{
  background:#ffcc00 !important;
  color:#050505 !important;
}

#footer .social-links a:hover i{
  color:#050505 !important;
}

.back-to-top,
.back-to-top:focus{
  background:#050505 !important;
  color:#ffcc00 !important;
}

.back-to-top i{
  color:#ffcc00 !important;
}

.back-to-top:hover{
  background:#ffcc00 !important;
  color:#050505 !important;
}

.back-to-top:hover i{
  color:#050505 !important;
}

/* 5) Responsive */
@media(max-width:991px){
  .mtnx-hero{
    padding:42px 0 56px !important;
  }

  .mtnx-hero-inner > .row{
    display:block !important;
  }

  .mtnx-hero-inner > .row > [class*="col-"]{
    width:100% !important;
    max-width:100% !important;
  }

  .mtnx-card{
    margin-top:28px !important;
  }
}

#footer .social-links a,
#footer .social-links a.facebook,
#footer .social-links a.twitter,
#footer .social-links a.instagram,
#footer .social-links a.linkedin{
  background:#050505 !important;
  color:#ffcc00 !important;
  border:none !important;
}

#footer .social-links a i,
#footer .social-links a.facebook i,
#footer .social-links a.twitter i,
#footer .social-links a.instagram i,
#footer .social-links a.linkedin i{
  color:#ffcc00 !important;
}

#footer .social-links a:hover,
#footer .social-links a.facebook:hover,
#footer .social-links a.twitter:hover,
#footer .social-links a.instagram:hover,
#footer .social-links a.linkedin:hover{
  background:#ffcc00 !important;
  color:#050505 !important;
}

#footer .social-links a:hover i{
  color:#050505 !important;
}

#btn_inscription{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin-bottom:20px !important;
}

.mtnx-card{
  padding-bottom:20px !important;
}

#hero h1 {
    color: #ffcc00;
} 