/* Aquapolab — main stylesheet. Direction B (Nature & lifestyle).
   CWV-first: self-hosted variable fonts (Fraunces + Inter, latin+swap),
   semantic tokens, minimal critical CSS. Identity: clean water + living green,
   warm neutrals, editorial serif — the premium bar from the competitor benchmark. */

/* ── Self-hosted fonts ── */
@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/fraunces-latin-var.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("../fonts/inter-latin-var.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Design tokens ── */
:root {
    --cream: #faf7f0;        /* page background (warm) */
    --card: #fffdf8;         /* surfaces */
    --forest: #0b4f1e;       /* Herba primary green — header/buttons */
    --forest-2: #003604;     /* Herba dark green — hover */
    --leaf: #2a7d43;         /* fresh green (dérivé Herba) — kicker / in-stock */
    --forest-tint: #0b4f1e1f;/* Herba pale green wash — hover menu, fonds de section */
    --forest-deep: #041d01;  /* Herba impact-band base (sous la texture feuillage) */
    --terracotta: #c1663f;   /* accent promo/notes (Herba = ambre #FFB700 — à trancher) */
    --ink: #20241f;          /* text (warm near-black) */
    --muted: #5f6b62;        /* secondary text */
    --faint: #8a9086;        /* meta */
    --line: #e9e2d5;         /* warm borders */

    /* Back-compat aliases */
    --color-bg: var(--cream);
    --color-text: var(--ink);
    --color-accent: var(--forest);

    --font-h: "Fraunces", Georgia, "Times New Roman", serif;
    --font-b: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --fs-300: 0.82rem; --fs-400: 1rem; --fs-500: 1.12rem;
    --fs-600: 1.35rem; --fs-700: 1.85rem; --fs-800: 2.3rem;
    --fs-hero: clamp(2.6rem, 5.2vw, 4.4rem);

    --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem; --sp-6: 1.5rem;
    --sp-8: 2rem; --sp-12: 3rem; --sp-16: 4rem;
    --space: 1rem;

    --radius-sm: 8px; --radius: 14px; --radius-lg: 22px; --radius-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(30,40,30,.05), 0 2px 6px rgba(30,40,30,.06);
    --shadow: 0 10px 30px rgba(30,40,30,.10);
    --shadow-lg: 0 18px 44px rgba(30,40,30,.16);

    --measure: 68ch; --wide: 1240px; --header-h: 76px;
    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0; padding-top: var(--header-h);
    color: var(--ink); background: var(--cream);
    font-family: var(--font-b); font-size: var(--fs-400); line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Sticky footer : sur page courte, le footer reste collé au bas du viewport.
       box-sizing:border-box (global) fait entrer le padding-top header dans 100vh. */
    min-height: 100vh; display: flex; flex-direction: column;
}
body.home { padding-top: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--forest); text-underline-offset: 2px; }
a:hover { color: var(--forest-2); }
h1, h2, h3, h4 { font-family: var(--font-h); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--forest) 45%, #fff); outline-offset: 2px; border-radius: var(--radius-sm); }

/* Main is a wide container by default (shop, cart/checkout, generic pages).
   Prose contexts (.pillar) narrow themselves to --measure; the home goes
   full-bleed so the hero and 1240 sections manage their own width. */
/* width:100% donne une largeur définie → en body flex (sticky footer), margin:auto
   recentre au lieu de rétrécir l'item ; home (max-width:none) reprend le plein écran. */
.site-main { flex: 1 0 auto; width: 100%; max-width: var(--wide); margin-inline: auto; padding: var(--sp-8) var(--space); }
body.home .site-main { max-width: none; padding: 0; }
.kicker { color: var(--leaf); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.section-title { font-size: var(--fs-700); margin: var(--sp-12) 0 var(--sp-6); }

/* ── A11y helpers ── */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--space); top: var(--space); background: #fff; padding: var(--sp-2) var(--sp-4); z-index: 100; border-radius: var(--radius-sm); box-shadow: var(--shadow); }

/* ── Header (fixed; solide partout — pas de transparence/glass) ── */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    background: var(--cream);
    border-bottom: 1px solid var(--line); color: var(--ink);
    transition: border-color .3s var(--ease);
}
/* .at-top neutralisé : header solide même sur le hero (pas de transparent). */
.site-header.at-top { background: var(--cream); border-color: var(--line); color: var(--ink); }
/* Admin bar présente (logged-in) : décaler le header fixe sous la barre WP. */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
.site-header__inner { max-width: var(--wide); margin-inline: auto; padding: 0 var(--space); min-height: var(--header-h); display: flex; align-items: center; gap: var(--sp-8); }
.site-header__title { font-family: var(--font-h); font-weight: 600; font-size: 1.5rem; letter-spacing: -.02em; text-decoration: none; color: currentColor; }
.site-header__brand { margin-right: auto; }
.site-header__logo-link { display: inline-flex; align-items: center; }
.site-header__logo { height: 54px; width: auto; display: block; }
@media (max-width: 600px) { .site-header__logo { height: 44px; } }
/* WP custom logo (si défini via admin) : même contrainte de hauteur. */
.custom-logo { height: 54px; width: auto; display: block; }
.site-header__actions { margin-left: auto; display: inline-flex; align-items: center; gap: var(--sp-1); }

.site-nav .menu { list-style: none; display: flex; flex-wrap: wrap; gap: .1rem var(--sp-6); margin: 0; padding: 0; }
.site-nav .menu-item > a { display: block; padding: var(--sp-2) .1rem; text-decoration: none; color: currentColor; font-weight: 500; font-size: .98rem; opacity: 1; border-bottom: 2px solid transparent; transition: border-color .15s; }
.site-nav .menu-item > a:hover { opacity: 1; border-color: currentColor; }

.aqp-cart, .aqp-account { position: relative; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: currentColor; width: 42px; height: 42px; border-radius: var(--radius-sm); transition: background .15s, color .15s; }
.aqp-cart:hover, .aqp-account:hover { background: var(--forest-tint); color: var(--forest); }
.aqp-cart svg, .aqp-account svg { width: 22px; height: 22px; display: block; }
.aqp-cart__count { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; background: var(--terracotta); color: #fff; font-size: .7rem; font-weight: 700; font-variant-numeric: tabular-nums; border-radius: var(--radius-pill); line-height: 1; }
.aqp-cart__count[data-count="0"] { display: none; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; position: relative; color: currentColor; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav-toggle__bar { top: 21px; } .nav-toggle__bar::before { top: -6px; } .nav-toggle__bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ── Méga-menu (desktop ≥ 901px) : hover-open, panneau différencié, hover vert ── */
@media (min-width: 901px) {
    .site-nav { align-self: stretch; }
    .site-nav .menu { height: 100%; flex-wrap: nowrap; }
    .site-nav .menu > .menu-item { display: flex; align-items: center; }
    .site-nav .menu > .menu-item > a { display: flex; align-items: center; height: 100%; border-bottom: 0; }
    .site-nav .menu > .menu-item > a:hover { border-color: transparent; color: var(--forest); }

    /* chevron : indique un panneau (affordance hover) */
    .site-nav .menu > .menu-item-has-children > a { gap: .38rem; }
    .site-nav .menu > .menu-item-has-children > a::after {
        content: ""; width: .42em; height: .42em; margin-top: -.22em;
        border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
        transform: rotate(45deg); opacity: .5; transition: transform .2s var(--ease), opacity .2s var(--ease);
    }
    .site-nav .menu > .menu-item-has-children:hover > a::after,
    .site-nav .menu > .menu-item-has-children:focus-within > a::after { transform: rotate(-135deg); opacity: 1; }

    /* le panneau : détaché de la navbar (élévation + liseré vert) */
    /* panneau PLEINE LARGEUR (mega) : bg full-width, contenu centré au conteneur,
       colonnes auto (place pour + de sous-catégories + top-sellers à terme). */
    .site-nav .sub-menu {
        position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
        margin: 0; list-style: none;
        padding-block: var(--sp-8);
        padding-inline: max(var(--space), calc((100% - var(--wide)) / 2));
        background: #fff; border-top: 1px solid var(--line);
        box-shadow: 0 26px 52px -18px rgba(4,29,1,.30);
        display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .15rem 2rem; align-content: start;
        opacity: 0; visibility: hidden; transform: translateY(8px);
        transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s;
    }
    .site-nav .menu > .menu-item-has-children:hover > .sub-menu,
    .site-nav .menu > .menu-item-has-children:focus-within > .sub-menu {
        opacity: 1; visibility: visible; transform: translateY(0);
        transition: opacity .18s var(--ease), transform .18s var(--ease);
    }

    /* items du panneau : aérés, hover vert clair */
    .site-nav .sub-menu .menu-item { border: 0; }
    .site-nav .sub-menu .menu-item > a {
        display: block; height: auto; padding: .62rem .8rem; white-space: nowrap;
        font-size: .95rem; font-weight: 500; border: 0; border-radius: var(--radius-sm);
        transition: background .12s, color .12s;
    }
    .site-nav .sub-menu .menu-item > a:hover { background: var(--forest-tint); color: var(--forest); border-color: transparent; }
}

@media (max-width: 900px) {
    .nav-toggle { display: block; order: 3; }
    .site-header__actions { margin-left: 0; order: 2; }
    .site-header__brand { margin-right: auto; order: 1; }
    .site-nav { order: 4; flex-basis: 100%; display: none; }
    .site-nav.is-open { display: block; padding-bottom: var(--sp-2); }
    .site-nav.is-open { background: var(--cream); }
    .site-nav .menu { flex-direction: column; gap: 0; }
    .site-nav .menu-item { border-top: 1px solid var(--line); }
    .site-nav .menu-item > a { padding: .7rem .1rem; border-bottom: 0; }
    /* méga → accordéon mobile */
    .site-nav .sub-menu { list-style: none; margin: 0; padding: 0 0 .4rem var(--sp-4); display: none; }
    .site-nav .menu-item.is-expanded > .sub-menu { display: block; }
    .site-nav .menu-item-has-children > a { display: flex; align-items: center; justify-content: space-between; }
    .site-nav .menu-item-has-children > a::after {
        content: ""; width: .5em; height: .5em; margin-right: .3rem; flex: none;
        border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
        transform: rotate(45deg); opacity: .55; transition: transform .2s var(--ease);
    }
    .site-nav .menu-item.is-expanded > a::after { transform: rotate(-135deg); }
    .site-nav .sub-menu .menu-item { border-top: 0; }
    .site-nav .sub-menu .menu-item > a { padding: .5rem .1rem; font-size: .92rem; opacity: .9; }
}

/* ── Buttons ── */
.btn, .button,
.woocommerce a.button, .woocommerce button.button, .woocommerce .button,
.woocommerce #respond input#submit, .woocommerce-page .button {
    display: inline-block; padding: .85rem 1.7rem; border: 0; border-radius: var(--radius-pill);
    background: var(--forest); color: #fff !important; font-family: var(--font-b);
    font-weight: 600; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer;
    box-shadow: var(--shadow-sm); transition: background .15s var(--ease), transform .05s var(--ease);
}
.btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce .button:hover { background: var(--forest-2); color: #fff !important; }
.btn:active, .woocommerce .button:active { transform: translateY(1px); }
.btn--ghost { background: rgba(255,255,255,.14); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.55); margin-left: .75rem; }
.btn--ghost:hover { background: rgba(255,255,255,.24); }

/* ── Hero (front page) ── */
/* Hero : bande à fort impact (texture feuillage via .band-impact), texte aligné en bas. */
.hero { position: relative; min-height: 560px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__inner { position: relative; z-index: 2; max-width: var(--wide); margin-inline: auto; width: 100%; padding: 0 var(--space) var(--sp-16); }
.hero__eyebrow { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; opacity: .92; margin-bottom: .9rem; }
.hero h1 { font-size: var(--fs-hero); color: #fff; }
.hero__lead { font-size: 1.2rem; margin: 1.1rem 0 1.7rem; opacity: .96; }

/* ── Trust bar ── */
.trust { background: var(--forest); color: #fff; }
.trust__inner { max-width: var(--wide); margin-inline: auto; padding: 1.1rem var(--space); display: flex; flex-wrap: wrap; gap: .6rem 2.5rem; justify-content: center; font-size: .95rem; }
.trust__item { display: inline-flex; align-items: center; gap: .6rem; opacity: .96; }
.trust__ico { width: 20px; height: 20px; stroke: #a7d7be; fill: none; stroke-width: 1.6; flex: none; }

/* ── Home sections ── */
.home-cats, .home-best, .home-promos, .home-editorial, .home-guides { max-width: var(--wide); margin-inline: auto; padding: var(--sp-16) var(--space) 0; }
.home-editorial, .home-guides { padding-bottom: var(--sp-16); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 1.2rem; margin-bottom: var(--sp-6); }
.sec-head h2 { font-size: var(--fs-800); margin: .3rem 0 0; }
.sec-head .more { color: var(--forest); font-weight: 600; font-size: .95rem; white-space: nowrap; text-decoration: none; }
.sec-head .more:hover { text-decoration: underline; }

/* Editorial category tiles */
.cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.cat { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow); }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.cat:hover img { transform: scale(1.05); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(15,30,20,.8)); }
.cat__label { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 2; color: #fff; }
.cat__label h3 { color: #fff; font-size: 1.25rem; margin: 0; }
.cat__label span { font-size: .85rem; opacity: .9; }
/* Tuile sans photo curée : fallback feuille (band-impact) — en attendant les vraies images. */
.cat--ph { background-color: var(--forest-deep); background-image: url('../images/da/leaf-texture.webp'); background-position: center; background-size: cover; }
.cat--ph::after { background: linear-gradient(180deg, rgba(4,29,1,.25) 0%, rgba(4,29,1,.72) 100%); }

/* Slider catégories : ~4 tuiles visibles, le reste au scroll/flèches (pattern elagueo). */
.cats-ctl { display: flex; align-items: center; gap: 1rem; }
.cats-arrows { display: none; gap: .5rem; }
@media (min-width: 721px) { .cats-arrows { display: inline-flex; } }
.cats-arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--forest); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: background .15s var(--ease), border-color .15s var(--ease); }
.cats-arrow:hover { background: var(--forest-tint); border-color: var(--leaf); }
.cats-viewport { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; margin-inline: calc(-1 * var(--space)); padding-inline: var(--space); scroll-padding-left: var(--space); }
.cats-viewport::-webkit-scrollbar { display: none; }
.cats--track { display: flex; grid-template-columns: none; gap: 1.1rem; padding-block: .2rem; }
.cats--track > li { flex: 0 0 clamp(220px, 24%, 290px); scroll-snap-align: start; }
.cats--track .cat { margin: 0; }
@media (max-width: 720px) { .cats--track > li { flex: 0 0 78vw; } }
/* Bouton « voir toutes les catégories » sous le slider */
.cats-more { text-align: center; padding-top: var(--sp-8); }
.btn--outline { background: transparent; color: var(--forest) !important; border: 1.5px solid var(--forest); box-shadow: none; }
.btn--outline:hover { background: var(--forest); color: #fff !important; }

/* ── Product grid + cards (shop + home) ── */
.woocommerce ul.products, ul.products { list-style: none; margin: var(--sp-4) 0; padding: 0; display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.home-best ul.products, .home-promos ul.products { grid-template-columns: repeat(4, 1fr); }
ul.products li.product, .product-card {
    margin: 0 !important; width: auto !important; position: relative; display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: box-shadow .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease);
}
ul.products li.product:hover, .product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: color-mix(in srgb, var(--leaf) 40%, var(--line)); }
li.product > a img, .product-card > a img, .product-card img.attachment-woocommerce_thumbnail { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--cream); transition: transform .4s var(--ease); }
ul.products li.product:hover img { transform: scale(1.05); }
.product-card__body { padding: var(--sp-4) var(--sp-4) var(--sp-6); display: flex; flex-direction: column; gap: .3rem; flex: 1; }
li.product .woocommerce-loop-product__title, .product-card .woocommerce-loop-product__title { font-family: var(--font-h); font-size: 1.06rem; font-weight: 600; padding: 0 !important; margin: 0; color: var(--ink); }
li.product .price, .product-card .price { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
li.product .price del, .product-card .price del { color: var(--faint); font-weight: 400; margin-right: .35rem; }
li.product .price ins, .product-card .price ins { text-decoration: none; color: var(--terracotta); }
.star-rating span::before, .woocommerce .star-rating span::before { color: var(--terracotta); }
li.product a.button, .product-card a.button { margin: .4rem var(--sp-4) var(--sp-4); text-align: center; border-radius: var(--radius-sm); }
.woocommerce span.onsale, span.onsale {
    position: absolute; top: var(--sp-3); left: var(--sp-3); z-index: 2; margin: 0;
    background: var(--terracotta); color: #fff; font-family: var(--font-b); font-size: .72rem; font-weight: 700;
    padding: .22rem .6rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
}
.stock.out-of-stock { color: var(--terracotta); font-weight: 600; font-size: var(--fs-300); }
.stock.in-stock { color: var(--leaf); font-weight: 600; font-size: var(--fs-300); }

/* ── Editorial band ── */
/* ── Bande à fort impact visuel : vert profond + texture feuillage plein cadre ──
   Full-bleed (pas de container rounded). Réutilisable : classe .band-impact. */
.band-impact { position: relative; color: #fff; background-color: var(--forest-deep);
    background-image: url('../images/da/leaf-texture.webp'); background-position: center; background-repeat: no-repeat; background-size: cover; }
.band-impact::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,29,1,.5) 0%, rgba(4,29,1,.76) 100%); }
.band-impact > * { position: relative; z-index: 1; }
.btn--light { background: #fff; color: var(--forest) !important; }
.btn--light:hover { background: var(--cream); color: var(--forest) !important; }
.kicker--light { color: #a7d7be; }

.edito-band { margin-top: var(--sp-16); }
.edito-band__inner { max-width: var(--wide); margin-inline: auto; padding: var(--sp-16) var(--space); }
.edito-band h2 { font-size: var(--fs-700); margin: .4rem 0 .7rem; color: #fff; }
.edito-band p { font-size: 1.1rem; margin: 0 0 1.5rem; opacity: .95; }

/* ── Bloc éditorial « se lancer » : image + texte sur band-impact ── */
.feature-split { margin-top: var(--sp-16); }
.feature-split__inner { max-width: var(--wide); margin-inline: auto; padding: var(--sp-16) var(--space);
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-12); align-items: center; }
.feature-split__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.feature-split__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-split__body h2 { font-size: var(--fs-700); color: #fff; margin: 0 0 .9rem; }
.feature-split__body p { font-size: 1.12rem; opacity: .95; margin: 0 0 1.2rem; }
.feature-split__list { list-style: none; margin: 0 0 1.7rem; padding: 0; display: grid; gap: .65rem; }
.feature-split__list li { position: relative; padding-left: 1.7rem; opacity: .96; }
.feature-split__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: .55rem; height: .55rem; border-radius: 50%; background: #a7d7be; }
@media (max-width: 820px) {
    .feature-split__inner { grid-template-columns: 1fr; gap: var(--sp-8); }
    .feature-split__media { aspect-ratio: 16/10; }
}

/* ── Conseils / guides (cartes articles) ── */
.guide-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.guide-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: box-shadow .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease); }
.guide-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: color-mix(in srgb, var(--leaf) 40%, var(--line)); }
.guide-card__media { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--cream); }
.guide-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.guide-card:hover .guide-card__media img { transform: scale(1.05); }
.guide-card__media--ph { background-color: var(--forest-deep); background-image: url('../images/da/leaf-texture.webp'); background-position: center; background-size: cover; }
.guide-card__body { padding: var(--sp-5) var(--sp-5) var(--sp-6); display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.guide-card__body h3 { font-size: 1.2rem; margin: 0; }
.guide-card__body h3 a { color: var(--ink); text-decoration: none; }
.guide-card__body h3 a:hover { color: var(--forest); }
.guide-card__body p { color: var(--muted); font-size: .96rem; margin: 0; flex: 1; }
.guide-card__more { color: var(--forest); font-weight: 600; font-size: .92rem; margin-top: .3rem; }

/* ── Shop / archive wrapper ── */
.shop { max-width: none; padding-inline: 0; } /* fills .site-main (already the 1240 container) */
.woocommerce-products-header__title, .shop .page-title { font-size: var(--fs-800); }
.term-description, .woocommerce-archive-description { max-width: var(--measure); color: var(--muted); font-size: var(--fs-500); }

/* ── Pagination (shop + blog, unified) ──
   Both Woo (nav.woocommerce-pagination > ul.page-numbers > li) and WP core
   (nav.pagination > .nav-links, direct children) share the .page-numbers class.
   Numbered clickable tiles = standard shop UX + matches the blog. */
.woocommerce-pagination, nav.pagination { margin: var(--sp-12) 0 var(--sp-4); }
.woocommerce-pagination ul.page-numbers, nav.pagination .nav-links {
    list-style: none; margin: 0; padding: 0; border: 0;
    display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; align-items: center;
}
.woocommerce-pagination ul.page-numbers li { margin: 0; border: 0; }
/* Tile — a (link) and span (current/dots) share the base box. */
.page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 44px; padding: 0 .7rem;
    font-family: var(--font-b); font-size: .98rem; font-weight: 600; line-height: 1;
    font-variant-numeric: tabular-nums; color: var(--ink); text-decoration: none;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
    transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
a.page-numbers:hover { background: var(--forest-tint); border-color: var(--leaf); color: var(--forest-2); }
.page-numbers.current {
    background: var(--forest); border-color: var(--forest); color: #fff; cursor: default;
    box-shadow: var(--shadow-sm);
}
/* Ellipsis — no box, just muted glyph. */
.page-numbers.dots {
    background: none; border-color: transparent; color: var(--faint);
    min-width: auto; padding: 0 .25rem; cursor: default;
}
/* Prev / next arrows — Woo uses →/←, core uses "Previous/Next" text; both fit. */
.page-numbers.prev, .page-numbers.next { font-weight: 700; }

/* ── Single product ── */
.single-product div.product { display: grid; gap: var(--sp-12); grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; }
@media (max-width: 760px) { .single-product div.product { grid-template-columns: 1fr; } }
.single-product .product_title { font-size: var(--fs-800); margin: 0 0 var(--sp-3); }
.product-gallery__main { margin: 0; }
.product-gallery__img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.product-gallery__thumbs { list-style: none; display: flex; gap: var(--sp-2); padding: 0; margin: var(--sp-3) 0 0; flex-wrap: wrap; }
.product-gallery__thumb { padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); background: none; cursor: pointer; width: 72px; overflow: hidden; }
.product-gallery__thumb.is-active { border-color: var(--forest); }
.single-product div.product .price { font-size: var(--fs-700); color: var(--ink); font-variant-numeric: tabular-nums; }
.single-product div.product .price ins { text-decoration: none; color: var(--terracotta); }
.woocommerce-tabs { grid-column: 1 / -1; margin-top: var(--sp-8); }
.woocommerce-tabs ul.tabs { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-6); padding: 0; margin: 0 0 var(--sp-4); border-bottom: 1px solid var(--line); }
.woocommerce-tabs ul.tabs li.active a { color: var(--forest); border-bottom: 2px solid var(--forest); }
.quantity input.qty { width: 4rem; padding: .5rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }

/* ── Vertical hub curated product grid ([aqp_hub_products]) ── */
.hub-products { margin: var(--sp-12) 0; }
.hub-products__title { font-size: var(--fs-600); margin-bottom: var(--sp-6); }

/* ── Category SEO / buying-guide prose (after the grid) ── */
.cat-seo { margin: var(--sp-16) 0 0; max-width: var(--measure); color: var(--muted); }
.cat-seo h2 { font-size: var(--fs-600); color: var(--ink); }
.cat-seo h3 { font-size: var(--fs-500); color: var(--ink); margin-top: var(--sp-6); }
.cat-seo p { margin: var(--sp-3) 0; }
.cat-seo a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 2px; }
.cat-seo ul { margin: var(--sp-3) 0; padding-left: 1.2em; }

/* ── Category FAQ ── */
.cat-faq { margin: var(--sp-16) 0; max-width: var(--measure); }
.cat-faq__title { font-size: var(--fs-600); }
.cat-faq__item { border-bottom: 1px solid var(--line); padding: var(--sp-3) 0; }
.cat-faq__q { font-family: var(--font-h); font-weight: 600; cursor: pointer; list-style: none; }
.cat-faq__q::-webkit-details-marker { display: none; }
.cat-faq__q::before { content: "+"; color: var(--terracotta); font-weight: 700; margin-right: .5rem; }
details[open] .cat-faq__q::before { content: "\2013"; }
.cat-faq__a { padding-top: var(--sp-2); color: var(--muted); }

/* ── Pillar ── */
.pillar { max-width: var(--measure); margin-inline: auto; }
.pillar__header { margin-bottom: var(--sp-6); }
.entry__title { font-size: var(--fs-800); margin: 0 0 var(--sp-2); }
.pillar__meta { color: var(--faint); font-size: var(--fs-300); margin: 0; }
.entry__content { font-size: var(--fs-500); }
.entry__content h2 { font-size: var(--fs-700); margin-top: var(--sp-8); }
.entry__content h3 { font-size: var(--fs-600); margin-top: var(--sp-6); }
.pillar__products { margin-top: var(--sp-12); border-top: 2px solid var(--line); padding-top: var(--sp-6); }
.pillar__products h2 { font-size: var(--fs-600); }

/* ── Editorial cards (home) ── */
.editorial-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.editorial-card__link { display: block; padding: var(--sp-6); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--card); transition: box-shadow .15s, transform .15s; }
.editorial-card__link:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.editorial-card__title { font-size: 1.2rem; margin: 0 0 var(--sp-2); }
.editorial-card__excerpt { color: var(--muted); margin: 0 0 var(--sp-2); }
.editorial-card__more { color: var(--forest); font-weight: 600; }

/* ── Breadcrumb ── */
.woocommerce-breadcrumb { color: var(--faint); font-size: var(--fs-300); margin-bottom: var(--sp-4); }
.woocommerce-breadcrumb a { color: var(--muted); }

/* ── Footer ── */
.site-footer { margin-top: var(--sp-16); background: var(--forest); color: #cfe6d9; }
.site-footer > * { max-width: var(--wide); margin-inline: auto; padding-inline: var(--space); }
.site-footer a { color: #cfe6d9; text-decoration: none; transition: color .15s var(--ease); }
.site-footer a:hover { color: #fff; }

/* Bandeau haut : marque (newsletter retirée — E5) */
.site-footer__top { padding-top: var(--sp-16); padding-bottom: var(--sp-12); border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer__logo { font-family: var(--font-h); font-weight: 600; font-size: 1.6rem; letter-spacing: -.02em; color: #fff; }
.site-footer__tagline { margin: .7rem 0 1rem; color: #b7d6c6; font-size: .96rem; }
.site-footer__social { list-style: none; display: flex; gap: .6rem; margin: 0; padding: 0; }
.site-footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.site-footer__social a:hover { background: rgba(255,255,255,.16); }

/* Colonnes catalogue + aide */
.site-footer__cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-8) var(--sp-6); padding-top: var(--sp-12); padding-bottom: var(--sp-8); }
.site-footer__col-title { font-family: var(--font-h); font-size: 1rem; font-weight: 600; color: #fff; margin: 0 0 .8rem; }
.site-footer__col-title a { color: #fff; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer__col a { font-size: .92rem; color: #b7d6c6; }

/* Barre légale + copyright */
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; padding-top: var(--sp-6); padding-bottom: var(--sp-8); border-top: 1px solid rgba(255,255,255,.12); }
.site-footer__copy { color: #9ec4b2; font-size: var(--fs-300); margin: 0; }
.site-footer__legal { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 0; padding: 0; }
.site-footer__legal a { color: #9ec4b2; font-size: var(--fs-300); }

@media (max-width: 900px) {
    .site-footer__top { grid-template-columns: 1fr; gap: var(--sp-8); }
    .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .site-footer__cols { grid-template-columns: 1fr; }
}

/* ── Answer-first content patterns (AEO — docs/ia-search-optimization.md) ──
   Usable in editor content: a TL;DR/answer callout and clean spec/comparison
   tables that AI answer engines extract well. */
.entry__content .answer, .answer {
    background: var(--c-leaf-050, #ecf6ef); border-left: 4px solid var(--leaf);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: var(--sp-4) var(--sp-6);
    margin: var(--sp-6) 0; font-size: 1.05rem;
}
.answer > :first-child { margin-top: 0; }
.answer > :last-child { margin-bottom: 0; }
.answer__label { display: block; font-family: var(--font-h); font-weight: 600; color: var(--forest); margin-bottom: .25rem; }

.entry__content table, .spec-table, .comparison table {
    width: 100%; border-collapse: collapse; margin: var(--sp-6) 0; font-size: .98rem;
    font-variant-numeric: tabular-nums; background: var(--card);
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.entry__content th, .spec-table th, .comparison th {
    text-align: left; background: var(--c-water-050, #eef5f1); font-family: var(--font-h);
    font-weight: 600; padding: .7rem var(--sp-4); border-bottom: 1px solid var(--line);
}
.entry__content td, .spec-table td, .comparison td { padding: .7rem var(--sp-4); border-bottom: 1px solid var(--line); }
.entry__content tr:last-child td { border-bottom: 0; }

/* ── Why / USP strip (E2 — positioning, 3 moat pillars) ── */
.home-why { max-width: var(--wide); margin-inline: auto; padding: var(--sp-16) var(--space) 0; }
.home-why__head { text-align: center; max-width: 54ch; margin: 0 auto var(--sp-12); }
.home-why__head h2 { font-size: var(--fs-800); margin: .3rem 0 0; }
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.why { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-8) var(--sp-6); }
.why__ico { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: var(--forest-tint); color: var(--forest); margin-bottom: var(--sp-4); }
.why__ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.why h3 { font-size: 1.25rem; margin: 0 0 .4rem; }
.why p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 820px) { .why-grid { grid-template-columns: 1fr; } }

/* ── After-market band (E3 — components & consumables, our real CA) ── */
.home-aftermarket { margin-top: var(--sp-16); }
.home-aftermarket__inner { max-width: var(--wide); margin-inline: auto; padding: var(--sp-16) var(--space); text-align: center; }
.home-aftermarket h2 { font-size: var(--fs-700); color: #fff; margin: .4rem 0 .7rem; }
.home-aftermarket p { font-size: 1.12rem; opacity: .95; margin: 0 auto 1.6rem; max-width: 60ch; }
.home-aftermarket__ctas { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.home-aftermarket .btn--ghost { margin-left: 0; }

/* ── Featured article "à la une" (E7 — sticky-driven) ── */
.home-feature { max-width: var(--wide); margin-inline: auto; padding: var(--sp-16) var(--space) 0; }
.home-feature__card { display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.home-feature__media { display: block; overflow: hidden; min-height: 100%; }
.home-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.home-feature__card:hover .home-feature__media img { transform: scale(1.04); }
.home-feature__media--ph { background-color: var(--forest-deep); background-image: url('../images/da/leaf-texture.webp'); background-size: cover; background-position: center; min-height: 320px; }
.home-feature__body { padding: var(--sp-12); align-self: center; }
.home-feature__body h2 { font-size: var(--fs-700); margin: .3rem 0 .6rem; }
.home-feature__body h2 a { color: var(--ink); text-decoration: none; }
.home-feature__body h2 a:hover { color: var(--forest); }
.home-feature__body > p { color: var(--muted); font-size: 1.05rem; margin: 0 0 1.4rem; }
@media (max-width: 820px) {
    .home-feature__card { grid-template-columns: 1fr; }
    .home-feature__media { aspect-ratio: 16/9; min-height: 0; }
    .home-feature__body { padding: var(--sp-8); }
}

/* ── Home FAQ (S3 — answer-first, FAQPage schema) ── */
.home-faq { max-width: var(--measure); margin-inline: auto; padding: var(--sp-16) var(--space) 0; }
.home-faq h2 { font-size: var(--fs-700); margin: 0 0 var(--sp-6); }
.home-faq__item { border-bottom: 1px solid var(--line); padding: var(--sp-4) 0; }
.home-faq__q { font-family: var(--font-h); font-weight: 600; font-size: 1.1rem; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.home-faq__q::-webkit-details-marker { display: none; }
.home-faq__q::after { content: "+"; color: var(--terracotta); font-weight: 700; font-size: 1.3rem; line-height: 1; flex: none; }
.home-faq__item[open] .home-faq__q::after { content: "\2013"; }
.home-faq__a { padding-top: var(--sp-3); color: var(--muted); }
.home-faq__a p { margin: 0; }

/* ── Home SEO intro / chapô (S2 — answer-first prose, transactional head) ── */
.home-intro { max-width: var(--measure); margin-inline: auto; padding: var(--sp-16) var(--space); }
.home-intro h2 { font-size: var(--fs-600); margin: 0 0 var(--sp-4); }
.home-intro p { color: var(--muted); font-size: var(--fs-500); margin: 0; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    ul.products li.product:hover, .product-card:hover, .cat:hover img, .editorial-card__link:hover { transform: none; }
    ul.products li.product:hover img { transform: none; }
}
