/*
Theme Name: AbracadaBois
Theme URI: https://abracadabois.be
Author: Hugo Dejaeghere
Description: Thème sur mesure pour AbracadaBois — créations en bois et plexiglas personnalisés. Porté depuis la maquette validée.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: abracadabois
Tags: e-commerce, custom-colors, custom-logo, translation-ready
WC requires at least: 8.0
WC tested up to: 10.8
*/

/* =========================================================
   1. Polices
   ========================================================= */
@font-face{
  font-family:"Caveat";
  src:url("assets/fonts/caveat.woff2") format("woff2");
  font-weight:400 700;font-style:normal;font-display:swap;
}
@font-face{
  font-family:"Delius";
  src:url("assets/fonts/delius.woff2") format("woff2");
  font-weight:400;font-style:normal;font-display:swap;
}

/* =========================================================
   2. Variables de thème
   ========================================================= */
:root{
  --bg:#F6EFE2;
  --surface:#FFFDF7;
  --surface-2:#EFE3CC;
  --ink:#33261A;
  --muted:#7C6B54;
  --gold:#A97F26;
  --gold-soft:#D9BC72;
  --wood:#C99A63;
  --line:#E4D6BB;
  --shadow:0 10px 30px rgba(83,62,34,.10);
  --berry:#C2255C;
  --lilac:#8E6CC7;
  --leaf:#679A4B;
  --band:#E7D2AC;
  --brown-solid:#8A5A2B;
  --brown-ink:#8A5A2B;
  --wrap:1200px;
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#241C12;
    --surface:#2E2517;
    --surface-2:#3A2E1D;
    --ink:#F2E8D3;
    --muted:#BCAB8D;
    --gold:#D8B159;
    --gold-soft:#8A6D33;
    --wood:#B0834E;
    --line:#463823;
    --shadow:0 10px 30px rgba(0,0,0,.35);
    --berry:#F06595;
    --lilac:#B79BE8;
    --leaf:#8FBF69;
    --band:#33281A;
    --brown-solid:#96652F;
    --brown-ink:#CFA366;
  }
}
:root[data-theme="light"]{
  --bg:#F6EFE2; --surface:#FFFDF7; --surface-2:#EFE3CC; --ink:#33261A; --muted:#7C6B54;
  --gold:#A97F26; --gold-soft:#D9BC72; --wood:#C99A63; --line:#E4D6BB; --shadow:0 10px 30px rgba(83,62,34,.10);
  --berry:#C2255C; --lilac:#8E6CC7; --leaf:#679A4B; --band:#E7D2AC; --brown-solid:#8A5A2B; --brown-ink:#8A5A2B;
}
:root[data-theme="dark"]{
  --bg:#241C12; --surface:#2E2517; --surface-2:#3A2E1D; --ink:#F2E8D3; --muted:#BCAB8D;
  --gold:#D8B159; --gold-soft:#8A6D33; --wood:#B0834E; --line:#463823; --shadow:0 10px 30px rgba(0,0,0,.35);
  --berry:#F06595; --lilac:#B79BE8; --leaf:#8FBF69; --band:#33281A; --brown-solid:#96652F; --brown-ink:#CFA366;
}

/* =========================================================
   3. Base
   ========================================================= */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:"Segoe UI",system-ui,-apple-system,sans-serif;
  font-size:16px;
  line-height:1.6;
}
.serif{font-family:"Palatino Linotype","Book Antiqua",Palatino,Georgia,serif}
.script{font-family:"Caveat","Segoe Script",cursive}

button{font:inherit;color:inherit;background:none;border:none;cursor:pointer}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:2px solid var(--gold);outline-offset:2px;border-radius:4px;
}
a{color:var(--gold)}
img,svg{max-width:100%;display:block}

/* accessibilité WordPress */
.screen-reader-text{
  position:absolute!important;width:1px;height:1px;overflow:hidden;
  clip:rect(1px,1px,1px,1px);clip-path:inset(50%);white-space:nowrap;
}
.skip-link:focus{
  position:fixed;top:10px;left:10px;z-index:999;background:var(--surface);
  color:var(--ink);padding:10px 18px;border-radius:999px;box-shadow:var(--shadow);
  width:auto;height:auto;clip:auto;clip-path:none;
}

/* =========================================================
   4. Header
   ========================================================= */
header.site{
  position:sticky;top:0;z-index:50;
  background:var(--surface);
  border-bottom:1px solid var(--line);
}
.header-wrap{position:relative;max-width:var(--wrap);margin:0 auto}
.header-row{
  max-width:var(--wrap);margin:0 auto;padding:14px 20px;
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;
}
.burger{
  justify-self:start;display:flex;align-items:center;gap:10px;
  padding:8px 14px;border:1px solid var(--line);border-radius:999px;
  font-size:.85rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);
}
.burger:hover{border-color:var(--gold);color:var(--gold)}
.burger .bars{display:inline-flex;flex-direction:column;gap:3px}
.burger .bars i{display:block;width:16px;height:2px;background:currentColor;border-radius:2px}

.logo{justify-self:center;padding:2px 10px;display:block}
.logo img{height:62px;width:auto}
@media (prefers-color-scheme: dark){ .logo-art{filter:invert(.92) sepia(.15)} }
:root[data-theme="dark"] .logo-art{filter:invert(.92) sepia(.15)}
:root[data-theme="light"] .logo-art{filter:none}

.header-icons{justify-self:end;display:flex;align-items:center;gap:6px}
.hicon{
  position:relative;display:grid;place-items:center;
  width:40px;height:40px;border-radius:50%;color:var(--ink);text-decoration:none;
}
.hicon:hover{background:var(--surface-2)}
.hicon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.hicon .count{
  position:absolute;top:1px;right:0;
  background:var(--gold);color:var(--surface);
  font-size:.62rem;font-weight:700;min-width:16px;height:16px;border-radius:999px;
  display:grid;place-items:center;padding:0 4px;
}
.tagline-bar{
  border-top:1px solid var(--line);
  text-align:center;padding:6px 16px;
  font-family:"Caveat","Segoe Script",cursive;
  font-size:1.2rem;color:var(--muted);
}
.tagline-bar .gold{color:var(--gold)}

/* menu catégories déroulant */
.catmenu{
  display:none;position:absolute;left:20px;top:calc(100% + 6px);z-index:60;
  background:var(--surface);border:1px solid var(--line);border-radius:14px;
  box-shadow:var(--shadow);padding:18px 22px;
  columns:2;column-gap:34px;width:min(560px,calc(100vw - 40px));
}
.catmenu.open{display:block}
.catmenu .catgroup{break-inside:avoid;margin-bottom:12px}
.catmenu .catgroup>a{
  display:block;font-weight:700;font-size:.85rem;letter-spacing:.06em;text-transform:uppercase;
  color:var(--ink);padding:2px 0;text-decoration:none;
}
.catmenu .catgroup>a:hover{color:var(--gold)}
.catmenu ul{list-style:none;margin:4px 0 0;padding:0 0 0 10px;border-left:1px solid var(--line)}
.catmenu li a{font-size:.85rem;color:var(--muted);padding:2px 0 2px 8px;display:block;text-decoration:none}
.catmenu li a:hover{color:var(--gold)}

/* barre de recherche escamotable */
.searchbar{display:none;border-top:1px solid var(--line);background:var(--surface)}
.searchbar.open{display:block}
.searchbar form{
  max-width:var(--wrap);margin:0 auto;padding:14px 20px;display:flex;gap:10px;
}
.searchbar input[type=search]{
  flex:1;padding:11px 14px;border:1px solid var(--line);border-radius:999px;
  background:var(--bg);color:var(--ink);font:inherit;
}

/* =========================================================
   5. Layout général
   ========================================================= */
main{max-width:var(--wrap);margin:0 auto;padding:0 20px 60px}
.page-head{padding:34px 0 6px}
.page-head h1{font-family:"Palatino Linotype",Georgia,serif;font-size:1.9rem;margin:0 0 6px;text-wrap:balance}
.entry-content{max-width:70ch;font-family:"Delius","Segoe UI",sans-serif}
.entry-content h2{font-family:"Palatino Linotype",Georgia,serif;margin:28px 0 8px}
.entry-content img{border-radius:14px}

/* =========================================================
   6. Accueil
   ========================================================= */
.hero{
  display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:center;
  padding:52px 8px 46px;position:relative;
}
.hero-left{position:relative;z-index:2}
.hero-left .sr-title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.hero-logo{width:min(310px,80%);margin-bottom:6px}
.hero p.sub{
  font-family:"Caveat","Segoe Script",cursive;
  color:var(--muted);font-size:1.55rem;line-height:1.35;margin:4px 0 26px;max-width:30ch;
}
.hero-ctas{display:flex;gap:12px;flex-wrap:wrap}
.hero-photo{
  position:relative;border-radius:999px 999px 30px 30px;overflow:hidden;
  border:10px solid var(--surface);box-shadow:var(--shadow);
  transform:rotate(1.5deg);
}
.hero-photo img{width:100%;aspect-ratio:4/4.4;object-fit:cover;display:block}
.bloom{position:absolute;pointer-events:none;animation:floaty 6s ease-in-out infinite}
.bloom svg{width:100%;height:100%}
@keyframes floaty{50%{transform:translateY(-11px) rotate(8deg)}}
@keyframes twinkle{50%{opacity:.3;transform:scale(.8)}}
.float-spark{position:absolute;color:var(--gold-soft);pointer-events:none;user-select:none;animation:twinkle 3.4s ease-in-out infinite}

.btn{
  display:inline-block;background:var(--brown-solid);color:#fff;
  padding:13px 30px;border-radius:999px;font-weight:600;letter-spacing:.05em;
  text-decoration:none;border:1px solid transparent;cursor:pointer;
}
.btn:hover{filter:brightness(1.08);color:#fff}
.btn.ghost{background:transparent;color:var(--brown-ink);border-color:var(--brown-ink)}
.btn.ghost:hover{color:var(--brown-ink)}

/* révélation au scroll */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s ease}
.reveal.in{opacity:1;transform:none}

/* bandeau produits défilant */
.marquee-band{
  margin:6px calc(50% - 50vw) 0;width:100vw;
  background:var(--band);border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  padding:20px 0;overflow:hidden;
}
.mtrack{display:flex;gap:16px;width:max-content;animation:mscroll 60s linear infinite}
.marquee-band:hover .mtrack{animation-play-state:paused}
@keyframes mscroll{to{transform:translateX(-50%)}}
.mitem{
  display:flex;align-items:center;gap:12px;flex:none;text-decoration:none;color:inherit;
  background:var(--surface);border:1px solid var(--line);border-radius:999px;
  padding:7px 20px 7px 8px;
}
.mitem .mthumb{width:52px;height:52px;border-radius:50%;overflow:hidden;flex:none;background:var(--surface-2)}
.mitem .mthumb img{width:100%;height:100%;object-fit:cover}
.mitem .mname{display:block;font-size:.82rem;font-weight:600;white-space:nowrap}
.mitem .mprice{display:block;font-size:.78rem;color:var(--brown-ink);font-weight:700;font-variant-numeric:tabular-nums}
.mitem .mprice .woocommerce-Price-amount{color:inherit;font-weight:inherit}
.msep{color:var(--gold);align-self:center;flex:none}

/* polaroids atelier */
.polaroids{display:grid;grid-template-columns:repeat(4,1fr);gap:30px;padding-top:14px}
.polaroid{
  background:var(--surface);border:1px solid var(--line);border-radius:4px;
  padding:10px 10px 12px;margin:0;box-shadow:var(--shadow);
  transform:rotate(var(--rot,-2.5deg));position:relative;
  transition:transform .25s ease;
}
.polaroid:hover{transform:rotate(0) scale(1.04);z-index:2}
.polaroid::before{
  content:"";position:absolute;top:-11px;left:50%;transform:translateX(-50%) rotate(-5deg);
  width:74px;height:22px;background:var(--gold-soft);opacity:.55;border-radius:2px;
}
.pimg{width:100%;aspect-ratio:1;border-radius:2px;background-size:cover;background-position:center;background-repeat:no-repeat}
.polaroid figcaption{
  text-align:center;margin-top:9px;
  font-family:"Caveat","Segoe Script",cursive;font-size:1.15rem;color:var(--muted);
}

section.block{padding:44px 0;border-top:1px solid var(--line)}
.block h2{
  font-family:"Palatino Linotype",Georgia,serif;font-size:1.6rem;margin:0 0 6px;
  text-align:center;letter-spacing:.02em;text-wrap:balance;
}
.block .block-sub{
  text-align:center;color:var(--muted);margin:0 auto 30px;max-width:52ch;
  font-family:"Caveat","Segoe Script",cursive;font-size:1.3rem;
}

/* présentation Morgane */
.presentation{display:grid;grid-template-columns:280px 1fr;gap:44px;align-items:center}
.portrait{
  width:260px;height:260px;border-radius:50%;position:relative;
  margin:0 auto;overflow:hidden;
  border:6px solid var(--surface);box-shadow:var(--shadow);
}
.portrait img{width:100%;height:100%;object-fit:cover;object-position:50% 18%}
.portrait-wrap{position:relative;width:fit-content;margin:0 auto}
.portrait-wrap::after{content:"✦";position:absolute;top:2px;right:8px;color:var(--gold);font-size:1.4rem}
.presentation .text p{max-width:62ch}
.presentation .text .hello{
  font-family:"Caveat","Segoe Script",cursive;font-size:2rem;color:var(--gold);margin:0 0 10px;
}
.presentation .merci{font-weight:700;color:var(--gold)}
.heart-ic{width:1.1em;height:1.1em;fill:var(--berry);display:inline-block;vertical-align:-.18em;margin-left:.2em;animation:beat 1.6s ease-in-out infinite}
@keyframes beat{0%,100%{transform:scale(1)}12%{transform:scale(1.18)}24%{transform:scale(1)}36%{transform:scale(1.1)}48%{transform:scale(1)}}

/* =========================================================
   7. Grille produits (maquette + mapping WooCommerce)
   ========================================================= */
.grid,
.woocommerce ul.products{
  display:grid;grid-template-columns:repeat(4,1fr);gap:22px;
  list-style:none;margin:0;padding:0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after{content:none}

.card,
.woocommerce ul.products li.product{
  background:var(--surface);border:1px solid var(--line);border-radius:16px;
  overflow:hidden;position:relative;margin:0;width:auto;float:none;
  transition:transform .18s ease, box-shadow .18s ease;
}
.card:hover,
.woocommerce ul.products li.product:hover{transform:translateY(-3px);box-shadow:var(--shadow)}

.card .ph,
.woocommerce ul.products li.product .cimg{
  aspect-ratio:4/3;background:var(--surface-2);display:block;width:100%;overflow:hidden;
}
.card .ph img,
.woocommerce ul.products li.product .cimg img{width:100%;height:100%;object-fit:cover}

.card .fav{
  position:absolute;top:10px;right:10px;width:34px;height:34px;border-radius:50%;
  background:var(--surface);display:grid;place-items:center;border:1px solid var(--line);z-index:2;
}
.card .fav svg{width:17px;height:17px;fill:none;stroke:var(--muted);stroke-width:1.8}
.card .fav.on svg{fill:var(--berry);stroke:var(--berry)}
.card .cbody{padding:12px 14px 16px}
.card .cname{font-weight:600;font-size:.92rem;margin:0 0 2px;line-height:1.35}
.card .cname a{color:var(--ink);text-decoration:none}
.card .cname a:hover{color:var(--gold)}
.card .ccat{font-size:.74rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0 0 8px}
.card .cprice,
.card .cprice .woocommerce-Price-amount{font-weight:700;color:var(--berry);font-variant-numeric:tabular-nums}
.card .cprice del{color:var(--muted);font-weight:400;margin-right:6px}
.card .cprice ins{text-decoration:none}
.card .badge-new{
  position:absolute;top:10px;left:10px;z-index:2;
  background:var(--gold);color:var(--surface);
  font-size:.62rem;letter-spacing:.1em;text-transform:uppercase;font-weight:700;
  padding:4px 10px;border-radius:999px;
}

/* badges réassurance (pied de page) */
.foot-badges{
  max-width:var(--wrap);margin:0 auto;padding:8px 20px 36px;
  display:flex;justify-content:center;align-items:flex-start;gap:60px;
  text-align:center;flex-wrap:wrap;
}
.foot-badges .badge{max-width:220px}
.badge .disc{
  width:68px;height:68px;margin:0 auto 10px;border-radius:50%;
  background:var(--surface-2);
  display:grid;place-items:center;position:relative;
}
.badge .disc::after{
  content:"";position:absolute;inset:4px;border-radius:50%;
  border:1.5px dashed var(--gold-soft);
}
.badge .disc svg{width:28px;height:28px;fill:none;stroke:var(--gold);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.badge.rose .disc{background:color-mix(in srgb,var(--berry) 13%,var(--surface))}
.badge.rose .disc svg{stroke:var(--berry)}
.badge.rose .disc::after{border-color:color-mix(in srgb,var(--berry) 45%,transparent)}
.badge.mauve .disc{background:color-mix(in srgb,var(--lilac) 15%,var(--surface))}
.badge.mauve .disc svg{stroke:var(--lilac)}
.badge.mauve .disc::after{border-color:color-mix(in srgb,var(--lilac) 45%,transparent)}
.badge.vert .disc{background:color-mix(in srgb,var(--leaf) 14%,var(--surface))}
.badge.vert .disc svg{stroke:var(--leaf)}
.badge.vert .disc::after{border-color:color-mix(in srgb,var(--leaf) 45%,transparent)}
.badge h3{margin:0 0 3px;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase}
.badge p{margin:0 auto;font-size:.78rem;color:var(--muted);max-width:26ch;line-height:1.5}

/* =========================================================
   8. Boutique (archive WooCommerce)
   ========================================================= */
.shop-layout{display:grid;grid-template-columns:230px 1fr;gap:34px;padding-top:34px}
.shop-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.shop-head h1,.shop-head h2{font-family:"Palatino Linotype",Georgia,serif;margin:0;font-size:1.5rem}
.shop-head .rescount{color:var(--muted);font-size:.85rem}
aside.filters{font-size:.9rem}
.fgroup{border-top:1px solid var(--line);padding:16px 0}
.fgroup:first-child{border-top:none;padding-top:0}
.fgroup h4{
  margin:0 0 10px;font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);
}
.fgroup .fopt{
  display:block;width:100%;text-align:left;padding:5px 8px;border-radius:8px;
  color:var(--ink);text-decoration:none;
}
.fgroup .fopt:hover{background:var(--surface-2)}
.fgroup .fopt.is-active,
.fgroup .fopt[aria-current="true"]{background:var(--surface-2);color:var(--gold);font-weight:600}
.subcats{
  margin:4px 0 10px 12px;padding-left:10px;
  border-left:2px solid var(--gold-soft);
  display:grid;gap:1px;
  animation:subin .3s ease;
}
@keyframes subin{from{opacity:0;transform:translateY(-6px)}}
.subcats .fopt{font-size:.84rem;color:var(--muted);padding:4px 8px}
.subcats .fopt.is-active,
.subcats .fopt[aria-current="true"]{color:var(--berry);background:none;font-weight:600}

select.sortsel,
.woocommerce-ordering select{
  width:100%;padding:9px 10px;border:1px solid var(--line);border-radius:10px;
  background:var(--surface);color:var(--ink);font:inherit;
}
.woocommerce-result-count{display:none}

/* pagination façon maquette */
.pagination,
.woocommerce nav.woocommerce-pagination ul{
  display:flex;justify-content:center;gap:22px;margin-top:34px;
  list-style:none;border:none;padding:0;
}
.woocommerce nav.woocommerce-pagination ul li{border:none;margin:0;overflow:visible}
.pagination a,.pagination span,
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span{
  position:relative;min-width:24px;height:34px;padding:0 2px;
  display:grid;place-items:center;font-variant-numeric:tabular-nums;
  font-size:1rem;color:var(--muted);font-family:"Delius","Segoe UI",sans-serif;
  text-decoration:none;background:none;
}
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover{background:none}
.woocommerce nav.woocommerce-pagination ul li span.current{color:var(--ink);font-weight:700}
.woocommerce nav.woocommerce-pagination ul li span.current::after{
  content:"";position:absolute;bottom:3px;left:50%;transform:translateX(-50%);
  width:18px;height:2px;background:var(--ink);border-radius:2px;
}
.woocommerce nav.woocommerce-pagination ul li a:hover{color:var(--berry)}

/* =========================================================
   9. Fiche produit
   ========================================================= */
.crumbs,
.woocommerce .woocommerce-breadcrumb{padding:26px 0 18px;font-size:.82rem;color:var(--muted);margin:0}
.crumbs a,
.woocommerce .woocommerce-breadcrumb a{color:var(--muted);text-decoration:none}
.crumbs a:hover,
.woocommerce .woocommerce-breadcrumb a:hover{color:var(--gold)}

.product-layout,
.woocommerce div.product{display:grid;grid-template-columns:1.05fr 1fr;gap:0 44px;align-items:start}
.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product div.summary{float:none;width:auto;margin:0}

/* Colonne gauche : aperçu en direct (ligne 1) puis galerie (ligne 2).
   Colonne droite : le résumé occupe les deux lignes.
   Onglets, produits liés et ventes croisées passent sous les deux colonnes. */
.woocommerce div.product .abr-preview{grid-column:1;grid-row:1;margin-bottom:14px}
.woocommerce div.product .woocommerce-product-gallery{grid-column:1;grid-row:2}
.woocommerce div.product div.summary{grid-column:2;grid-row:1 / span 2}
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .upsells{grid-column:1 / -1}
.woocommerce div.product .woocommerce-tabs{margin-top:34px}
.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0;margin:0 0 18px}
.woocommerce div.product .woocommerce-tabs ul.tabs::before{border-bottom-color:var(--line)}
.woocommerce div.product .related > h2,
.woocommerce div.product .upsells > h2{
  font-family:"Palatino Linotype",Georgia,serif;font-size:1.5rem;text-align:center;margin:0 0 22px;
}

.gallery .mainimg,
.woocommerce div.product .woocommerce-product-gallery__wrapper{
  border-radius:18px;overflow:hidden;border:1px solid var(--line);background:var(--surface-2);
}
.thumbs,
.woocommerce div.product .flex-control-thumbs{
  display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:10px;list-style:none;padding:0;
}
.thumbs button,
.woocommerce div.product .flex-control-thumbs li{
  border-radius:12px;overflow:hidden;border:2px solid transparent;padding:0;background:var(--surface-2);
  width:auto;float:none;margin:0;
}
.thumbs button[aria-current="true"],
.woocommerce div.product .flex-control-thumbs li img.flex-active{border-color:var(--gold)}

.pinfo h1,
.woocommerce div.product .product_title{
  font-family:"Palatino Linotype",Georgia,serif;font-size:1.7rem;margin:0 0 4px;text-wrap:balance;
}
.pinfo .stars,
.woocommerce .star-rating{color:var(--gold);letter-spacing:2px;font-size:.9rem}
.pinfo .stars .mutedtxt{color:var(--muted);letter-spacing:0;margin-left:8px}

.price-line{display:flex;align-items:baseline;gap:12px;margin:14px 0 4px}
.price,
.woocommerce div.product p.price,
.woocommerce div.product span.price{
  font-size:1.7rem;font-weight:700;color:var(--berry);font-variant-numeric:tabular-nums;margin:14px 0 4px;
}
.price-note{font-size:.8rem;color:var(--muted);font-weight:400}
.pdesc,
.woocommerce div.product .woocommerce-product-details__short-description{
  color:var(--muted);font-size:.95rem;max-width:56ch;font-family:"Delius","Segoe UI",sans-serif;
}
.pdesc b{color:var(--ink)}
.pdesc h4{margin:18px 0 6px;font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;color:var(--ink)}
.pdesc ul{margin:0;padding-left:18px}

/* formulaire de personnalisation */
.pform,
.woocommerce div.product form.cart{margin-top:20px;display:grid;gap:14px;max-width:430px}
.field label,
.woocommerce div.product form.cart .abr-field label{
  display:block;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-bottom:5px;
}
.field label .req{color:var(--gold)}
.field label .hint{text-transform:none;letter-spacing:0;color:var(--gold)}
.field input[type=text],.field input[type=tel],.field input[type=email],.field select,.field textarea,
.woocommerce div.product form.cart .abr-field input[type=text],
.woocommerce div.product form.cart .abr-field select{
  width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:10px;
  background:var(--surface);color:var(--ink);font:inherit;
}
.urgent{
  border:1px dashed var(--gold-soft);border-radius:12px;padding:12px 14px;
  display:flex;gap:10px;align-items:flex-start;background:var(--surface);
}
.urgent input{margin-top:4px;accent-color:var(--gold);width:16px;height:16px;flex:none}
.urgent .utitle{font-weight:600;display:block;text-transform:none;letter-spacing:0;font-size:1rem;color:var(--ink);margin:0;cursor:pointer}
.urgent .usub{font-size:.8rem;color:var(--muted)}

.qty-row{display:flex;align-items:center;gap:14px}
.qty,
.woocommerce div.product form.cart div.quantity{
  display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;overflow:hidden;float:none;margin:0;
}
.qty button{width:38px;height:40px;font-size:1.1rem;color:var(--muted)}
.qty button:hover{color:var(--gold)}
.qty input.qty{
  width:52px;height:40px;text-align:center;border:none;background:none;color:var(--ink);
  font-weight:600;font-variant-numeric:tabular-nums;-moz-appearance:textfield;
}
.qty input.qty::-webkit-outer-spin-button,
.qty input.qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.qty output{min-width:34px;text-align:center;font-weight:600;font-variant-numeric:tabular-nums}

.cta-row{display:grid;grid-template-columns:1fr;gap:10px;margin-top:4px}
.cta-row .btn{text-align:center}
.delay-note{font-size:.8rem;color:var(--muted);display:flex;gap:8px;align-items:center}

/* aperçu en direct du prénom */
.abr-preview{position:relative}
.abr-preview .abr-preview-flag{
  position:absolute;top:12px;left:12px;z-index:2;
  background:var(--surface);border:1px solid var(--gold-soft);color:var(--gold);
  font-size:.66rem;letter-spacing:.12em;text-transform:uppercase;
  padding:4px 10px;border-radius:999px;
}
.abr-preview .abr-preview-canvas{
  border-radius:18px;overflow:hidden;border:1px solid var(--line);background:var(--surface-2);
  min-height:120px;
}
.abr-preview .abr-preview-canvas svg{width:100%;height:auto;display:block}

/* boutons − / + injectés autour du champ quantité WooCommerce */
.qty-btn{width:38px;height:40px;font-size:1.1rem;color:var(--muted);flex:none}
.qty-btn:hover{color:var(--gold)}

/* =========================================================
   10. Boutons WooCommerce
   ========================================================= */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt{
  background:var(--brown-solid);color:#fff;
  padding:13px 30px;border-radius:999px;font-weight:600;letter-spacing:.05em;
  border:1px solid transparent;font-size:1rem;line-height:1.4;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover{background:var(--brown-solid);color:#fff;filter:brightness(1.08)}
.woocommerce ul.products li.product .button{
  display:none; /* pas de bouton dans la grille : tout produit passe par sa fiche */
}

/* messages Woo */
.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-noreviews{
  background:var(--surface);border-top:3px solid var(--gold);
  color:var(--ink);border-radius:0 0 12px 12px;box-shadow:var(--shadow);
}
.woocommerce-error{border-top-color:var(--berry)}
.woocommerce-message::before,.woocommerce-info::before{color:var(--gold)}
.woocommerce-error::before{color:var(--berry)}

/* panier / commande */
.woocommerce table.shop_table{
  border:1px solid var(--line);border-radius:14px;background:var(--surface);
}
.woocommerce table.shop_table th{color:var(--muted);font-size:.78rem;letter-spacing:.12em;text-transform:uppercase}
.woocommerce-cart table.cart img{width:64px;border-radius:10px}
.woocommerce .cart-collaterals .cart_totals>h2,
.woocommerce-checkout h3{font-family:"Palatino Linotype",Georgia,serif}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single{
  padding:11px 12px;border:1px solid var(--line);border-radius:10px;
  background:var(--surface);color:var(--ink);font:inherit;height:auto;
}
.woocommerce-checkout #payment{background:var(--surface-2);border-radius:14px}
.woocommerce-checkout #payment div.payment_box{background:var(--surface);color:var(--muted)}
.woocommerce-checkout #payment div.payment_box::before{border-bottom-color:var(--surface)}

/* mention de rétractation sur les produits personnalisés */
.abr-retractation-note{
  border:1px solid var(--line);border-left:3px solid var(--gold);
  background:var(--surface);border-radius:0 12px 12px 0;
  padding:12px 16px;margin:18px 0;font-size:.83rem;color:var(--muted);max-width:56ch;
}
.abr-retractation-note strong{color:var(--ink)}

/* =========================================================
   11. Footer
   ========================================================= */
footer.site{
  background:var(--surface-2);border-top:1px solid var(--line);margin-top:20px;
}
.foot-grid{
  max-width:var(--wrap);margin:0 auto;padding:44px 20px 30px;
  display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:34px;font-size:.88rem;
}
.foot-grid h4{margin:0 0 12px;font-size:.75rem;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.foot-grid ul{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.foot-grid a{color:var(--ink);text-decoration:none}
.foot-grid a:hover{color:var(--gold)}
.foot-brand .l-main{font-family:"Palatino Linotype",Georgia,serif;font-weight:700;font-size:1.2rem}
.foot-brand .l-script{font-family:"Caveat","Segoe Script",cursive;color:var(--gold);font-size:1.3rem}
.foot-brand p{color:var(--muted);max-width:30ch}
.foot-bottom{
  border-top:1px solid var(--line);text-align:center;font-size:.75rem;color:var(--muted);
  padding:14px 20px;
}
.socials{display:flex;gap:10px;margin-top:12px}
.socials a{
  width:36px;height:36px;border-radius:50%;border:1px solid var(--line);
  display:grid;place-items:center;color:var(--ink);
}
.socials a:hover{border-color:var(--gold);color:var(--gold)}
.socials svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6}

/* toast */
.toast{
  position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);
  background:var(--ink);color:var(--bg);padding:12px 22px;border-radius:999px;
  font-size:.9rem;opacity:0;pointer-events:none;transition:opacity .25s ease,transform .25s ease;z-index:100;
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* =========================================================
   12. Responsive
   ========================================================= */
@media (max-width:960px){
  .grid,.woocommerce ul.products{grid-template-columns:repeat(3,1fr)}
  .hero{grid-template-columns:1fr;text-align:center;gap:30px}
  .hero-ctas{justify-content:center}
  .hero p.sub{margin-left:auto;margin-right:auto}
  .hero-logo{margin:0 auto 6px;display:block}
  .polaroids{grid-template-columns:repeat(2,1fr)}
  .presentation{grid-template-columns:1fr;text-align:center}
  .presentation .text p{margin-left:auto;margin-right:auto}
  .product-layout,.woocommerce div.product{grid-template-columns:1fr}
  .shop-layout{grid-template-columns:1fr}
  aside.filters{display:flex;gap:20px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:14px}
  .fgroup{border-top:none;padding:0;min-width:150px}
}
@media (max-width:640px){
  .grid,.woocommerce ul.products{grid-template-columns:repeat(2,1fr);gap:14px}
  .header-row{grid-template-columns:auto 1fr auto}
  .burger span.lbl{display:none}
  .foot-grid{grid-template-columns:1fr 1fr}
  .hicon{width:34px;height:34px}
  .catmenu{columns:1}
}
