/* ==========================================================================
   Cielloo — touches communes à tout le site (Blocksy + WooCommerce).
   Les couleurs et polices principales se règlent aussi dans Blocksy (voir README) ;
   ces règles assurent la cohérence même si le Customizer n'est pas encore réglé.
   ========================================================================== */
:root {
  --cl-bg: #F7F3EC; --cl-dark: #1C1814; --cl-ink: #1F1B17; --cl-secondary: #6F675D; --cl-accent: #B38B59;
  --cl-bronze: #8C6A3F; --cl-line: #E6DDCF; --cl-soft: #EFE7DB; --cl-card: #FDFBF7;
  /* Échelle commune (tout le site) : arrondis, hauteurs des boutons et champs, marges */
  --cl-r-xs: 3px;   /* badges, pastilles */
  --cl-r-sm: 6px;   /* boutons, champs, petites vignettes */
  --cl-r: 10px;     /* cartes, panneaux, photos */
  --cl-ctl-sm: 42px; --cl-ctl: 50px; --cl-ctl-lg: 56px;
  --cl-gutter: 40px;                  /* marge latérale du contenu */
  --cl-wide-gutter: 24px;             /* marge des blocs larges (univers, produit vedette) */
  --cl-space: clamp(80px, 9vw, 140px); /* espace entre les sections */
}
@media (max-width: 800px) { :root { --cl-gutter: 20px; --cl-wide-gutter: 20px; } }
/* Palette Blocksy remplacée par celle du modèle (le bleu par défaut disparaît : liens, onglets, champs, avis…).
   html:root l'emporte sur le :root du CSS généré par Blocksy. */
html:root {
  --theme-palette-color-1: #8C6A3F;  /* liens, éléments actifs */
  --theme-palette-color-2: #1C1814;  /* survol */
  --theme-palette-color-3: #4A433B;  /* texte */
  --theme-palette-color-4: #1C1814;  /* titres */
  --theme-palette-color-5: #E6DDCF;  /* bordures */
  --theme-palette-color-6: #EFE7DB;  /* fonds doux */
  --theme-palette-color-7: #F7F3EC;  /* fond du site */
  --theme-palette-color-8: #FDFBF7;  /* cartes */
  --theme-link-initial-color: var(--theme-palette-color-1);
  --theme-link-hover-color: var(--theme-palette-color-2);
  --theme-button-background-initial-color: #1C1814;
  --theme-button-background-hover-color: #8C6A3F;
  --theme-button-text-initial-color: #F7F3EC;
  --theme-button-text-hover-color: #FFFFFF;
  --theme-button-border-radius: var(--cl-r-sm);
  --theme-button-min-height: var(--cl-ctl);
  --theme-form-field-border-initial-color: #D9D1C3;
  --theme-form-field-border-focus-color: #B38B59;
  --theme-form-field-border-radius: var(--cl-r-sm);
  --theme-form-field-height: var(--cl-ctl);
  --theme-form-selection-field-initial-color: #D9D1C3;
  --theme-form-selection-field-active-color: #1C1814;
  --theme-selection-background-color: #B38B59;
}
body { background-color: var(--cl-bg); font-size: 17px; line-height: 1.7; }
::selection { background: #B38B59; color: #1C1814; }
body { font-family: 'Manrope', system-ui, sans-serif; }
h1, h2, h3, h4,
.woocommerce-loop-product__title, .product_title, .entry-title, .page-title {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 500; letter-spacing: -.01em;
}
.woocommerce .price, .woocommerce-Price-amount { color: var(--cl-ink); }
.woocommerce .price ins .woocommerce-Price-amount, .woocommerce .onsale { color: var(--cl-accent); }
.woocommerce span.onsale { background: var(--cl-dark); color: #F7F3EC; border-radius: 0; letter-spacing: .1em; text-transform: uppercase; font-size: 12.5px; }

/* Boutons : fond espresso, remplissage doré qui balaie de gauche à droite au survol */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt,
.wc-block-components-button:not(.is-link), .ct-button, .wp-block-button__link {
  background-color: var(--cl-dark); color: #F7F3EC;
  background-image: linear-gradient(var(--cl-accent), var(--cl-accent)); background-repeat: no-repeat; background-position: 0 0; background-size: 0% 100%;
  border: 0; border-radius: var(--cl-r-sm); letter-spacing: .12em; text-transform: uppercase; font-size: 13.5px; font-weight: 600;
  transition: background-size .5s var(--cl-ease, ease), color .35s, transform .35s var(--cl-ease, ease), box-shadow .35s;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .wc-block-components-button:not(.is-link):hover,
.ct-button:hover, .wp-block-button__link:hover {
  background-color: var(--cl-dark); background-size: 100% 100%; color: var(--cl-dark);
  transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgba(28, 24, 20, .55);
}
.woocommerce a.button:active, .woocommerce button.button:active { transform: translateY(0); box-shadow: none; }
.woocommerce a.button:focus-visible, .woocommerce button.button:focus-visible, .cl-act:focus-visible, .cl-cta:focus-visible {
  outline: 2px solid var(--cl-accent); outline-offset: 3px;
}

/* Vignettes produits : zoom doux au survol */
.woocommerce ul.products li.product a img { transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.woocommerce ul.products li.product:hover a img { transform: scale(1.04); }
.woocommerce ul.products li.product .ct-media-container, .woocommerce ul.products li.product figure { overflow: hidden; }

/* ==========================================================================
   En-tête Cielloo (toutes les pages)
   ========================================================================== */
:root { --cl-header-h: 86px; --cl-ease: cubic-bezier(.22, 1, .36, 1); }
@media (max-width: 900px) { :root { --cl-header-h: 68px; } }
html.cl-locked, html.cl-locked body { overflow: hidden; }

.cl-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: var(--cl-header-h);
  color: var(--cl-ink); background: rgba(247, 243, 236, .97); /* opaque, sans flou : défilement plus fluide */
  box-shadow: 0 1px 0 rgba(28, 24, 20, .08);
  transition: background .6s var(--cl-ease), color .6s var(--cl-ease), box-shadow .6s var(--cl-ease), height .6s var(--cl-ease);
}
/* Pages intérieures : l'en-tête se resserre et prend une ombre douce une fois la page défilée */
.cl-header.is-solid:not(.is-transparent) { height: calc(var(--cl-header-h) - 14px); box-shadow: 0 10px 30px -22px rgba(28, 24, 20, .45); }
.admin-bar .cl-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .cl-header { top: 46px; } }
/* Accueil : transparent par-dessus la séquence, puis opaque */
.cl-header.is-transparent:not(.is-solid) {
  color: #fff; background: transparent; box-shadow: none;
  height: calc(var(--cl-header-h) + 14px);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}
/* Voile sombre derrière l'en-tête transparent : menu lisible même sur une photo claire */
.cl-header::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 170%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 10, 8, .62) 0%, rgba(12, 10, 8, .3) 55%, rgba(12, 10, 8, 0) 100%);
  opacity: 0; transition: opacity .6s var(--cl-ease);
}
.cl-header.is-transparent:not(.is-solid)::before { opacity: 1; }
.cl-header.is-transparent:not(.is-solid) .cl-act svg { filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .45)); }
.cl-header.is-transparent:not(.is-solid) .cl-brand__logo { filter: brightness(0) invert(1); }
.cl-header__inner { height: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--cl-gutter); display: flex; align-items: center; gap: 28px; }
@media (max-width: 800px) { .cl-header__inner { gap: 14px; } }

.cl-brand { display: flex; align-items: center; gap: 10px; font-family: 'Playfair Display', serif; color: inherit !important; text-decoration: none !important; flex-shrink: 0; }
.cl-brand__mark {
  width: 30px; height: 30px; border: 1px solid currentColor; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 15.5px; font-weight: 600;
  transition: transform .5s var(--cl-ease);
}
.cl-brand:hover .cl-brand__mark { transform: rotate(90deg); }
.cl-brand__name { font-size: 17px; letter-spacing: .28em; font-weight: 500; }
.cl-brand__logo { max-height: 46px; width: auto; transition: filter .5s; }

.cl-nav { flex: 1; display: flex; justify-content: center; }
.cl-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 40px; }
.cl-nav .cl-menu a {
  position: relative; font-size: 15.5px; font-weight: 500; letter-spacing: .03em; padding: 6px 0; color: inherit !important; text-decoration: none !important;
}
.cl-nav .cl-menu a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .45s var(--cl-ease); }
.cl-nav .cl-menu a:hover::after, .cl-nav .current-menu-item > a::after { right: 0; }
@media (max-width: 1000px) { .cl-nav { display: none; } }

.cl-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.cl-act {
  position: relative; display: inline-flex; align-items: center; gap: 9px; height: 46px; min-width: 46px; padding: 0 12px;
  border: 0; border-radius: 999px; background: transparent; color: inherit !important; cursor: pointer; text-decoration: none !important;
  font: 500 15px/1 'Manrope', sans-serif; letter-spacing: .02em; transition: background .3s;
}
.cl-act:hover { background: rgba(127, 116, 100, .12); }
.cl-act svg { width: 22px; height: 22px; flex-shrink: 0; transition: transform .35s var(--cl-ease); }
.cl-act:hover svg { transform: translateY(-2px); }
.cl-act__label { white-space: nowrap; }
@media (max-width: 1100px) { .cl-act__label { display: none; } }
.cl-act--burger { display: none; }
@media (max-width: 1000px) { .cl-act--burger { display: inline-flex; } }
.cl-cart-count, .cl-wish-count {
  position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--cl-accent); color: #1C1814; font-size: 11.5px; font-weight: 700; line-height: 19px; text-align: center; text-shadow: none;
}
.cl-cart-count[data-count="0"], .cl-wish-count[data-count="0"] { opacity: .0; transform: scale(.4); }
.cl-cart-count, .cl-wish-count { transition: opacity .3s, transform .3s; }
.cl-cart-count.is-bump, .cl-wish-count.is-bump { animation: cl-bump .6s var(--cl-ease); }
@keyframes cl-bump { 40% { transform: scale(1.5); } }

/* Pages autres que l'accueil : le contenu commence sous l'en-tête fixe */
body:not(.cl-is-home) #main-container > main { padding-top: var(--cl-header-h); }

/* ---------- Calques plein écran : recherche, menu mobile ---------- */
.cl-layer {
  position: fixed; inset: 0; z-index: 1000; background: #F7F3EC; color: var(--cl-ink);
  display: flex; flex-direction: column; justify-content: center; padding: 80px 8vw;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .55s var(--cl-ease), transform .7s var(--cl-ease), visibility 0s .7s;
}
.cl-layer.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .55s var(--cl-ease), transform .7s var(--cl-ease); }
.cl-layer__close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(28, 24, 20, .15); background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; }
.cl-layer__close svg { width: 18px; height: 18px; }
.cl-layer__close:hover { background: #1C1814; color: #F7F3EC; }
.cl-eyebrow { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--cl-accent); }
.cl-search__form { max-width: 900px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.cl-search__form input[type="search"] {
  width: 100%; border: 0; border-bottom: 1px solid rgba(28, 24, 20, .25); background: transparent; border-radius: 0;
  font: 400 clamp(30px, 5vw, 60px)/1.2 'Playfair Display', serif; color: var(--cl-ink); padding: 10px 0; outline: none; box-shadow: none;
}
.cl-search__form input[type="search"]:focus { border-bottom-color: var(--cl-accent); }
.cl-mobile .cl-menu { flex-direction: column; gap: 6px; }
.cl-mobile .cl-menu li { overflow: hidden; }
.cl-mobile .cl-menu a {
  display: inline-block; font: 400 clamp(34px, 9vw, 52px)/1.25 'Playfair Display', serif; color: var(--cl-ink) !important; text-decoration: none !important;
  transform: translateY(100%); transition: transform .8s var(--cl-ease);
}
.cl-mobile.is-open .cl-menu a { transform: none; }
.cl-mobile .cl-menu li:nth-child(2) a { transition-delay: .06s; } .cl-mobile .cl-menu li:nth-child(3) a { transition-delay: .12s; }
.cl-mobile .cl-menu li:nth-child(4) a { transition-delay: .18s; } .cl-mobile .cl-menu li:nth-child(5) a { transition-delay: .24s; }
.cl-mobile .cl-menu li:nth-child(6) a { transition-delay: .3s; }
.cl-mobile__links { display: flex; gap: 22px; margin-top: 40px; font-size: 14.5px; letter-spacing: .12em; text-transform: uppercase; }
.cl-mobile__links a { color: var(--cl-secondary) !important; text-decoration: none !important; }

/* ---------- Panier coulissant ---------- */
.cl-drawer { position: fixed; inset: 0; z-index: 1000; visibility: hidden; transition: visibility 0s .7s; }
.cl-drawer.is-open { visibility: visible; transition: none; }
.cl-drawer__overlay { position: absolute; inset: 0; background: rgba(21, 18, 14, .35); opacity: 0; transition: opacity .6s var(--cl-ease); }
.cl-drawer.is-open .cl-drawer__overlay { opacity: 1; }
.cl-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(430px, 100%); background: #F7F3EC; color: var(--cl-ink);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .75s var(--cl-ease);
  box-shadow: -30px 0 60px -30px rgba(21, 18, 14, .35);
}
.cl-drawer.is-open .cl-drawer__panel { transform: none; }
.cl-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid rgba(28, 24, 20, .1); }
.cl-drawer__head h2 { margin: 0; font-size: 24px; }
.cl-drawer__body { flex: 1; overflow: auto; padding: 8px 26px 26px; }
.cl-drawer .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.cl-drawer .woocommerce-mini-cart-item { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 4px 14px; padding: 16px 28px 16px 0; border-bottom: 1px solid rgba(28, 24, 20, .08); font-size: 15px; }
.cl-drawer .woocommerce-mini-cart-item img { grid-row: span 2; width: 72px !important; height: 88px; object-fit: cover; margin: 0 !important; border-radius: var(--cl-r-xs); }
.cl-drawer .woocommerce-mini-cart-item a:not(.remove) { font-family: 'Playfair Display', serif; font-size: 17px; line-height: 1.25; color: var(--cl-ink); text-decoration: none; }
.cl-drawer .woocommerce-mini-cart-item .remove { position: absolute; top: 14px; right: 0; width: 22px; height: 22px; line-height: 20px; text-align: center; border-radius: 50%; color: var(--cl-secondary) !important; text-decoration: none; }
.cl-drawer .woocommerce-mini-cart-item .remove:hover { background: #1C1814; color: #F7F3EC !important; }
.cl-drawer .woocommerce-mini-cart__total { display: flex; justify-content: space-between; font-size: 17px; padding: 18px 0; margin: 0; }
.cl-drawer .woocommerce-mini-cart__buttons { display: grid; gap: 10px; margin: 0; }
.cl-drawer .woocommerce-mini-cart__buttons a { display: flex !important; align-items: center; justify-content: center; min-height: var(--cl-ctl); margin: 0 !important; }
.cl-drawer .woocommerce-mini-cart__buttons a:not(.checkout) { background: transparent !important; color: var(--cl-ink) !important; box-shadow: inset 0 0 0 1px rgba(28, 24, 20, .3); }
.cl-drawer .woocommerce-mini-cart__empty-message { text-align: center; color: var(--cl-secondary); padding: 60px 0; }

/* ==========================================================================
   Pied de page Cielloo (toutes les pages)
   ========================================================================== */
#footer:has(.cl-footer) { padding: 0; background: none; border: 0; }
.cl-footer { background: #1C1814; color: #B7AF9E; font-size: 15.5px; line-height: 1.7; }
.cl-footer a { color: #E9E3D8; text-decoration: none; transition: color .3s; }
.cl-footer a:hover { color: #B38B59; }
.cl-footer__trust, .cl-footer__main, .cl-footer__bottom { max-width: 1400px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.cl-footer__trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-top: 44px; padding-bottom: 44px;
  border-bottom: 1px solid rgba(233, 227, 216, .1);
}
.cl-footer__trust-item { display: flex; align-items: center; gap: 16px; }
.cl-footer__trust-item svg { width: 30px; height: 30px; flex-shrink: 0; color: #B38B59; }
.cl-footer__trust-item b { display: block; color: #F7F3EC; font-family: 'Playfair Display', serif; font-size: 18.5px; font-weight: 500; }
.cl-footer__trust-item span { font-size: 14.5px; }
.cl-footer__main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 50px; padding-top: 64px; padding-bottom: 56px; }
.cl-footer__logo { display: inline-block; margin-bottom: 18px; color: #F7F3EC !important; font-family: 'Playfair Display', serif; font-size: 20px; letter-spacing: .28em; }
.cl-footer__logo img { max-height: 44px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.cl-footer__brand p { max-width: 340px; margin: 0 0 22px; }
.cl-footer__socials { display: flex; gap: 10px; }
.cl-footer__socials a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(233, 227, 216, .22);
  display: grid; place-items: center; transition: background .3s, border-color .3s, color .3s;
}
.cl-footer__socials a:hover { background: #B38B59; border-color: #B38B59; color: #1C1814; }
.cl-footer__socials svg { width: 17px; height: 17px; }
.cl-footer h2 {
  margin: 0 0 18px; color: #F7F3EC; font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
}
.cl-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cl-footer__col a { position: relative; }
.cl-footer__col a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: currentColor; transition: right .4s var(--cl-ease); }
.cl-footer__col a:hover::after { right: 0; }
.cl-footer__hours { color: #8F887B; font-size: 14.5px; }
.cl-footer__bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px;
  border-top: 1px solid rgba(233, 227, 216, .1); font-size: 14px; color: #8F887B;
}
@media (max-width: 1000px) {
  .cl-footer__main { grid-template-columns: 1fr 1fr; gap: 40px 30px; }
  .cl-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .cl-footer__trust, .cl-footer__main, .cl-footer__bottom { padding-left: 20px; padding-right: 20px; }
  .cl-footer__trust { grid-template-columns: 1fr; gap: 18px; padding-top: 34px; padding-bottom: 34px; }
  .cl-footer__main { padding-top: 44px; padding-bottom: 40px; }
  .cl-footer__contact { grid-column: 1 / -1; }
  .cl-footer__bottom { flex-direction: column; gap: 6px; }
}

/* Panier coulissant vide (gabarit WooCommerce ou ShopEngine) */
.cl-drawer .wc-empty-cart-message { padding: 70px 0 26px; text-align: center; }
.cl-drawer .wc-empty-cart-message .woocommerce-info {
  margin: 0; padding: 64px 0 0; background: none; border: 0; box-shadow: none; color: var(--cl-secondary); font-size: 16.5px;
  position: relative;
}
.cl-drawer .wc-empty-cart-message .woocommerce-info::before {
  content: ''; position: absolute; top: 0; left: 50%; width: 46px; height: 46px; margin-left: -23px; border: 0; border-radius: 0;
  background: #B38B59; transform: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6h15l-1.5 9h-12z'/%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='18' cy='20' r='1'/%3E%3Cpath d='M6 6 4 2H2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6h15l-1.5 9h-12z'/%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='18' cy='20' r='1'/%3E%3Cpath d='M6 6 4 2H2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cl-drawer .wc-empty-cart-message .woocommerce-info > svg, .cl-drawer .wc-empty-cart-message .woocommerce-info > i { display: none; }
.cl-drawer .return-to-shop { margin: 0; }
.cl-drawer .return-to-shop .button { display: flex !important; align-items: center; justify-content: center; width: 100%; min-height: var(--cl-ctl); }

/* ---------- En-tête sur téléphone : logo et 4 icônes tiennent sur la largeur ---------- */
@media (max-width: 600px) {
  .cl-header__inner { padding: 0 10px 0 var(--cl-gutter); gap: 6px; }
  .cl-actions { gap: 0; }
  .cl-act { min-width: 42px; height: 44px; padding: 0 9px; gap: 0; }
  .cl-act svg { width: 22px; height: 22px; }
  .cl-act__label { display: none; }
  .cl-brand { gap: 8px; min-width: 0; }
  .cl-brand__name { font-size: 15px; letter-spacing: .18em; }
  .cl-brand__mark { width: 28px; height: 28px; }
  .cl-brand__logo { max-height: 38px; max-width: 128px; object-fit: contain; }
}
@media (max-width: 370px) { .cl-act--search { display: none; } }

/* ==========================================================================
   Finitions communes : champs, retour en haut, barres de défilement, animations
   ========================================================================== */
:root { --cl-focus: 0 0 0 3px rgba(179, 139, 89, .22); }
.woocommerce input[type="text"]:focus, .woocommerce input[type="email"]:focus, .woocommerce input[type="tel"]:focus,
.woocommerce input[type="password"]:focus, .woocommerce input[type="number"]:focus, .woocommerce textarea:focus,
.woocommerce select:focus, input[type="search"]:focus { box-shadow: var(--cl-focus) !important; }
html { scrollbar-color: #C9B79C transparent; }
a { transition: color .25s; }

/* Bouton « retour en haut » de Blocksy aux couleurs du thème */
.ct-back-to-top {
  border-radius: 50% !important; background: var(--cl-dark) !important; color: #F7F3EC !important;
  box-shadow: 0 12px 26px -14px rgba(28, 24, 20, .6); transition: background .3s, transform .3s var(--cl-ease) !important;
}
.ct-back-to-top:hover { background: var(--cl-accent) !important; color: var(--cl-dark) !important; transform: translateY(-3px); }
.ct-back-to-top svg { fill: currentColor; }

/* Apparition douce du contenu des pages intérieures */
@keyframes cl-page-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
body:not(.cl-is-home) #main-container > main { animation: cl-page-in .7s var(--cl-ease) both; }
/* Éléments qui apparaissent au défilement (classe posée par site.js, jamais sans JavaScript) */
.cl-rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--cl-ease), transform .9s var(--cl-ease); transition-delay: var(--cl-d, 0s); }
.cl-rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  body:not(.cl-is-home) #main-container > main { animation: none; }
  .cl-rv { opacity: 1; transform: none; transition: none; }
  .woocommerce a.button, .woocommerce button.button { transition: none; }
}

/* ---------- Barre d'achat fixe sur téléphone (fiche produit) ---------- */
.cl-buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 850; display: flex; align-items: center; gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(253, 251, 247, .98);
  box-shadow: 0 -14px 30px -18px rgba(28, 24, 20, .45); border-top: 1px solid var(--cl-line);
  transform: translateY(110%); transition: transform .5s var(--cl-ease);
}
.cl-buybar.is-on { transform: none; }
.cl-buybar__info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.cl-buybar__name { font-family: 'Playfair Display', serif; font-size: 16.5px; color: var(--cl-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-buybar__price { font-size: 14.5px; color: var(--cl-bronze); font-weight: 600; }
.cl-buybar__price del { color: var(--cl-secondary); font-weight: 400; margin-right: 4px; }
.cl-buybar__price ins { text-decoration: none; }
.cl-buybar__btn {
  flex-shrink: 0; min-height: var(--cl-ctl); padding: 0 20px; border: 0; border-radius: var(--cl-r-sm); cursor: pointer;
  background: var(--cl-dark); color: #F7F3EC; font: 600 13px/1 'Manrope', sans-serif; letter-spacing: .12em; text-transform: uppercase;
}
.cl-buybar__btn:active { transform: scale(.97); }
@media (min-width: 901px) { .cl-buybar { display: none; } }
body.cl-has-buybar .ct-back-to-top { bottom: 92px !important; }

/* ---------- Recherche instantanée ---------- */
.cl-search { justify-content: flex-start; padding-top: max(90px, 12vh); overflow-y: auto; }
.cl-search__field { position: relative; }
.cl-search__spinner {
  position: absolute; right: 4px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  border: 2px solid rgba(28, 24, 20, .12); border-top-color: var(--cl-accent); opacity: 0; transition: opacity .2s;
}
.cl-search__form.is-loading .cl-search__spinner { opacity: 1; animation: cl-spin .7s linear infinite; }
@keyframes cl-spin { to { transform: rotate(360deg); } }
.cl-search__form input[type="search"] { padding-right: 40px; }
.cl-search__form input[type="search"]::-webkit-search-cancel-button { display: none; }
.cl-search__results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.cl-search__results:empty { display: none; }
.cl-sr {
  display: flex; align-items: center; gap: 16px; padding: 10px; border-radius: var(--cl-r); color: var(--cl-ink) !important; text-decoration: none !important;
  animation: cl-sr-in .45s var(--cl-ease) both; animation-delay: calc(var(--i, 0) * 35ms); transition: background .2s;
}
.cl-sr:hover, .cl-sr.is-active { background: #FFFFFF; box-shadow: 0 0 0 1px #E6DDCF, 0 14px 30px -24px rgba(28, 24, 20, .5); }
@keyframes cl-sr-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cl-sr__img { flex-shrink: 0; width: 72px; height: 86px; border-radius: var(--cl-r-sm); overflow: hidden; background: #EFE7DB; }
.cl-sr__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--cl-ease); }
.cl-sr:hover .cl-sr__img img { transform: scale(1.06); }
.cl-sr__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cl-sr__txt small { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--cl-accent); }
.cl-sr__txt b { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 500; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cl-sr__txt mark { background: rgba(179, 139, 89, .25); color: inherit; padding: 0 1px; border-radius: var(--cl-r-xs); }
.cl-sr__price { font-size: 14.5px; color: var(--cl-secondary); }
.cl-sr__price del { opacity: .6; margin-right: 4px; }
.cl-sr__price ins { text-decoration: none; color: var(--cl-bronze); font-weight: 600; }
.cl-sr__price em { font-style: normal; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #A3473A; }
.cl-sr-all {
  grid-column: 1 / -1; justify-self: start; margin-top: 6px; padding: 12px 22px; border-radius: 999px; background: var(--cl-dark);
  color: #F7F3EC !important; text-decoration: none !important; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; transition: background .3s, color .3s;
}
.cl-sr-all:hover { background: var(--cl-accent); color: var(--cl-dark) !important; }
.cl-search__status { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--cl-secondary); }
@media (max-width: 700px) {
  .cl-search { padding: 76px 18px 30px; }
  .cl-search__form input[type="search"] { font-size: 30px; }
  .cl-search__results { grid-template-columns: 1fr; gap: 4px; }
  .cl-sr { padding: 8px; gap: 12px; }
  .cl-sr__img { width: 58px; height: 70px; }
  .cl-sr__txt b { font-size: 16.5px; }
  .cl-sr-all { justify-self: stretch; text-align: center; }
}
.cl-search__form input[type="search"] { height: auto !important; min-height: 1.35em; line-height: 1.3; }
.cl-search__form input[type="search"]:focus { box-shadow: none !important; outline: none; }
