/*
Theme Name: cjqc
Theme URI: https://wp.centrejardin.quebec/
Description: Theme enfant cjqc base sur Twenty Twenty-Five pour WordPress et WooCommerce.
Author: Centre Jardin Quebec
Template: twentytwentyfive
Version: 1.0.0
Text Domain: cjqc
*/

@import url("https://fonts.googleapis.com/css2?family=Alegreya:wght@400;600;700&family=Open+Sans:wght@400;600;700;800&display=swap");

:root {
  --cjqc-green: #8bc34a;
  --cjqc-dark: #26330f;
  --cjqc-text: #3a3a3a;
  --cjqc-soft: #f7f8f2;
  --cjqc-border: #dfe5d2;
  --cjqc-container: 1200px;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--cjqc-text);
  background: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Alegreya", serif;
  color: var(--cjqc-text);
}

.cjqc-wrap {
  max-width: var(--cjqc-container);
  margin: 0 auto;
  width: 100%;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
}

/* Override FSE global block gap on the main wrapper generated by WordPress. */
:where(.wp-site-blocks) > main#wp--skip-link--target {
  margin-block-start: 0 !important;
}

.cjqc-header {
  position: relative;
  top: auto;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  /* jaime pas border-bottom: 1px solid var(--cjqc-border); */
}

.cjqc-header .wp-block-site-logo {
  margin: 0;
}

.cjqc-header .wp-block-site-logo img {
  max-width: 260px;
  height: auto;
}

.cjqc-header .wp-block-navigation-item__content {
  color: var(--cjqc-text);
  font-weight: 400;
  font-size: 0.98rem;
  /* jaime pas text-transform: uppercase; */
  letter-spacing: 0;
}

.cjqc-header .wp-block-navigation-item__content:hover,
.cjqc-header .wp-block-navigation-item__content:focus {
  color: var(--cjqc-green);
}

.cjqc-header .cjqc-main-nav {
  margin-left: auto;
}

.cjqc-header .cjqc-main-nav .wp-block-navigation__container {
  gap: 0.9rem;
  align-items: center;
}

.cjqc-header .wp-block-navigation__submenu-container {
  border: 1px solid var(--cjqc-border);
  padding: 0.45rem 0;
  min-width: 220px;
}

.cjqc-header .wp-block-navigation-submenu .wp-block-navigation-item__content {
  text-transform: none;
  font-size: 0.94rem;
}

.cjqc-header .cjqc-cart-icon-link .wp-block-navigation-item__content {
  font-size: 0;
  line-height: 1;
}

.cjqc-header .cjqc-cart-icon-link .wp-block-navigation-item__label {
  font-size: 0;
}

.cjqc-header .cjqc-cart-icon-link .wp-block-navigation-item__content::before {
  content: "\1F6D2";
  font-size: 1.25rem;
  line-height: 1;
}

.cjqc-header .wp-block-woocommerce-customer-account {
  display: none;
}

.cjqc-header .wp-block-woocommerce-mini-cart {
  margin-left: 0.75rem;
}

.cjqc-hero {
  background:
    linear-gradient(110deg, rgba(26, 34, 10, 0.62), rgba(26, 34, 10, 0.22)),
    url("https://i0.wp.com/www.centrejardin.quebec/wp-content/uploads/2020/04/shutterstock_1464836393-1.jpg?fit=1920%2C1080&ssl=1") top center/cover no-repeat;
  color: #ffffff;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.cjqc-hero-inner {
  text-align: center;
}

.cjqc-hero h1,
.cjqc-hero h2,
.cjqc-hero h3,
.cjqc-hero p {
  color: #ffffff;
}

.cjqc-kicker {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  margin: 0 0 0.9rem 0;
}

.cjqc-hero-subline {
  font-family: "Alegreya", serif;
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 1.35;
  max-width: 40ch;
  margin: 0 auto;
}

.cjqc-hero-title {
  font-family: "Open Sans", sans-serif;
  font-size: clamp(2.1rem, 4.8vw, 5rem);
  line-height: 1.1;
  margin: 0;
  font-weight: 800;
  max-width: 15ch;
}

.cjqc-hero-subtitle {
  font-size: clamp(1rem, 1.9vw, 1.3rem);
  max-width: 52ch;
  margin-top: 1rem;
}

.cjqc-hero-actions {
  justify-content: center;
  margin-top: 1.45rem;
}

.cjqc-button,
.cjqc-button .wp-element-button {
  border: 0;
  background: transparent;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0;
  border-radius: 0;
  transition: all 0.2s ease;
}

.cjqc-button .wp-element-button {
  border: 2px solid #ffffff;
  padding: 0.9rem 1.6rem;
}

.cjqc-button:hover,
.cjqc-button .wp-element-button:hover {
  background: #ffffff;
  color: #1f2910;
}

.cjqc-feature-strip {
  margin-top: -52px;
  margin-bottom: 3rem;
}

.cjqc-feature-strip .wp-block-columns {
  gap: 1.2rem;
}

.cjqc-feature-card {
  background: #ffffff;
  border: 1px solid var(--cjqc-border);
  padding: 2.05rem 1.6rem 1.8rem;
  box-shadow: 0 16px 36px rgba(29, 44, 11, 0.09);
  height: 100%;
  text-align: center;
}

.cjqc-feature-card h3 {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.cjqc-feature-card p {
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

.cjqc-feature-icon {
  margin-bottom: 0.85rem;
  justify-items: center;
}

.cjqc-section {
  padding-top: 3.75rem;
  padding-bottom: 3.75rem;
}

.cjqc-muted {
  background: var(--cjqc-soft);
}

.cjqc-search-band {
  background:
    linear-gradient(100deg, rgba(35, 48, 13, 0.88), rgba(35, 48, 13, 0.72)),
    url("https://i0.wp.com/www.centrejardin.quebec/wp-content/uploads/2020/04/shutterstock_1046821747.jpg?fit=1350%2C900&ssl=1") bottom right/cover no-repeat;
  text-align: center;
}

.cjqc-search-title {
  color: #ffffff;
  margin-bottom: 0.8rem;
}

.cjqc-search-band .wp-block-search__inside-wrapper {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  max-width: 760px;
  margin: 0 auto;
  border-radius: 0;
  min-height: 50px;
  align-items: stretch;
}

.cjqc-search-band .wp-block-search__inside-wrapper:focus-within {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.32);
}

.cjqc-search-band .wp-block-search .wp-block-search__input {
  background: transparent;
  color: #ffffff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  margin: 0;
  height: 50px;
  box-sizing: border-box;
}

.cjqc-search-band .wp-block-search .wp-block-search__input:focus,
.cjqc-search-band .wp-block-search .wp-block-search__input:focus-visible {
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
}

.cjqc-search-band .wp-block-search__input::placeholder {
  color: rgba(255, 255, 255, 0.85);
}

.cjqc-search-band .wp-block-search__button {
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.cjqc-steps-layout {
  gap: 2.2rem;
}

.cjqc-steps-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
}

.cjqc-steps-grid .wp-block-group {
  border-left: 0;
  padding-left: 0;
}

.cjqc-steps-grid h3 {
  margin-bottom: 1.2rem;
  color: #23a455;
  font-family: "Open Sans", sans-serif;
  font-size: clamp(2rem, 4vw, 4.1rem);
  font-weight: 600;
  line-height: 1.1;
}

.cjqc-steps-grid h4 {
  font-family: "Open Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.45rem 0;
}

.cjqc-step-item {
  margin-top: 1.15rem;
  gap: 0.95rem;
}

.cjqc-step-icon {
  margin: 0;
  min-width: 28px;
  line-height: 1;
}

.cjqc-step-icon i {
  color: #23a455;
  font-size: 25px;
}

.cjqc-step-text p {
  margin: 0;
  color: #23a455;
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
}

.cjqc-participants-title {
  margin-bottom: 1.3rem;
  text-align: center;
  color: #3dd14d;
  font-weight: 700;
}

.cjqc-participants-title span {
  color: var(--cjqc-green);
}

.cjqc-address-inline {
  text-align: center;
  margin-top: 0;
}

.cjqc-pickup-card {
  border: 1px solid var(--cjqc-border);
  background: #ffffff;
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 6px 24px rgba(29, 44, 11, 0.07);
}

.cjqc-pickup-card h4 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 1.2rem;
}

.cjqc-map iframe {
  border: 0;
  width: 100%;
  min-height: 520px;
  display: block;
}

#cjqc-pickup-map {
  min-height: 520px;
  width: 100%;
}

.cjqc-participants {
  padding-bottom: 2.4rem;
  position: relative;
  background-color: #3a3333;
  overflow: hidden;
}

.cjqc-participants::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://i0.wp.com/www.centrejardin.quebec/wp-content/uploads/2022/08/horticulture-vegetable-produce.jpg?fit=1030%2C625&ssl=1");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.2;
  pointer-events: none;
}

.cjqc-participants > .cjqc-wrap {
  position: relative;
  z-index: 1;
}

.cjqc-participants .cjqc-address-inline {
  color: #ffffff;
}

.cjqc-map-full {
  margin-top: 0;
}

.cjqc-footer {
  background: #1f2910;
  color: #f7f8f2;
  margin-top: 0;
}

.cjqc-footer p,
.cjqc-footer a {
  color: #f7f8f2;
  margin: 0;
}

@media (min-width: 1025px) {
  .cjqc-hero,
  .cjqc-search-band {
    background-attachment: fixed;
  }
}

.cjqc-footer a:hover,
.cjqc-footer a:focus {
  color: var(--cjqc-green);
}

.woocommerce .wp-block-button__link,
.woocommerce-page .wp-block-button__link,
.woocommerce button,
.woocommerce .button,
.woocommerce-page button,
.woocommerce-page .button {
  border-radius: 0;
}

.cjqc-contact-page {
  padding: 3rem 0 4rem;
  background: #f8faf4;
}

.cjqc-contact-wrap {
  max-width: 880px;
}

.cjqc-contact-title {
  margin: 0 0 0.45rem;
  font-family: "Alegreya", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.cjqc-contact-subtitle {
  margin: 0 0 1.5rem;
  color: #4d5830;
}

.cjqc-contact-form {
  background: #ffffff;
  border: 1px solid var(--cjqc-border);
  box-shadow: 0 10px 26px rgba(29, 44, 11, 0.08);
  padding: 1.5rem;
}

.cjqc-contact-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: #2f3a15;
  font-size: 0.95rem;
}

.cjqc-contact-form input,
.cjqc-contact-form textarea {
  width: 100%;
  border: 1px solid #c9d3b2;
  background: #ffffff;
  padding: 0.75rem 0.8rem;
  font-size: 1rem;
  line-height: 1.4;
  color: #22300f;
  border-radius: 0;
  box-sizing: border-box;
}

.cjqc-contact-form input:focus,
.cjqc-contact-form textarea:focus {
  border-color: #7aa738;
  outline: none;
  box-shadow: 0 0 0 2px rgba(122, 167, 56, 0.22);
}

.cjqc-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cjqc-contact-grid + .cjqc-contact-grid {
  margin-top: 0.15rem;
}

.cjqc-contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cjqc-contact-recaptcha-placeholder {
  border: 1px dashed #aac289;
  padding: 0.8rem 1rem;
  margin-top: 0.4rem;
  margin-bottom: 1.2rem;
  font-size: 0.92rem;
  color: #4f6329;
  background: #f6fbe9;
}

.cjqc-contact-submit-wrap {
  margin-bottom: 0;
}

.cjqc-contact-submit {
  border: 0;
  border-radius: 0;
  background: #7fb13a;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  padding: 0.85rem 1.7rem;
  cursor: pointer;
}

.cjqc-contact-submit:hover,
.cjqc-contact-submit:focus {
  background: #6e9b31;
}

.cjqc-contact-alert {
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  border: 1px solid;
}

.cjqc-contact-alert-success {
  color: #1f5d22;
  background: #e9f6e7;
  border-color: #9fca9a;
}

.cjqc-contact-alert-error {
  color: #7b2222;
  background: #fdeeee;
  border-color: #e5b0b0;
}

/* =====================================================
   SHOP / BOUTIQUE — layout avec sidebar de filtres
   ===================================================== */
.cjqc-shop-page {
  max-width: none !important;
  padding-top: 1.4rem;
  padding-bottom: 3rem;
}

.cjqc-shop-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* Sidebar filtres */
.cjqc-shop-sidebar {
  width: 240px;
  min-width: 220px;
  flex-shrink: 0;
}

.cjqc-sidebar-title {
  font-family: "Open Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cjqc-dark);
  margin: 0 0 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--cjqc-green);
}

/* Wrapper pour les filtres */
.cjqc-filters-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Widget / bloc de filtre WooCommerce classique */
.cjqc-filters-wrapper .widget,
.cjqc-filters-wrapper .woocommerce-widget-layered-nav,
.cjqc-filters-wrapper .woocommerce-widget-layered-nav-filters,
.cjqc-filters-wrapper ul {
  border: 1px solid var(--cjqc-border);
  background: #ffffff;
  padding: 0.75rem 0.9rem;
  list-style: none;
  margin: 0 !important;
}

/* Titre du widget de filtre */
.cjqc-filters-wrapper .widget_title,
.cjqc-filters-wrapper .woocommerce-widget-layered-nav-list__item--heading,
.cjqc-filters-wrapper h3,
.woocommerce-widget-layered-nav h3 {
  font-family: "Open Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cjqc-dark);
  margin: 0 0 0.55rem 0 !important;
  padding: 0 0 0.4rem 0 !important;
  border-bottom: 1px solid var(--cjqc-border);
}

/* Éléments de liste (termes) */
.cjqc-filters-wrapper .woocommerce-widget-layered-nav-list li,
.cjqc-filters-wrapper .woocommerce-widget-layered-nav ul li,
.cjqc-filters-wrapper .widget_product_categories .product-categories > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  flex-wrap: nowrap;
  padding: 0.22rem 0 !important;
  list-style: none !important;
  margin: 0 !important;
}

.cjqc-filters-wrapper .woocommerce-widget-layered-nav-list li a,
.cjqc-filters-wrapper .woocommerce-widget-layered-nav ul li a,
.cjqc-filters-wrapper .widget_product_categories .product-categories > li > a {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.93rem;
  color: var(--cjqc-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.cjqc-filters-wrapper a:hover {
  color: var(--cjqc-green);
}

/* Compteur de produits */
.cjqc-filters-wrapper .count {
  display: inline-block;
  white-space: nowrap;
  flex: 0 0 auto;
  color: #888;
  font-size: 0.83rem;
  margin-left: auto;
}

.cjqc-filters-wrapper .widget_product_categories .current-cat > a,
.cjqc-filters-wrapper .widget_product_categories .current-cat-parent > a {
  font-weight: 700;
  color: #1f2910;
}

.cjqc-filters-wrapper .cjqc-widget-product-name-filter .cjqc-product-name-filter-form {
  display: grid;
  gap: 0.5rem;
}

.cjqc-filters-wrapper .cjqc-widget-product-name-filter input[type="search"] {
  width: 100%;
  border: 1px solid var(--cjqc-border);
  padding: 0.5rem 0.65rem;
  font-family: "Open Sans", sans-serif;
  font-size: 0.93rem;
  color: var(--cjqc-text);
  background: #ffffff;
  border-radius: 0;
}

.cjqc-filters-wrapper .cjqc-widget-product-name-filter input[type="search"]:focus {
  outline: none;
  border-color: var(--cjqc-green);
  box-shadow: 0 0 0 2px rgba(139, 195, 74, 0.2);
}

.cjqc-filters-wrapper .cjqc-widget-product-name-filter button {
  border: 0;
  background: var(--cjqc-green);
  color: #ffffff;
  font-family: "Open Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

.cjqc-filters-wrapper .cjqc-widget-product-name-filter button:hover,
.cjqc-filters-wrapper .cjqc-widget-product-name-filter button:focus {
  background: #6e9b31;
}

/* Active filters: show each selected filter on its own line. */
.cjqc-filters-wrapper .widget_layered_nav_filters ul,
.cjqc-filters-wrapper .woocommerce.widget_layered_nav_filters ul {
  display: block !important;
}

.cjqc-filters-wrapper .widget_layered_nav_filters ul li,
.cjqc-filters-wrapper .woocommerce.widget_layered_nav_filters ul li {
  display: block !important;
  width: 100%;
  padding: 0.22rem 0 !important;
}

.cjqc-filters-wrapper .widget_layered_nav_filters ul li a,
.cjqc-filters-wrapper .woocommerce.widget_layered_nav_filters ul li a {
  display: inline-flex !important;
  width: 100%;
}

.cjqc-filters-wrapper .widget_layered_nav_filters ul li a,
.cjqc-filters-wrapper .woocommerce.widget_layered_nav_filters ul li a {
  font-family: "Open Sans", sans-serif;
  font-size: 0.93rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--cjqc-text);
}

/* Keep very long attribute lists compact (Hauteur, Contenant). */
.cjqc-filters-wrapper > .widget:nth-of-type(3) .woocommerce-widget-layered-nav-list,
.cjqc-filters-wrapper > .widget:nth-of-type(4) .woocommerce-widget-layered-nav-list {
  max-height: 290px;
  overflow: auto;
  padding-right: 0.25rem;
}

.cjqc-filters-wrapper > .widget:nth-of-type(3) .woocommerce-widget-layered-nav-list::-webkit-scrollbar,
.cjqc-filters-wrapper > .widget:nth-of-type(4) .woocommerce-widget-layered-nav-list::-webkit-scrollbar {
  width: 8px;
}

.cjqc-filters-wrapper > .widget:nth-of-type(3) .woocommerce-widget-layered-nav-list::-webkit-scrollbar-thumb,
.cjqc-filters-wrapper > .widget:nth-of-type(4) .woocommerce-widget-layered-nav-list::-webkit-scrollbar-thumb {
  background: #c3cfaa;
}

/* Zone principale produits */
.cjqc-shop-main {
  flex: 1 1 0;
  min-width: 0;
}

/* Center product button text in listings (e.g. "Voir le produit"). */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart,
.woocommerce-page ul.products li.product .added_to_cart {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 70%;
}

.woocommerce ul.products li.product {
    text-align: center;
}

/* Keep product card text/price/button aligned across each row. */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  display: flex;
  flex-direction: column;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link,
.woocommerce-page ul.products li.product .woocommerce-loop-product__link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  line-height: 1.35;
  min-height: 2.7em;
  margin-bottom: 0.45rem;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
  margin-top: auto;
  margin-bottom: 0.65rem;
}

@media (max-width: 900px) {
  .cjqc-header .wp-block-site-logo img {
    max-width: 220px;
  }

  .cjqc-feature-strip {
    margin-top: 1rem;
  }

  .cjqc-section {
    padding-top: 2.8rem;
    padding-bottom: 2.8rem;
  }

  .cjqc-map iframe {
    min-height: 380px;
  }

  #cjqc-pickup-map {
    min-height: 380px;
  }

  .cjqc-contact-page {
    padding-top: 2.2rem;
    padding-bottom: 3rem;
  }

  .cjqc-contact-form {
    padding: 1.15rem;
  }

  .cjqc-contact-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  /* Shop mobile: empiler sidebar + contenu */
  .cjqc-shop-layout {
    flex-direction: column;
    gap: 1.4rem;
  }

  .cjqc-shop-sidebar {
    width: 100%;
    min-width: 0;
  }

  .cjqc-filters-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .cjqc-filters-wrapper .widget,
  .cjqc-filters-wrapper .woocommerce-widget-layered-nav,
  .cjqc-filters-wrapper ul {
    flex: 1 1 160px;
  }
}

@media (max-width: 480px) {
  .cjqc-filters-wrapper {
    flex-direction: column;
  }
}
