/*
Theme Name: LMG Modern
Theme URI: https://www.lemoulindegemages.com/
Author: Le Moulin de Gémages
Description: Thème léger sur mesure, sans dépendance Bridge/Qode.
Version: 1.0.0
Text Domain: lmg-modern
*/

:root {
  --lmg-sand: #eed3b8;
  --lmg-green: #127168;
  --lmg-brown: #73452e;
  --lmg-white: #fff;
  --lmg-content: 1300px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--lmg-sand);
  color: #333;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--lmg-green); text-decoration: none; }
h1, h2, h3, h4, h5, .lmg-nav {
  font-family: "Nunito Sans", Arial, sans-serif;
}
h1 { font-size: 55px; }
h2 { font-size: 40px; font-weight: 800; }
h3 { font-size: 33px; font-weight: 800; }
h4 { font-size: 22px; font-weight: 800; }
h5 { font-size: 17px; font-weight: 700; }
.elementor-widget-heading .elementor-heading-title { color: var(--lmg-green); }
.elementor-text-editor ul {
  padding-left: 15px;
  list-style: none;
}
.elementor-text-editor ul li {
  list-style: none;
  text-indent: -15px;
}
.elementor-text-editor ul li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 10px 2px 0;
  border-radius: 50%;
  background: #3c5848;
}

.lmg-site-header {
  position: relative;
  z-index: 50;
  background: var(--lmg-sand);
}
.lmg-header-inner {
  width: min(100%, 1500px);
  min-height: 106px;
  margin: 0 auto;
  padding: 12px 34px 12px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lmg-logo img { display: block; width: 200px; max-height: 82px; object-fit: contain; }
.lmg-search {
  width: 34px;
  height: 34px;
  border: 0;
  padding: 6px;
  background: transparent;
  color: #6f2e0d;
  cursor: pointer;
}
.lmg-nav-row {
  width: 100%;
  min-height: 106px;
  margin: 0 auto;
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.lmg-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lmg-nav .menu > li { position: relative; }
.lmg-nav .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 100;
  display: block;
  min-width: 245px;
  padding: 10px 0;
  background: var(--lmg-sand);
  box-shadow: 0 10px 30px rgba(0,0,0,.14);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.lmg-nav .sub-menu li { display: block; }
.lmg-nav .sub-menu a {
  display: block;
  padding: 11px 20px;
  font-size: 13px;
  line-height: 1.35;
  white-space: normal;
  border-bottom: 1px solid rgba(115,69,46,.45);
}
.lmg-nav .sub-menu li:last-child a { border-bottom: 0; }
.lmg-nav li:hover > .sub-menu,
.lmg-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.lmg-nav a {
  display: block;
  padding: 0 23px;
  color: var(--lmg-brown);
  font-size: 16px;
  font-weight: 600;
  line-height: 106px;
  letter-spacing: .1px;
  text-transform: uppercase;
  white-space: nowrap;
}
.lmg-nav a:hover,
.lmg-nav .current-menu-item > a { color: var(--lmg-brown); }
.lmg-nav a:hover { color: var(--lmg-green); }
.lmg-mobile-toggle { display: none; }
.lmg-search-form {
  display: none;
  width: min(100% - 40px, 520px);
  margin: 0 42px 12px auto;
}
.lmg-search-form.is-open { display: block; }
.lmg-search-form form { display: flex; gap: 8px; }
.lmg-search-form input[type="search"] { flex: 1; min-width: 0; padding: 10px 12px; }

.lmg-main { min-height: 55vh; overflow: hidden; }
.lmg-content-wrap { width: min(100% - 40px, var(--lmg-content)); margin: 50px auto; }
.lmg-content-wrap.elementor-page-wrap { width: 100%; margin: 0; }

.lmg-page-hero {
  position: relative;
  display: grid;
  width: 100%;
  height: var(--lmg-title-height, 600px);
  place-items: center;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.lmg-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.08);
}
.lmg-page-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 20px;
  color: #fff !important;
  font-size: 55px;
  line-height: 1.12;
  text-align: center;
}
.elementor h6 {
  color: var(--lmg-green);
  font-size: 13px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 1.8px;
  line-height: 1.55;
  text-transform: uppercase;
}
.elementor-widget-text-editor p {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 25px;
}
.elementor-widget-text-editor h6 {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 19px;
  letter-spacing: 1.2px;
}

.elementor-top-section.elementor-section-full_width:not([data-settings*="background_background"]) > .elementor-container {
  width: min(100%, 1300px);
  margin-right: auto;
  margin-left: auto;
}
.home .elementor-element-f9ba26e > .elementor-container,
.home .elementor-element-5e130c8 > .elementor-container { width: 100% !important; max-width: none !important; }
.elementor-widget-html:has(.qbutton.center) > .elementor-widget-container,
.elementor-column[data-settings*="background_background"] .elementor-widget-html:has(.qbutton) > .elementor-widget-container {
  text-align: center;
}
.home .elementor-element-dfc7843 > .elementor-widget-container { text-align: left !important; }

/* Keep adjacent action buttons readable on the fly-fishing landing page. */
.page-id-522 .elementor-widget-html + .elementor-widget-html { margin-top: 14px; }

/* Contact Form 7 lost its Bridge skin during the theme replacement. */
.page-id-557 .wpcf7-form { width: 100%; }
.page-id-557 .wpcf7-form p { margin: 0 0 30px; }
.page-id-557 .wpcf7-form label { display: block; }
.page-id-557 .wpcf7-form input[type="text"],
.page-id-557 .wpcf7-form input[type="email"],
.page-id-557 .wpcf7-form textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 5px;
  padding: 15px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #818181;
  font: 13px/17px Raleway, Arial, sans-serif;
}
.page-id-557 .wpcf7-form input[type="text"],
.page-id-557 .wpcf7-form input[type="email"] { height: 47px; }
.page-id-557 .wpcf7-form textarea { height: 200px; resize: vertical; }
.page-id-557 .wpcf7-form input[type="submit"] {
  display: inline-block;
  height: 54px;
  padding: 0 36px;
  border: 1px solid var(--lmg-green);
  border-radius: 30px;
  background: var(--lmg-green);
  color: #fff;
  font: 600 16px/52px "Nunito Sans", Arial, sans-serif;
  cursor: pointer;
}

.lmg-hero {
  width: 100%;
  aspect-ratio: 1920 / 1049;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.lmg-youtube {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  color: #fff;
  cursor: pointer;
}
.lmg-youtube img,
.lmg-youtube iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.lmg-youtube-title {
  position: absolute;
  top: 14px;
  left: 18px;
  max-width: calc(100% - 36px);
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 3px #000;
}
.lmg-youtube-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  border-radius: 13px;
  background: #f00;
  transform: translate(-50%, -50%);
}
.lmg-youtube-play::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 27px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid #fff;
}
.lmg-youtube-brand {
  position: absolute;
  right: 16px;
  bottom: 14px;
  padding: 8px 13px;
  border-radius: 18px;
  background: rgba(0,0,0,.68);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.qbutton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 55px;
  padding: 0 36px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 51px;
  text-transform: none;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.qbutton:hover { color: #fff !important; filter: brightness(.9); }
.qode_button_icon_element::before {
  content: "›";
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
}
.qbutton.center { background: var(--lmg-green); color: #fff; }

.call_to_action { width: 100%; padding: 54px 0; background-position: center; background-size: cover; }
.call_to_action .container_inner { width: min(100% - 40px, var(--lmg-content)); margin: 0 auto; }
.call_to_action a.qbutton {
  min-width: 130px;
  background: var(--lmg-green) !important;
  border-color: var(--lmg-green) !important;
  color: #fff !important;
}
.two_columns_75_25 { display: grid; grid-template-columns: 3fr 1fr; align-items: center; gap: 36px; }
.call_to_action_text p { margin: 0; }
.button_wrapper { text-align: right; }
.home .elementor-element-564433d { display: none !important; }

.qode-advanced-pricing-table { width: 100%; overflow: hidden; }
.qode-apt-row { display: grid; grid-template-columns: 1fr 1fr; }
.qode-apt-row > * { padding: 12px 18px; border-bottom: 1px solid rgba(0,0,0,.12); }
.qode-apt-header { background: var(--lmg-green); color: #fff; }
.qode-apt-title { margin: 0; color: inherit; font-size: 20px; }
.qode-apt-item-price, .qode-apt-column-title-holder { text-align: right; }

.lmg-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.lmg-blog-card { background: #fff; }
.lmg-blog-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.lmg-blog-card-body { padding: 22px; }
.lmg-blog-card h3 { margin: 0 0 10px; font-size: 22px; }

.lmg-footer { background: var(--lmg-brown); color: #fff; }
.lmg-footer a { color: var(--lmg-sand); }
.lmg-footer a:hover { color: #fff; }
.lmg-footer-grid {
  width: min(100% - 40px, var(--lmg-content));
  margin: 0 auto;
  padding: 34px 0 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.lmg-footer-bottom {
  width: min(100% - 40px, var(--lmg-content));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.15);
}
.lmg-footer .widget { margin: 0 0 18px; }
.lmg-footer .widget-title { color: #fff; }
.lmg-footer-logo { display: block; width: 275px; max-width: 100%; margin-bottom: 18px; }
.lmg-socials { display: flex; gap: 10px; }
.lmg-socials a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--lmg-green);
  font-weight: 700;
}
.lmg-socials svg { width: 20px; height: 20px; }
.lmg-footer h5 { margin: 0 0 18px; color: #fff; font-size: 24px; }
.lmg-footer p { margin: 0 0 8px; }
.lmg-footer-links a { display: block; margin-bottom: 8px; }
.lmg-footer-partners img { display: inline-block; width: auto; max-width: 135px; max-height: 72px; margin: 5px 10px 10px 0; object-fit: contain; }
.lmg-footer-partners .lmg-pets { display: flex; align-items: center; gap: 8px; }
.lmg-footer-partners .lmg-pets img { width: 48px; }
.lmg-footer-bottom { text-align: center; font-size: 13px; }

@media (max-width: 1100px) {
  .lmg-nav ul { gap: 14px 22px; }
  .lmg-nav a { font-size: 14px; }
}
@media (min-width: 1400px) {
  .lmg-site-header { height: 112px; }
  .lmg-header-inner {
    width: 100%;
    max-width: none;
    min-height: 112px;
    padding: 5px 44px 5px 18px;
  }
  .lmg-logo { position: relative; z-index: 2; }
  .lmg-logo img { width: 220px; max-height: 96px; }
  .lmg-nav-row {
    position: absolute;
    inset: 0 72px 0 255px;
    z-index: 3;
    width: auto;
    min-height: 106px;
    padding: 0;
  }
  .lmg-nav { width: 100%; }
  .lmg-nav ul {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .lmg-nav a { padding-right: 8px; padding-left: 8px; }
  .lmg-search { position: relative; z-index: 4; }
  .home .lmg-hero { height: 800px; aspect-ratio: auto; }
}
@media (min-width: 821px) and (max-width: 1300px) {
  .elementor-top-section.elementor-section-full_width:not([data-settings*="background_background"]) > .elementor-container {
    width: min(calc(100% - 40px), 1100px);
  }
  .home .elementor-element-f9ba26e > .elementor-container,
  .home .elementor-element-5e130c8 > .elementor-container { width: 100%; }
}
@media (min-width: 821px) and (max-width: 1399px) {
  #menu-main-menu-anglais { flex-wrap: nowrap; }
  #menu-main-menu-anglais a { padding-right: 14px; padding-left: 14px; font-size: 14px; }
}
@media (max-width: 820px) {
  .home .lmg-hero {
    background-image: url('/wp-content/uploads/2026/10/hero-home-mobile.webp') !important;
  }
  .lmg-header-inner { position: relative; min-height: 116px; padding: 8px 20px; justify-content: center; }
  .lmg-logo img { width: 184px; max-height: 82px; }
  .lmg-mobile-toggle {
    position: absolute;
    left: 38px;
    top: 50%;
    display: block;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 0;
    transform: translateY(-50%);
  }
  .lmg-mobile-toggle::before { content: "☰"; font-size: 20px; }
  .lmg-search { display: none; }
  .lmg-nav-row { display: none; min-height: 0; padding: 10px 20px 24px; }
  .lmg-nav-row.is-open { display: block; }
  .lmg-nav ul { display: block; }
  .lmg-nav .sub-menu {
    position: static;
    display: block;
    min-width: 0;
    padding: 0 0 0 18px;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .lmg-nav li:hover > .sub-menu,
  .lmg-nav li:focus-within > .sub-menu { transform: none; }
  .lmg-nav li { border-top: 1px solid rgba(18,113,104,.18); }
  .lmg-nav a {
    display: block;
    padding: 12px 0;
    line-height: 1.35;
  }
  .lmg-nav .sub-menu a {
    padding: 10px 0;
    line-height: 1.3;
  }
  .lmg-page-hero { height: min(62vw, 430px); }
  .lmg-page-hero h1 { font-size: 38px; }
  .two_columns_75_25 { grid-template-columns: 1fr; }
  .button_wrapper { text-align: left; }
  .lmg-blog-grid { grid-template-columns: 1fr; }
  .lmg-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  h1 { font-size: 38px; }
  h2 { font-size: 31px; }
  h3 { font-size: 27px; }
  .lmg-footer-grid { grid-template-columns: 1fr; }
}
