/* ==========================================================================
   M STRATEGIE CONSULTING - compléments au thème SEOC (main.css)
   Composants propres au site Django : logo, formulaires de leads, WhatsApp,
   newsletter, contenu CKEditor, messages.
   ========================================================================== */

:root {
  --ms-primary: #4E2FDA;
  --ms-primary-dark: #3A1FB8;
  --ms-soft: #EDE9F8;
  --ms-dark: #090B0E;
  --ms-text: #3D4C5E;
  --ms-whatsapp: #25D366;
  --ms-error: #D92D20;
  --ms-success: #067647;
}

/* --- Logo ---------------------------------------------------------------- */
.header-area .site-logo img,
.mobile-header .mobile-logo img,
.mobile-sidebar .logos img {
  height: 46px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
}
.footer1-section-area .footer-logo-area > img {
  height: 50px;
  width: auto;
}
#loading-icon img {
  width: 56px;
  height: 56px;
}

.ms-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
}

/* --- Menu : lien actif ---------------------------------------------------- */
.header-area .main-menu ul li > a.active {
  color: var(--ms-primary);
}

/* --- Boutons -------------------------------------------------------------- */
.ms-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.ms-btn-row .header-btn1,
.ms-btn-row .header-btn2 {
  margin: 0 !important;
}
.header-btn1.ms-btn-outline {
  background: transparent;
  color: var(--ms-primary);
  border: 1px solid var(--ms-primary);
}
.header-btn1.ms-btn-outline span {
  background: var(--ms-primary);
  color: #fff;
}
.header-btn1.ms-btn-outline:hover {
  color: #fff;
}
.cta-section-area .header-btn1.ms-btn-outline {
  background: #fff;
}
.header-btn1.ms-btn-whatsapp {
  background: var(--ms-whatsapp);
  color: #fff;
  padding: 14px 22px;
}
.header-btn1.ms-btn-whatsapp .ms-icon {
  font-size: 20px;
  margin-right: 6px;
}
button.header-btn1 {
  border: none;
  cursor: pointer;
}

/* --- Bouton WhatsApp flottant -------------------------------------------- */
.ms-whatsapp {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 18px 0 16px;
  border-radius: 40px;
  background: var(--ms-whatsapp);
  color: #fff !important;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s, box-shadow 0.3s;
}
.ms-whatsapp .ms-icon {
  font-size: 28px;
}
.ms-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.45);
}
.ms-whatsapp::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--ms-whatsapp);
  z-index: -1;
  animation: ms-pulse 2.4s infinite;
}
@keyframes ms-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { opacity: 0; }
}
@media (max-width: 767px) {
  .ms-whatsapp {
    left: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
  }
  .ms-whatsapp__label {
    display: none;
  }
}

/* --- Formulaires ---------------------------------------------------------- */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}
.ms-field-error {
  color: var(--ms-error);
  font-size: 14px;
  margin: 6px 0 0;
}
.input-area.has-error input,
.input-area.has-error textarea,
.input-area.has-error .nice-select {
  border-color: var(--ms-error) !important;
}
.ms-form-errors {
  color: var(--ms-error);
  margin-bottom: 12px;
}
.ms-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ms-dark);
  margin: 4px 0 6px;
}
.ms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--ms-text);
  margin: 4px 0 18px;
  cursor: pointer;
}
.ms-checkbox input {
  width: 18px !important;
  height: 18px !important;
  margin-top: 3px;
  accent-color: var(--ms-primary);
}
.ms-contact-form .input-area input[type="date"] {
  color: var(--ms-dark);
}
.ms-small-print {
  font-size: 14px;
  color: var(--ms-text);
  margin-top: 14px;
}
.form-feedback {
  font-size: 14px;
  margin: 10px 0 0;
  min-height: 1px;
}
.form-feedback.is-success { color: var(--ms-success); }
.form-feedback.is-error { color: var(--ms-error); }

/* Formulaire « select » dans les zones du template */
.contact-boxarea .nice-select,
.contact-form-area .nice-select {
  width: 100%;
}

/* --- Accueil : lien guide sous le hero ----------------------------------- */
.ms-hero-guide {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-weight: 600;
  color: var(--ms-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ms-hero-guide:hover { color: var(--ms-dark); }

/* --- Bandeau guide (CTA avec formulaire) --------------------------------- */
.ms-guide-cta .cta-header-area h5.ms-eyebrow {
  color: #fff;
  margin-bottom: 16px;
}
.ms-guide-cta .form-area form button.header-btn1 {
  background: var(--ms-primary);
  color: #fff;
  white-space: nowrap;
}
.ms-guide-cta .form-area form button.header-btn1 span {
  background: #fff;
  color: var(--ms-primary);
}
.ms-guide-cta .form-area form .input-area {
  flex: 1;
  padding: 0 12px;
}
.ms-guide-cta .form-area form .input-area span {
  color: var(--ms-primary);
}
.ms-guide-cta .ms-small-print {
  color: #fff;
  opacity: 0.85;
}

/* --- Bandeau newsletter (accueil) ---------------------------------------- */
.ms-newsletter-band {
  padding: 40px 0 90px;
}
.ms-newsletter-band__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--ms-soft);
  border-radius: 24px;
  padding: 50px;
}
.ms-newsletter-band__text h5 {
  color: var(--ms-primary);
}
.ms-newsletter-band__form {
  display: grid;
  gap: 14px;
}
.ms-newsletter-band__form input:not(.hp-field) {
  width: 100%;
  height: 56px;
  padding: 0 22px;
  border-radius: 40px;
  border: 1px solid #E5E7EB;
  background: #fff;
}
.ms-newsletter-band__form .header-btn1 {
  justify-self: start;
}
@media (max-width: 991px) {
  .ms-newsletter-band__inner {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
}

/* Formulaire newsletter en ligne (article, guide) */
.ms-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.ms-inline-form input[type="email"] {
  flex: 1 1 240px;
  height: 52px;
  padding: 0 20px;
  border-radius: 40px;
  border: 1px solid #E5E7EB;
  background: #fff;
}
.ms-inline-form .form-feedback {
  flex-basis: 100%;
}
.ms-article-newsletter {
  text-align: center;
}
.ms-article-newsletter h3 {
  margin-bottom: 8px;
}

/* --- Footer --------------------------------------------------------------- */
.ms-footer-ctas {
  margin-top: 24px;
}
.ms-footer-note {
  margin-top: 12px;
}
.footer1-section-area .footer-logo-area3 form .form-feedback {
  position: absolute;
  top: 100%;
  left: 16px;
  margin-top: 8px;
}
.ms-footer-guide {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 46px;
  color: var(--ms-primary);
  font-weight: 600;
}
.ms-footer-wa {
  color: var(--ms-whatsapp);
  font-size: 22px;
  margin-right: 4px;
}
.footer1-section-area .copyright-area .ms-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0A66C2;
  font-weight: 600;
}
.footer1-section-area .copyright-area .ms-linkedin .ms-icon {
  font-size: 22px;
}

/* --- Études de cas : filtres --------------------------------------------- */
.case-inner-section-area .tabs-area ul li a.nav-link {
  color: var(--ms-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  display: inline-block;
  background: var(--ms-soft);
  transition: all 0.4s;
  padding: 12px 16px;
  border-radius: 40px;
  margin: 0 12px 10px 0;
}
.case-inner-section-area .tabs-area ul li a.nav-link.active,
.case-inner-section-area .tabs-area ul li a.nav-link:hover {
  background: var(--ms-primary) !important;
  color: #fff;
}
.case-inner-section-area .tabs-contents .case-inner-box {
  margin-bottom: 30px;
}
.ms-results-title {
  font-size: 24px;
  margin-bottom: 18px;
}
.ms-empty {
  padding: 40px 0;
  font-size: 18px;
}

/* --- Services ------------------------------------------------------------- */
.service-boxarea .ms-readmore {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  font-size: 16px !important;
  font-weight: 600;
}
.service-all-boxes-area1 .service-boxarea,
.service1-section-area .row > div > .service-boxarea {
  margin-bottom: 30px;
}
.ms-service-intro h5 {
  color: var(--ms-primary);
  margin-bottom: 12px;
}
.ms-service-intro h2 {
  font-size: 34px;
  line-height: 1.3;
}
.ms-service-intro .btn-area {
  margin-top: 24px;
}

/* --- Contenu riche (CKEditor) -------------------------------------------- */
.ms-rich-text h2 { font-size: 32px; margin: 32px 0 16px; }
.ms-rich-text h3 { font-size: 26px; margin: 28px 0 14px; }
.ms-rich-text h4 { font-size: 21px; margin: 24px 0 12px; }
.ms-rich-text p { margin-bottom: 16px; }
.ms-rich-text ul,
.ms-rich-text ol {
  padding-left: 22px;
  margin-bottom: 18px;
}
.ms-rich-text ul li { list-style: disc; margin-bottom: 8px; }
.ms-rich-text ol li { list-style: decimal; margin-bottom: 8px; }
.ms-rich-text img { max-width: 100%; height: auto; border-radius: 8px; }
.ms-rich-text blockquote {
  border-left: 4px solid var(--ms-primary);
  background: var(--ms-soft);
  padding: 20px 24px;
  border-radius: 8px;
  margin: 24px 0;
  font-style: italic;
}
.ms-rich-text a { color: var(--ms-primary); text-decoration: underline; }
.ms-rich-text table { width: 100%; margin-bottom: 20px; }
.ms-rich-text table td,
.ms-rich-text table th { border: 1px solid #E5E7EB; padding: 10px; }
.ms-link-inherit { color: inherit; }
.ms-lead { font-size: 20px; font-weight: 600; color: var(--ms-dark); }

/* --- Rendez-vous / guide -------------------------------------------------- */
.ms-booking-embed {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
}
.ms-booking-embed iframe {
  width: 100%;
  height: 680px;
  border: 0;
}
.ms-appointment-list ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.ms-guide-cover img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 24px;
}
.ms-thanks__icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ms-soft);
  color: var(--ms-primary);
  font-size: 36px;
}

/* --- Témoignages ---------------------------------------------------------- */
.ms-testimonial-role {
  display: block;
  font-size: 14px;
  color: var(--ms-text);
  margin-top: 4px;
}

/* --- Liens WhatsApp dans les blocs contact ------------------------------- */
.ms-inline-wa {
  display: block;
  margin-top: 6px;
  color: var(--ms-success) !important;
  font-weight: 600;
}

/* --- Messages (toasts) ---------------------------------------------------- */
.ms-toasts {
  position: fixed;
  top: 100px;
  right: 24px;
  z-index: 1000;
  display: grid;
  gap: 10px;
  max-width: 380px;
}
.ms-toast {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(9, 11, 14, 0.12);
  border-left: 4px solid var(--ms-primary);
  font-size: 15px;
}
.ms-toast--success { border-left-color: var(--ms-success); }
.ms-toast--error { border-left-color: var(--ms-error); }
.ms-toast__close {
  background: none;
  border: 0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* Laisse la place aux boutons flottants (WhatsApp, retour en haut) en bas de page */
.footer1-section-area .copyright-area {
  padding-bottom: 90px;
}
.about-content-area .arrow-circle img.elements4 {
  width: 163px;
  height: 162px;
}
