/*
Theme Name: Le Cosinus 2026
Author: Le Cosinus
Version: 1.0
*/

html {
  margin-block-start: 0px !important;
  scroll-behavior: smooth;
  overflow-x: hidden;
  position: relative;
}

body.mobile-menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

body.mobile-menu-open {
  overflow: hidden;
  height: 100vh;
}

.gform-theme--foundation {
  --gf-form-gap-y: 24px !important;
}

/* =========================================================
   GLOBAL
   ========================================================= */

/* Conteneur standard (contentSize) */
.container {
  max-width: var(--wp--style--global--content-size);
  margin-left: auto;
  margin-right: auto;
  padding-right: var(--wp--style--root--padding-right);
  padding-left: var(--wp--style--root--padding-left);
  width: 100%;
  box-sizing: border-box;
}

/* Conteneur large (wideSize) */
.container-wide {
  max-width: var(--wp--style--global--wide-size);
  margin-left: auto;
  margin-right: auto;
  padding-right: var(--wp--style--root--padding-right);
  padding-left: var(--wp--style--root--padding-left);
  width: 100%;
  box-sizing: border-box;
}

/* Pleine largeur */
.container-full {
  width: 100%;
}

.text-center {
  text-align: center;
}

.wp-site-blocks {
  padding-top: 0px;
  padding-bottom: 0px;
}

/* Breadcrumb */
@media screen and (max-width: 768px) {
  .breadcrumb-wrapper {
    justify-content: center;
  }
}

/* Utilitaires */
.fit-content {
  width: fit-content;
}

.p-0 {
  padding: 0px;
}

.m-0 {
  margin: 0px;
}

.fw {
  width: 100%;
}

@media screen and (max-width: 940px) {
  .column-reverse-mobile {
    flex-direction: column-reverse;
  }
}

.d-flex {
  display: flex;
}

.column {
  flex-direction: column;
}

.reverse-column {
  flex-direction: column-reverse;
}

.row {
  flex-direction: row;
}

.reverse-row {
  flex-direction: row-reverse;
}

.justify-space-between {
  justify-content: space-between;
}
.justify-space-around {
  justify-content: space-around;
}

.justify-space-evenly {
  justify-content: space-evenly;
}

.img-cover {
  width: 100%;
  height: 100%;
  background-size: cover;
}
.img-cover img {
  width: 100%;
  height: 100%;
  background-size: cover;
}

.page-title {
  display: block;
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.page-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 100%;
  height: 1px;
  background-color: rgba(2, 48, 71, 0.5);
}

.underlined::after {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  margin-top: 8px;
  background-color: var(--wp--preset--color--dark-blue);
}

.divider {
  border: none;
  height: 1px;
  background-color: rgba(2, 48, 71, 0.25);
  width: 100%;
  margin: var(--wp--preset--spacing--16) auto;
}

.wp-singular h1 {
  text-align: center;
}

@media screen and (max-width: 978px) {
  .page-title {
    text-decoration: underline;
  }

  .page-title::after {
    content: none;
  }
}

/* =========================================================
   MINI PANIER
   ========================================================= */

.wc-block-mini-cart.is-style-btn-cart {
  display: inline-flex;
  position: relative;
}

.wc-block-mini-cart.is-style-btn-cart .wc-block-mini-cart__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: #fff;
  color: var(--wp--preset--color--dark-blue);
  border: 1px solid rgba(39, 65, 89, 0.2);
  border-radius: 2px;
  font-weight: 700;
  line-height: 1.2;
  padding: 10px 8px;
  height: 46px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.wc-block-mini-cart.is-style-btn-cart .wc-block-mini-cart__button:hover {
  background: var(--wp--preset--color--dark-blue);
  color: var(--wp--preset--color--white);
}

.wc-block-mini-cart.is-style-btn-cart .wc-block-mini-cart__icon {
  display: none;
}

.wc-block-mini-cart.is-style-btn-cart .wc-block-mini-cart__button::before {
  content: "";
  display: inline-block;
  margin-right: 6px;
  width: 20px;
  height: 20px;
  background: url("/wp-content/themes/le-cosinus-2025/assets/pictos/cart.svg")
    no-repeat center;
  background-size: contain;
}

.wc-block-mini-cart.is-style-btn-cart .wc-block-mini-cart__button::after {
  content: "Panier";
  font-weight: 700;
  color: var(--wp--preset--color--dark-blue);
}
.wc-block-mini-cart.is-style-btn-cart:hover .wc-block-mini-cart__button::after {
  color: var(--wp--preset--color--white);
}

/* Badge (nombre d'articles) */
.wc-block-mini-cart.is-style-btn-cart .wc-block-mini-cart__badge {
  position: absolute;
  top: -18px;
  left: -26px;
  background: var(--wp--preset--color--yellow, #f7a833);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  box-shadow: 0 0 0 2px #fff;
}

/* Pastille masquée si panier vide */
.wc-block-mini-cart.is-style-btn-cart[data-cart-items-count="0"]
  .wc-block-mini-cart__badge {
  display: none;
}

#read-more {
  scroll-margin-top: 120px;
}

/* =========================================================
   PAGE D'ACCUEIL
   ========================================================= */

body.home .breadcrumb-wrapper {
  display: none;
}

.wp-site-blocks > div:first-of-type {
  margin-block-start: 0 !important;
}

.hp-hero {
  background-image: url("/wp-content/themes/le-cosinus-2026/assets/img/Hero-bg-desktop.webp");
  background-size: cover;
  background-position: center;
  min-height: 260px;
}

@media (min-width: 1200px) {
  .hp-hero {
    min-height: 360px;
  }
}

@media (max-width: 768px) {
  .hp-hero {
    background-image: url("/wp-content/uploads/Hero-Visuel-mobile.webp");
    min-height: 160px;
  }
}

.catchphrase::before,
.catchphrase::after {
  content: "";
  width: 20px;
  height: 18px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}

.catchphrase::after {
  background-image: url("/wp-content/themes/le-cosinus-2025/assets/pictos/quote-right.svg");
  margin-left: 8px;
}

.catchphrase::before {
  background-image: url("/wp-content/themes/le-cosinus-2025/assets/pictos/quote-left.svg");
  margin-right: 8px;
}

/* Blocs expertise ronds */
.bloc-rond {
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
  gap: 6px;
}

.bloc-rond img {
  width: 32px;
  height: 32px;
}

.bloc-rond > div > p {
  line-height: 1;
}

.bloc-rond p {
  margin: 0;
  color: var(--wp--preset--color--dark-blue);
  line-height: 1.2;
  font-size: var(--wp--preset--font-size--14);
  font-weight: 600;
}

.bloc-rond span {
  display: block;
}

span.orange {
  display: inline-block;
  color: var(--wp--preset--color--yellow);
}

/* Section FAQ */
.wp-block-woocommerce-accordion-item h3.faq-title {
  border-radius: 2px;
  display: flex;
  align-items: center;
  padding: 16px 10px;
  gap: 16px;
}

.accordion-item__toggle-icon {
  width: 2em !important;
  height: 2em !important;
}

.accordion-item__toggle-icon svg {
  width: 2em !important;
  height: 2em !important;
}

.faq-title::before {
  content: "";
  display: inline-block;
  width: 23px;
  height: 18px;
  background-image: url("/wp-content/themes/le-cosinus-2025/assets/pictos/chat.svg");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}

.lc-faq .wp-block-woocommerce-accordion-item {
  border-radius: 2px;
}

.lc-faq .row-stretched {
  position: relative;
  padding-left: 30px;
}

.lc-faq .row-stretched::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background-color: var(--wp--preset--color--luminous-vivid-amber);
}

.row-stretched {
  align-items: stretch;
}

.faq-vertical-line {
  width: 1px;
  background-color: var(--wp--preset--color--yellow);
}

/* Section actualités */
.news-columns-wrapper {
  height: 100%;
}

.wp-block-post-terms a {
  transition: 0.2s ease-in;
}

.wp-block-post-terms a:hover {
  text-decoration: none;
}

.is-style-cards-2col-center .wp-block-post-excerpt__excerpt {
  font-size: var(--wp--preset--font-size--12);
}

/* =========================================================
   CATALOGUE PRODUITS
   ========================================================= */

.lc-filters-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lc-tags-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 4px 0;
}

.lc-tag {
  display: inline-flex;
  align-items: center;
  background: var(--wp--preset--color--gray);
  border: 1px solid #ced4da;
  color: var(--wp--preset--color--dark-blue);
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1.4;
  gap: 4px;
  cursor: default;
  font-family: inherit;
}

.lc-tag span {
  white-space: nowrap;
}

.sub-categories-wrapper {
  overflow: hidden;
}

.title-tension {
  position: relative;
  display: flex;
  align-items: flex-start;
  line-height: normal;
  margin-left: -8px !important;
}
.title-tension:before {
  display: inline-block;
  content: "";
  width: 10px;
  height: 33px;
  background-color: var(--wp--preset--color--yellow);
  margin-right: 8px;
}

.sub-category-title {
  position: relative;
  background-color: var(--wp--preset--color--white);
  padding-right: 1rem;
}

.sub-category-title::after {
  content: "";
  position: absolute;
  width: 400px;
  top: 50%;
  height: 1px;
  background: rgba(2, 48, 71, 0.2);
  z-index: -1;
}

.groupe-bloc {
  margin-bottom: 14px;
}

.groupe-titre {
  font-size: var(--wp--preset--font-size--12);
  font-weight: 700;
  margin: 0 0 4px 0;
  text-transform: uppercase;
  text-decoration: underline;
}

.groupe-buttons {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.groupe-btn {
  border: solid 1px rgba(23, 39, 53, 0.5);
  border-radius: 2px;
  font-weight: 400;
  color: #274159;
  font-size: var(--wp--preset--font-size--12);
  padding: 4px 8px;
  transition: 0.2s ease-in;
  text-decoration: none;
}

a.groupe-btn:hover,
a.groupe-btn.is-active {
  background-color: var(--wp--preset--color--dark-blue);
  color: var(--wp--preset--color--white) !important;
}

.sub-categories-menu a:hover,
.sub-categories-menu li.current-menu-item a {
  background-color: var(--wp--preset--color--dark-blue);
  color: var(--wp--preset--color--white) !important;
}

/* Pagination */
.products-pagination {
  gap: 4px;
}

.products-pagination span,
.products-pagination a {
  border-radius: 2px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: var(--wp--preset--color--dark-blue);
  color: var(--wp--preset--color--white);
  padding: 16px;
  box-sizing: border-box;
  text-decoration: none;
}

.products-pagination .wp-block-query-pagination-numbers > *,
.products-pagination li .page-numbers {
  width: 48px;
  height: 48px;
}

.products-pagination .wp-block-query-pagination-next,
.products-pagination .wp-block-query-pagination-previous,
.products-pagination li .next,
.products-pagination li .prev {
  width: auto;
  height: 48px;
}

.products-pagination span.current {
  position: relative;
  color: var(--wp--preset--color--yellow);
  font-weight: 600;
}

.products-pagination span.current::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid var(--wp--preset--color--dark-blue);
}

.products-pagination li a:hover {
  color: var(--wp--preset--color--yellow);
}

.archive-product-title-custom {
  text-align: center;
}

.leco-back-parent {
  margin-bottom: var(--wp--preset--spacing--8);
}

.leco-back-link {
  display: inline-block;
  font-weight: 700;
  font-size: var(--wp--preset--font-size--18);
  color: var(--wp--preset--color--dark-blue);
  text-decoration: underline;
}

.leco-back-link:hover {
  text-decoration: none;
}

/* Filtres produits */
.lc-filters.styled-filters {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--8);
  margin-block-start: 0;
}

.lc-filters-title {
  font-weight: 600;
  margin: 0;
}

.lc-filter-group label {
  display: block;
  font-weight: 600;
  color: var(--wp--preset--color--dark-blue);
  margin-bottom: 4px;
}

.lc-filter-group select {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  padding: 14px 8px;
  font-size: 0.875rem;
  color: rgba(2, 48, 71, 0.5);
  font-style: italic;
}

/* Select2 */
.select2-container--default .select2-selection--multiple {
  background: #ffffff;
  border: 1px solid #b5c3d6;
  border-radius: 6px;
  min-height: 44px;
  padding: 4px;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select2-container--default .select2-selection--multiple:hover,
.select2-container--default.select2-container--focus
  .select2-selection--multiple {
  border-color: #0c2e4e;
}

.select2-container--default.select2-container--focus
  .select2-selection--multiple {
  box-shadow: 0 0 0 2px rgba(12, 46, 78, 0.15);
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__placeholder {
  color: #6c7a8a;
  font-style: italic;
  padding-left: 2px;
}

.select2-container--default .select2-selection__choice {
  background: #e9ecef;
  border: 1px solid #ced4da;
  color: var(--wp--preset--color--dark-blue);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12px;
}

.select2-container--default .select2-selection__choice__remove {
  margin-right: 6px;
  color: #555;
  font-weight: bold;
}

.lc-checkbox-label {
  vertical-align: text-bottom;
}

.select2-selection__clear {
  font-size: 0 !important;
  width: 16px !important;
  height: 16px !important;
  margin-right: 4px;
  cursor: pointer;
  background-image: url("/wp-content/plugins/lecosinus-master/blocks/lc-search/clear.svg");
  background-size: 16px 16px;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  margin-top: 0px !important;
}

.select2-selection__clear:hover {
  opacity: 0.7;
}

.select2-container--default .select2-dropdown {
  border: 1px solid #b5c3d6;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.select2-results__option {
  padding: 6px 10px;
  font-size: 12px;
  color: var(--wp--preset--color--dark-blue);
  display: flex;
  align-items: center;
  gap: 8px;
}

.select2-results__option--selected {
  background: var(--wp--preset--color--dark-blue) !important;
}

.select2-results__option--highlighted {
  background: var(--wp--preset--color--dark-blue) !important;
}

.select2-results__option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--wp--preset--color--yellow);
  cursor: pointer;
}

.lc-tag-remove img {
  width: 12px;
  height: 12px;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.lc-tag-remove:hover img {
  opacity: 1;
}

.lc-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 36px;
}
.lc-select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='8' viewBox='0 0 16 8' fill='none'><path opacity='0.75' d='M0.210938 0.28125C0.316406 0.140625 0.457031 0.0703125 0.632812 0.0703125C0.738281 0.0703125 0.878906 0.105469 0.984375 0.210938L7.91016 6.57422L14.8711 0.210938C15.082 0 15.4336 0 15.6445 0.246094C15.8555 0.457031 15.8555 0.808594 15.6094 1.01953L8.29688 7.76953C8.08594 7.98047 7.76953 7.98047 7.55859 7.76953L0.246094 1.01953C0 0.84375 0 0.492188 0.210938 0.28125Z' fill='black'/></svg>");
}

.lc-filter-actions {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lc-filter-actions .btn-apply {
  background-color: var(--wp--preset--color--dark-blue);
  color: var(--wp--preset--color--white);
  border: solid 1px var(--wp--preset--color--dark-blue);
  padding: 14px 40px 14px 8px;
  border-radius: 2px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: 0.2s ease-in;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='16' viewBox='0 0 18 16' fill='none'><path opacity='0.75' d='M0 1.47656C0 0.667969 0.632812 0 1.44141 0H16.5234C17.332 0 18 0.667969 18 1.47656C18 1.82812 17.8594 2.14453 17.6484 2.39062L11.8125 9.59766V14.625C11.8125 15.2578 11.2852 15.75 10.6523 15.75C10.4062 15.75 10.1602 15.6797 9.94922 15.5039L6.71484 12.9375C6.36328 12.6562 6.1875 12.2695 6.1875 11.8477V9.59766L0.316406 2.39062C0.105469 2.14453 0 1.82812 0 1.47656ZM1.89844 1.6875L7.66406 8.75391C7.80469 8.92969 7.875 9.10547 7.875 9.28125V11.707L10.125 13.5V9.28125C10.125 9.10547 10.1602 8.92969 10.3008 8.75391L16.0664 1.6875H1.89844Z' fill='white'/></svg>");
  background-repeat: no-repeat;
  background-size: 18px 16px;
  background-position: right 14px center;
}

.lc-filter-actions .btn-apply:hover {
  background-color: var(--wp--preset--color--white);
  color: var(--wp--preset--color--dark-blue);
  border-color: var(--wp--preset--color--dark-blue);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='16' viewBox='0 0 18 16' fill='none'><path opacity='0.75' d='M0 1.47656C0 0.667969 0.632812 0 1.44141 0H16.5234C17.332 0 18 0.667969 18 1.47656C18 1.82812 17.8594 2.14453 17.6484 2.39062L11.8125 9.59766V14.625C11.8125 15.2578 11.2852 15.75 10.6523 15.75C10.4062 15.75 10.1602 15.6797 9.94922 15.5039L6.71484 12.9375C6.36328 12.6562 6.1875 12.2695 6.1875 11.8477V9.59766L0.316406 2.39062C0.105469 2.14453 0 1.82812 0 1.47656ZM1.89844 1.6875L7.66406 8.75391C7.80469 8.92969 7.875 9.10547 7.875 9.28125V11.707L10.125 13.5V9.28125C10.125 9.10547 10.1602 8.92969 10.3008 8.75391L16.0664 1.6875H1.89844Z' fill='%2300265E'/></svg>");
}

.lc-filter-actions .btn-reset {
  text-align: center;
  display: block;
  color: var(--wp--preset--color--dark-blue);
  text-decoration: underline;
  font-size: 0.875rem;
  transition: 0.2s ease-in;
}
.lc-filter-actions .btn-reset:hover {
  text-decoration: none;
}

/* =========================================================
   CARTES PRODUITS
   ========================================================= */

.lc-products-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lc-product-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.lc-product-card:hover {
  text-decoration: none;
}

.lc-product-card article {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid rgba(2, 48, 71, 0.2);
  border-radius: 2px;
  padding: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lc-product-card:hover article {
  border-color: #27415933;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.lc-product-thumb {
  flex: 0 0 180px;
}

.lc-product-thumb img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.lc-product-content {
  flex: 1;
}

.lc-product-title {
  font-size: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.236), 1.13rem);
  font-weight: 700;
  margin: 0 0 0.3rem;
  color: var(--wp--preset--color--dark-blue);
}

.lc-product-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #eef4fa;
  border: 1px solid #c4d1df;
  border-radius: 4px;
  font-size: var(--wp--preset--font-size--12);
  color: var(--wp--preset--color--dark-blue);
  margin-bottom: 8px;
  line-height: 1;
}

.lc-product-badge-icon svg {
  display: block;
  width: 10px;
  height: 13px;
}

.lc-product-badge-text {
  display: inline-block;
  font-size: var(--wp--preset--font-size--12);
  font-weight: 400;
}

.lc-product-desc {
  font-size: var(--wp--preset--font-size--12);
  font-weight: 400;
  color: var(--wp--preset--color--dark-blue);
  line-height: 1.4;
  margin-bottom: 0.7rem;
}

.lc-product-link {
  color: var(--wp--preset-color--dark-blue);
  font-weight: 700;
  font-size: 0.95rem;
  pointer-events: none;
}

.lc-product-card:hover .lc-product-link .arrow {
  margin-left: 8px;
}

.lc-filters-loader {
  display: none;
  margin-top: 8px;
  font-size: var(--wp--preset--font-size--14);
  color: var(--wp--preset-color--dark-blue);
  animation: fadeIn 0.3s ease-in-out;
  text-align: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media screen and (max-width: 768px) {
  .lc-product-thumb {
    flex: 0 0 100px;
  }
}

hr.yellow-spacer.wp-block-separator {
  height: 2px !important;
}

.archive-product-card {
  border: 1px solid #ccc;
  border-radius: 2px;
  margin-top: var(--wp--preset--spacing--32);
  padding: var(--wp--preset--spacing--16);
}

.archive-product-card__title {
  margin: 0;
}

.archive-product-card__content {
  display: flex;
  gap: var(--wp--preset--spacing--16);
}

.archive-product-card__image {
  flex: 0 0 33.33%;
}

.archive-product-card__image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.archive-product-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--wp--preset--spacing--8);
}

/* =========================================================
   CHECKOUT — LIGNES PRODUIT
   ========================================================= */

.lc-order-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid #e0e0e0;
  margin-bottom: 15px;
  background: #fff;
}

.lc-order-thumb {
  flex: 0 0 120px;
  width: 120px;
}

.lc-order-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.lc-order-details {
  flex: 1;
  min-width: 0;
}

.lc-order-details h4 {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 600;
}

.lc-order-meta {
  font-size: 13px;
  color: #666;
  margin: 5px 0;
}

/* Zone prix — grille 2 colonnes */
.lc-order-prices {
  flex: 0 0 380px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  align-items: start;
}

.lc-order-prices > div:nth-child(1) { grid-column: 1; grid-row: 1; line-height: 1.4; }
.lc-order-prices .lc-total         { grid-column: 2; grid-row: 1; text-align: right; }
.lc-order-prices .lc-total strong  { font-weight: 700; display: block; }
.lc-order-prices > div:nth-child(3) { grid-column: 1; grid-row: 2; font-size: 13px; color: #666; }
.lc-order-prices .lc-tax           { grid-column: 2; grid-row: 2; text-align: right; font-size: 13px; color: #666; }

.lc-price-title {
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.lc-price-line {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}

.lc-price-line:last-child { margin-bottom: 0; }

.lc-price-line.lc-price-main      { font-size: 15px; }
.lc-price-line.lc-price-secondary { font-size: 12px; color: #666; }

.lc-price-suffix {
  font-size: 10px;
  font-weight: normal;
  color: #666;
  margin-left: 2px;
  text-transform: uppercase;
}

.lc-order-prices del {
  opacity: 0.5;
  font-size: 13px;
  text-decoration: line-through;
  color: #999;
}

.lc-order-prices ins {
  text-decoration: none;
  font-weight: 700;
  color: #46b450;
}

.lc-order-prices .lc-total .lc-price-main      { font-size: 18px; }
.lc-order-prices .lc-total .lc-price-secondary { font-size: 14px; }

/* Badge remise */
.lc-discount-badge {
  display: inline-block;
  background: #46b450;
  color: white;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  margin-left: 5px;
  text-transform: uppercase;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .lc-order-item { flex-wrap: wrap; }

  .lc-order-thumb { flex: 0 0 80px; width: 80px; }

  .lc-order-prices {
    flex: 1 1 100%;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
  }

  .lc-order-prices > div:nth-child(1),
  .lc-order-prices .lc-total,
  .lc-order-prices > div:nth-child(3),
  .lc-order-prices .lc-tax {
    grid-column: 1;
    text-align: left !important;
  }
}

/* =========================================================
   PANIER — MENTIONS HT / TTC (blocs Gutenberg WooCommerce)
   ========================================================= */

/* HT après le prix total de la ligne produit */
.wc-block-cart-item__total .wc-block-components-product-price {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.wc-block-cart-item__total .wc-block-components-product-price::after {
  content: "HT";
  font-size: 0.75em;
  font-weight: 400;
  opacity: 0.65;
}

/* TTC après le label Total estimé */
.wc-block-components-totals-footer-item
  .wc-block-components-totals-item__label::after {
  content: " TTC";
  font-size: 0.75em;
  font-weight: 400;
  opacity: 0.65;
}

/* =========================================================
   ACCESSIBILITE — SCREEN READER
   ========================================================= */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   FORMULAIRES
   ========================================================= */

.gform_wrapper .gform-body .gfield .ginput_container select,
.gform_wrapper .gform-body .gfield .ginput_container textarea,
.gform_wrapper .gform-body .gfield .ginput_container input {
  border: solid 1px rgba(0, 0, 0, 0.2);
}

.gform_wrapper .ginput_container_text input::placeholder {
  color: graytext;
  opacity: 1;
}

/* =========================================================
   RESULTATS DE RECHERCHE
   ========================================================= */

.lc-search-results {
  display: flex;
  flex-direction: column;
}

.lc-search-item {
  border-bottom: 1px solid #ccc;
  padding-bottom: 16px;
}

.lc-search-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  align-items: center;
}

.lc-search-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.lc-search-filter a {
  padding: 8px;
  border-radius: 4px;
  text-decoration: none;
  background: #f1f5f9;
  color: var(--wp--preset--color--dark-blue);
  font-size: var(--wp--preset--font-size--14);
  border: 1px solid #cbd5e1;
  transition: background 0.2s;
}

.lc-search-filter a:hover,
.lc-search-filter a.active {
  background: var(--wp--preset--color--dark-blue);
  color: #fff;
  border-color: var(--wp--preset--color--dark-blue);
}

.lc-search-thumb {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: #f7f7f7;
}

.lc-search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  aspect-ratio: 1/1;
  padding: 8px;
}

.lc-search-thumb svg {
  width: 64px;
  height: auto;
  fill: var(--wp--preset--color--dark-blue);
  flex-shrink: 0;
  aspect-ratio: 1/1;
}

.lc-search-item .lc-suggestion-type .lc-badge {
  font-size: 12px;
  margin: 0px 0px 8px 0px;
}

.lc-search-content h3 {
  margin: 0 0 8px;
  font-size: var(--wp--preset--font-size--18);
}

.lc-search-content h3 a {
  font-size: var(--wp--preset--font-size--18);
  text-decoration: none;
}

.lc-search-content p {
  margin: 0 0 12px;
}

.lc-search-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lc-search-results .lc-search-item {
  padding: 16px 0px;
  border-bottom: 1px solid #ccc;
}

.lc-search-results .lc-search-item:first-child {
  border-top: 1px solid #ccc;
}

.page-numbers li { list-style: none; }

.products-pagination {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.products-pagination ul.page-numbers {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (max-width: 768px) {
  .lc-search-grid {
    grid-template-columns: 20% 1fr;
    gap: 12px;
  }
}

/* =========================================================
   MON COMPTE
   ========================================================= */

.woocommerce-account .woocommerce-MyAccount-navigation li {
  padding: 0px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--16);
}

body.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 10px 14px;
  border: 1px solid var(--wp--preset--color--dark-blue);
  border-radius: 4px;
  color: var(--wp--preset--color--dark-blue);
  font-weight: 600;
  font-size: var(--wp--preset--font-size--14);
  text-decoration: none;
  background: var(--wp--preset--color--white);
  transition: all 0.2s ease;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  color: var(--wp--preset--color--yellow);
  background: var(--wp--preset--color--white);
  border-color: var(--wp--preset--color--yellow);
  text-decoration: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
  background: var(--wp--preset--color--dark-blue);
  color: var(--wp--preset--color--white);
  text-decoration: none;
}

body.woocommerce-account .woocommerce-MyAccount-content {
  flex: 1;
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--gray);
  border-radius: 6px;
  padding: var(--wp--preset--spacing--16);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

body.woocommerce-account .woocommerce-MyAccount-content h2 {
  font-size: var(--wp--preset--font-size--24);
  font-family: var(--wp--preset--font-family--serif);
  color: var(--wp--preset--color--dark-blue);
  margin-bottom: var(--wp--preset--spacing--16);
}

.woocommerce-account .addresses .title .edit {
  float: left;
}

@media (max-width: 768px) {
  body.woocommerce-account .woocommerce { flex-direction: column; }
  body.woocommerce-account .woocommerce-MyAccount-navigation { width: 100%; flex: none; }
}

.lc-myaccount-company {
  border: 1px solid #dcdcde;
  margin-top: 2rem;
  background: #fff;
}

.lc-myaccount-company legend {
  font-weight: 600;
  padding: 0 0.5rem;
}

.lc-myaccount-company .form-row {
  margin-bottom: 1rem;
}

.lc-myaccount-company label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.lc-myaccount-company--editable button.button {
  margin-top: 1rem;
}

.lc-myaccount-company span {
  display: block;
  padding-top: 0.25rem;
  color: #1d2327;
}

/* =========================================================
   BLOG — ARCHIVE
   ========================================================= */

.blog-item-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}

.blog-layout {
  display: flex;
  gap: var(--wp--preset--spacing--16);
  margin-top: var(--wp--preset--spacing--16);
  margin-bottom: var(--wp--preset--spacing--16);
  align-items: stretch;
}

#archive-blog .blog-content {
  display: flex;
  flex-direction: column;
  gap: var(--wp--style--block-gap, 1.5rem);
  box-sizing: border-box;
}

.blog-content {
  flex: 0 0 calc(66.666% - var(--wp--preset--spacing--16) / 2);
  min-width: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--wp--style--block-gap, 1.5rem);
}

.blog-sidebar {
  flex: 0 0 calc(33.333% - var(--wp--preset--spacing--16) / 2);
  min-width: 0;
  border-left: 1px solid #ccc;
  padding-left: var(--wp--preset--spacing--16);
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--16);
}

.blog-sidebar h2 { margin: 0; }

.blog-categories { list-style: none; padding: 0; margin: 0; }
.blog-categories li { list-style: disc; list-style-position: inside; }

@media (max-width: 960px) {
  .blog-layout { flex-direction: column; }

  #archive-blog .blog-content,
  .blog-sidebar { flex: 1 1 auto; width: 100%; }

  .blog-grid { grid-template-columns: 1fr; }

  .blog-sidebar {
    border-left: none;
    padding-left: 0;
    margin-top: var(--wp--preset--spacing--32);
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #ccc;
  border-radius: 2px;
  overflow: hidden;
}

.blog-card-media {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
}

.blog-card-media a {
  display: block;
  height: 100%;
}

.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-sizing: border-box;
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-card-text { padding: var(--wp--preset--spacing--8); }

.blog-card-title {
  font-size: var(--wp--preset--font-size--18) !important;
  font-weight: 700;
  margin: 0 0 8px;
}

.blog-card-title a {
  text-decoration: none;
  color: var(--wp--preset--color--dark-blue);
  font-size: var(--wp--preset--font-size--18) !important;
}

.blog-card-excerpt { font-size: var(--wp--preset--font-size--12); margin: 0 0 8px; }
.blog-card-date { display: block; font-size: var(--wp--preset--font-size--12); margin-bottom: 4px; }
.blog-card-category a { font-weight: 700; text-decoration: underline; }
.blog-card-category a:hover { text-decoration: none; }
.blog-card-footer hr { margin: 0; color: #ccc; }
.blog-card-footer a { padding: var(--wp--preset--spacing--8) !important; }

/* =========================================================
   PAGE — FICHIERS
   ========================================================= */

.lc-file-meta {
  font-size: 14px;
  margin-top: 4px;
  color: #555;
  display: flex;
  gap: 8px;
}

.lc-file-meta .lc-file-type,
.lc-file-meta .lc-file-size {
  background: #f1f1f1;
  padding: 2px 6px;
  border-radius: 3px;
}

/* =========================================================
   HERO — PAGES INTERIEURES
   ========================================================= */

.page-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: var(--wp--preset--spacing--16);
}

.page-hero--product {
  background-image: url("/wp-content/uploads/2025/10/Hero-Visuel.webp");
}

.page-hero--default {
  background-image: url("/wp-content/themes/le-cosinus-2026/assets/img/Hero-bg-desktop.webp");
}

@media (max-width: 768px) {
  .page-hero__inner { min-height: 160px !important; }
  .page-hero--default { background-image: url("/wp-content/uploads/Hero-Visuel-mobile.webp"); }
}

.page-hero__inner {
  max-width: var(--wp--style--global--content-size);
  margin: 0 auto;
  padding: var(--wp--preset--spacing--16);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 260px;
  box-sizing: border-box;
}

.page-hero__media img {
  max-width: 100%;
  height: auto;
  max-height: 210px;
  object-fit: contain;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--wp--preset--spacing--16);
  color: var(--wp--preset--color--dark-blue);
  margin: var(--wp--preset--spacing--16) 0;
}

/* =========================================================
   VARIANTES DE STYLE — GRID CARDS
   ========================================================= */

.is-style-cards-2col-center {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--wp--style--block-gap, 1.5rem);
  list-style: none;
}

.is-style-cards-2col-center li {
  margin-block-start: 0px;
}

.query-cards .is-style-cards-2col-center {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
  .is-style-cards-2col-center,
  .query-cards .is-style-cards-2col-center {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   CHECKOUT — CHAMPS FORMULAIRE
   ========================================================= */

.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea.input-text,
.woocommerce-checkout select {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: var(--wp--preset--spacing--16);
  margin-top: 10px;
  background: var(--wp--preset--color--white);
  font-size: inherit;
  box-shadow: none;
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout textarea.input-text:focus,
.woocommerce-checkout select:focus {
  outline: none;
  border-color: var(--wp--preset--color--dark-blue);
}

/* Select2 checkout */
.woocommerce-checkout .select2-container--default .select2-selection--single {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: var(--wp--preset--spacing--16);
  margin-top: 10px;
  background: var(--wp--preset--color--white);
  height: auto;
}

.woocommerce-checkout
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  padding: 0;
  line-height: 1.4;
}

.woocommerce-checkout .select2-container--default .select2-selection__arrow {
  top: 50%;
  transform: translateY(-50%);
}

/* =========================================================
   LANDING PAGE
   ========================================================= */

.landing-page__wrapper {
  margin-top: var(--wp--preset--spacing--32);
  margin-bottom: var(--wp--preset--spacing--32);
}

.landing-page__logo {
  margin-bottom: var(--wp--preset--spacing--24);
  text-align: center;
}

.landing-page__logo img {
  max-width: 320px;
  height: auto;
}

.landing-page__title { margin-bottom: var(--wp--preset--spacing--24); }
.landing-page__content { margin-bottom: var(--wp--preset--spacing--24); }

.landing-page__navigation {
  display: flex;
  justify-content: center;
  gap: var(--wp--preset--spacing--16);
}

.landing-page__navigation a { color: var(--wp--preset--color--blue); }

/* =========================================================
   CONFIRMATION DE COMMANDE
   ========================================================= */

.order-confirmation-header { margin-bottom: var(--wp--preset--spacing--16); }
.order-confirmation-title { font-size: 32px; margin-bottom: 8px; }
.order-confirmation-intro { text-align: center; }

.order-confirmation-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--wp--preset--spacing--16);
  padding: var(--wp--preset--spacing--16) 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.summary-item span {
  font-size: 12px;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.summary-item strong { font-size: 15px; font-weight: 600; }

.order-confirmation-section { margin-top: var(--wp--preset--spacing--16); }
.order-confirmation-section > h2 { font-size: var(--wp--preset--font-size--24); margin: 0; }

.order-confirmation-table { width: 100%; border-collapse: collapse; }

.order-confirmation-table thead th {
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #555;
  padding: 16px;
  border-bottom: 2px solid #e5e5e5;
}

.order-confirmation-table th:last-child,
.order-confirmation-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.order-confirmation-table tbody td {
  padding: 20px 16px;
  vertical-align: top;
  border-bottom: 1px solid #e5e5e5;
}

.order-confirmation-table .wc-item-meta { margin-top: 8px; font-size: 14px; }
.order-confirmation-table .wc-item-meta li { margin-bottom: 6px; }
.order-confirmation-table .wc-item-meta p { margin: 0; }
.order-confirmation-table tfoot th { text-align: right; font-weight: 500; padding: 4px; }
.order-confirmation-table tfoot td { text-align: right; font-weight: 600; padding: 4px; }

.order-confirmation-addresses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.address-card {
  border: 1px solid #e5e5e5;
  padding: 24px;
  border-radius: 4px;
  background: #fff;
}

.address-card h3 { font-size: 20px; margin-top: 0px; margin-bottom: var(--wp--preset--spacing-8); }
.address-card address { font-style: normal; line-height: 1.6; }
.address-card p { margin: 0; }

.order-confirmation-footer {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--wp--preset--spacing--16);
}

@media (max-width: 768px) {
  .order-confirmation-summary { grid-template-columns: 1fr 1fr; gap: 16px; }
  .order-confirmation-addresses { grid-template-columns: 1fr; }
  .order-confirmation-footer { flex-direction: column; }
}