/*
Theme Name: Blocksy Child — Azamoul
Template: blocksy
Description: Thème enfant Azamoul — charte v1 (Claude Design) : options 1a+1b (accueil), 1e (fiche produit). Vignettes produit = tuile image 8:10 + texte centré dessous, aérées, sans bouton (réf. azamoul.com/Sense + Sézane). v3.6 : blog éditorial (héros, couverture, blocs produits, articles liés) + page À propos.
Version: 4.0.2
*/

/* ═══════════ Tokens — charte Azamoul ═══════════ */
:root {
  --az-bg: #F5EAD8;
  --az-surface: #EBDDC5;
  --az-ink: #201E1D;
  --az-accent: #C67139;
  --az-sauge: #7A8A5E;
  --az-divider: rgba(32,30,29,.16);
  --az-muted: rgba(32,30,29,.55);

  --az-accent-100:#fff2eb; --az-accent-200:#ffe1d0; --az-accent-300:#ffc6a5;
  --az-accent-400:#f6a06b; --az-accent-500:#d67f48; --az-accent-600:#b2622d;
  --az-accent-700:#8c491a; --az-accent-800:#643312; --az-accent-900:#402310;

  --az-sauge-100:#f0fae1; --az-sauge-300:#ccdbb2; --az-sauge-400:#aebf92;
  --az-sauge-700:#56633f; --az-sauge-800:#3d472b;

  --az-n-200:#eee7db; --az-n-300:#dcd3c4; --az-n-500:#a19786;
  --az-n-600:#82796a; --az-n-800:#474238; --az-n-900:#2e2b25;

  --az-card-radius: 10px;
  --az-arch: 180px 180px 26px 26px;

  --font-heading: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-tifinagh: "Noto Sans Tifinagh", "Archivo", sans-serif;

  --theme-palette-color-1: var(--az-accent);
  --theme-palette-color-2: var(--az-accent-600);
  --theme-palette-color-3: var(--az-ink);
  --theme-palette-color-4: var(--az-n-600);
  --theme-palette-color-5: var(--az-divider);
  --theme-palette-color-6: var(--az-surface);
  --theme-palette-color-7: var(--az-bg);
  --theme-palette-color-8: #FFFFFF;
  --theme-text-color: var(--az-ink);
  --theme-link-initial-color: var(--az-accent);
  --theme-link-hover-color: var(--az-accent-600);
  --theme-headings-color: var(--az-ink);
  --theme-button-background-initial-color: var(--az-accent);
  --theme-button-background-hover-color: var(--az-accent-600);
  --theme-button-text-initial-color: var(--az-bg);
  --theme-button-text-hover-color: var(--az-bg);
  --theme-form-field-border-focus-color: var(--az-accent);
}

body, .ct-main {
  background: var(--az-bg) !important;
  color: var(--az-ink);
  font-family: var(--font-body);
  font-size: 15px;
}
.ct-header:not(.ct-panel) > div { background: var(--az-bg) !important; }
.hero-section, .page-title-section { background: var(--az-bg) !important; }

/* ═══════════ Typographie ═══════════ */
h1, h2, h3, h4, h5, .site-title,
.woocommerce-loop-product__title, .product_title {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.12;
}
h1 { font-size: clamp(30px, 4.5vw, 46px); }
h2 { font-size: clamp(22px, 3vw, 28px); }
.tif { font-family: var(--font-tifinagh); }
.az-kicker {
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--az-accent-700);
}

/* ═══════════ Boutons & champs ═══════════ */
.button, button[type=submit], .wp-element-button,
.woocommerce a.button, .woocommerce button.button,
.wc-block-components-button, .single_add_to_cart_button {
  background: var(--az-accent) !important;
  color: var(--az-bg) !important;
  border-radius: var(--az-card-radius) !important;
  border: none;
  font-family: var(--font-body); font-weight: 600;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  transition: background .2s ease;
}
.button:hover, .woocommerce a.button:hover, .wp-element-button:hover,
.single_add_to_cart_button:hover { background: var(--az-accent-600) !important; }
input.input-text, .woocommerce input.input-text, select, .select2-selection {
  border-radius: var(--az-card-radius) !important;
  border: 1px solid var(--az-divider);
  background: #fff;
}
textarea { border-radius: var(--az-card-radius) !important; background: #fff; }

.az-btn-primary {
  display: inline-block; background: var(--az-accent); color: var(--az-bg) !important;
  padding: 13px 27px; border-radius: var(--az-card-radius); text-decoration: none;
  font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  transition: background .2s;
}
.az-btn-primary:hover { background: var(--az-accent-600); }
.az-btn-ghost {
  display: inline-block; color: var(--az-ink) !important; padding: 12px 24px;
  border: 1px solid rgba(32,30,29,.35); border-radius: var(--az-card-radius); text-decoration: none;
  font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  transition: border-color .2s, background .2s;
}
.az-btn-ghost:hover { border-color: var(--az-ink); background: rgba(32,30,29,.05); }

.az-tag {
  display: inline-flex; align-items: center; font-size: 11px; letter-spacing: .02em;
  padding: 4px 11px; border-radius: 999px;
}
.az-tag-accent { background: var(--az-accent-100); color: var(--az-accent-800); }
.az-tag-sauge { background: var(--az-sauge-100); color: var(--az-sauge-800); }

/* ═══════════ Photos washées ═══════════ */
.washed, .az-hero-arch img, .az-tryptique img,
ul.products li.product .ct-media-container img,
.single-product .woocommerce-product-gallery img {
  filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94);
}

/* ═══════════ Header (barre d'annonce retirée en v4.0.0) ═══════════ */
body.wp-custom-logo .site-title-container { display: none; }
.ct-header .site-logo-container img { max-height: 44px; width: auto; }
.ct-header a { font-size: 14px; }

/* ═══════════ v3.8.4 — menu mobile (offcanvas) : crème + encre ═══════════ */
#offcanvas .ct-panel-inner {
  background: var(--az-bg) !important;
  box-shadow: -24px 0 60px rgba(32, 30, 29, .16);
}
#offcanvas .ct-panel-actions { padding: 14px 20px 0; }
#offcanvas .ct-toggle-close {
  color: var(--az-ink) !important;
  opacity: .55; transition: opacity .2s ease, color .2s ease;
}
#offcanvas .ct-toggle-close:hover { opacity: 1; color: var(--az-accent) !important; }
#offcanvas .ct-toggle-close .ct-icon { fill: currentColor; }
#offcanvas .ct-panel-content { padding: 8px 0 40px; }
#offcanvas [data-id="mobile-menu"] {
  --theme-link-initial-color: var(--az-ink) !important;
  --theme-link-hover-color: var(--az-accent) !important;
  --theme-font-size: 16px !important;
  --theme-font-weight: 500 !important;
}
#offcanvas .mobile-menu > ul { padding: 0 26px; }
#offcanvas .mobile-menu .menu-item { border-bottom: 1px solid var(--az-divider); }
#offcanvas .mobile-menu .menu-item:last-child { border-bottom: none; }
#offcanvas .mobile-menu .ct-menu-link {
  color: var(--az-ink) !important;
  font-family: var(--font-heading);
  font-size: 16px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 17px 2px;
  transition: color .2s ease;
}
#offcanvas .mobile-menu .ct-menu-link:hover,
#offcanvas .mobile-menu .ct-menu-link:focus-visible,
#offcanvas .mobile-menu .current-menu-item > .ct-menu-link,
#offcanvas .mobile-menu .current-menu-ancestor > .ct-menu-link { color: var(--az-accent) !important; }
#offcanvas .mobile-menu .sub-menu .ct-menu-link {
  font-size: 14px; letter-spacing: .03em;
  text-transform: none; color: var(--az-n-800) !important;
}
#offcanvas .mobile-menu button, #offcanvas .mobile-menu .ct-toggle-dropdown-mobile {
  color: var(--az-ink) !important;
}

/* ═══════════ Héro éditorial (option 1a) ═══════════ */
.az-hero-1a {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4.5vw, 64px);
  align-items: center; padding: clamp(28px, 4.5vw, 56px) 0 clamp(36px, 5vw, 72px);
}
@media (max-width: 880px) { .az-hero-1a { grid-template-columns: 1fr; } }
.az-hero-1a h1 { font-size: clamp(32px, 4.5vw, 58px); margin: 10px 0 22px; }
.az-hero-1a h1 em { font-style: normal; color: var(--az-accent); }
.az-hero-1a .lede { font-size: 17px; max-width: 44ch; color: var(--az-n-800); }
.az-hero-1a .ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.az-hero-arch { position: relative; }
.az-hero-arch .frame {
  border-radius: 280px 280px 32px 32px; overflow: hidden;
  box-shadow: 0 3px 10px rgba(46,43,37,.16);
}
.az-hero-arch img { width: 100%; height: min(560px, 62vh); object-fit: cover; display: block; }
.az-hero-arch .badge {
  position: absolute; left: -18px; bottom: 34px; background: var(--az-bg);
  border-radius: 999px; padding: 10px 20px; box-shadow: 0 3px 10px rgba(46,43,37,.2);
  font-size: 13px; font-weight: 600;
}

/* ═══════════ Sections ═══════════ */
.az-section { padding: 3rem 0 2.2rem; }
.az-section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 30px; flex-wrap: wrap; }
.az-section-head h2 { margin: 0; }
.az-section-head .sub { font-size: 14px; color: var(--az-muted); }
.az-section-head .more { margin-left: auto; font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }

/* ═══════════ Triptyque d'univers — rectangulaire net (révision Sézane) ═══════════ */
.az-tryptique { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; }
@media (max-width: 820px) { .az-tryptique { grid-template-columns: 1fr; } }
.az-tryptique a {
  position: relative; display: block; overflow: hidden; text-decoration: none;
  border-radius: var(--az-card-radius);
}
.az-tryptique img { width: 100%; height: 440px; object-fit: cover; display: block; transition: transform .4s ease; }
.az-tryptique a:hover img { transform: scale(1.04); }
.az-tryptique a::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(32,30,29,.6));
}
.az-tryptique span {
  position: absolute; left: 20px; bottom: 18px; right: 20px; z-index: 2;
  color: #f5ead8; font-family: var(--font-heading); font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; font-size: 15px;
}
.az-univers-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }

/* ═══════════ Vignettes produit — tuile image 8:10 + texte dessous, aérées (réf. azamoul.com / Sense) ═══════════ */
ul.products { gap: 44px 26px !important; }
ul.products li.product {
  position: relative;
  display: flex; flex-direction: column;
  background: transparent;
  border-radius: 0; overflow: visible;
  padding: 0 !important; margin: 0 !important;
}
/* L'image est la carte : tuile portrait nette */
ul.products li.product figure {
  position: relative; margin: 0;
  aspect-ratio: 8 / 10;
  border-radius: var(--az-card-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(32,30,29,.07);
  transition: box-shadow .3s ease;
}
ul.products li.product:hover figure { box-shadow: 0 14px 34px rgba(32,30,29,.18); }
ul.products li.product .ct-media-container { display: block; width: 100%; height: 100%; border-radius: 0; }
ul.products li.product .ct-media-container img {
  width: 100% !important; height: 100% !important; object-fit: cover;
  aspect-ratio: auto !important; border-radius: 0;
  transition: transform .5s ease;
}
ul.products li.product:hover .ct-media-container img { transform: scale(1.04); }
/* Texte centré sous la tuile, sur le fond crème */
ul.products li.product .woocommerce-loop-product__title {
  color: var(--az-ink); font-size: 13px; letter-spacing: .04em; line-height: 1.35;
  text-align: center; padding: 0 8px; margin: 14px 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
ul.products li.product .woocommerce-loop-product__title a { color: inherit; }
ul.products li.product .woocommerce-loop-product__title a:hover { color: var(--az-accent-700); }
ul.products li.product .price {
  color: var(--az-ink) !important; font-weight: 600; font-size: 14px;
  text-align: center; display: block; padding: 0 8px; margin: 2px 0 0;
}
ul.products li.product .price del { color: var(--az-muted); font-weight: 400; margin-right: 6px; }
ul.products li.product .price ins { text-decoration: none; color: inherit; }
/* Avis (étoiles) centrés — visibles dès l'import des avis Loox */
ul.products li.product .star-rating { margin: 4px auto 0; color: var(--az-accent); }
/* Pas de bouton sur les vignettes : la carte entière est cliquable */
ul.products li.product .ct-woo-card-actions,
ul.products li.product a.button, ul.products li.product .add_to_cart_button { display: none; }
ul.products li.product ul.entry-meta { display: none; }
ul.products li.product .onsale { position: absolute; top: 12px; left: 12px; z-index: 3; }
@media (max-width: 680px) {
  ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 30px 14px !important; }
  ul.products li.product .woocommerce-loop-product__title { font-size: 12px; margin-top: 11px; }
  ul.products li.product .price { font-size: 13px; }
}
.woocommerce span.onsale, span.onsale {
  background: var(--az-accent) !important; color: var(--az-bg) !important;
  border-radius: 999px; font-weight: 600; font-size: 11px; letter-spacing: .04em;
}

/* ═══════════ Manifeste 4 points (option 1b) ═══════════ */
.az-manifeste-1b {
  background: var(--az-n-900); color: var(--az-n-200);
  border-radius: 26px; padding: clamp(36px, 6vw, 80px) clamp(24px, 5vw, 72px);
  margin: 2.5rem 0;
}
.az-manifeste-1b .az-kicker { color: var(--az-accent-400); display: block; margin-bottom: 40px; }
.az-manifeste-1b .points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; }
@media (max-width: 980px) { .az-manifeste-1b .points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .az-manifeste-1b .points { grid-template-columns: 1fr; } }
.az-manifeste-1b .num { font-family: var(--font-heading); font-weight: 600; font-size: 34px; color: var(--az-accent-400); }
.az-manifeste-1b h3 { font-size: 18px; color: #f5ead8; margin: 10px 0 8px; }
.az-manifeste-1b p { font-size: 13.5px; margin: 0; }

/* ═══════════ Mises en avant alternées (option 1b) ═══════════ */
.az-spot {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4.5vw, 56px);
  align-items: center; margin-bottom: 56px;
}
@media (max-width: 820px) { .az-spot { grid-template-columns: 1fr; } }
.az-spot .visual { border-radius: 26px; overflow: hidden; }
.az-spot .visual img { width: 100%; height: min(440px, 55vh); object-fit: cover; display: block; }
.az-spot.reverse .visual { order: 2; }
@media (max-width: 820px) { .az-spot.reverse .visual { order: 0; } }
.az-spot h3 { font-size: clamp(22px, 2.6vw, 30px); margin: 16px 0 12px; }
.az-spot p { max-width: 40ch; color: var(--az-n-800); }
.az-spot .buy { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.az-spot .buy .price { font-family: var(--font-heading); font-weight: 600; font-size: 20px; }

/* ═══════════ Citation avis (option 1b) ═══════════ */
.az-quote {
  background: var(--az-surface); border-radius: 26px;
  padding: clamp(36px, 6vw, 72px); text-align: center; margin: 2.5rem 0;
}
.az-quote .az-kicker { display: block; margin-bottom: 26px; }
.az-quote blockquote {
  font-family: var(--font-heading); font-weight: 600; text-transform: uppercase;
  letter-spacing: .02em; font-size: clamp(18px, 2.4vw, 28px); line-height: 1.25;
  max-width: 34ch; margin: 0 auto 14px; border: none; padding: 0;
}
.az-quote .who { font-size: 13px; color: var(--az-muted); }

/* ═══════════ En-tête des pages catégories — texte lisible sur crème ═══════════ */
.tax-product_cat .hero-section[data-type="type-2"] figure { display: none; }
.tax-product_cat .hero-section {
  background: var(--az-bg) !important;
  color: var(--az-ink);
  padding: 2.2rem 0 0.6rem;
  min-height: 0 !important;
}
.tax-product_cat .hero-section .page-title { color: var(--az-ink); }
.tax-product_cat .hero-section .page-description,
.tax-product_cat .hero-section .entry-content {
  max-width: 74ch; margin: 14px auto 0;
  font-size: 14px; line-height: 1.65; color: var(--az-n-800);
}

/* ═══════════ Filtres boutique en pilules ═══════════ */
.az-shop-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.az-shop-pills a {
  display: inline-block; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--az-divider); color: var(--az-ink); text-decoration: none;
  font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  transition: background .2s, border-color .2s;
}
.az-shop-pills a:hover { background: rgba(32,30,29,.06); }
.az-shop-pills a.is-active { background: var(--az-accent); border-color: var(--az-accent); color: var(--az-bg); }

/* ═══════════ Fiche produit (option 1e) ═══════════ */
.single-product .woocommerce-product-gallery__wrapper { border-radius: 26px; overflow: hidden; background: #fff; }
.single-product .flex-control-thumbs li { border-radius: 14px; overflow: hidden; }
.single-product .flex-control-thumbs li img { border: 2px solid transparent; border-radius: 14px; }
.single-product .flex-control-thumbs li img.flex-active { border-color: var(--az-accent); }
.single-product .product_title { font-size: clamp(24px, 3vw, 36px); }
.single-product .price { font-family: var(--font-heading); font-weight: 600; font-size: 26px; color: var(--az-ink) !important; }
.single-product form.cart .variations label { font-size: 12px; color: rgba(32,30,29,.7); }
/* Hiérarchie CTA façon Sézane : quantité discrète, bouton dominant */
.single-product .ct-cart-actions { display: flex; gap: 12px; align-items: stretch; width: 100%; }
.single-product .ct-cart-actions .quantity {
  flex: none; background: #fff;
  border: 1px solid var(--az-divider); border-radius: var(--az-card-radius);
}
.single-product form.cart .quantity input.qty { background: transparent; border: none; }
.single-product .single_add_to_cart_button {
  flex: 1; width: auto; padding: 16px !important; font-size: 14px !important;
  letter-spacing: .12em !important;
}
.single-product form.cart .variations select {
  width: 100%; height: auto; min-height: 50px;
  padding: 12px 38px 12px 14px; font-size: 14px; line-height: 1.4;
  color: var(--az-ink);
}
.single-product form.cart .reset_variations { display: none !important; }
/* Pas de fil d'Ariane sur les fiches produit */
.single-product .ct-breadcrumbs { display: none; }
.single-product .hero-section { display: none; }
.single-product .woocommerce-variation-price .price { font-size: 22px; }
.az-product-trust {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 22px 0 0;
  font-size: 13px; color: var(--az-n-800);
}
.az-product-trust span { display: flex; align-items: center; gap: 8px; }
.az-product-trust svg { flex: none; stroke: var(--az-sauge-700); }
.single-product .product_meta { display: none; }
/* Onglets Description / Infos complémentaires dans la colonne produit */
.single-product .summary .woocommerce-tabs { border-top: 1px solid var(--az-divider); margin-top: 30px; padding-top: 4px; }
.woocommerce-tabs { border-top: 1px solid var(--az-divider); margin-top: 32px; }
.woocommerce-tabs ul.tabs li a { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
.single-product .summary .woocommerce-tabs .panel { font-size: 14px; line-height: 1.7; color: var(--az-n-800); }
.single-product .summary .woocommerce-tabs .panel h2:first-child { display: none; }
.single-product .summary .woocommerce-tabs .panel h2, .single-product .summary .woocommerce-tabs .panel h3 { font-size: 16px; }
.single-product .summary .woocommerce-tabs table.shop_attributes { font-size: 13px; }
/* Bloc avis en bas — lecture seule (avis importés Loox / Trustpilot) */
.az-reviews-block { border-top: 1px solid var(--az-divider); margin-top: 3.2rem; padding-top: 2.6rem; }
.az-reviews-block .woocommerce-Reviews-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 16px; text-transform: none; letter-spacing: 0; margin-bottom: 26px;
}
.az-reviews-block .woocommerce-Reviews-title .star-rating { color: var(--az-accent); font-size: 17px; }
.az-rev-avg { font-family: var(--font-heading); font-weight: 600; font-size: 18px; color: var(--az-ink); }
.az-rev-count { font-size: 14px; color: var(--az-n-800); }
.az-reviews-block ol.commentlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 820px) { .az-reviews-block ol.commentlist { grid-template-columns: 1fr; } }
.az-reviews-block ol.commentlist li .comment_container {
  background: #fff; border: 1px solid var(--az-divider); border-radius: var(--az-card-radius);
  padding: 18px 20px;
}
.az-reviews-block .comment-text .star-rating { color: var(--az-accent); margin-bottom: 6px; }
.az-reviews-block ol.commentlist img.avatar { display: none; }
#review_form_wrapper, #reviews .comment-respond, .az-reviews-block .comment-respond { display: none !important; }
/* Produits similaires avant le footer (Sézane : « Vous aimerez aussi ») */
.single-product .related.products, .single-product .upsells.products {
  border-top: 1px solid var(--az-divider);
  margin-top: 3.5rem; padding-top: 2.8rem;
}
.single-product .related.products h2, .single-product .upsells.products h2 {
  font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 26px;
}

/* ═══════════ Footer sombre ═══════════ */
.az-footer {
  background: var(--az-n-900); color: var(--az-n-300);
  padding: 56px clamp(24px, 6vw, 72px); display: flex; gap: 64px; align-items: flex-start; flex-wrap: wrap;
}
.az-footer .brand { max-width: 280px; }
.az-footer .brand .name { font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 20px; color: #f5ead8; }
.az-footer .brand p { font-size: 13px; margin-top: 10px; }
.az-footer .cols { display: flex; gap: 64px; font-size: 13px; margin-left: auto; flex-wrap: wrap; }
.az-footer .col { display: flex; flex-direction: column; gap: 8px; }
.az-footer .col b { color: #f5ead8; font-weight: 600; }
.az-footer a { color: inherit; text-decoration: none; }
.az-footer a:hover { color: var(--az-accent-400); }
.az-footer .legal { width: 100%; margin-top: 26px; font-size: 12px; color: var(--az-n-600); }
.ct-footer [data-row="bottom"] { display: none; }

/* ═══════════ Accueil : pas de titre de page ═══════════ */
body.home .entry-header, body.home .page-title, body.home .hero-section { display: none; }

/* ═══════════ Blog — archive /blog/ : grille éditoriale ═══════════ */
.blog .entries, .archive.category .entries {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 52px 30px;
}
.blog .entry-card, .archive.category .entry-card,
.blog [data-cards="boxed"] .entry-card, .archive.category [data-cards="boxed"] .entry-card {
  background: transparent !important; box-shadow: none !important; padding: 0 !important;
  display: flex; flex-direction: column; gap: 0;
}
/* L'image d'abord, puis catégorie, titre, extrait, date */
.blog .entry-card > .ct-media-container, .archive.category .entry-card > .ct-media-container { order: -1; }
.blog .entry-card > ul.entry-meta:first-child, .archive.category .entry-card > ul.entry-meta:first-child { margin-bottom: 6px; }
.blog .entry-card .ct-media-container,
.archive.category .entry-card .ct-media-container {
  aspect-ratio: 16 / 10; border-radius: var(--az-card-radius) !important; overflow: hidden;
  background: #fff; box-shadow: 0 2px 10px rgba(32,30,29,.07);
  transition: box-shadow .3s ease;
  width: 100% !important; margin: 0 0 18px !important;
}
.blog .entry-card:hover .ct-media-container,
.archive.category .entry-card:hover .ct-media-container { box-shadow: 0 14px 34px rgba(32,30,29,.18); }
.blog .entry-card .ct-media-container img,
.archive.category .entry-card .ct-media-container img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.blog .entry-card:hover .ct-media-container img,
.archive.category .entry-card:hover .ct-media-container img { transform: scale(1.04); }
.blog .entry-title, .archive.category .entry-title {
  font-size: 15px; line-height: 1.35; margin: 0 0 8px;
}
.blog .entry-title a, .archive.category .entry-title a { color: var(--az-ink); }
.blog .entry-excerpt, .archive.category .entry-excerpt {
  font-size: 14px; line-height: 1.6; color: var(--az-muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog .entry-meta, .archive.category .entry-meta {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--az-muted);
}
/* Première carte en « une » : pleine largeur, image + texte côte à côte */
@media (min-width: 900px) {
  .blog:not(.paged) .entries > .entry-card:first-child {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px 44px;
    align-content: center;
    margin-bottom: 10px;
  }
  .blog:not(.paged) .entries > .entry-card:first-child > .ct-media-container {
    grid-column: 1; grid-row: 1 / 6; align-self: center;
    aspect-ratio: 16 / 9; margin-bottom: 0;
  }
  .blog:not(.paged) .entries > .entry-card:first-child > :not(.ct-media-container) {
    grid-column: 2;
  }
  .blog:not(.paged) .entries > .entry-card:first-child .entry-title {
    font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15;
  }
  .blog:not(.paged) .entries > .entry-card:first-child .entry-excerpt {
    font-size: 15px; -webkit-line-clamp: 4;
  }
}
@media (max-width: 899px) {
  .blog .entries, .archive.category .entries { grid-template-columns: 1fr 1fr; gap: 36px 16px; }
}
@media (max-width: 599px) {
  .blog .entries, .archive.category .entries { grid-template-columns: 1fr; gap: 40px; }
}
/* En-tête du blog et des catégories d'articles : sobre, centré */
.blog .hero-section, .archive.category .hero-section { text-align: center; padding: 26px 0 12px; }
.blog .hero-section .page-title, .archive.category .hero-section .page-title { font-size: clamp(28px, 4vw, 40px); }

/* ═══════════ Article — lecture éditoriale ═══════════ */
.single-post .hero-section { text-align: center; padding: 30px 0 0; }
.single-post .hero-section .page-title {
  font-size: clamp(28px, 4.2vw, 44px); line-height: 1.12;
  max-width: 22ch; margin-inline: auto;
}
.single-post .hero-section .entry-meta {
  justify-content: center; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--az-muted); margin-top: 14px;
}
.single-post .az-article-meta {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--az-muted); margin: 4px 0 26px;
}
.single-post .az-article-meta a { color: var(--az-accent-700); text-decoration: none; }
.single-post .az-article-meta a:hover { text-decoration: underline; }

/* Sections qui débordent de la colonne de lecture (entry-content est pleine
   largeur chez Blocksy : un centrage par marges suffit) */
.az-article-cover, .az-discover, .az-related-posts {
  width: min(1100px, calc(100vw - 40px));
  max-width: none !important;
  margin-left: auto !important; margin-right: auto !important;
}
.az-article-cover { margin-bottom: 44px !important; }
.az-article-cover img {
  width: 100%; aspect-ratio: 21 / 10; object-fit: cover; display: block;
  border-radius: var(--az-card-radius);
  box-shadow: 0 2px 10px rgba(32,30,29,.07);
  filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94);
}

/* Corps de lecture */
.single-post .entry-content { font-size: 17px; line-height: 1.78; }
.single-post .entry-content > p, .single-post .entry-content > ul,
.single-post .entry-content > ol { margin-bottom: 1.35em; }
.single-post .entry-content > h2 {
  font-size: clamp(19px, 2.4vw, 24px); letter-spacing: .04em;
  margin: 54px 0 18px;
}
.single-post .entry-content > h3 {
  font-size: 16px; letter-spacing: .04em; margin: 38px 0 14px;
}
.single-post .entry-content a { color: var(--az-accent-700); text-decoration: underline; text-underline-offset: 3px; }
.single-post .entry-content a:hover { color: var(--az-accent-600); }
.single-post .entry-content img {
  border-radius: var(--az-card-radius); height: auto;
  filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94);
}
.single-post .entry-content blockquote {
  border-left: 3px solid var(--az-accent); background: var(--az-surface);
  border-radius: 0 var(--az-card-radius) var(--az-card-radius) 0;
  padding: 18px 24px; margin: 30px 0; font-size: 16px;
}
.single-post .ct-breadcrumbs { display: none; }

/* Bloc « La boutique Azamoul » dans l'article */
.az-discover {
  background: var(--az-surface); border-radius: 14px;
  padding: 46px clamp(20px, 4vw, 54px) 50px; margin: 60px 0 20px;
  text-align: center;
}
.az-discover h2 { font-size: clamp(20px, 2.6vw, 26px); margin: 8px 0 30px; }
.az-discover ul.products { gap: 30px 22px !important; margin-bottom: 6px !important; }
.az-discover ul.products li.product figure { box-shadow: 0 2px 10px rgba(32,30,29,.1); }
.az-discover .az-btn-ghost { margin-top: 26px; }

/* Les cartes des blocs boutique / articles liés ne prennent pas le soulignement du corps */
.single-post .entry-content .az-discover a,
.single-post .entry-content .az-related-posts a { text-decoration: none; }

/* « À lire ensuite » */
.az-related-posts { margin: 54px 0 30px; text-align: center; }
.az-related-posts h2 { font-size: clamp(20px, 2.6vw, 26px); margin: 8px 0 30px; }
.az-related-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 24px; text-align: left;
}
.az-related-card { text-decoration: none; color: var(--az-ink); display: block; }
.az-related-card figure {
  margin: 0 0 14px; aspect-ratio: 16 / 10; border-radius: var(--az-card-radius);
  overflow: hidden; background: #fff; box-shadow: 0 2px 10px rgba(32,30,29,.07);
  transition: box-shadow .3s ease;
}
.az-related-card:hover figure { box-shadow: 0 14px 34px rgba(32,30,29,.18); }
.az-related-card figure img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease;
  filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94);
}
.az-related-card:hover figure img { transform: scale(1.04); }
.az-related-card h3 { font-size: 14px; line-height: 1.35; margin: 0 0 6px; }
.az-related-card time { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--az-muted); }
@media (max-width: 680px) {
  .az-related-grid { grid-template-columns: 1fr; gap: 28px; }
  .az-discover ul.products { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}

/* Commentaires d'article : sobres */
.single-post .comments-area { max-width: 72ch; }
.single-post .comment-respond textarea, .single-post .comment-respond input { background: #fff; }

/* ═══════════ Page À propos — éditoriale ═══════════ */
.az-about-cover, .az-about-glyph-row, .az-about-split,
.az-about-values, .az-about-shop {
  width: min(1100px, calc(100vw - 40px));
  max-width: none !important;
  margin-left: auto !important; margin-right: auto !important;
}
.az-about-lead {
  font-size: clamp(17px, 2.2vw, 21px); line-height: 1.65; max-width: 62ch;
  margin: 0 auto 36px; text-align: center;
}
.az-about-cover { margin: 0 0 70px; max-width: none !important; }
.az-about-cover img {
  width: 100%; aspect-ratio: 21 / 10; object-fit: cover; display: block;
  border-radius: var(--az-card-radius); box-shadow: 0 2px 10px rgba(32,30,29,.07);
  filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94);
}
.az-about-glyph-row {
  display: grid; grid-template-columns: 200px 1fr; gap: clamp(24px, 5vw, 64px);
  align-items: center; margin: 0 0 80px;
}
.az-about-glyph {
  font-size: clamp(110px, 14vw, 170px); line-height: 1; color: var(--az-accent);
  text-align: center; font-weight: 400;
}
.az-about-glyph-row h2, .az-about-split h2 { font-size: clamp(20px, 2.8vw, 27px); margin: 10px 0 16px; }
.az-about-glyph-row p, .az-about-split p, .az-about-split li { font-size: 16px; line-height: 1.7; }
.az-about-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px);
  align-items: center; margin: 0 0 80px;
}
.az-about-split figure { margin: 0; }
.az-about-split figure img {
  width: 100%; aspect-ratio: 8 / 9; object-fit: cover; display: block;
  border-radius: var(--az-card-radius); box-shadow: 0 2px 10px rgba(32,30,29,.07);
  filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94);
}
.az-about-split--rev figure { order: 2; }
.az-about-split ul { margin: 14px 0 0; padding-left: 20px; }
.az-about-split li { margin-bottom: 10px; }
.az-about-values {
  background: var(--az-surface); border-radius: 14px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 42px clamp(22px, 4vw, 50px); margin: 0 0 80px;
  text-align: center;
}
.az-about-values b {
  display: block; font-family: var(--font-heading); font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; font-size: 13px; margin-bottom: 8px;
}
.az-about-values span { font-size: 13.5px; color: var(--az-muted); line-height: 1.55; }
.az-about-shop { text-align: center; margin: 0 0 30px; }
.az-about-shop h2 { font-size: clamp(20px, 2.8vw, 27px); margin: 8px 0 34px; }
.az-about-shop .az-btn-primary { margin-top: 30px; }
.page-id-2614 .hero-section { text-align: center; padding: 26px 0 8px; }
@media (max-width: 820px) {
  .az-about-glyph-row { grid-template-columns: 1fr; gap: 10px; margin-bottom: 60px; }
  .az-about-glyph { font-size: 96px; margin-bottom: 6px; }
  .az-about-split { grid-template-columns: 1fr; gap: 24px; margin-bottom: 60px; }
  .az-about-split--rev figure { order: 0; }
  .az-about-values { grid-template-columns: 1fr 1fr; padding: 32px 22px; margin-bottom: 60px; }
  .az-about-cover { margin-bottom: 48px; }
  .az-about-cover img { aspect-ratio: 16 / 10; }
}

/* ═══════════ Accessibilité & confort ═══════════ */
:focus-visible { outline: 2px solid var(--az-accent); outline-offset: 2px; }
::selection { background: rgba(198,113,57,.3); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ═══════════ Accueil v3.7 — héros slider plein écran ═══════════ */
.az-hero-slider {
  position: relative; width: 100vw; max-width: none !important; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  height: clamp(520px, 78vh, 820px); background: var(--az-n-900); overflow: hidden;
  --az-hs-interval: 6000ms;
}
.az-hs-track {
  display: flex; height: 100%; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.az-hs-track::-webkit-scrollbar { display: none; }
.az-hs-track:focus-visible { outline: 3px solid var(--az-accent-300); outline-offset: -3px; }
.az-hs-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.az-picture { display: contents; } /* <picture> transparent pour la mise en page du slide */
.az-hs-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: none; }
.az-hs-slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(32,30,29,.18) 0%, rgba(32,30,29,0) 30%, rgba(32,30,29,0) 50%, rgba(32,30,29,.62) 100%),
    linear-gradient(90deg, rgba(32,30,29,.45) 0%, rgba(32,30,29,0) 60%);
}
.az-hs-content {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(84px, 14vh, 140px);
  max-width: var(--theme-normal-container-max-width, 1290px); margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px); color: var(--az-bg);
}
.az-hs-kicker { display: block; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--az-accent-300); margin-bottom: 12px; }
.az-hs-content h1, .az-hs-content h2 {
  color: var(--az-bg); font-size: clamp(34px, 5.4vw, 68px); line-height: 1.02; margin: 0 0 16px;
  max-width: 14ch; text-shadow: 0 2px 18px rgba(32,30,29,.35);
}
.az-hs-content p { font-size: clamp(15px, 1.4vw, 18px); max-width: 42ch; margin: 0 0 24px; color: rgba(245,234,216,.9); }
.az-hs-content .az-btn-primary { box-shadow: 0 6px 22px rgba(32,30,29,.3); }

.az-hs-nav {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 26px;
  max-width: var(--theme-normal-container-max-width, 1290px); margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px); display: flex; align-items: center; gap: 14px;
}
.az-hs-prev, .az-hs-next {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(245,234,216,.45);
  background: rgba(32,30,29,.25); color: var(--az-bg); font-size: 18px; line-height: 1;
  cursor: pointer; backdrop-filter: blur(6px); transition: background .2s, border-color .2s; padding: 0;
}
.az-hs-prev:hover, .az-hs-next:hover { background: rgba(245,234,216,.2); border-color: var(--az-bg); }
.az-hs-prev:focus-visible, .az-hs-next:focus-visible, .az-hs-dots button:focus-visible { outline: 2px solid var(--az-accent-300); outline-offset: 3px; }
.az-hs-dots { display: flex; gap: 8px; margin-left: auto; }
.az-hs-dots button {
  width: 44px; height: 18px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative;
}
.az-hs-dots button::before, .az-hs-dots button span {
  content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; border-radius: 2px;
}
.az-hs-dots button::before { background: rgba(245,234,216,.35); }
.az-hs-dots button span { background: var(--az-bg); transform: scaleX(0); transform-origin: left; }
.az-hs-dots button[aria-selected="true"] span { transform: scaleX(1); }
.az-hero-slider.is-running .az-hs-dots button[aria-selected="true"] span {
  animation: az-hs-progress var(--az-hs-interval) linear forwards;
}
@keyframes az-hs-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 880px) {
  .az-hero-slider { height: clamp(480px, 70svh, 640px); }
  .az-hs-slide::after {
    background: linear-gradient(180deg, rgba(32,30,29,.12) 0%, rgba(32,30,29,0) 35%, rgba(32,30,29,.72) 100%);
  }
  .az-hs-content { text-align: center; bottom: 92px; }
  .az-hs-content h1, .az-hs-content h2, .az-hs-content p { margin-left: auto; margin-right: auto; }
  .az-hs-nav { justify-content: center; bottom: 22px; }
  .az-hs-prev, .az-hs-next { display: none; }
  .az-hs-dots { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .az-hs-track { scroll-behavior: auto; }
  .az-hs-dots button span { animation: none !important; }
}

/* ═══════════ Accueil v3.7 — phrase d'accueil ═══════════ */
/* v4.0.0 — mission : typo plus fine et aérée (réf. bloc d'accueil de la prod) + ligne Trustpilot */
.az-welcome { text-align: center; padding: clamp(44px, 6.5vw, 80px) 16px 10px; }
.az-welcome p {
  max-width: 62ch; margin: 0 auto;
  font-size: clamp(18px, 1.8vw, 23px); font-weight: 400;
  line-height: 1.7; letter-spacing: .012em;
  color: color-mix(in srgb, var(--az-n-800) 82%, var(--az-bg));
}
.az-welcome .az-trustline { margin-top: 24px; font-size: 15px; letter-spacing: .01em; }
.az-trustline a {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
  color: var(--az-ink); text-decoration: none;
}
.az-trustline .az-stars { font-size: 19px; line-height: 1; }
.az-trustline .az-tl-note {
  font-size: 17px; font-weight: 600; letter-spacing: .02em;
  text-decoration: underline; text-underline-offset: 4px;
}
.az-trustline .az-tl-star { flex: 0 0 auto; display: inline-block; }
.az-trustline .az-tl-brand { font-weight: 600; }
.az-trustline a:hover .az-tl-note { color: var(--az-accent-700, var(--az-accent)); }

/* ═══════════ Accueil v3.7 — collections : grille 6 col. / slider mobile ═══════════ */
.az-collections { display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px 18px; }
.az-coll { display: block; text-decoration: none; color: var(--az-ink); text-align: center; }
.az-coll-tile {
  display: block; aspect-ratio: 4 / 5; border-radius: var(--az-card-radius); overflow: hidden;
  background: #fff; box-shadow: 0 2px 10px rgba(32,30,29,.07); transition: box-shadow .3s ease;
}
.az-coll:hover .az-coll-tile { box-shadow: 0 14px 34px rgba(32,30,29,.18); }
.az-coll-tile img {
  width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease;
  filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94);
}
.az-coll:hover .az-coll-tile img { transform: scale(1.04); }
.az-coll-name {
  display: block; margin-top: 12px; font-family: var(--font-heading); font-weight: 600;
  font-size: 13px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.25;
}
.az-coll-count { display: block; margin-top: 3px; font-size: 12px; color: var(--az-muted); }
.az-coll:focus-visible { outline: none; }
.az-coll:focus-visible .az-coll-tile { outline: 2px solid var(--az-accent); outline-offset: 3px; }

@media (max-width: 1100px) { .az-collections { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 880px) {
  .az-collections {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    width: 100vw; max-width: none !important; margin-left: calc(50% - 50vw); padding: 6px clamp(20px, 4vw, 40px) 16px;
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  }
  .az-collections::-webkit-scrollbar { display: none; }
  .az-coll { flex: 0 0 calc((100vw - 2 * clamp(20px, 4vw, 40px) - 14px) / 2.25); scroll-snap-align: start; }
  .az-coll:last-child { margin-right: clamp(20px, 4vw, 40px); }
}

/* Home : héros collé au header, pas de débordement horizontal dû au 100vw */
.home .ct-container-full { padding-top: 0 !important; }
.home { overflow-x: clip; }
@media (max-width: 880px) {
  .az-hs-slide:first-child .az-hs-img { object-position: 30% 45% !important; }
}

/* ═══════════ v3.7.3 — manifeste : cartes en défilement horizontal ═══════════ */
.az-manifeste-1b .points {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-bottom: 6px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.az-manifeste-1b .points::-webkit-scrollbar { display: none; }
.az-manifeste-1b .points > div {
  flex: 0 0 calc((100% - 3 * 16px) / 4); min-width: 230px; scroll-snap-align: start;
  background: rgba(245,234,216,.06); border: 1px solid rgba(245,234,216,.14);
  border-radius: var(--az-card-radius); padding: 26px 24px 28px;
}
@media (max-width: 980px) { .az-manifeste-1b .points > div { flex-basis: calc((100% - 16px) / 2.15); } }
@media (max-width: 560px) {
  .az-manifeste-1b .points { gap: 12px; scroll-padding-left: 0; }
  .az-manifeste-1b .points > div { flex-basis: 78%; min-width: 0; padding: 22px 20px 24px; }
}

/* ═══════════ v3.7.5 — tuiles plus petites (icônes −20 %, collections −25 %) ═══════════ */
@media (min-width: 881px) {
  .home .az-collections { max-width: calc(var(--theme-normal-container-max-width, 1290px) * .75); margin-left: auto; margin-right: auto; gap: 26px 16px; }
  .home .az-section ~ .woocommerce ul.products, .home ul.products { max-width: 80%; margin-left: auto !important; margin-right: auto !important; }
}

/* ═══════════ v3.8.3 — points indicateurs (manifeste + journal) ═══════════ */
.az-dots { display: none; justify-content: center; gap: 8px; margin-top: 22px; }
.az-dots.is-visible { display: flex; }
.az-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(32,30,29,.22); transition: background .2s, transform .2s;
}
.az-dots button[aria-current="true"] { background: var(--az-accent); transform: scale(1.25); }
.az-dots button:focus-visible { outline: 2px solid var(--az-accent-300); outline-offset: 2px; }
.az-manifeste-1b .az-dots button { background: rgba(245,234,216,.3); }
.az-manifeste-1b .az-dots button[aria-current="true"] { background: var(--az-accent-400); }

/* ═══════════ v3.8 — cohérence : titres alignés sur les grilles, journal en cartes texte ═══════════ */
.home .az-section-head h2 { font-size: clamp(19px, 2.2vw, 24px); }
.home .az-section-head .sub { font-size: 13px; }
.az-section-head .more { color: var(--az-accent-700) !important; }
.az-section-head .more:hover { color: var(--az-accent-900) !important; }
@media (min-width: 881px) {
  .home .az-w75 { max-width: calc(var(--theme-normal-container-max-width, 1290px) * .75); margin-left: auto; margin-right: auto; }
  .home .az-w80 { max-width: calc(var(--theme-normal-container-max-width, 1290px) * .80); margin-left: auto; margin-right: auto; }
}
.home .az-section-head { margin-bottom: 0; }

.az-journal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.az-journal-card {
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  background: var(--az-surface); border-radius: var(--az-card-radius); padding: 26px 26px 24px;
  border: 1px solid rgba(32,30,29,.06);
}
.az-journal-card time { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--az-accent-700); }
.az-journal-card h3 { font-size: 17px; line-height: 1.3; margin: 0; color: var(--az-ink); text-transform: none; letter-spacing: 0; flex: 1; }
.az-btn-sm { padding: 9px 16px !important; font-size: 12px !important; }
@media (max-width: 880px) { .az-journal { grid-template-columns: 1fr; gap: 12px; } }
/* Home : un bloc-titre seul n'ajoute pas d'air sous lui */
.home .az-section:has(> .az-section-head:last-child) { padding-bottom: .4rem; }

/* ═══════════ v3.8.3 — journal : slider horizontal sur mobile/tablette ═══════════ */
@media (max-width: 880px) {
  .az-journal {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding-bottom: 4px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  }
  .az-journal::-webkit-scrollbar { display: none; }
  .az-journal-card { flex: 0 0 78%; scroll-snap-align: start; }
  .az-journal + .az-dots { margin-top: 14px; }
}

/* ═══════════ v3.8.6 — avis produits (import Loox) : layout + photos clients ═══════════ */
/* La section vit dans .ct-container-full : on la recale sur le conteneur standard */
.az-reviews-block {
  max-width: var(--theme-normal-container-max-width, 1290px);
  margin-left: auto; margin-right: auto;
  padding-left: clamp(20px, 4vw, 40px); padding-right: clamp(20px, 4vw, 40px);
}
/* Blocksy met #reviews en grille 2 col. (avis | formulaire) ; le formulaire est masqué → pleine largeur */
.az-reviews-block .woocommerce-Reviews { display: block !important; }
/* Blocksy met .comment_container en grid (avatar | texte) ; l'avatar est masqué → flux normal */
.az-reviews-block ol.commentlist li .comment_container { display: block; }
.az-reviews-block .comment-text { width: 100%; }
.az-reviews-block .comment-text .star-rating { float: none; display: block; margin: 0 0 8px; }
.az-reviews-block .comment-text .meta { margin: 0 0 10px; font-size: 13px; }
.az-reviews-block .woocommerce-review__author { font-weight: 600; color: var(--az-ink); font-size: 14px; }
.az-reviews-block .woocommerce-review__dash { color: var(--az-n-500); }
.az-reviews-block .woocommerce-review__published-date { color: var(--az-n-800); }
.az-reviews-block .comment-text .description { font-size: 14px; line-height: 1.65; color: var(--az-n-800); }
.az-reviews-block .comment-text .description p { margin: 0 0 .5em; }

/* Photos clients sous l'avis */
.az-review-photos {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 10px;
}
.az-review-photos a {
  display: block; width: 84px; height: 84px;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--az-divider);
  transition: transform .18s ease, box-shadow .18s ease;
}
.az-review-photos a:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(32, 30, 29, .14);
}
.az-review-photos img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ═══════════ v3.8.7 — bloc avis replié (2 lignes) + « Afficher plus d'avis » ═══════════ */
.az-rev-hidden { display: none; }
.az-rev-more { display: flex; justify-content: center; margin-top: 26px; }
.az-rev-more .az-btn-ghost { background: none; cursor: pointer; }
@keyframes az-rev-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.az-rev-reveal { animation: az-rev-in .35s ease both; }
@media (prefers-reduced-motion: reduce) { .az-rev-reveal { animation: none; } }

/* ═══════════ v3.8.8 — page Avis clients (Trustpilot) ═══════════ */
.az-stars {
  position: relative; display: inline-block;
  font-size: 17px; line-height: 1; letter-spacing: 2px;
  color: rgba(32, 30, 29, .18);
}
.az-stars-fill {
  position: absolute; top: 0; left: 0; bottom: 0;
  overflow: hidden; white-space: nowrap;
  color: var(--az-accent); letter-spacing: 2px;
}
.az-tp { border-top: none; margin-top: 0; padding-top: 0; padding-left: 0; padding-right: 0; }
.az-tp .woocommerce-Reviews-title { flex-wrap: wrap; }
.az-tp-link {
  margin-left: auto; font-size: 13px; color: var(--az-accent-700) !important;
  text-decoration: underline; text-underline-offset: 3px;
}
.az-tp .comment-text > .az-stars { display: inline-block; margin-bottom: 8px; }
.az-tp-title { font-weight: 600; color: var(--az-ink); margin: 0 0 4px; }
.az-tp-reply {
  margin-top: 12px; padding: 10px 14px;
  background: var(--az-bg); border-radius: 8px; font-size: 13px;
}
.az-tp-reply-label { display: block; font-weight: 600; font-size: 12px; color: var(--az-accent-800); margin-bottom: 4px; }
.az-tp-reply p { margin: 0; }

/* ═══════════ v3.8.9 — bloc « Avis clients » de l'accueil ═══════════ */
.az-rev-summary { display: flex; align-items: center; gap: 10px; margin: 14px 0 22px; }
.az-home-reviews { border-top: none; margin-top: 0; padding: 0; max-width: none; }
.az-home-reviews ol.commentlist { grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1100px) { .az-home-reviews ol.commentlist { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) { .az-home-reviews ol.commentlist { grid-template-columns: 1fr; } }
.az-home-reviews ol.commentlist li .comment_container { padding: 16px 18px; }
.az-rev-product { margin: 10px 0 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.az-rev-product a { color: var(--az-accent-700); text-decoration: none; }
.az-rev-product a:hover { text-decoration: underline; }

/* ═══════════ v3.8.10 — cartes avis : largeur contenue ; séparateurs entre blocs de l'accueil ═══════════ */
/* Un item de grille ne rétrécit pas sous son contenu insécable (lien produit nowrap) → min-width:0 */
.az-reviews-block ol.commentlist > li { min-width: 0; }
.az-sep { position: relative; margin-top: 1rem; }
.az-sep::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: var(--az-divider);
}

/* ═══════════ v3.9.0 — pages de collection : bannière compacte + description SEO en bas ═══════════ */
.az-cat-hero {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 4vw, 56px); align-items: center;
  margin: 6px 0 28px;
}
.az-cat-hero.no-img { grid-template-columns: 1fr; }
.az-cat-hero-text h1 { font-size: clamp(26px, 3.2vw, 40px); margin: 0 0 12px; }
.az-cat-hero-text p { font-size: 15px; line-height: 1.7; color: var(--az-n-800); max-width: 54ch; margin: 0; }
.az-cat-hero-img img {
  width: 100%; height: clamp(200px, 24vw, 300px);
  object-fit: cover; border-radius: var(--az-card-radius); display: block;
}
@media (max-width: 880px) {
  .az-cat-hero { grid-template-columns: 1fr; gap: 16px; margin-bottom: 18px; }
  .az-cat-hero-img img { height: 180px; }
  .az-cat-hero-text h1 { font-size: 26px; }
}
.az-cat-seo {
  margin-top: 3rem; padding-top: 2.4rem;
  border-top: 1px solid var(--az-divider);
  max-width: 860px; font-size: 14px; line-height: 1.75; color: var(--az-n-800);
}
.az-cat-seo strong { color: var(--az-ink); }

/* Bouton « Tout afficher » sous la grille Nos icônes */
.az-icones-cta { display: flex; justify-content: center; margin-top: 8px; }

/* ═══════════ v3.9.1 — pop-up d'avis (bas gauche, desktop) ═══════════ */
.az-rp {
  position: fixed; left: 20px; bottom: 20px; z-index: 998; width: 232px;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .32s ease, transform .32s ease;
}
.az-rp.is-on { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 999px) { .az-rp { display: none; } }
.az-rp-card {
  position: relative; display: block; overflow: hidden;
  background: #fff; border-radius: var(--az-card-radius);
  box-shadow: 0 10px 34px rgba(32, 30, 29, .22);
  text-decoration: none; color: var(--az-ink);
}
.az-rp-card > img { width: 100%; height: 150px; object-fit: cover; display: block; }
.az-rp-close {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--az-ink);
  font-size: 16px; line-height: 1;
  box-shadow: 0 2px 8px rgba(32, 30, 29, .25);
}
.az-rp-close:hover { background: #fff; }
.az-rp-body { padding: 12px 14px 10px; }
.az-rp-body strong { display: block; font-size: 13px; margin-bottom: 3px; }
.az-rp-body .az-stars { font-size: 13px; }
.az-rp-body p {
  margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--az-n-800);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.az-rp-product {
  padding: 8px 14px; border-top: 1px solid var(--az-divider);
  font-size: 11.5px; color: var(--az-accent-700);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ═══════════ v3.9.3 — bandeau de consentement (mesure d'audience) ═══════════ */
/* « Refuser » et « Accepter » ont strictement le meme poids visuel : meme taille, meme graisse,
   meme encadrement. Rendre le refus moins visible que l'accord est un dark pattern sanctionne. */
.az-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: var(--az-bg); border-top: 1px solid var(--az-divider);
  box-shadow: 0 -6px 28px -18px rgba(32,30,29,.5);
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
}
.az-consent[hidden] { display: none; }
.az-consent-boite {
  max-width: 1080px; margin-inline: auto;
  display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap;
}
.az-consent-titre {
  margin: 0; font-family: var(--font-heading); font-weight: 700;
  font-size: 15px; color: var(--az-ink); flex: none;
}
.az-consent-texte {
  margin: 0; flex: 1 1 320px; min-width: 0;
  font-size: 14px; line-height: 1.5; color: var(--az-muted);
}
.az-consent-texte a { color: var(--az-ink); text-decoration: underline; }
.az-consent-actions { display: flex; gap: 10px; flex: none; }
.az-consent-btn {
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 11px 22px; min-width: 124px; cursor: pointer;
  border: 1px solid var(--az-ink); border-radius: var(--az-card-radius);
  background: transparent; color: var(--az-ink);
  transition: background .18s, color .18s;
}
.az-consent-btn:hover { background: var(--az-ink); color: var(--az-bg); }
.az-consent-btn:focus-visible { outline: 2px solid var(--az-accent); outline-offset: 2px; }

/* Le pop-up d'avis (fixe en bas a gauche) laisserait passer sa carte sous le bandeau. */
.az-consent:not([hidden]) ~ .az-rp, body:has(.az-consent:not([hidden])) .az-rp { display: none; }

/* Retrait du consentement : un lien parmi les autres de la colonne « Aide » du pied de page. */
.az-consent-rouvrir {
  display: block; padding: 0; margin: 0; border: 0; background: none;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  text-decoration: none; opacity: .85;
}
.az-consent-rouvrir:hover { opacity: 1; text-decoration: underline; }

@media (max-width: 680px) {
  .az-consent-boite { gap: 12px; }
  .az-consent-actions { width: 100%; }
  .az-consent-btn { flex: 1 1 0; min-width: 0; padding: 12px 10px; }
}

/* ═══════════ v3.9.5 — bloc newsletter (Ansuf) avant le footer ═══════════ */
.az-newsletter {
  background: var(--az-surface, #fff);
  border-top: 1px solid var(--az-divider);
  padding: clamp(36px, 5vw, 56px) clamp(24px, 6vw, 72px);
}
.az-newsletter-inner {
  max-width: var(--theme-normal-container-max-width, 1290px);
  margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 64px); align-items: center;
}
.az-newsletter-text h2 { margin: 0 0 8px; font-size: clamp(19px, 2.2vw, 24px); }
.az-newsletter-text p { margin: 0; font-size: 14px; color: var(--az-n-800); max-width: 46ch; }
.az-newsletter-form { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.az-newsletter-form input[type="email"] {
  flex: 1 1 240px; min-width: 0;
  padding: 12px 16px; font-size: 14px;
  border: 1px solid var(--az-divider); border-radius: var(--az-card-radius);
  background: #fff; color: var(--az-ink);
}
.az-newsletter-form input[type="email"]:focus { outline: 2px solid var(--az-accent); outline-offset: 1px; }
.az-newsletter-form .az-btn-primary { border: none; cursor: pointer; }
.az-newsletter-form .az-btn-primary:disabled { opacity: .6; cursor: wait; }
.az-newsletter-note { flex-basis: 100%; margin: 2px 0 0; font-size: 11.5px; color: var(--az-muted, var(--az-n-800)); }
.az-newsletter-note a { color: var(--az-accent-700); }
.az-newsletter-msg { flex-basis: 100%; margin: 0; font-size: 13px; min-height: 1em; color: var(--az-ink); }
.az-newsletter-msg.is-ok { color: var(--az-accent-800, var(--az-accent)); }
@media (max-width: 880px) {
  .az-newsletter-inner { grid-template-columns: 1fr; gap: 18px; }
}

/* ═══════════ v3.9.8 — popup de bienvenue newsletter ═══════════ */
.az-nlp { position: fixed; inset: 0; z-index: 1000; opacity: 0; transition: opacity .3s ease; }
.az-nlp.is-on { opacity: 1; }
.az-nlp-overlay { position: absolute; inset: 0; background: rgba(32, 30, 29, .55); cursor: pointer; }
.az-nlp-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, calc(-50% + 12px));
  width: min(440px, calc(100vw - 40px));
  max-height: calc(100vh - 40px); overflow: auto;
  background: var(--az-bg); border-radius: var(--az-card-radius);
  box-shadow: 0 30px 80px rgba(32, 30, 29, .4);
  padding: clamp(26px, 5vw, 40px);
  transition: transform .3s ease;
}
.az-nlp.is-on .az-nlp-card { transform: translate(-50%, -50%); }
@media (prefers-reduced-motion: reduce) {
  .az-nlp, .az-nlp .az-nlp-card { transition: none; }
}
.az-nlp-close {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%; background: transparent; cursor: pointer;
  color: var(--az-ink); font-size: 20px; opacity: .6; transition: opacity .2s;
}
.az-nlp-close:hover { opacity: 1; }
.az-nlp-kicker {
  display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--az-accent-700); font-weight: 600; margin-bottom: 10px;
}
.az-nlp-card h2 { margin: 0 0 10px; font-size: clamp(20px, 4.5vw, 26px); line-height: 1.25; }
.az-nlp-ask > p, .az-nlp-done > p { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: var(--az-n-800); }
.az-nlp-form { display: flex; flex-direction: column; gap: 10px; }
.az-nlp-form input[type="email"] {
  padding: 13px 16px; font-size: 15px;
  border: 1px solid var(--az-divider); border-radius: var(--az-card-radius);
  background: #fff; color: var(--az-ink);
}
.az-nlp-form input[type="email"]:focus { outline: 2px solid var(--az-accent); outline-offset: 1px; }
.az-nlp-form .az-btn-primary { border: none; cursor: pointer; text-align: center; }
.az-nlp-form .az-btn-primary:disabled { opacity: .6; cursor: wait; }
.az-nlp-note { margin: 12px 0 0 !important; font-size: 11px !important; color: var(--az-muted, var(--az-n-800)) !important; }
.az-nlp-note a { color: var(--az-accent-700); }
.az-nlp-msg { margin: 10px 0 0; font-size: 13px; min-height: 1em; color: var(--az-ink); }
.az-nlp-done { text-align: center; }
.az-nlp-done p { margin-bottom: 8px; }
.az-nlp-code {
  font-family: var(--font-heading); font-size: 26px !important; font-weight: 700;
  color: var(--az-accent-800, var(--az-accent)) !important; letter-spacing: .1em;
  margin: 4px 0 12px !important;
}
.az-nlp-done .az-btn-primary { margin-top: 8px; display: inline-block; }

/* ═══════════ v4.0.0 — apparition des blocs au défilement ═══════════ */
/* La classe .az-rv n'est posée que par JS sur les éléments sous la ligne de
   flottaison : sans JS ou en reduced-motion, tout reste visible. */
.az-rv { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.az-rv-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .az-rv { opacity: 1; transform: none; transition: none; }
}
