
/*
Theme Name: My Market
Author: OnlineCreation
Author URI: https://onlinecreation.pro
Description: Thème personnalisé pour My Market, basé sur Bootstrap 5 et FontAwesome.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-market
*/

:root {
    --bs-primary: #416d49;
    --bs-primary-rgb: 65, 109, 73;
    --bs-primary-bg-subtle: #69B377;
    --bs-secondary: #e05e00;
    --bs-secondary-rgb: 224, 118, 42;
    --bs-body-color: #22412A;
    --bs-body-color-rgb: 34, 65, 42;
    --bs-body-font-size: 20px;
    --bs-btn-font-size-custom: 1rem;
}
.fs-7 {
  font-size: 0.875rem;
}
.fs-8 {
  font-size: 0.75rem;
}
.btn {
    font-size: var(--bs-btn-font-size-custom);
}
.btn.btn-secondary {
    background-color: var(--bs-secondary);
    color: #fff;
    border: 1px solid var(--bs-secondary);
}
.btn.btn-link {
    color: var(--bs-primary);
}
a {
    color: var(--bs-primary);
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', 'Nunito Sans', sans-serif;
    text-transform: uppercase ;
    font-weight: bold;
}
.btn.btn-primary {
    background-color: var(--bs-primary);
    color: #fff;
    border: 1px solid var(--bs-primary);
}
.height-fit-content {
  height: fit-content;
}
.width-fit-content {
  width: fit-content;
}
.ratio.ratio-4x3 {
  aspect-ratio: 4 / 3;
  height: auto;
}
/* Limitation largeur du logo */
.custom-logo,
.custom-logo-link img {
  width: calc(100% - 50px);
  max-width: 600px;
  height: auto;
}
html {
  font-size: var(--bs-body-font-size);
}
body {
  background-color: rgb(253,255,242);
  font-family: 'Nunito Sans', sans-serif;
  background-image: url("data:image/svg+xml,<svg id='patternId' width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='a' patternUnits='userSpaceOnUse' width='50' height='50' patternTransform='scale(1) rotate(25)'><rect x='0' y='0' width='100%' height='100%' fill='%23fdfaf2ff'/><path d='M36.445 4.336c3.047-1.484 5.808-1.953 8.282-1.406.208.026.377.13.507.312l.118.586c-.495 2.5-2.045 4.857-4.649 7.07l-.351.157c-1.823.312-3.243-.3-4.258-1.836h-.04c-.963-1.51-.95-3.034.04-4.57l.351-.313M50 23.125c-1.823-1.224-3.307-3.138-4.453-5.742l-.078-.39c.182-1.824 1.146-3.022 2.89-3.595L50 13.203v9.922M29.766 0c-1.302 1.875-3.373 3.346-6.211 4.414l-.39.04c-1.824-.287-2.97-1.329-3.438-3.126L19.609 0h10.157M0 13.203c1.042.026 1.98.508 2.812 1.445l.196.391c.625 3.333.351 6.12-.82 8.36l-.47.39-.585-.039L0 23.086v-9.883M19.61 50c.051-1.172.611-2.174 1.68-3.008l.39-.156c3.385-.417 6.146.039 8.28 1.367l.352.469-.078.586-.468.742H19.609m17.54-18.36c-.652-1.692-.326-3.19.976-4.492a.68.68 0 01.352-.195c3.307-.86 6.106-.755 8.398.313l.43.43v.585c-.99 2.37-2.982 4.35-5.977 5.938l-.39.078c-1.876-.052-3.139-.925-3.79-2.617v-.04m7.883 15.43c-3.411.313-6.172-.247-8.281-1.68a.713.713 0 01-.313-.507.657.657 0 01.079-.547c1.354-2.188 3.658-3.815 6.914-4.883h.39c1.823.339 2.93 1.406 3.32 3.203.34 1.797-.234 3.23-1.718 4.297l-.39.117m-10.93-13.086c1.822.365 2.93 1.446 3.32 3.243v.039c.312 1.77-.287 3.19-1.797 4.257l-.39.118c-3.438.26-6.186-.339-8.243-1.797a.713.713 0 01-.312-.508.765.765 0 01.078-.586c1.38-2.161 3.698-3.75 6.953-4.766h.39M10.86 6.054c-2.03 2.709-4.283 4.389-6.757 5.04l-.586-.078-.352-.47c-.73-2.447-.417-5.233.938-8.358l.234-.313c1.51-1.12 3.047-1.237 4.61-.352h.038c1.589.964 2.266 2.357 2.032 4.18l-.157.352m2.149 11.836c-.912-3.282-.886-6.081.078-8.399a.713.713 0 01.39-.43c.183-.104.378-.104.587 0 2.395.886 4.44 2.813 6.132 5.782l.078.39c0 1.823-.833 3.112-2.5 3.868-1.692.65-3.203.364-4.53-.86l-.235-.351m22.383-3.868c.234 3.36-.352 6.094-1.758 8.204l-.508.351-.586-.117c-2.161-1.38-3.763-3.685-4.805-6.914v-.39c.365-1.824 1.433-2.917 3.204-3.282h.039c1.77-.339 3.19.247 4.257 1.758l.157.39M1.68 43.008c2.552-2.24 5.09-3.425 7.617-3.555l.547.195.273.547c.209 2.552-.65 5.222-2.578 8.008l-.312.234c-1.693.808-3.23.612-4.61-.585-1.354-1.25-1.745-2.748-1.172-4.493l.235-.351m9.922-10.82c-3.386-.652-5.886-1.954-7.5-3.907a.63.63 0 01-.196-.547.794.794 0 01.274-.547c1.9-1.718 4.557-2.656 7.968-2.812.157 0 .3.04.43.117 1.615.834 2.37 2.162 2.266 3.985v.039c-.156 1.823-1.107 3.033-2.852 3.632l-.39.04m13.437-10.743c3.177 1.172 5.417 2.839 6.719 5l.117.586-.352.469c-2.135 1.432-4.882 1.94-8.242 1.523l-.39-.156c-1.485-1.12-2.032-2.565-1.641-4.336v-.039c.443-1.77 1.576-2.8 3.398-3.086l.391.04m-7.773 14.452c1.744-.677 3.255-.39 4.53.86h.04c1.25 1.302 1.55 2.825.898 4.57l-.273.313c-2.682 2.083-5.287 3.112-7.813 3.086l-.546-.196a.75.75 0 01-.235-.547c-.078-2.578.95-5.195 3.086-7.851l.313-.235'  stroke-width='1' stroke='none' fill='%23fcf7ecff'/></pattern></defs><rect width='800%' height='800%' transform='translate(-30,-32)' fill='url(%23a)'/></svg>");
  font-size: var(--bs-body-font-size);
}
main.main-content {
  min-height: 70vh;
}
/* Footer menus : pas de puce, pas de souligné, line-height 2 */
.footer-menu {
  list-style: none;
  padding-left: 0;
}
.footer-menu li {
  line-height: 2;
}
.footer-menu a {
  color: var(--bs-light);
  text-decoration: none;
}
.footer-menu a:hover {
  color: var(--bs-white);
  text-decoration: none;
}
/* Menu fullscreen */

.fullscreen-menu {
  position: fixed;
  z-index: 2000;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34, 65, 42, 0.97);
  display: none;
  transition: opacity 0.3s;
  text-align: center;
}
.fullscreen-menu.open {
  display: block;
}
.fullscreen-menu-content {
  min-height: 100vh;
}
.fullscreen-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fullscreen-menu-list li {
  margin: 1rem 0;
}
.fullscreen-menu-list a {
  color: var(--bs-light);
  font-size: 24px;
  text-decoration: none;
  transition: color 0.2s;
}
.fullscreen-menu-list a:hover {
  color: var(--bs-white);
}
/* Home gallery */
#gmgallery {
  max-height: 40vh;
}
#gmgallery .swiper-slide {
  height: auto;
}
@media (aspect-ratio: 16/9) {
  #gmgallery {
    height: 40vw;
  }
}
#gmgallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Leaf button */
.leaf-button {
  display: inline-block;
  padding: 0.5em 2.5em 0.5em calc(50% - 5em);
  background-color: var(--bs-primary);
  color: var(--bs-white);
  background-image: url(img/carrot.png), url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'><path d='M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z' fill='white'/></svg>");
  background-repeat: no-repeat;
  background-position: left 1em center, right 1em center;
  background-size: 0.8em auto;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--bs-border-radius);
  width: 100%;
  text-align: left;
  text-overflow: ellipsis;
  min-width: 10em;
}
.leaf-button.leaf-button-invert {
  background-color: var(--bs-white);
  color: var(--bs-primary);
  background-image: url(img/leaf-icon.png), url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'><path d='M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z' fill='rgb(65, 109, 73)'/></svg>");
  background-size: 1em auto;
}
@media(min-width: 992px) {
  .leaf-button {
    padding: 0.5em 5em 0.5em calc(50% - 7.5em);
    min-width: 20em;
    width: 80%;
  }
}
/* footer tagline */
footer .tagline {
  font-family: 'Nunito', 'Nunito Sans', sans-serif;
  max-width: 250px;
}
/* home next editions */
.home-next-editions p a {
  color: var(--bs-body-color);
}
.home-next-editions a {
  text-decoration: none;
}
.home-next-editions h3 small {
  font-weight: normal;
  font-size: 1rem;
}
.home-next-editions h3 {
  text-transform: capitalize;
  line-height: 1.3rem;
}