/* Relooking léger de la page d'accueil maprimaire.fr
   Compatible avec Bootstrap 3 - à charger après styles.css */

:root {
  --mp-blue: #178bd3;
  --mp-green: #73b829;
  --mp-orange: #ef8b22;
  --mp-dark: #233044;
  --mp-muted: #667085;
  --mp-bg: #f5f8fc;
  --mp-card: #ffffff;
  --mp-border: #e6edf5;
  --mp-soft-green: #f0f9e8;
  --mp-soft-orange: #fff4e8;
  --mp-shadow: 0 12px 30px rgba(28, 45, 75, 0.10);
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #eef7ff 0%, var(--mp-bg) 360px, #ffffff 100%);
  color: var(--mp-dark);
  font-size: 16px;
  line-height: 1.55;
}

body > hr,
.container + hr {
  display: none;
}

.container {
  max-width: 1120px;
}

.navbar {
  min-height: 88px;
  margin-top: 20px;
  margin-bottom: 24px;
  padding: 12px 14px;
  border: 0 !important;
  border-radius: 22px !important;
  box-shadow: var(--mp-shadow) !important;
}

.navbar-brand {
  height: auto;
  padding-top: 6px;
  padding-bottom: 6px;
}

.navbar-brand img {
  max-height: 68px;
  width: auto;
}

.navbar-default .navbar-nav > li > a {
  margin: 4px 4px;
  padding: 11px 14px;
  border-radius: 999px;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.10);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: #ffffff !important;
  transform: translateY(-1px);
  opacity: .92;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.navbar-toggle {
  margin-top: 25px;
  border-radius: 12px;
}

h1.text-warning {
  color: var(--mp-dark) !important;
  margin-top: 8px;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h3.text-success {
  display: inline-block;
  color: #fff !important;
  background: var(--mp-green);
  padding: 8px 15px;
  border-radius: 999px;
  font-weight: 700;
}

h4 {
  max-width: 900px;
  color: var(--mp-muted);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 18px;
}

h2.text-warning {
  color: var(--mp-dark) !important;
  margin-top: 28px;
  margin-bottom: 16px;
  font-size: 28px;
  font-weight: 800;
}

h2.text-warning img {
  margin-right: 8px;
  filter: drop-shadow(0 5px 10px rgba(35, 48, 68, .14));
}

.btn-toolbar {
  margin-bottom: 18px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-group > .btn,
.btn-group > .btn:first-child,
.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle),
.btn-group > .btn:last-child:not(:first-child) {
  float: none;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 18px !important;
}

.btn.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 10px 16px !important;
  color: #fff !important;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: var(--mp-shadow);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.btn.btn-link:hover,
.btn.btn-link:focus {
  transform: translateY(-2px);
  opacity: .94;
  box-shadow: 0 14px 28px rgba(28, 45, 75, .16);
}

.img-circle {
  border: 3px solid rgba(255, 255, 255, .85);
}

.col-md-8[style*="padding-top:10px"],
.col-md-4[style*="padding-top:20px"] {
  background: var(--mp-card);
  border: 1px solid var(--mp-border);
  border-radius: 24px;
  box-shadow: var(--mp-shadow);
  padding: 22px !important;
  margin-bottom: 22px;
}

.col-md-8[style*="padding-top:10px"] {
  width: calc(66.66666667% - 12px);
  margin-right: 12px;
}

.col-md-4[style*="padding-top:20px"] {
  width: calc(33.33333333% - 12px);
  margin-left: 12px;
}

.nav-tabs {
  border-bottom: 0;
  margin-top: 8px;
}

.nav-tabs > li > a {
  border: 0 !important;
  border-radius: 14px 14px 0 0;
  color: var(--mp-dark);
  font-weight: 800;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover {
  color: #fff !important;
  background-color: var(--mp-green) !important;
}

.tab-content {
  background: #ffffff;
  border: 1px solid var(--mp-border);
  border-radius: 0 18px 18px 18px;
  padding: 14px;
}

.tab-content p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.tab-content a,
.media-body a,
.footer-clean a {
  color: var(--mp-dark);
}

.col-md-8[style*="overflow-y:scroll"],
.col-md-12[style*="overflow-y:scroll"] {
  border: 1px solid var(--mp-border);
  border-radius: 24px !important;
  box-shadow: var(--mp-shadow);
  padding: 20px;
  scrollbar-width: thin;
}

.col-md-8[style*="overflow-y:scroll"] {
  background: var(--mp-soft-green) !important;
}

.col-md-12[style*="overflow-y:scroll"] {
  background: var(--mp-soft-orange) !important;
}

.text-danger {
  color: var(--mp-dark) !important;
  font-weight: 800;
}

.col-md-8[style*="overflow-y:scroll"] p,
.col-md-12[style*="overflow-y:scroll"] p {
  padding: 7px 0;
  margin: 0;
  border-bottom: 1px solid rgba(35, 48, 68, .08);
}

.col-md-8[style*="overflow-y:scroll"] img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-right: 8px;
}

.media {
  background: #ffffff;
  border: 1px solid var(--mp-border);
  border-radius: 24px;
  box-shadow: var(--mp-shadow);
  padding: 18px;
  min-height: 190px;
}

.media-left img {
  border-radius: 20px;
  max-width: 180px;
  height: auto;
}

.media-body h4 {
  color: var(--mp-dark);
  margin-top: 4px;
  font-size: 22px;
}

.media-body p {
  color: var(--mp-muted);
  font-size: 16px;
}

.footer-clean {
  margin-top: 34px;
  background: #ffffff;
  border-top: 1px solid var(--mp-border);
}

.footer-clean footer {
  padding-top: 34px;
}

.footer-clean h3 {
  color: var(--mp-dark);
  font-weight: 800;
}

.copyright {
  padding-bottom: 20px;
}

@media (max-width: 991px) {
  .col-md-8[style*="padding-top:10px"],
  .col-md-4[style*="padding-top:20px"] {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  h1.text-warning {
    font-size: 34px;
  }

  h4 {
    font-size: 17px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .navbar {
    margin-top: 10px;
    border-radius: 18px !important;
  }

  .navbar-brand img {
    max-height: 54px;
  }

  .navbar-default .navbar-nav > li > a {
    border-radius: 14px;
  }

  h1.text-warning {
    font-size: 30px;
  }

  .btn-group {
    display: block;
  }

  .btn.btn-link {
    display: flex;
    width: 100%;
    margin-bottom: 10px !important;
  }

  .media-left,
  .media-body {
    display: block;
    width: 100%;
  }

  .media-left img {
    width: 100%;
    max-width: 100%;
    margin-bottom: 12px;
  }
}
