/* Lakou Veve: WordPress / WooCommerce / Blocksy integration on top of lv.css. */

/* Blocksy palette mapped to the tokens, so cart, checkout, account and pages follow. */
:root {
  --theme-palette-color-1: var(--lv-ink);
  --theme-palette-color-2: var(--lv-accent);
  --theme-palette-color-3: var(--lv-text-2);
  --theme-palette-color-4: var(--lv-ink);
  --theme-palette-color-5: var(--lv-line);
  --theme-palette-color-6: var(--lv-alt);
  --theme-palette-color-7: var(--lv-card);
  --theme-palette-color-8: var(--lv-bg);
  --theme-text-color: var(--lv-text-2);
  --theme-headings-color: var(--lv-ink);
  --theme-link-initial-color: var(--lv-ink);
  --theme-link-hover-color: var(--lv-accent);
  --theme-border-color: var(--lv-line);
  --theme-font-family: var(--lv-sans);
  --theme-button-background-initial-color: var(--lv-ink);
  --theme-button-background-hover-color: var(--lv-accent);
  --theme-button-text-initial-color: var(--lv-bg);
  --theme-button-text-hover-color: #fff;
  --theme-button-border-radius: 0;
  --theme-form-field-border-initial-color: var(--lv-line-strong);
  --theme-form-field-border-focus-color: var(--lv-accent);
  --theme-form-field-background-initial-color: var(--lv-card);
  --theme-form-field-background-focus-color: var(--lv-card);
  --theme-form-field-border-radius: 0;
  --theme-normal-container-max-width: var(--lv-max);
}
body.lv { background: var(--lv-bg); color: var(--lv-ink); font-family: var(--lv-sans); }
body.lv :where(h1, h2, h3, h4) { color: var(--lv-ink); }
body.lv :where(.entry-content, .woocommerce) :where(h1, h2, h3) { font-family: var(--lv-serif); font-weight: 400; }
body.lv .hero-section .page-title, body.lv .entry-header .page-title { font-family: var(--lv-serif); font-weight: 400; }
body.lv .ct-container, body.lv .ct-container-narrow { width: min(100% - 2.5rem, var(--lv-max)); }
.lv-skip:focus { position: fixed; z-index: 200; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 12px 16px; background: var(--lv-ink); color: var(--lv-bg); }
.lv-zoom { display: block; height: 100%; cursor: zoom-in; }

/* Native WooCommerce add-to-cart (variable posters, downloadable ebooks) */
.lv-cart--native form.cart { display: grid; gap: var(--lv-s4); margin: 0; }
.lv-cart--native table.variations { width: 100%; border: 0; margin: 0; }
.lv-cart--native table.variations th, .lv-cart--native table.variations td { display: block; padding: 0; border: 0; text-align: left; }
.lv-cart--native table.variations label { font-size: var(--lv-fs-sm); font-weight: 600; }
.lv-cart--native table.variations select { width: 100%; min-height: 52px; margin-top: var(--lv-s2); border: 1px solid var(--lv-line-strong); background: var(--lv-card); padding: 0 var(--lv-s4); font: inherit; border-radius: 0; }
.lv-cart--native .reset_variations { font-size: var(--lv-fs-xs); color: var(--lv-muted); }
.lv-cart--native .woocommerce-variation-price { font-size: 1.25rem; font-weight: 500; }
.lv-cart--native .quantity { display: none !important; }
.lv-cart--native .single_add_to_cart_button { width: 100%; min-height: 52px; background: var(--lv-ink) !important; color: var(--lv-bg) !important; border-radius: 0 !important; font: 600 var(--lv-fs-sm)/1 var(--lv-sans) !important; }
.lv-cart--native .single_add_to_cart_button:hover { background: var(--lv-accent) !important; color: #fff !important; }
.lv-cart--native .single_add_to_cart_button.disabled { opacity: .45; }
body.lv .single_add_to_cart_button.lv-btn { border-radius: 0; }

/* WooCommerce notices */
body.lv .woocommerce-message, body.lv .woocommerce-info, body.lv .woocommerce-error { background: var(--lv-card); color: var(--lv-ink); border: 1px solid var(--lv-line); border-left: 3px solid var(--lv-accent); border-radius: 0; margin: var(--lv-s4) 0; padding: var(--lv-s4) var(--lv-s5); list-style: none; }
body.lv .woocommerce-error { border-left-color: var(--lv-danger); }
body.lv .woocommerce-message .button { background: var(--lv-ink); color: var(--lv-bg); border-radius: 0; }

/* Blocksy product loops still used by widgets / related blocks */
body.lv [data-products] .product .woocommerce-loop-product__title { font: 400 1.25rem/1.2 var(--lv-serif); color: var(--lv-ink); }
body.lv [data-products] .product .price { color: var(--lv-ink); font-weight: 500; }
body.lv [data-products] .ct-media-container, body.lv [data-products] figure { background: var(--lv-card); }

/* Content pages written in Gutenberg blocks (engagement, livraison, FAQ, journal) */
body.lv .entry-content { color: var(--lv-text-2); line-height: 1.75; }
body.lv .entry-content > * { max-width: 70ch; }
body.lv .entry-content > .alignwide, body.lv .entry-content > .alignfull { max-width: none; }
body.lv .entry-content h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); margin-top: var(--lv-s7); }
body.lv .entry-content h3 { font-size: 1.5rem; margin-top: var(--lv-s6); }
body.lv .entry-content a { color: var(--lv-ink); text-decoration-color: var(--lv-accent); text-underline-offset: 3px; }
body.lv .entry-content blockquote { border-left: 2px solid var(--lv-accent); padding-left: var(--lv-s5); font: 400 1.5rem/1.4 var(--lv-serif); color: var(--lv-ink); }
body.lv .entry-content li::marker { color: var(--lv-accent); }

/* Cookie banner (km-consentement): compact bar at the bottom */
body.lv .km-consent { top: auto !important; bottom: 0 !important; left: 0 !important; right: 0 !important; transform: none !important; max-width: none !important; width: 100% !important; margin: 0 !important; border-radius: 0 !important; background: var(--lv-card) !important; color: var(--lv-text-2) !important; border-top: 1px solid var(--lv-line) !important; box-shadow: none !important; padding: 12px 16px !important; font-size: 12px !important; line-height: 1.5 !important; }
body.lv .km-consent__title { font-size: 13px !important; color: var(--lv-ink) !important; }
body.lv .km-consent__actions { grid-template-columns: repeat(3, 1fr) !important; }
body.lv .km-consent__btn { background: transparent !important; color: var(--lv-ink) !important; border: 1px solid var(--lv-line-strong) !important; border-radius: 0 !important; padding: 10px 6px !important; font: 600 12px/1.2 var(--lv-sans) !important; }
body.lv .km-consent__btn:hover { border-color: var(--lv-ink) !important; }
@media (min-width: 900px) { body.lv .km-consent { padding: 14px max(20px, calc((100vw - var(--lv-max)) / 2)) !important; } body.lv .km-consent__actions { max-width: 520px; } }

/* Toolbar selects: custom chevron */
.lv-toolbar select { appearance: none; padding-right: var(--lv-s7); background: var(--lv-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; }

/* Tablets: three columns from 600px, product page side by side from 700px. */
@media (min-width: 600px) {
  .lv-grid { grid-template-columns: repeat(3, 1fr); }
  .lv-footer__cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 700px) {
  .lv-pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--lv-s6); align-items: start; }
  .lv-buy { position: sticky; top: 96px; }
}
@media (min-width: 900px) { .lv-footer__cols { grid-template-columns: 2fr 1fr 1fr 1fr; } }
@media (min-width: 1024px) { .lv-pdp { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--lv-s8); } }
/* Small phones: two tight columns, smaller card text. */
@media (max-width: 599px) {
  .lv-card { padding: var(--lv-s3); gap: var(--lv-s3); }
  .lv-card__row { flex-direction: column; gap: 2px; }
  .lv-hero__cap { display: none; }
}
/* Short viewports (landscape phones). */
@media (max-height: 500px) and (orientation: landscape) {
  .lv-h1 { font-size: 2.5rem; }
  .lv-h2 { font-size: 1.875rem; }
  .lv-section { padding-block: var(--lv-s7); }
  .lv-header__in { height: 56px; }
  .lv-buy { position: static; }
}
