/* =====================================================================
   ZIID — boutique
   Charte : vert du logo, terracotta, papier crème. Motif signature :
   le « grain » (carré arrondi des deux i du logo).
   ===================================================================== */

:root {
    --paper: #F5EEE4;
    --paper-2: #EFE4D6;
    --sand: #E6D6C2;
    --ink: #1C3A22;
    --ink-2: #3C5443;
    --muted: #6B7A6E;
    --clay: #C76B44;
    --clay-dark: #A65430;
    --cover-red: #DD4A3E;
    --olive: #6D6D25;
    --line: rgba(28, 58, 34, .14);
    --line-strong: rgba(28, 58, 34, .28);
    --white: #FFFDF9;

    --font-display: "Arya", "Montserrat", sans-serif;
    --font-body: "Montserrat", system-ui, sans-serif;
    --font-accent: "Sansita", "Montserrat", sans-serif;

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 22px;

    --container: 1240px;
    --header-h: 76px;
}

/* ------------------------------ Base ------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: clip;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--clay-dark); }

:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection { background: var(--clay); color: var(--white); }

.container { max-width: var(--container); }

h1, h2, h3, h4, .display {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; }

p { max-width: 68ch; }

.lead-text { font-size: 1.12rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.text-clay { color: var(--clay) !important; }
.serif-accent { font-family: var(--font-accent); }

.skip-link {
    position: absolute; left: -9999px; top: 8px; z-index: 2000;
    background: var(--ink); color: var(--white); padding: .5rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; color: var(--white); }

/* --------------------------- Grain motif --------------------------- */

.grain {
    display: inline-block;
    width: .62em; height: .62em;
    border-radius: 28%;
    background: currentColor;
    flex: none;
}

.grain-quad {
    display: inline-grid;
    grid-template-columns: repeat(2, .5em);
    gap: .14em;
    vertical-align: middle;
}
.grain-quad span { width: .5em; height: .5em; border-radius: 28%; background: currentColor; }
.grain-quad span:nth-child(4) { opacity: .35; }

/* ------------------------------ Buttons ---------------------------- */

.btn-z {
    --bg: var(--clay);
    --fg: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .9rem 1.6rem;
    border: 1.5px solid var(--bg);
    border-radius: 999px;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .98rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn-z:hover { background: var(--clay-dark); border-color: var(--clay-dark); color: var(--fg); }
.btn-z:active { transform: translateY(1px); }
.btn-z[disabled] { opacity: .45; cursor: not-allowed; }

.btn-z.is-dark { --bg: var(--ink); }
.btn-z.is-dark:hover { background: #10261A; border-color: #10261A; }

.btn-z.is-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-z.is-outline:hover { border-color: var(--ink); color: var(--ink); background: rgba(28, 58, 34, .04); }

.btn-z.is-light { --bg: var(--paper); --fg: var(--ink); }
.btn-z.is-light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

.btn-z.is-block { width: 100%; }
.btn-z.is-sm { padding: .55rem 1.1rem; font-size: .88rem; }

.link-arrow {
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1.5px solid currentColor;
    padding-bottom: 1px;
}

/* ------------------------------ Top bar ---------------------------- */

.topbar {
    background: var(--ink);
    color: var(--paper);
    font-size: .84rem;
    font-weight: 500;
}
.topbar .container {
    display: flex; align-items: center; justify-content: center; gap: 2rem;
    min-height: 38px;
}
.topbar .topbar-item { display: inline-flex; align-items: center; gap: .5rem; }
.topbar .grain { color: var(--clay); width: .5em; height: .5em; }
.topbar a { color: var(--paper); }

@media (max-width: 767.98px) {
    .topbar .topbar-item:not(:first-child) { display: none; }
}

/* ------------------------------ Header ----------------------------- */

.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(245, 238, 228, .92);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .container {
    display: flex; align-items: center; gap: 1.5rem;
    height: var(--header-h);
}
.site-header .brand img { height: 34px; width: auto; }

.main-nav { display: flex; gap: .35rem; margin: 0 auto; padding: 0; list-style: none; }
.main-nav a {
    display: block;
    padding: .5rem .85rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: .95rem;
    text-decoration: none;
    color: var(--ink);
}
.main-nav a:hover { background: rgba(28, 58, 34, .06); color: var(--ink); }
.main-nav a.active { background: var(--ink); color: var(--paper); }

.header-actions { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.icon-btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 999px;
    border: 0; background: transparent;
    color: var(--ink); font-size: 1.1rem;
    text-decoration: none;
}
.icon-btn:hover { background: rgba(28, 58, 34, .07); color: var(--ink); }
.cart-count {
    position: absolute; top: 3px; right: 1px;
    min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: 999px;
    background: var(--clay); color: var(--white);
    font-size: .7rem; font-weight: 700; line-height: 19px; text-align: center;
}

.header-search {
    display: none;
    border-top: 1px solid var(--line);
    background: var(--paper);
}
.header-search.open { display: block; }
.header-search form { display: flex; gap: .75rem; padding: 1rem 0; }
.header-search input { flex: 1; }

.nav-toggle { display: none; }

@media (max-width: 991.98px) {
    .main-nav { display: none; }
    .nav-toggle { display: inline-flex; }
    .site-header .brand img { height: 28px; }
    :root { --header-h: 64px; }
}

.offcanvas.mobile-nav { background: var(--paper); max-width: 86vw; }
.mobile-nav .offcanvas-body ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav .offcanvas-body li a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 700;
    text-decoration: none;
}
.mobile-nav .mobile-nav-foot { font-size: .9rem; color: var(--muted); }

/* ------------------------------ Sections --------------------------- */

.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section.is-tight { padding: clamp(2.5rem, 4vw, 3.5rem) 0; }
.section.is-sand { background: var(--paper-2); }
.section.is-ink { background: var(--ink); color: var(--paper); }
.section.is-ink h2, .section.is-ink h3 { color: var(--paper); }
.section.is-ink p { color: rgba(245, 238, 228, .8); }

.section-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
    margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}
.section-head h2 { margin: 0; max-width: 18ch; }
.section-head p { margin: .75rem 0 0; color: var(--ink-2); }

/* ------------------------------ Page head -------------------------- */

.page-head {
    padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
    border-bottom: 1px solid var(--line);
}
.page-head h1 { margin: .4rem 0 .6rem; }
.page-head p { color: var(--ink-2); font-size: 1.08rem; margin: 0; }

.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; list-style: none; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ------------------------------ Hero ------------------------------- */

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    min-height: min(760px, calc(100vh - var(--header-h) - 38px));
    overflow: hidden;
}
.hero-copy {
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(2.5rem, 5vw, 5rem) clamp(1.25rem, 5vw, 4.5rem);
    padding-left: max(1.25rem, calc((100vw - var(--container)) / 2 + 12px));
}
.hero-author {
    display: inline-flex; align-items: center; gap: .6rem;
    font-weight: 600; font-size: .95rem; color: var(--ink-2);
    margin-bottom: 1.25rem;
}
.hero-author .grain-quad { color: var(--clay); font-size: 1rem; }
.hero h1 {
    font-size: clamp(3rem, 7.4vw, 6.4rem);
    line-height: .92;
    letter-spacing: -.025em;
    margin: 0 0 1.4rem;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .line > span { display: inline-block; }
.hero-media { overflow: hidden; }
.hero-cover-float { position: absolute; inset: -8% 0 0 0; background: inherit; background-size: cover; background-position: center; }
.hero-tag {
    display: inline-block;
    align-self: flex-start;
    background: var(--cover-red);
    color: var(--white);
    padding: .5rem 1rem .55rem;
    font-weight: 500;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.3;
    margin-bottom: 1.6rem;
}
.hero-lead { font-size: 1.1rem; color: var(--ink-2); max-width: 46ch; margin-bottom: 2rem; }
.hero-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; }
.hero-price { font-family: var(--font-accent); font-size: 2.2rem; line-height: 1; }
.hero-price small { font-family: var(--font-body); font-size: .85rem; color: var(--muted); margin-left: .35rem; }
.hero-assure { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.75rem; padding: 0; list-style: none; font-size: .9rem; color: var(--ink-2); }
.hero-assure li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-assure i { color: var(--clay); }

.hero-media {
    position: relative;
    background: #1d1d1d center / cover no-repeat;
    min-height: 420px;
}
.hero-media::after {
    content: "";
    position: absolute; inset: auto 0 0 0; height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, .35), transparent);
}
.hero-media .hero-stamp {
    position: absolute; left: clamp(1rem, 3vw, 2.5rem); bottom: clamp(1rem, 3vw, 2.5rem); z-index: 1;
    color: var(--paper);
    font-size: .88rem; font-weight: 500;
    letter-spacing: .04em;
}

@media (max-width: 991.98px) {
    .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .hero-media { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
    .hero-copy { padding: 2.25rem 1.25rem 3rem; }
}

/* --------------------------- Reassurance --------------------------- */

.assurances {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.assurance {
    display: flex; gap: .9rem; align-items: flex-start;
    padding: 1.6rem 1.25rem;
}
.assurance + .assurance { border-left: 1px solid var(--line); }
.assurance i { font-size: 1.35rem; color: var(--clay); margin-top: .15rem; width: 1.6rem; text-align: center; }
.assurance strong { display: block; font-size: .96rem; }
.assurance span { font-size: .87rem; color: var(--muted); }

@media (max-width: 991.98px) {
    .assurances { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .assurance:nth-child(3) { border-left: 0; }
    .assurance:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 575.98px) {
    .assurance { padding: 1.1rem .75rem; gap: .6rem; }
    .assurance i { font-size: 1.1rem; width: 1.2rem; }
}

/* ---------------------------- Highlights --------------------------- */

.learn-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 5vw, 5rem);
    padding: 0; margin: 0; list-style: none;
}
.learn-grid li {
    display: grid; grid-template-columns: auto 1fr; gap: 1rem;
    padding: 1.4rem 0;
    border-top: 1px solid var(--line);
}
.learn-grid .grain { color: var(--clay); margin-top: .45rem; font-size: 1rem; }
.learn-grid h3 { font-size: 1.3rem; margin: 0 0 .35rem; }
.learn-grid p { margin: 0; color: var(--ink-2); font-size: .98rem; }

@media (max-width: 767.98px) {
    .learn-grid { grid-template-columns: 1fr; }
}

/* ------------------------------ Author ----------------------------- */

.author-block {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}
.author-photo { position: relative; }
.author-photo img { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.author-photo .grain-quad {
    position: absolute; right: -14px; bottom: 28px;
    font-size: 2.4rem; color: var(--clay);
}
.author-block h2 { margin-bottom: .3rem; }
.author-role { font-family: var(--font-accent); font-size: 1.25rem; color: var(--olive); margin-bottom: 1.5rem; }
.author-stat {
    display: flex; align-items: baseline; gap: 1rem;
    margin: 2rem 0;
    padding: 1.25rem 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.author-stat b { font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; color: var(--clay); }
.author-stat span { color: var(--ink-2); max-width: 32ch; }

@media (max-width: 767.98px) {
    .author-block { grid-template-columns: minmax(0, 1fr); }
    .author-photo { max-width: 420px; }
    .author-photo .grain-quad { right: 12px; bottom: 12px; }
}

/* ------------------------------ Quote band ------------------------- */

.quote-band {
    position: relative;
    min-height: 520px;
    display: flex; align-items: flex-end;
    background: var(--sand) center / cover no-repeat;
}
.quote-band blockquote {
    position: relative;
    margin: 0 0 clamp(1.5rem, 4vw, 3rem);
    max-width: 560px;
    background: var(--paper);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: var(--radius);
}
.quote-band blockquote p { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2; margin: 0 0 .9rem; font-weight: 700; }
.quote-band cite { font-style: normal; color: var(--muted); font-size: .92rem; }

/* --------------------------- Product cards ------------------------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2.25rem 1.5rem;
}
.p-card { position: relative; display: flex; flex-direction: column; }
.p-card-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    background: var(--paper-2);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1rem;
}
.p-card-media img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 8%;
    transition: transform .5s ease;
}
.p-card:hover .p-card-media img { transform: scale(1.035); }
.p-badges { position: absolute; top: .8rem; left: .8rem; display: flex; gap: .4rem; z-index: 1; }
.p-badge {
    display: inline-block;
    padding: .25rem .6rem;
    border-radius: var(--radius-sm);
    background: var(--ink); color: var(--paper);
    font-size: .74rem; font-weight: 600;
}
.p-badge.is-sale { background: var(--cover-red); }
.p-badge.is-out { background: var(--muted); }
.p-card-cat { font-size: .82rem; color: var(--muted); margin-bottom: .2rem; }
.p-card h3 { font-size: 1.28rem; margin: 0 0 .25rem; }
.p-card h3 a { text-decoration: none; }
.p-card h3 a::after { content: ""; position: absolute; inset: 0; } /* carte entièrement cliquable */
.p-card-sub { font-size: .9rem; color: var(--ink-2); margin-bottom: .75rem; }
.p-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; }
.p-card-foot form { position: relative; z-index: 1; }

.price { font-family: var(--font-accent); font-size: 1.35rem; line-height: 1; white-space: nowrap; }
.price del { font-family: var(--font-body); font-size: .85rem; color: var(--muted); margin-left: .4rem; }
.price.is-sale { color: var(--cover-red); }

.add-mini {
    width: 44px; height: 44px; border-radius: 999px;
    border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center;
}
.add-mini:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.stars { color: var(--clay); font-size: .85rem; letter-spacing: 1px; }
.stars .off { color: var(--line-strong); }

/* ------------------------------ Shop ------------------------------- */

.shop-bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 2.25rem;
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem 1rem;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    font-size: .9rem; font-weight: 500;
    text-decoration: none;
}
.chip small { color: var(--muted); font-weight: 500; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.active small { color: rgba(245, 238, 228, .7); }

.shop-tools { display: flex; gap: .75rem; align-items: center; }
.shop-tools .form-control, .shop-tools .form-select { min-width: 0; }

.empty-state {
    text-align: center;
    padding: clamp(3rem, 7vw, 5rem) 1rem;
    max-width: 520px; margin: 0 auto;
}
.empty-state .grain-quad { font-size: 2.2rem; color: var(--clay); margin-bottom: 1.25rem; }
.empty-state h2 { font-size: 1.8rem; }
.empty-state p { color: var(--ink-2); margin: .75rem auto 1.75rem; }

/* ---------------------------- Product page ------------------------- */

.product-layout {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}
.gallery { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.gallery-main {
    background: var(--paper-2);
    border-radius: var(--radius-lg);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main img.is-photo { object-fit: cover; }
.gallery-thumbs { display: flex; gap: .75rem; margin-top: .9rem; }
.gallery-thumbs button {
    width: 84px; height: 84px; padding: 0;
    border: 2px solid transparent; border-radius: var(--radius);
    background: var(--paper-2); overflow: hidden;
}
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--ink); }

.buy-box .p-cat { font-size: .9rem; color: var(--muted); text-decoration: none; }
.buy-box h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: .4rem 0 .5rem; }
.buy-box .p-sub { font-size: 1.1rem; color: var(--ink-2); margin-bottom: .4rem; }
.buy-box .p-author { font-family: var(--font-accent); color: var(--olive); font-size: 1.1rem; }
.buy-box .rating-line { display: flex; align-items: center; gap: .6rem; font-size: .9rem; margin-top: .6rem; }
.buy-box .rating-line a { color: var(--muted); }
.buy-price {
    display: flex; align-items: baseline; gap: .75rem;
    margin: 1.6rem 0 1.25rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.buy-price .price { font-size: 2.4rem; }
.buy-price .ttc { color: var(--muted); font-size: .88rem; }
.buy-price .save { background: var(--cover-red); color: var(--white); border-radius: var(--radius-sm); padding: .15rem .5rem; font-size: .8rem; font-weight: 600; }

.stock-line { display: flex; align-items: center; gap: .5rem; font-size: .92rem; font-weight: 500; margin-bottom: 1.25rem; }
.stock-line .dot { width: 9px; height: 9px; border-radius: 3px; background: #3B8C4F; }
.stock-line.is-low .dot { background: var(--clay); }
.stock-line.is-out .dot { background: var(--cover-red); }

.buy-row { display: flex; gap: .75rem; margin-bottom: .75rem; }
.qty {
    display: inline-flex; align-items: center;
    border: 1.5px solid var(--line-strong); border-radius: 999px;
    height: 52px;
    flex: none;
}
.qty button {
    width: 44px; height: 100%; border: 0; background: transparent;
    font-size: 1.1rem; color: var(--ink); border-radius: 999px;
}
.qty button:hover { background: rgba(28, 58, 34, .06); }
.qty input {
    width: 40px; border: 0; background: transparent; text-align: center;
    font-weight: 600; font-size: 1rem; color: var(--ink);
    -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.is-sm { height: 42px; }
.qty.is-sm button { width: 36px; }
.qty.is-sm input { width: 32px; }
.buy-row .btn-z { flex: 1; }

.perks { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: .8rem; font-size: .93rem; }
.perks li { display: flex; gap: .8rem; align-items: flex-start; }
.perks i { color: var(--clay); width: 1.25rem; text-align: center; margin-top: .25rem; }

.p-tabs { border-top: 1px solid var(--line); margin-top: 2.25rem; }
.p-tabs details { border-bottom: 1px solid var(--line); }
.p-tabs summary {
    list-style: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.15rem 0;
    font-weight: 600; font-size: 1.02rem;
}
.p-tabs summary::-webkit-details-marker { display: none; }
.p-tabs summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; line-height: 1; transition: transform .2s ease; }
.p-tabs details[open] summary::after { transform: rotate(45deg); }
.p-tabs .tab-body { padding: 0 0 1.4rem; color: var(--ink-2); font-size: .97rem; }
.p-tabs .tab-body p { margin-bottom: .9rem; }
.spec-table { width: 100%; font-size: .94rem; }
.spec-table th { width: 38%; font-weight: 600; color: var(--ink); padding: .55rem 1rem .55rem 0; vertical-align: top; }
.spec-table td { padding: .55rem 0; }
.spec-table tr + tr { border-top: 1px dashed var(--line); }

.sticky-buy {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020;
    display: none;
    align-items: center; gap: 1rem;
    padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(28, 58, 34, .08);
    transform: translateY(110%);
    transition: transform .25s ease;
}
.sticky-buy.show { transform: none; }
.sticky-buy .sb-title { font-weight: 600; font-size: .9rem; line-height: 1.2; }
.sticky-buy .btn-z { margin-left: auto; padding: .75rem 1.25rem; }

@media (max-width: 991.98px) {
    .product-layout { grid-template-columns: minmax(0, 1fr); }
    .gallery { position: static; }
    .sticky-buy { display: flex; }
    body.has-sticky-buy { padding-bottom: 76px; }
}

/* ------------------------------ Reviews ---------------------------- */

.reviews-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 4.5rem); }
.review-summary .big { font-family: var(--font-display); font-size: 4rem; line-height: 1; font-weight: 700; }
.review { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.review:first-child { border-top: 0; padding-top: 0; }
.review-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; }
.review h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin: .25rem 0; }
.review p { color: var(--ink-2); margin: 0; font-size: .96rem; }
.review .meta { font-size: .84rem; color: var(--muted); }

.rating-input { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.rating-input label { font-size: 1.6rem; color: var(--line-strong); cursor: pointer; line-height: 1; padding: .1rem; }
.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label { color: var(--clay); }
.rating-input input:focus-visible + label { outline: 2px solid var(--clay); border-radius: 4px; }

@media (max-width: 767.98px) {
    .reviews-layout { grid-template-columns: 1fr; }
}

/* ------------------------------ Forms ------------------------------ */

.form-label { font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--ink); }
.form-control, .form-select {
    background-color: var(--white);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: .78rem .95rem;
    font-size: 1rem;
    color: var(--ink);
}
.form-control:focus, .form-select:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(199, 107, 68, .22);
    background-color: var(--white);
}
.form-control::placeholder { color: #9AA59C; }
.form-text { color: var(--muted); font-size: .84rem; }
.invalid-feedback { font-size: .85rem; }
.form-check-input:checked { background-color: var(--ink); border-color: var(--ink); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(199, 107, 68, .22); border-color: var(--ink); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 2.25rem);
}
.panel.is-sand { background: var(--paper-2); border-color: transparent; }
.panel h2, .panel h3 { margin-top: 0; }

.notice {
    display: flex; gap: .8rem; align-items: flex-start;
    padding: 1rem 1.15rem;
    border-radius: var(--radius);
    background: #E3EDE2; color: var(--ink);
    font-size: .95rem;
    margin-bottom: 1.5rem;
}
.notice i { margin-top: .2rem; }
.notice.is-error { background: #F7DFD9; color: #7A2318; }
.notice.is-info { background: var(--paper-2); }

/* ------------------------------ Cart ------------------------------- */

.checkout-steps { display: flex; gap: .5rem; padding: 0; margin: 0 0 2rem; list-style: none; font-size: .9rem; color: var(--muted); counter-reset: step; flex-wrap: wrap; }
.checkout-steps li { display: inline-flex; align-items: center; gap: .5rem; }
.checkout-steps li::before {
    counter-increment: step; content: counter(step);
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 8px;
    border: 1.5px solid var(--line-strong);
    font-size: .8rem; font-weight: 700;
}
.checkout-steps li + li::after { content: none; }
.checkout-steps li:not(:last-child)::after { content: ""; width: 28px; height: 1.5px; background: var(--line-strong); margin-left: .35rem; }
.checkout-steps li.done, .checkout-steps li.current { color: var(--ink); font-weight: 600; }
.checkout-steps li.done::before { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.checkout-steps li.current::before { background: var(--clay); border-color: var(--clay); color: var(--white); }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.cart-line {
    display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 1.25rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
}
.cart-line:first-child { border-top: 1px solid var(--line); }
.cart-line .thumb { width: 96px; height: 116px; background: var(--paper-2); border-radius: var(--radius); overflow: hidden; }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.cart-line h3 { font-size: 1.2rem; margin: 0 0 .2rem; }
.cart-line h3 a { text-decoration: none; }
.cart-line .unit { font-size: .88rem; color: var(--muted); }
.cart-line .controls { display: flex; align-items: center; gap: 1rem; margin-top: .75rem; }
.cart-line .line-total { font-family: var(--font-accent); font-size: 1.25rem; text-align: right; white-space: nowrap; }
.remove-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: .86rem; text-decoration: underline; text-underline-offset: 3px; }
.remove-btn:hover { color: var(--cover-red); }

.summary { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.summary h2 { font-size: 1.6rem; margin-bottom: 1.25rem; }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-size: .97rem; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: .6rem; padding-top: 1rem; font-weight: 700; font-size: 1.1rem; }
.sum-row.total { align-items: center; }
.sum-row.total > span:last-child { font-family: var(--font-accent); font-size: 1.6rem; font-weight: 400; white-space: nowrap; }

.mini-lines { list-style: none; padding: 0; margin: 0 0 1rem; }
.mini-lines li { display: grid; grid-template-columns: 56px 1fr auto; gap: .9rem; align-items: center; padding: .6rem 0; }
.mini-lines .thumb { position: relative; width: 56px; height: 66px; background: var(--paper-2); border-radius: var(--radius-sm); }
.mini-lines .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.mini-lines .thumb b {
    position: absolute; top: -7px; right: -7px;
    min-width: 21px; height: 21px; border-radius: 999px; padding: 0 5px;
    background: var(--ink); color: var(--paper); font-size: .72rem; line-height: 21px; text-align: center;
}
.mini-lines .t { font-size: .92rem; font-weight: 600; line-height: 1.3; }

.pay-method {
    display: flex; gap: 1rem; align-items: center;
    padding: 1rem 1.15rem;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: var(--paper);
}
.pay-method i { font-size: 1.4rem; color: var(--clay); }
.pay-method strong { display: block; }
.pay-method span { font-size: .88rem; color: var(--muted); }

@media (max-width: 991.98px) {
    .cart-layout { grid-template-columns: minmax(0, 1fr); }
    .summary { position: static; }
}
@media (max-width: 575.98px) {
    .cart-line { grid-template-columns: 76px minmax(0, 1fr); }
    .cart-line .thumb { width: 76px; height: 92px; }
    .cart-line .line-total { grid-column: 2; text-align: left; }
}

/* ---------------------------- Tracking ----------------------------- */

.timeline { list-style: none; padding: 0; margin: 1.5rem 0 0; position: relative; }
.timeline li { position: relative; padding: 0 0 1.75rem 2.6rem; color: var(--muted); }
.timeline li::before {
    content: ""; position: absolute; left: 0; top: .1rem;
    width: 22px; height: 22px; border-radius: 7px;
    border: 2px solid var(--line-strong); background: var(--paper);
}
.timeline li::after {
    content: ""; position: absolute; left: 10px; top: 1.6rem; bottom: .2rem;
    width: 2px; background: var(--line);
}
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--ink); border-color: var(--ink); }
.timeline li.done::after { background: var(--ink); }
.timeline li.current::before { background: var(--clay); border-color: var(--clay); box-shadow: 0 0 0 5px rgba(199, 107, 68, .2); }
.timeline li strong { display: block; font-size: 1.02rem; }
.timeline li small { font-size: .85rem; color: var(--muted); }
.timeline li.is-exit::before { background: var(--cover-red); border-color: var(--cover-red); }

/* ------------------------------ Prose ------------------------------ */

.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin: 2.5rem 0 .75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--clay); }

.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); }
.legal-nav { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; list-style: none; padding: 0; margin: 0; }
.legal-nav a { display: block; padding: .45rem 0; text-decoration: none; color: var(--muted); font-size: .94rem; }
.legal-nav a:hover, .legal-nav a.active { color: var(--ink); }
.legal-nav a.active { font-weight: 600; }
@media (max-width: 767.98px) {
    .legal-layout { grid-template-columns: minmax(0, 1fr); }
    .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
}

/* ------------------------------- FAQ ------------------------------- */

.faq-group + .faq-group { margin-top: 3rem; }
.faq-group h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
    list-style: none; cursor: pointer;
    display: flex; justify-content: space-between; gap: 1.5rem; align-items: center;
    padding: 1.2rem 0;
    font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; flex: none;
    width: 12px; height: 12px;
    border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
    transform: rotate(45deg) translateY(-3px);
    transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq .answer { padding: 0 0 1.4rem; color: var(--ink-2); }
.faq .answer p { margin-bottom: .6rem; }

/* ------------------------------ Contact ---------------------------- */

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list i { color: var(--clay); width: 1.4rem; text-align: center; margin-top: .3rem; font-size: 1.05rem; }
.contact-list small { display: block; color: var(--muted); font-size: .84rem; }
.contact-list a { font-weight: 600; text-decoration: none; }

/* ----------------------------- Newsletter -------------------------- */

.newsletter {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center;
}
.newsletter h2 { margin: 0 0 .6rem; }
.newsletter-form { display: flex; gap: .6rem; }
.newsletter-form .form-control { border-radius: 999px; padding-left: 1.25rem; background: var(--paper); border-color: transparent; }
.newsletter-form .form-control:focus { border-color: var(--clay); }
.newsletter small { display: block; margin-top: .6rem; color: rgba(245, 238, 228, .65); }
@media (max-width: 767.98px) {
    .newsletter { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
}

/* ------------------------------- Footer ---------------------------- */

.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); font-size: .94rem; }
.site-footer .footer-main {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem;
    padding: 3.5rem 0 2.5rem;
}
.site-footer .footer-logo { height: 34px; width: auto; margin-bottom: 1rem; }
.site-footer p { color: var(--ink-2); max-width: 34ch; }
.site-footer h3 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; margin: 0 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer ul a { text-decoration: none; color: var(--ink-2); }
.site-footer ul a:hover { color: var(--ink); text-decoration: underline; }
.socials { display: flex; gap: .5rem; margin-top: 1.25rem; }
.socials a {
    width: 40px; height: 40px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--line-strong); text-decoration: none; font-size: 1.05rem;
}
.socials a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--line);
    font-size: .85rem; color: var(--muted);
}
.footer-bottom a { color: var(--muted); text-decoration: none; margin-left: 1.25rem; }
.footer-bottom a:first-child { margin-left: 0; }
.footer-bottom a:hover { color: var(--ink); }
@media (max-width: 991.98px) {
    .site-footer .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
    .site-footer .footer-main { grid-template-columns: 1fr; gap: 2rem; }
}

/* ------------------------------ WhatsApp --------------------------- */

.wa-float {
    position: fixed; right: 18px; bottom: 18px; z-index: 1025;
    width: 54px; height: 54px; border-radius: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #25D366; color: #fff; font-size: 1.6rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
    text-decoration: none;
}
.wa-float:hover { color: #fff; transform: translateY(-2px); }
body.has-sticky-buy .wa-float { bottom: 92px; }

/* ------------------------------ 404 -------------------------------- */

.error-page { text-align: center; padding: clamp(4rem, 10vw, 8rem) 1rem; }
.error-page .code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 10rem); font-weight: 700; line-height: .9; color: var(--clay); }

/* ---------------------------- Utilities ---------------------------- */

.pagination { --bs-pagination-color: var(--ink); --bs-pagination-active-bg: var(--ink); --bs-pagination-active-border-color: var(--ink); --bs-pagination-bg: transparent; --bs-pagination-border-color: var(--line-strong); --bs-pagination-hover-color: var(--ink); --bs-pagination-focus-box-shadow: 0 0 0 3px rgba(199, 107, 68, .22); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------- Ajustements mobile ------------------- */
@media (max-width: 575.98px) {
    .btn-z { padding: .85rem 1.15rem; }
    .buy-row .btn-z { white-space: nowrap; font-size: .92rem; gap: .45rem; min-width: 0; padding-inline: .9rem; }
    .buy-row .btn-z i { display: none; }
    .sticky-buy .sb-title { max-width: 45vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .checkout-steps { gap: .35rem; font-size: .84rem; }
    .checkout-steps li:not(:last-child)::after { width: 12px; }
    .shop-tools { width: 100%; }
    .shop-tools .form-control, .shop-tools .form-select { flex: 1 1 0; }
}

/* =====================================================================
   V2 — éditions FR/AR, panier latéral, lecteurs, animations
   ===================================================================== */

:root { --font-arabic: "Noto Naskh Arabic", "Arya", serif; }
[lang="ar"], .is-ar { font-family: var(--font-arabic); }
h1[lang="ar"], h2[lang="ar"], h3[lang="ar"] { font-weight: 700; letter-spacing: 0; }

/* ---------- Pastilles de langue ---------- */
.lang-pills { display: inline-flex; gap: .3rem; }
.lang-pill {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 30px; height: 22px; padding: 0 .45rem;
    border: 1.5px solid var(--line-strong); border-radius: 6px;
    font-size: .72rem; font-weight: 700; letter-spacing: .02em; color: var(--ink-2);
}
.p-card .lang-pills { position: absolute; right: .8rem; top: .8rem; z-index: 1; }
.p-card .lang-pill { background: var(--paper); }

.p-badge.is-soon { background: var(--olive); }

/* ---------- Sélecteur d'édition ---------- */
.edition-picker { border: 0; padding: 0; margin: 0 0 1.25rem; }
.edition-picker legend { font-size: .9rem; font-weight: 600; margin-bottom: .6rem; }
.edition-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.edition-option { position: relative; }
.edition-option input { position: absolute; opacity: 0; pointer-events: none; }
.edition-option label {
    display: flex; flex-direction: column; gap: .15rem;
    height: 100%;
    padding: .85rem 1rem;
    border: 1.5px solid var(--line-strong); border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.edition-option label:hover { border-color: var(--ink); }
.edition-option input:checked + label { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--paper); }
.edition-option input:focus-visible + label { outline: 2px solid var(--clay); outline-offset: 2px; }
.edition-option .e-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.edition-option .e-name { font-weight: 600; font-size: .95rem; }
.edition-option .e-native { font-family: var(--font-arabic); font-size: 1.05rem; color: var(--ink-2); }
.edition-option .e-price { font-family: var(--font-accent); font-size: 1.1rem; }
.edition-option .e-stock { font-size: .78rem; color: var(--muted); }
.edition-option input:disabled + label { opacity: .5; cursor: not-allowed; }

/* ---------- Bloc à paraître ---------- */
.soon-box { background: var(--paper-2); border-radius: var(--radius-lg); padding: 1.5rem; margin-top: 1.25rem; }
.soon-box h2 { font-size: 1.35rem; margin: 0 0 .4rem; }
.soon-form { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.soon-form input[type=email] { flex: 1 1 100%; }
.soon-form .form-select { flex: 1 1 auto; }
.soon-form .form-control { border-radius: 999px; }
@media (max-width: 575.98px) { .soon-form { flex-direction: column; } }

/* ---------- Collection de livres (accueil) ---------- */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem 1.5rem; }
.shelf-book { position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.shelf-cover {
    position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius);
    background: var(--paper-2); overflow: hidden; margin-bottom: 1rem;
    display: flex; align-items: center; justify-content: center;
}
.shelf-cover img { width: 100%; height: 100%; object-fit: contain; padding: 7%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.shelf-book:hover .shelf-cover img { transform: translateY(-6px) rotate(-1deg); }
.shelf-cover.is-soon { background: repeating-linear-gradient(135deg, var(--paper-2) 0 14px, var(--paper) 14px 28px); }
.shelf-cover .soon-mark { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--olive); text-align: center; padding: 1rem; line-height: 1.1; }
.shelf-book h3 { font-size: 1.5rem; margin: 0 0 .2rem; }
.shelf-book .meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .6rem; }

/* ---------- Hero : pastilles langues ---------- */
.hero-langs { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: -0.6rem 0 1.6rem; font-size: .92rem; color: var(--ink-2); }
.hero-langs a {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .35rem .8rem; border-radius: 999px; border: 1.5px solid var(--line-strong);
    text-decoration: none; font-weight: 600; font-size: .88rem;
}
.hero-langs a:hover { border-color: var(--ink); }
.hero-langs .is-ar { font-weight: 700; font-size: 1rem; line-height: 1; }

/* ---------- Mur des lecteurs ---------- */
.readers-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.rating-bars { display: grid; gap: .35rem; font-size: .85rem; }
.rating-bars .row-bar { display: grid; grid-template-columns: 2.4rem 1fr 2rem; gap: .6rem; align-items: center; }
.rating-bars .track { height: 8px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.rating-bars .track span { display: block; height: 100%; background: var(--clay); border-radius: inherit; }
.wall { columns: 3 300px; column-gap: 1.25rem; }
.note-card {
    break-inside: avoid;
    margin: 0 0 1.25rem;
    padding: 1.4rem 1.4rem 1.2rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.note-card:nth-child(3n+2) { background: var(--paper-2); border-color: transparent; }
.note-card blockquote { margin: .75rem 0 1rem; }
.note-card blockquote p { margin: 0; color: var(--ink); font-size: .98rem; line-height: 1.65; }
.note-card h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin: .6rem 0 0; }
.note-card .who { display: flex; align-items: center; gap: .7rem; }
.note-card .avatar {
    width: 38px; height: 38px; border-radius: 12px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ink); color: var(--paper); font-weight: 700; font-size: .85rem;
}
.note-card:nth-child(3n+2) .avatar { background: var(--clay); }
.note-card .who small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.note-card .book-ref { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted); text-decoration: none; margin-top: .9rem; }
.note-card .book-ref:hover { color: var(--ink); }
@media (max-width: 767.98px) { .readers-head { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Panier latéral ---------- */
.offcanvas.cart-drawer { background: var(--paper); width: min(420px, 100vw); }
.cart-drawer .offcanvas-header { border-bottom: 1px solid var(--line); }
.cart-drawer .offcanvas-title { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.cart-drawer .offcanvas-body { display: flex; flex-direction: column; padding: 0; }
.drawer-lines { list-style: none; margin: 0; padding: .5rem 1.25rem; flex: 1; overflow-y: auto; }
.drawer-lines li { display: grid; grid-template-columns: 64px 1fr auto; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.drawer-lines .thumb { width: 64px; height: 78px; border-radius: var(--radius-sm); background: var(--paper-2); }
.drawer-lines .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.drawer-lines .t { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.drawer-lines .sub { font-size: .82rem; color: var(--muted); }
.drawer-lines .r { text-align: right; }
.drawer-lines .r .price { font-size: 1.05rem; }
.drawer-foot { padding: 1.25rem; border-top: 1px solid var(--line); background: var(--white); }
.drawer-foot .btn-z + .btn-z { margin-top: .5rem; }
.drawer-empty { padding: 3rem 1.5rem; text-align: center; }
.drawer-empty .grain-quad { font-size: 1.8rem; color: var(--clay); margin-bottom: 1rem; }
.cart-drawer.is-loading .offcanvas-body { opacity: .55; pointer-events: none; }

/* ---------- Notification ---------- */
.z-toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 1090;
    transform: translate(-50%, 140%);
    display: flex; align-items: center; gap: .7rem;
    max-width: min(92vw, 480px);
    padding: .85rem 1.1rem;
    background: var(--ink); color: var(--paper);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(28, 58, 34, .25);
    font-size: .92rem;
    visibility: hidden;
    opacity: 0;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s ease, visibility 0s linear .35s;
}
.z-toast.show { transform: translate(-50%, 0); visibility: visible; opacity: 1; transition-delay: 0s; }
.z-toast.is-error { background: #7A2318; }
.z-toast i { color: var(--clay); }
.z-toast.is-error i { color: #F7DFD9; }

.btn-z.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn-z.is-loading::after {
    content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff;
    animation: zspin .7s linear infinite;
}
.add-mini.is-loading { pointer-events: none; opacity: .5; }
@keyframes zspin { to { transform: rotate(360deg); } }
.cart-count.bump { animation: zbump .45s ease; }
@keyframes zbump { 40% { transform: scale(1.35); } }

/* ---------- Animations (GSAP) ---------- */
/* Les éléments à révéler restent visibles sans JS ; ils ne sont masqués qu'une fois GSAP prêt. */
.js-anim [data-reveal] { visibility: hidden; }
.hero-cover-float { will-change: transform; }

.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.marquee-track { display: flex; width: max-content; gap: 3rem; padding: 1.1rem 0; }
.marquee-track span { display: inline-flex; align-items: center; gap: 1rem; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.8rem); white-space: nowrap; color: var(--ink); }
.marquee-track span .grain { color: var(--clay); font-size: .8em; }
.marquee-track .is-ar { font-family: var(--font-arabic); }

@media (prefers-reduced-motion: reduce) {
    .js-anim [data-reveal] { visibility: visible; }
}

@media (max-width: 767.98px) {
    .section-head { flex-direction: column; align-items: flex-start; gap: .9rem; }
    .section-head h2 { max-width: none; }
    .wa-float { width: 48px; height: 48px; border-radius: 16px; font-size: 1.4rem; right: 14px; bottom: 14px; }
    /* Sur la fiche livre, la barre d'achat prend le bas de l'écran : WhatsApp reste dans le pied de page */
    body.has-sticky-buy .wa-float { display: none; }
}
