/* =====================================================================
   DAEBAK — design system (palette Be.Bright conservée, composition nouvelle)
   Sidebar-card layout · cartes arrondies · mode clair/sombre · 100 % responsive
   ===================================================================== */
:root {
    --bg: #faf9f7; --card: #ffffff; --soft: #f4f3f1; --soft-2: #efeeec; --line: #e6e2dd;
    --ink: #1a1c1b; --muted: #5c504c; --faint: #8a7d78;
    --brand: #442a22; --brand-2: #5d4037; --brand-solid: #442a22; --on-brand: #ffffff;
    --blush: #fed7ca; --blush-ink: #75584d; --leaf: #173723; --leaf-soft: #c7ecce; --accent: #c8553d;
    --danger: #ba1a1a; --danger-soft: #ffdad6; --ok: #2e7d4f; --ok-soft: #dff3e5; --warn-soft: #fff1cf;
    --shadow-sm: 0 1px 2px rgba(68, 42, 34, .06), 0 4px 14px -6px rgba(68, 42, 34, .1);
    --shadow-md: 0 10px 30px -12px rgba(68, 42, 34, .25);
    --shadow-lg: 0 30px 60px -24px rgba(68, 42, 34, .35);
    --r-sm: 12px; --r: 18px; --r-lg: 26px; --r-xl: 34px;
    --gap: 16px; --sidebar-w: 280px;
    --font: 'Urbanist', 'Noto Sans KR', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --pd-ink: var(--ink); --pd-muted: var(--muted); --pd-accent: var(--brand); --pd-accent-ink: var(--on-brand);
    --pd-card: var(--card); --pd-soft: var(--soft); --pd-line: var(--line); --pd-radius: 18px;
    color-scheme: light;
}
:root[data-theme="dark"] {
    --bg: #14100e; --card: #1e1916; --soft: #292320; --soft-2: #332b27; --line: #3b322d;
    --ink: #f4ede7; --muted: #cdbfb6; --faint: #9c8e86;
    --brand: #e7bdb1; --brand-2: #f3d3c8; --brand-solid: #e7bdb1; --on-brand: #2c160e;
    --blush: #4a2f27; --blush-ink: #f1c9bb; --leaf: #abcfb2; --leaf-soft: #20382a; --accent: #ef7a5f;
    --danger: #ffb4ab; --danger-soft: #4a1d19; --ok: #7fd6a0; --ok-soft: #1c3526; --warn-soft: #3d3216;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px -6px rgba(0, 0, 0, .5);
    --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.6 var(--font); color: var(--ink); background: var(--bg); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.015em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--blush); color: var(--brand); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--brand-solid); color: var(--on-brand); padding: 10px 16px; border-radius: 999px; transition: top .2s; }
.skip-link:focus { top: 12px; }
.fa-fw { width: 1.25em; text-align: center; }

/* --- Layout : sidebar card + contenu ------------------------------------------------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); gap: var(--gap); padding: var(--gap); max-width: 1680px; margin: 0 auto; align-items: start; }
.sidebar { position: sticky; top: var(--gap); height: calc(100vh - 2 * var(--gap)); display: flex; flex-direction: column; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 18px; box-shadow: var(--shadow-sm); overflow: hidden; z-index: 60; }
.sidebar-scroll { flex: 1; overflow-y: auto; margin: 0 -8px; padding: 0 8px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; display: flex; flex-direction: column; gap: 14px; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.03em; color: var(--brand); }
.brand img { width: 38px; height: 38px; border-radius: 12px; }
.brand small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .22em; color: var(--accent); text-transform: uppercase; margin-top: -2px; }
.btn.drawer-close, .btn.menu-btn { display: none; }
.search-pill { display: flex; align-items: center; gap: 8px; background: var(--soft); border: 1px solid transparent; border-radius: 999px; padding: 0 14px; height: 44px; position: relative; transition: border-color .2s, background .2s; }
.search-pill:focus-within { border-color: var(--brand); background: var(--card); }
.search-pill input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; height: 100%; }
.search-pill input::placeholder { color: var(--faint); }
.search-pop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-md); padding: 8px; z-index: 80; display: none; max-height: 340px; overflow-y: auto; }
.search-pop.open { display: block; }
.search-pop a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r-sm); }
.search-pop a:hover, .search-pop a:focus { background: var(--soft); }
.search-pop img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--soft); }
.search-pop span { font-size: 13px; font-weight: 600; }
.search-pop small { display: block; font-size: 12px; color: var(--faint); font-weight: 500; }
.nav-list { display: flex; flex-direction: column; gap: 3px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 14px; color: var(--muted); font-weight: 600; transition: background .18s, color .18s, transform .18s; }
.nav-link i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--brand); font-size: 14px; transition: background .18s, color .18s; }
.nav-link:hover { background: var(--soft); color: var(--ink); }
.nav-link.is-active { background: var(--blush); color: var(--brand); }
.nav-link.is-active i { background: var(--brand-solid); color: var(--on-brand); }
:root[data-theme="dark"] .nav-link.is-active { color: #fff; }
.nav-label { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 0 12px; margin-top: 4px; }
.side-cta { background: linear-gradient(145deg, var(--brand-solid), var(--brand-2)); color: var(--on-brand); border-radius: var(--r-lg); padding: 16px; position: relative; overflow: hidden; }
:root[data-theme="dark"] .side-cta { background: linear-gradient(145deg, #5d4037, #3a241d); color: #fff; }
.side-cta::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.side-cta strong { display: block; font-size: 15px; margin-bottom: 4px; }
.side-cta p { font-size: 12.5px; opacity: .85; margin-bottom: 12px; }
.side-foot { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.side-tools { display: flex; align-items: center; gap: 8px; }
.side-tools > * { flex: 1; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: var(--soft); font-weight: 600; font-size: 13px; }
.side-user i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--brand); }
.side-user span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-backdrop { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.topbar { display: none; position: sticky; top: 8px; z-index: 55; align-items: center; gap: 8px; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px; box-shadow: var(--shadow-sm); }
.topbar .brand { flex: 1; font-size: 18px; margin-left: 4px; }
.topbar .brand img { width: 32px; height: 32px; }

/* --- Boutons / chips ----------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 14px; white-space: nowrap; transition: transform .15s, background .2s, box-shadow .2s, border-color .2s; background: var(--soft); color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn:disabled, .btn.is-loading { opacity: .6; pointer-events: none; }
.btn-primary { background: var(--brand-solid); color: var(--on-brand); box-shadow: 0 10px 22px -10px var(--brand-solid); }
.btn-primary:hover { background: var(--brand-2); }
:root[data-theme="dark"] .btn-primary:hover { background: #f3d3c8; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-soft { background: var(--blush); color: var(--brand); }
.btn-soft:hover { filter: brightness(.97); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); }
.btn-light { background: rgba(255, 255, 255, .95); color: #442a22; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; flex: none; position: relative; }
.btn-icon.btn-sm { width: 36px; }
.badge-dot { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--card); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--soft); border: 1px solid transparent; font-size: 13px; font-weight: 600; color: var(--muted); transition: all .18s; white-space: nowrap; }
.chip:hover { background: var(--soft-2); color: var(--ink); }
.chip.is-active { background: var(--brand-solid); color: var(--on-brand); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pill-brand { background: var(--blush); color: var(--brand); }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: #8a5a00; }
.pill-danger { background: var(--danger-soft); color: var(--danger); }
.pill-dark { background: rgba(26, 28, 27, .85); color: #fff; }

/* --- Dropdown (langue) ---------------------------------------------------------------- */
.dd { position: relative; }
.dd-btn { width: 100%; justify-content: space-between; height: 40px; padding: 0 12px; font-size: 13px; background: var(--soft); border-radius: 999px; border: 0; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.dd-menu { position: absolute; bottom: calc(100% + 8px); left: 0; min-width: 190px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-md); padding: 6px; display: none; z-index: 90; }
.dd.open .dd-menu { display: block; }
.dd-menu.down { bottom: auto; top: calc(100% + 8px); }
.dd-menu a, .dd-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 12px; border: 0; background: transparent; text-align: left; font-weight: 600; font-size: 14px; }
.dd-menu a:hover, .dd-menu button:hover { background: var(--soft); }
.dd-menu .is-current { background: var(--blush); color: var(--brand); }
.fi { border-radius: 4px; }
.fi.rounded { border-radius: 50%; width: 1.2em; height: 1.2em; background-size: cover; }
.theme-btn { background: var(--soft); border-radius: 999px; height: 40px; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 13px; padding: 0 12px; }
.theme-btn .fa-sun { display: none; }
:root[data-theme="dark"] .theme-btn .fa-sun { display: inline; }
:root[data-theme="dark"] .theme-btn .fa-moon { display: none; }

/* --- Hero ---------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; border-radius: var(--r-xl); background: linear-gradient(120deg, #f7e6dc 0%, #fed7ca 55%, #f3c4b2 100%); min-height: clamp(340px, 34vw, 400px); display: flex; align-items: center; isolation: isolate; }
:root[data-theme="dark"] .hero { background: linear-gradient(120deg, #2d1c17 0%, #4a2f27 60%, #5d3b30 100%); }
.hero-copy { position: relative; z-index: 2; padding: clamp(24px, 4vw, 52px); max-width: min(560px, 62%); display: grid; gap: 14px; }
.hero h1 { font-size: clamp(28px, 3.6vw, 46px); font-weight: 800; color: var(--brand); letter-spacing: -.035em; line-height: 1.05; }
:root[data-theme="dark"] .hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { color: var(--blush-ink); font-size: clamp(14px, 1.2vw, 16px); max-width: 46ch; }
:root[data-theme="dark"] .hero-sub { color: #e6cbc0; }
.hero-art { position: absolute; right: -2%; bottom: -6%; width: clamp(240px, 52%, 620px); z-index: 1; pointer-events: none; }
.hero-search { display: flex; gap: 8px; background: var(--card); border-radius: 999px; padding: 6px; box-shadow: var(--shadow-md); max-width: 460px; }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px; outline: none; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags .chip { background: rgba(255, 255, 255, .7); color: var(--brand); height: 30px; font-size: 12px; }
:root[data-theme="dark"] .hero-tags .chip { background: rgba(0, 0, 0, .3); color: #f3d3c8; }
.hero-badge { position: absolute; z-index: 2; right: clamp(16px, 4vw, 48px); top: 20px; background: var(--card); border-radius: 18px; padding: 10px 14px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; }
.hero-badge i { width: 34px; height: 34px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }

.page-hero { position: relative; overflow: hidden; border-radius: var(--r-xl); height: clamp(88px, 9vw, 140px); display: flex; align-items: center; background: var(--blush) center/cover no-repeat; isolation: isolate; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--card) 70%, transparent), color-mix(in srgb, var(--card) 20%, transparent)); backdrop-filter: blur(1.5px); z-index: -1; }
:root[data-theme="dark"] .page-hero::before { background: linear-gradient(90deg, rgba(20, 16, 14, .8), rgba(20, 16, 14, .3)); }
.page-hero-in { padding: 0 clamp(18px, 3vw, 36px); display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.page-hero h1 { font-size: clamp(20px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.03em; color: var(--brand); }
.page-hero p { color: var(--muted); font-size: 13.5px; margin-top: 2px; max-width: 58ch; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs i { font-size: 8px; opacity: .6; }
.page-hero-side { display: flex; align-items: center; gap: 8px; flex: none; }

/* --- Sections / cartes -------------------------------------------------------------- */
.section { display: grid; gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 2.4vw, 28px); box-shadow: var(--shadow-sm); }
.card-flat { background: var(--soft); border-radius: var(--r-lg); padding: clamp(18px, 2.4vw, 28px); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.03em; }
.sec-head p { color: var(--muted); margin-top: 4px; max-width: 60ch; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand); }
.link-arrow:hover i { transform: translateX(4px); }
.link-arrow i { transition: transform .2s; }
.eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.prose p { color: var(--muted); margin-bottom: 12px; max-width: 75ch; }
.prose h2 { font-size: 20px; margin: 22px 0 8px; }
.prose ul { list-style: disc; padding-left: 20px; color: var(--muted); }
.muted { color: var(--muted); }
.stack { display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }

/* Carrousel horizontal (snap) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-ctl { display: flex; gap: 8px; }

/* Catégories (style Airbnb) */
.cat-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-tab { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 16px; min-width: 96px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; font-weight: 700; transition: all .2s; text-align: center; }
.cat-tab i { font-size: 20px; color: var(--brand); }
.cat-tab:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cat-tab.is-active { background: var(--blush); border-color: transparent; color: var(--brand); }
.cat-tab small { font-weight: 500; color: var(--faint); font-size: 11px; }

/* Bento collections */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); gap: var(--gap); }
.tile { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--soft); display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; min-height: 180px; isolation: isolate; transition: transform .25s, box-shadow .25s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tile img { position: absolute; right: -6%; bottom: -6%; width: 62%; z-index: -1; transition: transform .4s; }
.tile:hover img { transform: scale(1.06) rotate(-2deg); }
.tile h3 { font-size: 20px; font-weight: 800; max-width: 60%; }
.tile p { font-size: 13px; color: var(--muted); max-width: 55%; margin-top: 4px; }
.tile .pill { position: absolute; left: 16px; top: 16px; }
.tile-a { grid-column: span 3; grid-row: span 2; background: #f7e6dc; }
.tile-b { grid-column: span 3; background: #e8efe6; }
.tile-c { grid-column: span 3; background: #e6ecf3; }
.tile-d { grid-column: span 2; background: #f3ecd9; }
.tile-e { grid-column: span 2; background: #ece4f0; }
.tile-f { grid-column: span 2; background: #f6e6e0; }
:root[data-theme="dark"] .tile { background: var(--soft) !important; }
.tile-a h3 { font-size: 28px; }
.tile-a img { width: 70%; }

/* --- Cartes produit (style Airbnb) ------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px var(--gap); }
.pcard { position: relative; display: flex; flex-direction: column; gap: 10px; }
.pcard-media { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden; background: var(--soft); }
.pcard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .5s; }
.pcard-media .alt { opacity: 0; }
.pcard:hover .pcard-media .alt { opacity: 1; }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-tags { position: absolute; left: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 2; }
.pcard-heart { position: absolute; right: 12px; top: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #442a22; display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: transform .15s, color .2s; }
.pcard-heart:hover { transform: scale(1.1); }
.pcard-heart.is-on { color: #e0245e; }
.pcard-heart.is-on i { font-weight: 900; }
.pcard-quick { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; transform: translateY(14px); opacity: 0; transition: all .25s; }
.pcard:hover .pcard-quick, .pcard:focus-within .pcard-quick { transform: none; opacity: 1; }
@media (hover: none) { .pcard-quick { opacity: 1; transform: none; } }
.pcard-body { display: grid; gap: 4px; padding: 0 4px; }
.pcard-cat { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard-title { font-weight: 700; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-lg); }
.pcard-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.stars { color: #f2b632; display: inline-flex; gap: 1px; font-size: 12px; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price strong { font-size: 17px; font-weight: 800; color: var(--ink); }
.price s { color: var(--faint); font-size: 13px; }
.price .from { font-size: 12px; color: var(--muted); font-weight: 600; }
.swatches { display: flex; gap: 5px; align-items: center; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line); display: inline-block; }
.pcard-heart, .pcard-quick, .pcard-tags { pointer-events: auto; }
.pcard-heart, .pcard-quick { z-index: 4; }

/* Skeleton */
.skel { position: relative; overflow: hidden; background: var(--soft); border-radius: var(--r-sm); }
.skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--card) 70%, transparent), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-card { display: grid; gap: 10px; }
.skel-card .skel:first-child { aspect-ratio: 1; border-radius: var(--r-lg); }
.skel-line { height: 14px; } .skel-line.w60 { width: 60%; } .skel-line.w40 { width: 40%; }

/* Progress bar de navigation */
#top-progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; z-index: 400; background: linear-gradient(90deg, var(--accent), var(--brand-solid)); box-shadow: 0 0 10px var(--accent); transition: width .25s ease, opacity .3s; opacity: 0; }

/* Toasts */
#toast-root { position: fixed; z-index: 500; top: 16px; right: 16px; display: grid; gap: 10px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--ok); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--shadow-lg); animation: toast-in .3s ease; font-weight: 600; font-size: 14px; }
.toast i { margin-top: 3px; color: var(--ok); }
.toast.error { border-left-color: var(--danger); } .toast.error i { color: var(--danger); }
.toast.info { border-left-color: var(--brand-solid); } .toast.info i { color: var(--brand); }
.toast .t-close { margin-left: auto; background: none; border: 0; color: var(--faint); }
.toast.leaving { opacity: 0; transform: translateX(20px); transition: all .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.96); } }

/* --- Formulaires ------------------------------------------------------------------- */
.field { display: grid; gap: 6px; }
.field label, .label { font-weight: 700; font-size: 13px; }
.input, .select, .textarea { width: 100%; background: var(--soft); border: 1.5px solid transparent; border-radius: 14px; padding: 0 16px; height: 48px; outline: none; transition: border-color .2s, background .2s; }
.textarea { height: auto; padding: 12px 16px; resize: vertical; min-height: 110px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); background: var(--card); }
.input.invalid { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: 12.5px; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
[hidden] { display: none !important; }
.alert { padding: 12px 16px; border-radius: var(--r); font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.alert-err { background: var(--danger-soft); color: var(--danger); }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-info { background: var(--warn-soft); color: #8a5a00; }
:root[data-theme="dark"] .alert-info { color: #f1d38a; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { accent-color: var(--brand-solid); width: 18px; height: 18px; margin-top: 2px; }
.radio-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--soft); border: 2px solid transparent; cursor: pointer; font-weight: 700; transition: all .2s; }
.radio-card:has(input:checked) { border-color: var(--brand-solid); background: var(--card); box-shadow: var(--shadow-sm); }
.radio-card input { accent-color: var(--brand-solid); }
.radio-card small { display: block; color: var(--muted); font-weight: 500; }
.qty { display: inline-flex; align-items: center; background: var(--soft); border-radius: 999px; height: 44px; }
.qty button { width: 40px; height: 100%; border: 0; background: transparent; font-size: 16px; border-radius: 999px; }
.qty button:hover { background: var(--soft-2); }
.qty input { width: 38px; text-align: center; border: 0; background: transparent; font-weight: 800; outline: none; }

/* --- Page produit -------------------------------------------------------------------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px; align-items: start; }
.gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
.thumbs { display: grid; gap: 10px; align-content: start; }
.thumb { border: 2px solid transparent; padding: 0; border-radius: 16px; overflow: hidden; background: var(--soft); aspect-ratio: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--brand-solid); }
.gallery-main { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--soft); aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #442a22; box-shadow: var(--shadow-md); }
.gallery-nav.prev { left: 12px; } .gallery-nav.next { right: 12px; }
.buybox { position: sticky; top: var(--gap); display: grid; gap: 18px; }
.buybox h1 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.03em; }
.buy-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow-md); display: grid; gap: 16px; }
.opt-title { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 13px; margin-bottom: 8px; }
.opt-title button { background: none; border: 0; color: var(--brand); font-weight: 700; text-decoration: underline; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn { min-width: 52px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-weight: 700; }
.size-btn:hover { border-color: var(--brand); }
.size-btn.is-active { background: var(--brand-solid); color: var(--on-brand); border-color: var(--brand-solid); }
.color-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 0 0 1.5px var(--line); position: relative; }
.color-btn.is-active { box-shadow: 0 0 0 2.5px var(--brand-solid); }
.eta { display: grid; gap: 10px; background: var(--soft); border-radius: var(--r); padding: 14px; }
.eta-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; font-size: 12px; position: relative; }
.eta-steps div { display: grid; gap: 4px; justify-items: center; }
.eta-steps i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--brand); }
.eta-steps b { font-size: 12.5px; }
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.trust div { display: flex; gap: 10px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.trust i { color: var(--leaf); width: 20px; text-align: center; }
.provider-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--soft); font-size: 12.5px; font-weight: 700; }
.provider-chip i { color: var(--pc, var(--brand)); }
.rating-box { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; }
.rating-big { text-align: center; }
.rating-big strong { font-size: 52px; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 34px 1fr 38px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.bar { height: 8px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: #f2b632; border-radius: 999px; }
.review { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.review header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blush); color: var(--brand); display: grid; place-items: center; font-weight: 800; }
.sticky-cta { display: none; }

/* --- Tableaux / pagination / listes ------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { background: var(--soft); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; display: inline-grid; place-items: center; font-weight: 700; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.pagination a:hover { background: var(--soft); }
.pagination .active, .pagination [aria-current="page"] span { background: var(--brand-solid); color: var(--on-brand); border-color: transparent; }
.pagination .disabled, .pagination span[aria-disabled] { opacity: .45; }
nav[role="navigation"] > div:first-child { display: none; }
nav[role="navigation"] > div:last-child > div:first-child { display: none; }
nav[role="navigation"] span.relative { display: flex; gap: 6px; flex-wrap: wrap; }
nav[role="navigation"] a, nav[role="navigation"] span[aria-current] > span, nav[role="navigation"] span[aria-disabled] > span { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; display: inline-grid; place-items: center; font-weight: 700; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
nav[role="navigation"] span[aria-current] > span { background: var(--brand-solid); color: var(--on-brand); }
nav[role="navigation"] svg { width: 16px; height: 16px; }

/* Accordéon FAQ */
.acc { display: grid; gap: 10px; }
.acc details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.acc summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary i { transition: transform .25s; color: var(--brand); }
.acc details[open] summary i { transform: rotate(180deg); }
.acc details > div { padding: 0 18px 18px; color: var(--muted); }

/* Stepper / timeline commande */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; margin: 8px 0; }
.step { display: grid; gap: 8px; justify-items: center; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--faint); position: relative; }
.step::before { content: ''; position: absolute; top: 20px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.step:first-child::before { display: none; }
.step i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); position: relative; z-index: 1; }
.step.done { color: var(--ink); } .step.done i { background: var(--brand-solid); color: var(--on-brand); } .step.done::before { background: var(--brand-solid); }
.step.now i { box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-solid) 22%, transparent); }
.progress { height: 10px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--brand-solid)); border-radius: 999px; transition: width .5s; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 250; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 12, 8, .55); backdrop-filter: blur(4px); }
.modal.open { display: flex; animation: fade .2s; }
.modal-box { width: min(680px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--card); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow-lg); position: relative; }
.modal-close { position: absolute; right: 14px; top: 14px; }
@keyframes fade { from { opacity: 0; } }

/* Stats / étapes / témoignages */
.stat { text-align: center; display: grid; gap: 4px; }
.stat strong { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.04em; color: var(--brand); }
.stat span { font-size: 13px; color: var(--muted); font-weight: 600; }
.how-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: s; }
.how-step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: grid; gap: 10px; }
.how-step .ico { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: var(--blush); color: var(--brand); font-size: 20px; }
.how-step::after { counter-increment: s; content: '0' counter(s); position: absolute; right: 18px; top: 16px; font-size: 36px; font-weight: 800; color: var(--soft-2); }
.quote-card { display: grid; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.quote-card p { color: var(--muted); }
.creator { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 22px; }
.creator img { width: 96px; height: 96px; border-radius: 50%; }
.band { border-radius: var(--r-xl); padding: clamp(24px, 4vw, 44px); background: linear-gradient(120deg, var(--leaf), #2e4e38); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; position: relative; overflow: hidden; }
:root[data-theme="dark"] .band { background: linear-gradient(120deg, #20382a, #2e4e38); }
.band h2 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; max-width: 22ch; }
.band p { opacity: .85; max-width: 52ch; margin-top: 6px; }
.band::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -60px; bottom: -100px; background: rgba(255, 255, 255, .08); }
.news-form { display: flex; gap: 8px; background: var(--card); border-radius: 999px; padding: 6px; max-width: 460px; width: 100%; }
.news-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px; outline: none; color: var(--ink); }

/* Panier */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 96px; height: 96px; border-radius: 18px; object-fit: cover; background: var(--soft); }
.cart-item h3 { font-size: 15px; font-weight: 700; }
.cart-item .opts { font-size: 12.5px; color: var(--muted); }
.summary { position: sticky; top: var(--gap); display: grid; gap: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.sum-row.total { font-size: 18px; font-weight: 800; color: var(--ink); border-top: 1px solid var(--line); padding-top: 14px; }
.free-ship { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; }
.empty { text-align: center; padding: 48px 16px; display: grid; gap: 14px; justify-items: center; }
.empty i { font-size: 44px; color: var(--blush-ink); opacity: .6; }

/* Footer */
.footer { background: var(--brand-solid); color: var(--on-brand); border-radius: var(--r-xl); padding: clamp(24px, 3.4vw, 44px); display: grid; gap: 28px; }
:root[data-theme="dark"] .footer { background: #20170f; color: #f4ede7; border: 1px solid var(--line); }
.footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; margin-bottom: 12px; }
.footer li { margin-bottom: 8px; font-size: 14px; opacity: .92; }
.footer .brand { color: inherit; }
.foot-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 18px; font-size: 13px; opacity: .85; }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); }
.socials a:hover { background: rgba(255, 255, 255, .24); text-decoration: none; }
.pay-icons { display: flex; gap: 10px; font-size: 28px; opacity: .85; flex-wrap: wrap; }

/* --- Chat flottant --------------------------------------------------------------------- */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 180; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--brand-solid); color: var(--on-brand); font-size: 24px; box-shadow: var(--shadow-lg); display: grid; place-items: center; transition: transform .45s cubic-bezier(.2, .9, .3, 1.2), opacity .35s; }
.chat-fab.is-hidden { transform: translateX(90px) scale(.7); opacity: 0; pointer-events: none; }
.chat-fab::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ping 2.4s infinite; }
@keyframes ping { 0% { transform: scale(.85); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
.chat-panel { position: fixed; right: 20px; bottom: 20px; z-index: 190; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 40px)); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden; }
.chat-panel.open { display: flex; animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(120deg, var(--brand-solid), var(--brand-2)); color: var(--on-brand); }
:root[data-theme="dark"] .chat-head { background: linear-gradient(120deg, #5d4037, #3a241d); color: #fff; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; position: relative; }
.chat-avatar::after { content: ''; position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; background: #5fe08a; border: 2px solid var(--brand-solid); border-radius: 50%; }
.chat-head strong { display: block; font-size: 14.5px; }
.chat-head small { font-size: 12px; opacity: .85; }
.chat-mode { display: flex; gap: 4px; padding: 8px 12px; background: var(--soft); }
.chat-mode button { flex: 1; height: 34px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; font-size: 12.5px; color: var(--muted); }
.chat-mode button.is-active { background: var(--card); color: var(--brand); box-shadow: var(--shadow-sm); }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.5; animation: pop .2s; overflow-wrap: anywhere; }
.msg.bot, .msg.agent { align-self: flex-start; background: var(--soft); border-bottom-left-radius: 6px; }
.msg.agent { background: var(--leaf-soft); }
.msg.visitor { align-self: flex-end; background: var(--brand-solid); color: var(--on-brand); border-bottom-right-radius: 6px; }
.msg a { text-decoration: underline; font-weight: 700; }
.msg-meta { font-size: 11px; color: var(--faint); margin: -4px 4px 0; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; align-self: flex-start; background: var(--soft); border-radius: 18px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 8px; }
.chat-quick button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; }
.chat-quick button:hover { background: var(--blush); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; height: 44px; border-radius: 999px; border: 0; background: var(--soft); padding: 0 16px; outline: none; }
.chat-handoff { padding: 14px; display: grid; gap: 10px; background: var(--soft); border-radius: var(--r); }

/* Animations */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* --- Responsive ---------------------------------------------------------------------- */
@media (max-width: 1280px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cart-layout, .checkout-layout { grid-template-columns: minmax(0, 1fr) 340px; }
    .foot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
    .shell { grid-template-columns: 1fr; padding: 10px; gap: 12px; }
    .topbar { display: flex; }
    .sidebar { position: fixed; left: 10px; top: 10px; bottom: 10px; width: min(330px, calc(100vw - 20px)); height: auto; transform: translateX(-115%); transition: transform .3s cubic-bezier(.3, .8, .3, 1); z-index: 220; box-shadow: var(--shadow-lg); }
    .sidebar.open { transform: none; }
    .drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 210; background: rgba(20, 12, 8, .5); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s; }
    .drawer-backdrop.open { opacity: 1; pointer-events: auto; }
    .btn.drawer-close, .btn.menu-btn { display: inline-flex; }
    .pdp { grid-template-columns: 1fr; }
    .gallery, .buybox, .summary { position: static; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .sticky-cta { display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 120; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 20px; box-shadow: var(--shadow-lg); align-items: center; justify-content: space-between; gap: 10px; }
    .chat-fab { bottom: 84px; }
    body.has-sticky .chat-panel { bottom: 12px; }
}
@media (max-width: 900px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bento > .tile { grid-column: span 1 !important; grid-row: auto !important; }
    .tile-a { grid-column: span 2 !important; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rating-box { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 680px) {
    body { font-size: 14.5px; }
    .hero { min-height: 380px; align-items: flex-start; }
    .hero-copy { max-width: 100%; padding: 22px 18px 150px; }
    .hero-art { width: 78%; right: -8%; bottom: -8%; }
    .hero-badge { display: none; }
    .page-hero { height: clamp(78px, 22vw, 110px); }
    .page-hero-side { display: none; }
    .grid-2, .grid-3, .grid-4, .form-grid, .how-steps, .trust { grid-template-columns: 1fr; }
    .grid-2.keep, .grid-3.keep { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
    .pcard-body { padding: 0 2px; }
    .pcard-title { font-size: 13.5px; }
    .price strong { font-size: 15px; }
    .gallery { grid-template-columns: 1fr; }
    .thumbs { grid-auto-flow: column; grid-auto-columns: 64px; overflow-x: auto; order: 2; }
    .cart-item { grid-template-columns: 76px minmax(0, 1fr); }
    .cart-item img { width: 76px; height: 76px; }
    .cart-item > :last-child { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
    .foot-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(2, 1fr); gap: 16px 0; }
    .step::before { display: none; }
    .bento { grid-template-columns: 1fr; }
    .tile-a { grid-column: span 1 !important; }
    .chat-panel { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: calc(100vh - 16px); border-radius: 22px; }
    .modal-box { padding: 18px; }
    .btn-lg { height: 48px; padding: 0 22px; }
}
@media print { .sidebar, .topbar, .chat-fab, .chat-panel, .footer, .sticky-cta { display: none !important; } .shell { display: block; } }

/* Ajustements revue UI/UX */
.pcard-cat > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-cat .pcard-meta { flex: none; flex-wrap: nowrap; white-space: nowrap; }
[data-theme-toggle] .fa-sun { display: none; }
:root[data-theme="dark"] [data-theme-toggle] .fa-sun { display: inline; }
:root[data-theme="dark"] [data-theme-toggle] .fa-moon { display: none; }
@media (max-width: 680px) {
    .hero { min-height: 0; }
    .hero-copy { padding: 20px 16px; gap: 10px; max-width: 100%; }
    .hero h1 { font-size: 26px; }
    .hero-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .hero-tags { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .hero-tags .chip { flex: none; }
    .hero-art { position: absolute; right: -12%; bottom: -16%; width: 64%; opacity: .3; margin: 0; }
}

.pdp-studio { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
.sticky-card { position: sticky; top: var(--gap); }
.table { min-width: 360px; }
@media (max-width: 1100px) { .pdp-studio { grid-template-columns: 1fr; } .sticky-card { position: static; } }

#filters { min-width: 0; }
#filters > * { min-width: 0; max-width: 100%; }
.section, .stack, .main > * { min-width: 0; }
.pcard, .pcard-body, .pcard-cat, .pcard-meta { min-width: 0; max-width: 100%; }
.pcard-meta { flex-wrap: wrap; }
.pcard-cat .pcard-meta { flex-wrap: nowrap; }

/* --- Blog / Journal ----------------------------------------------------------------- */
.pill-accent { background: var(--accent); color: #fff; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px var(--gap); }
.bcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .25s, box-shadow .25s; min-width: 0; }
.bcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bcard-media { display: block; aspect-ratio: 1200 / 630; background: var(--soft); overflow: hidden; }
.bcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.bcard:hover .bcard-media img { transform: scale(1.05); }
.bcard-body { display: grid; gap: 10px; padding: 18px; align-content: start; flex: 1; }
.bcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 12.5px; color: var(--muted); }
.bcard-title { font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: -.02em; }
.bcard-title a:hover { color: var(--brand); text-decoration: underline; }
.bcard-excerpt { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bcard-foot { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--faint); margin-top: auto; padding-top: 4px; }
.bfeatured { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.bfeatured-media { display: block; background: var(--soft); min-height: 260px; }
.bfeatured-media img { width: 100%; height: 100%; object-fit: cover; }
.bfeatured-body { display: grid; gap: 14px; padding: clamp(20px, 3vw, 38px); align-content: center; }
.bfeatured-body h2 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.bfeatured-body h2 a:hover { color: var(--brand); }
.post { display: grid; gap: 22px; max-width: 1040px; width: 100%; margin-inline: auto; }
.post-head { display: grid; gap: 14px; max-width: 760px; }
.post-head h1 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.post-lead { font-size: 18px; color: var(--muted); line-height: 1.6; }
.post-cover { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--r-xl); background: var(--soft); }
.post-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.post-layout:not(:has(.post-toc)) { grid-template-columns: minmax(0, 720px); justify-content: center; }
.post-toc { position: sticky; top: var(--gap); display: grid; gap: 10px; padding: 18px; font-size: 14px; }
.post-toc nav { display: grid; gap: 4px; }
.post-toc a { padding: 6px 10px; border-radius: 10px; color: var(--muted); font-weight: 600; }
.post-toc a:hover { background: var(--soft); color: var(--brand); }
.post-body { max-width: 720px; font-size: 17px; line-height: 1.8; }
.post-body h2 { font-size: 26px; font-weight: 800; letter-spacing: -.025em; margin: 36px 0 12px; scroll-margin-top: 24px; }
.post-body .pd-p { font-size: 17px; margin-bottom: 18px; color: var(--ink); opacity: .9; }
.post-body .pd-list { margin-bottom: 20px; gap: 10px; }
.post-body .pd-list li { color: var(--ink); }
.post-body .pd-quote { font-size: 20px; line-height: 1.5; font-style: italic; margin: 28px 0; padding: 18px 24px; background: var(--blush); border-left-color: var(--accent); color: var(--brand); border-radius: 0 var(--r) var(--r) 0; }
:root[data-theme="dark"] .post-body .pd-quote { color: #f5d9cd; }
.post-body .pd-specs { margin-bottom: 20px; }
.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.post-nav a { display: grid; gap: 4px; padding: 16px 20px; transition: transform .2s, box-shadow .2s; }
.post-nav a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
@media (max-width: 1100px) { .bfeatured { grid-template-columns: 1fr; } .post-layout { grid-template-columns: 1fr; } .post-toc { position: static; } }
@media (max-width: 680px) { .post-nav { grid-template-columns: 1fr; } .post-body, .post-body .pd-p { font-size: 16px; } .blog-grid { grid-template-columns: 1fr; } .post-head h1 { font-size: 28px; } }
.bfeatured-media img { object-position: 72% center; }

/* --- Sidebar : textes jamais coupés par les bordures ------------------------------------- */
.sidebar .nav-link { min-height: 48px; padding: 8px 14px 8px 10px; line-height: 1.3; align-items: center; }
.sidebar .nav-link i { flex: none; width: 34px; height: 34px; }
.sidebar .nav-link span { min-width: 0; overflow-wrap: anywhere; padding-block: 2px; }
.sidebar .btn { height: auto; min-height: 46px; padding: 11px 18px; white-space: normal; line-height: 1.25; text-align: center; }
.sidebar .btn-sm { min-height: 42px; padding: 10px 14px; }
.sidebar .side-cta { padding: 18px; }
.sidebar .side-cta strong { line-height: 1.3; }
.sidebar .side-cta p { line-height: 1.45; }
.sidebar .dd-btn, .sidebar .theme-btn { height: auto; min-height: 44px; line-height: 1.2; }
.sidebar .side-user { min-height: 50px; line-height: 1.3; padding-block: 10px; }
.sidebar .search-pill { height: 48px; }
.sidebar .search-pill input { line-height: 1.4; padding-block: 2px; }
.sidebar-scroll { padding-bottom: 6px; }
.sidebar-scroll > * { flex-shrink: 0; }
.nav-link:focus-visible, .sidebar .btn:focus-visible { outline-offset: -2px; }
:root[data-theme="dark"] .sidebar .nav-link.is-active { color: #fff; }

/* --- Lookbook (photos) -------------------------------------------------------------------- */
.look-rail { grid-auto-columns: minmax(220px, 280px); }
.look { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--soft); isolation: isolate; }
.look img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.look:hover img { transform: scale(1.06); }
.look::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 12, 8, .72), transparent 55%); z-index: 1; }
.look-cap { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; display: grid; gap: 2px; color: #fff; line-height: 1.3; }
.look-cap b { font-size: 16px; font-weight: 800; }
.look-cap small { font-size: 12.5px; font-weight: 700; opacity: .9; }
