/*
Theme Name:  Agence MA-Digital
Description:  Theme to support MA-Digital. Child theme for the Hello theme.
Author:  MA-Digital
Textdomain:  ma-digital
Author URI:  https://ma-digital.fr/
Template:  hello-elementor
Version:  1.1
License:  GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --ma-bg: #f7f4ef;
  --ma-surface: #ffffff;
  --ma-surface-soft: #f1ece4;
  --ma-text: #2c2a27;
  --ma-muted: #625d57;
  --ma-primary: #2f4d5a;
  --ma-primary-strong: #243c47;
  --ma-accent: #b67a5b;
  --ma-border: #ddd4c8;
  --ma-shadow: 0 12px 30px rgba(44, 42, 39, 0.08);
  --ma-radius-lg: 18px;
  --ma-radius-md: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ma-bg);
  color: var(--ma-text);
  font-family: "DM Sans", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.elementor-heading-title {
  color: var(--ma-text);
  line-height: 1.14;
  letter-spacing: -0.03em;
  font-family: "Sora", "DM Sans", "Segoe UI", sans-serif;
}

p,
li,
.elementor-widget-text-editor,
.elementor-widget-text-editor p {
  color: var(--ma-muted);
}

strong {
  color: var(--ma-text);
}

a {
  color: var(--ma-primary);
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--ma-primary-strong);
}

.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: min(1160px, 92vw);
}

header.elementor-location-header,
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.94);
  border-bottom: 1px solid var(--ma-border);
  backdrop-filter: blur(8px);
}

.jet-sticky-section > .elementor-container {
  margin-top: 12px;
  padding: 14px 18px;
  border-radius: 20px;
  border: 1px solid rgba(221, 212, 200, 0.9);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(44, 42, 39, 0.08);
}

.jet-sticky-section .elementor-widget-image img {
  max-height: 52px;
  width: auto;
}

.jet-nav .menu-item-link {
  padding: 0.5rem 0.9rem !important;
  border-radius: 999px;
  color: var(--ma-text) !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.jet-nav .menu-item-link:hover,
.jet-nav .current-menu-item > .menu-item-link {
  color: var(--ma-primary-strong) !important;
  background: rgba(47, 77, 90, 0.08) !important;
}

.elementor-button,
.elementor-widget-jet-button .jet-button__instance,
button,
input[type="submit"],
.wp-element-button {
  border: 0;
  border-radius: 999px;
  background: var(--ma-primary);
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(47, 77, 90, 0.16);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.elementor-button:hover,
.elementor-widget-jet-button .jet-button__instance:hover,
button:hover,
input[type="submit"]:hover,
.wp-element-button:hover {
  background: var(--ma-primary-strong);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(47, 77, 90, 0.2);
}

.elementor-widget-jet-button .jet-button__plane,
.elementor-widget-jet-button .jet-button__state-hover {
  display: none !important;
}

.elementor-widget-jet-button .jet-button__state {
  position: relative;
  z-index: 1;
}

.elementor-widget-icon-box .elementor-widget-container,
.elementor-widget-image-box .elementor-widget-container,
.elementor-post,
.elementor-testimonial-wrapper,
.elementor-price-table {
  background: var(--ma-surface);
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-lg);
  box-shadow: var(--ma-shadow);
}

input:not([type="submit"]),
textarea,
select {
  width: 100%;
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-md);
  background: #fff;
  color: var(--ma-text);
  padding: 0.78rem 0.95rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: 0;
  border-color: rgba(47, 77, 90, 0.45);
  box-shadow: 0 0 0 3px rgba(47, 77, 90, 0.1);
}

.elementor-location-footer {
  background: var(--ma-surface-soft);
  border-top: 1px solid var(--ma-border);
}

.elementor-location-footer .elementor-section {
  background: transparent !important;
}

.elementor-location-footer .elementor-heading-title,
.elementor-location-footer p,
.elementor-location-footer a,
.elementor-location-footer .elementor-widget-text-editor {
  color: var(--ma-text) !important;
}

footer#site-footer:empty {
  display: none;
}

.ma-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.ma-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Mobile stabilization migrated from temporary Elementor header widget. */
@media (max-width: 767px) {
  html,
  body {
    overflow-x: clip !important;
  }

  body {
    width: 100%;
  }

  h1,
  .elementor h1.elementor-heading-title {
    font-size: clamp(2rem, 8vw, 3rem) !important;
  }

  h2,
  .elementor h2.elementor-heading-title {
    font-size: clamp(1.6rem, 6.6vw, 2.3rem) !important;
  }

  .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: calc(100vw - 28px);
  }

  .elementor-section,
  .elementor-column,
  .elementor-widget-wrap,
  .elementor-widget-container {
    min-width: 0 !important;
  }

  .jet-sticky-section > .elementor-container {
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: 16px;
    align-items: center;
  }

  .elementor-location-header,
  .site-header {
    overflow-x: clip;
  }

  .elementor-location-header .elementor-widget-image img {
    max-height: 42px;
    width: auto;
  }

  .elementor-location-header .jet-mobile-menu--right-side .menu-menu-mobile-accueil-container {
    width: 0 !important;
    height: 0 !important;
  }

  .elementor-location-header .jet-mobile-menu--right-side .jet-nav {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: min(280px, 78vw) !important;
    height: 100dvh !important;
    padding: 84px 24px 24px !important;
    background: #fbf9f5 !important;
    box-shadow: -12px 0 30px rgba(44, 42, 39, 0.12) !important;
    overflow: auto !important;
    z-index: 9999 !important;
  }

  .elementor-location-header .jet-mobile-menu--right-side.jet-mobile-menu-active .jet-nav {
    display: block !important;
    transform: none !important;
  }

  .elementor-location-header .jet-mobile-menu--right-side .jet-nav__mobile-trigger {
    margin-left: auto !important;
  }

  .elementor-location-header .jet-mobile-menu--right-side .jet-nav__mobile-close-btn {
    top: 16px !important;
    right: 16px !important;
    left: auto !important;
    width: 40px !important;
    height: 40px !important;
  }

  .elementor-location-header .jet-mobile-menu--right-side:not(.jet-mobile-menu-active) .jet-nav__mobile-trigger-close {
    display: none !important;
  }

  .elementor-location-header .jet-mobile-menu--right-side.jet-mobile-menu-active .jet-nav__mobile-trigger-open {
    display: none !important;
  }

  .elementor-location-header .jet-mobile-menu--right-side.jet-mobile-menu-active .jet-nav__mobile-trigger-close {
    display: block !important;
  }

  .elementor-location-header .jet-mobile-menu--right-side .menu-item-link {
    display: block !important;
    padding: 12px 0 !important;
    border-radius: 0 !important;
  }

  .elementor-widget-divider.elementor-absolute {
    display: none !important;
  }

  .elementor-widget-image.elementor-absolute,
  .elementor-widget-image.elementor-absolute .elementor-widget-container {
    width: min(72vw, 260px) !important;
    max-width: min(72vw, 260px) !important;
  }

  .elementor-widget-image.elementor-absolute img,
  .elementor-widget-image img,
  img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .elementor-button,
  .elementor-widget-jet-button .jet-button__instance,
  input[type="submit"],
  .wp-element-button {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }

  .elementor-location-footer {
    padding-bottom: 18px;
  }
}
