/* =========================================================================
   EasySlim — charte graphique
   ========================================================================= */
:root {
  --plum: #3B1D33;
  --plum-2: #5B2A4A;
  --plum-3: #7E4468;
  --blush: #F2D6C9;
  --sand: #F3E6DC;
  --cream: #FBF6F2;
  --paper: #FFFDFB;
  --ink: #2A1E25;
  --muted: #6B5A63;
  --line: #EADBD1;
  --gold: #E0A100;
  --success: #2F7A4F;
  --danger: #B3261E;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px -12px rgba(59, 29, 51, .22);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
em, .italic { font-style: italic; color: var(--plum-2); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-sm { padding: 48px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--plum-2); font-weight: 700; margin-bottom: 12px; display: block; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }
.bg-sand { background: var(--sand); }
.bg-paper { background: var(--paper); }
.bg-plum { background: var(--plum); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--plum-2); outline-offset: 2px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 30px; border-radius: 999px; border: 2px solid var(--plum); background: var(--plum); color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; }
.btn:hover { background: var(--plum-2); border-color: var(--plum-2); box-shadow: var(--shadow); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--plum); }
.btn-outline:hover { background: var(--plum); color: #fff; }
.btn-light { background: #fff; color: var(--plum); border-color: #fff; }
.btn-light:hover { background: var(--blush); border-color: var(--blush); }
.btn-block { width: 100%; }
.btn-lg { padding: 19px 36px; font-size: 1.06rem; }
.link { color: var(--plum-2); font-weight: 700; text-underline-offset: 3px; cursor: pointer; background: none; border: 0; padding: 0; text-decoration: underline; }

/* ---------- Bandeau d'annonce & header ---------- */
.announce { background: var(--plum); color: var(--blush); font-size: .82rem; letter-spacing: .05em; text-align: center; height: 38px; overflow: hidden; position: relative; }
.announce div { position: absolute; inset: 0; line-height: 38px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 12px; opacity: 0; transform: translateY(8px); transition: .5s; }
.announce div.on { opacity: 1; transform: none; }
.announce b { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 246, 242, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header > .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 70px; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 26px; font-size: .95rem; font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { border-color: var(--plum-2); }
.header-actions { display: flex; justify-content: flex-end; gap: 6px; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--sand); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--plum-2); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.cart-count:empty, .cart-count[data-n="0"] { display: none; }
.burger { display: none; }
.mobile-nav { display: none; }
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: grid; }
  .site-header > .wrap { height: 62px; }
  .logo img { height: 28px; }
  .mobile-nav.open { display: block; position: fixed; inset: 0; z-index: 80; background: var(--cream); padding: 24px; overflow: auto; }
  .mobile-nav a { display: block; font-family: var(--serif); font-size: 1.7rem; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--sand), var(--cream)); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; min-height: 600px; }
.hero h1 { margin-bottom: 20px; }
.hero-visual { border-radius: 32px 32px 240px 240px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
.hero-proof { display: flex; align-items: center; gap: 14px; font-size: .92rem; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--plum-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='white' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 32px; padding-bottom: 40px; gap: 26px; }
  .hero-visual { order: -1; border-radius: 24px 24px 160px 160px; }
}

/* ---------- Bandeau de réassurance ---------- */
.trust { border-block: 1px solid var(--line); background: var(--paper); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.trust-item { display: flex; align-items: center; gap: 12px; font-size: .92rem; line-height: 1.3; }
.trust-item svg { width: 30px; height: 30px; flex: none; color: var(--plum-2); }
.trust-item b { display: block; }
@media (max-width: 800px) { .trust .wrap { grid-template-columns: 1fr 1fr; } }

/* ---------- Grilles & cartes produit ---------- */
.grid { display: grid; gap: 28px 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; } .grid-2 { grid-template-columns: 1fr; } }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.card-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.card-media .alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-media img { transform: scale(1.03); }
.card:hover .card-media .alt { opacity: 1; }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: #fff; color: var(--plum); font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 5px 10px; border-radius: 99px; }
.badge.dark { background: var(--plum); color: #fff; }
.card h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 6px 0 0; line-height: 1.35; }
.card .price { font-weight: 700; }
.card .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.swatches { display: flex; gap: 6px; }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.stars { display: inline-flex; align-items: center; gap: 1px; color: var(--gold); }
.stars svg { width: 15px; height: 15px; }
.rating-line { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.sw-nude { background: #D6AE93; } .sw-noir { background: #2B2527; } .sw-moka { background: #7B5643; } .sw-rose { background: #E3AEB2; }

/* ---------- Tuiles zones ---------- */
.zone-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; text-decoration: none; }
.zone-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.zone-tile:hover img { transform: scale(1.05); }
.zone-tile span { position: absolute; left: 14px; right: 14px; bottom: 14px; background: rgba(255, 253, 251, .95); border-radius: 99px; padding: 10px 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }

/* ---------- Blocs éditoriaux ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.split img { border-radius: 28px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.feature { padding: 26px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--sand); display: grid; place-items: center; margin-bottom: 14px; color: var(--plum-2); }
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--muted); margin: 0; }
.banner { border-radius: 28px; padding: clamp(32px, 6vw, 64px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; }
@media (max-width: 760px) { .banner { grid-template-columns: 1fr; } }

/* Offre pack */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.pack { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius); padding: 24px; text-align: center; }
.pack.best { background: #fff; color: var(--plum); }
.pack .big { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
@media (max-width: 640px) { .packs { grid-template-columns: 1fr; } }

/* ---------- Avis ---------- */
.review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.review h4 { font-family: var(--sans); font-weight: 700; font-size: 1rem; margin: 0; }
.review p { margin: 0; color: var(--ink); }
.review .who { font-size: .85rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: auto; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--sand); color: var(--plum-2); }
.tag.ok { background: #E3F1E8; color: var(--success); }
.tag.demo { background: #FFF3D6; color: #8A5A00; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.carousel > * { scroll-snap-align: start; }
.review-summary { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; margin-bottom: 28px; }
.review-summary .score { font-family: var(--serif); font-size: 3.6rem; line-height: 1; }
.dist-row { display: grid; grid-template-columns: 34px 1fr 34px; gap: 10px; align-items: center; font-size: .85rem; color: var(--muted); }
.dist-bar { height: 8px; border-radius: 9px; background: var(--line); overflow: hidden; }
.dist-bar i { display: block; height: 100%; background: var(--gold); }
@media (max-width: 640px) { .review-summary { grid-template-columns: 1fr; } }

/* ---------- FAQ / accordéons ---------- */
details.acc { border-bottom: 1px solid var(--line); }
details.acc summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; font-weight: 700; position: relative; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 1.6rem; font-weight: 300; transition: transform .2s; }
details.acc[open] summary::after { transform: rotate(45deg); }
details.acc .acc-body { padding: 0 0 20px; color: var(--muted); }
details.acc .acc-body ul { padding-left: 18px; margin: 0; }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .88rem; font-weight: 700; }
.input, select.input, textarea.input { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s; }
.input:focus { border-color: var(--plum-2); outline: none; }
textarea.input { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--plum); width: 18px; height: 18px; flex: none; }
.inline-form { display: flex; gap: 10px; }
.inline-form .input { flex: 1; }
@media (max-width: 520px) { .inline-form { flex-direction: column; } }
.error { color: var(--danger); font-size: .9rem; margin-top: 6px; }
.success { color: var(--success); font-weight: 700; }

/* ---------- Page produit ---------- */
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 64px); padding-top: 26px; padding-bottom: 60px; }
.gallery { display: grid; grid-template-columns: 80px 1fr; gap: 14px; position: sticky; top: 90px; align-self: start; }
.gallery .thumbs { display: flex; flex-direction: column; gap: 10px; }
.gallery .thumbs button { border: 2px solid transparent; border-radius: 12px; overflow: hidden; padding: 0; cursor: pointer; background: var(--sand); aspect-ratio: 4/5; }
.gallery .thumbs button.on { border-color: var(--plum); }
.gallery .main { border-radius: 24px; overflow: hidden; background: var(--sand); aspect-ratio: 4/5; position: relative; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 10px; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 6px; }
.pdp-price .now { font-size: 1.7rem; font-weight: 700; }
.opt-label { font-weight: 700; font-size: .92rem; margin: 22px 0 10px; display: flex; justify-content: space-between; align-items: center; }
.opt-label span { font-weight: 400; color: var(--muted); }
.color-opts { display: flex; gap: 10px; }
.color-opts button { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; }
.color-opts button.on { box-shadow: 0 0 0 2px var(--plum); }
.size-opts { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.size-opts button { padding: 12px 0; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-weight: 700; font-size: .88rem; cursor: pointer; }
.size-opts button.on { background: var(--plum); color: #fff; border-color: var(--plum); }
.size-opts.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (max-width: 520px) { .size-opts { grid-template-columns: repeat(4, 1fr); } }
.pack-opts { display: grid; gap: 10px; }
.pack-opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; position: relative; }
.pack-opt.on { border-color: var(--plum); background: #FCF4F7; box-shadow: 0 0 0 1px var(--plum); }
.pack-opt input { accent-color: var(--plum); width: 18px; height: 18px; }
.pack-opt .t { flex: 1; }
.pack-opt .t b { display: block; }
.pack-opt .t small { color: var(--muted); }
.pack-opt .p { text-align: right; font-weight: 700; }
.pack-opt .p s { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.pack-opt .flag { position: absolute; top: -10px; right: 14px; background: var(--plum-2); color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.pdp-assure { display: grid; gap: 10px; margin: 18px 0; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; font-size: .9rem; }
.pdp-assure div { display: flex; gap: 10px; align-items: center; }
.pdp-assure svg { width: 20px; height: 20px; color: var(--plum-2); flex: none; }
.pay-icons { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.pay-icons span { font-size: .68rem; font-weight: 700; border: 1px solid var(--line); background: #fff; padding: 4px 8px; border-radius: 6px; color: var(--muted); }
.sticky-atc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; transform: translateY(calc(100% + 40px)); transition: transform .3s; box-shadow: 0 -8px 30px rgba(0, 0, 0, .06); }
.sticky-atc.show { transform: none; }
.sticky-atc img { width: 44px; height: 55px; object-fit: cover; border-radius: 8px; }
.sticky-atc .t { flex: 1; font-size: .85rem; line-height: 1.3; min-width: 0; }
.sticky-atc .t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-atc .btn { padding: 13px 20px; }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; padding-top: 12px; }
  .gallery { grid-template-columns: 1fr; position: static; }
  .gallery .thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .gallery .thumbs button { width: 64px; flex: none; }
}
@media (min-width: 901px) { .sticky-atc { max-width: 560px; left: auto; right: 24px; bottom: 24px; border-radius: 18px; border: 1px solid var(--line); } }

/* ---------- Tiroir panier ---------- */
.overlay { position: fixed; inset: 0; background: rgba(42, 30, 37, .45); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .3s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--cream); z-index: 100; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 1.4rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.progress-box { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: .88rem; margin-bottom: 14px; }
.progress { height: 7px; background: var(--line); border-radius: 9px; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--plum-3), var(--plum)); border-radius: 9px; transition: width .4s; }
.line-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-item img { width: 72px; height: 90px; object-fit: cover; border-radius: 10px; background: var(--sand); }
.line-item .n { font-weight: 700; font-size: .92rem; line-height: 1.3; }
.line-item .v { font-size: .82rem; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 99px; margin-top: 8px; background: #fff; }
.qty button { width: 30px; height: 30px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; font-size: .9rem; }
.remove { font-size: .78rem; color: var(--muted); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 0; margin-top: 6px; display: block; }
.totals { display: grid; gap: 6px; font-size: .95rem; margin-bottom: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 1.15rem; font-weight: 700; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.totals .disc { color: var(--success); font-weight: 700; }
.upsell { margin-top: 18px; }
.upsell-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; font-size: .85rem; }
.upsell-item img { width: 54px; height: 66px; object-fit: cover; border-radius: 8px; }
.upsell-item select { font-size: .8rem; padding: 4px; border-radius: 6px; border: 1px solid var(--line); margin-top: 4px; }
.empty { text-align: center; padding: 50px 10px; }

/* ---------- Modales & popup ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(42, 30, 37, .55); }
.modal-box { position: relative; background: var(--cream); border-radius: 24px; max-width: 760px; width: 100%; max-height: 92vh; overflow: auto; box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); cursor: pointer; font-size: 1.4rem; line-height: 1; }
.popup { display: grid; grid-template-columns: 1fr 1.1fr; }
.popup .vis { background: var(--sand); }
.popup .vis img { width: 100%; height: 100%; object-fit: cover; }
.popup .txt { padding: 40px 34px; }
.popup .big { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--plum); margin: 4px 0 8px; }
.code-pill { display: inline-block; font-size: 1.5rem; font-weight: 700; letter-spacing: .15em; padding: 12px 24px; border: 2px dashed var(--plum-2); border-radius: 14px; background: #fff; margin: 12px 0; }
@media (max-width: 640px) { .popup { grid-template-columns: 1fr; } .popup .vis { height: 180px; } .popup .txt { padding: 26px 22px; } }

/* ---------- Tableaux ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; border-radius: 14px; overflow: hidden; }
.table th, .table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { background: var(--sand); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.table tr.hl td { background: #FCF4F7; font-weight: 700; }
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 200; background: var(--plum); color: #fff; padding: 14px 22px; border-radius: 99px; font-weight: 700; font-size: .92rem; box-shadow: var(--shadow); transition: transform .35s; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum); color: #E9D6DE; padding: 64px 0 28px; font-size: .92rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: #BFA3B3; }
.site-footer .input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); color: #fff; }
.site-footer .input::placeholder { color: #BFA3B3; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Divers ---------- */
.page-head { padding: 48px 0 24px; text-align: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 9px 16px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: .88rem; font-weight: 500; text-decoration: none; }
.chip.on { background: var(--plum); color: #fff; border-color: var(--plum); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose p, .prose li { color: #4a3b43; }
.box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.demo-banner { background: #FFF3D6; color: #6B4600; text-align: center; font-size: .85rem; padding: 8px 12px; }
.skeleton { background: linear-gradient(90deg, var(--sand), var(--paper), var(--sand)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* =========================================================================
   v2 — inspirations Shapermint : méga-menu, recherche, aide, packs par couleur
   ========================================================================= */
.card-cat { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.card h3 { margin-top: 0; }
.pack-hint { font-size: .8rem; color: var(--plum-2); font-weight: 700; }

/* Méga-menu */
.has-mega { position: static; }
.has-mega > a { display: inline-block; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(59, 29, 51, .35); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-grid { display: grid; grid-template-columns: 2.2fr 1fr; gap: 40px; padding-top: 28px; padding-bottom: 32px; height: auto !important; align-items: start !important; }
.mega h4 { font-family: var(--sans); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.mega-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px 12px; }
.mega-cats a, .mobile-cats a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: .85rem; font-weight: 500; text-decoration: none; border: 0 !important; }
.mega-cats img, .mobile-cats img, .cat-bubbles img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--sand); transition: transform .2s; }
.mega-cats a:hover img, .cat-bubbles a:hover img { transform: scale(1.06); }
.mega-link { display: block; padding: 7px 0 !important; border: 0 !important; }
.mega-link:hover { color: var(--plum-2); }
.mega-promo { margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--sand); font-size: .88rem; display: grid; gap: 4px; }
.mobile-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; margin-bottom: 14px; }
.mobile-nav .mobile-cats a { font-family: var(--sans); font-size: .8rem; padding: 0; border: 0; }
.mobile-cats img { width: 72px; height: 72px; }

/* Recherche */
.search-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 18px 0 22px; }
.search-panel .wrap { display: block !important; height: auto !important; }
.search-box { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 18px; background: #fff; }
.search-box > svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search-box input { flex: 1; border: 0; outline: none; padding: 10px 0; background: none; font-size: 1rem; min-width: 0; }
.search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 14px; }
.search-hit { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; text-decoration: none; }
.search-hit:hover { background: var(--sand); }
.search-hit img { width: 52px; height: 65px; border-radius: 8px; object-fit: cover; background: var(--sand); }
.search-hit small { display: block; color: var(--muted); }

/* Bulle d'aide */
.help { position: fixed; right: 18px; bottom: 18px; z-index: 35; }
.help-fab { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--plum); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.help-fab svg { width: 26px; height: 26px; }
.help-panel { position: absolute; right: 0; bottom: 68px; width: 270px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.help-panel a { display: block; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: .92rem; }
.help-panel a:hover { color: var(--plum-2); }
@media (min-width: 901px) { .sticky-atc { right: 90px; } }

/* Bulles de catégories (accueil) */
.cat-bubbles { display: flex; gap: 22px; overflow-x: auto; justify-content: center; padding: 4px 4px 10px; scrollbar-width: none; }
.cat-bubbles a { flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: .9rem; width: 104px; text-align: center; }
.cat-bubbles img { width: 104px; height: 104px; }
@media (max-width: 1000px) { .cat-bubbles { justify-content: flex-start; } .cat-bubbles a { width: 84px; } .cat-bubbles img { width: 84px; height: 84px; } }

/* Fiche produit v2 */
.fit-line { margin-top: 10px; font-size: .86rem; background: var(--sand); border-radius: 10px; padding: 10px 12px; }
.unit-colors { display: grid; gap: 8px; margin-top: 12px; }
.unit-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .88rem; padding: 8px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.unit-row .color-opts button { width: 30px; height: 30px; border-width: 2px; }
.policy { display: flex; gap: 14px; align-items: flex-start; margin: 16px 0; padding: 16px; border-radius: 14px; background: #F1F7F3; border: 1px solid #D6E9DC; font-size: .9rem; }
.policy svg { width: 26px; height: 26px; color: var(--success); flex: none; }
.policy b { display: block; margin-bottom: 2px; }
.why { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.why li { display: flex; gap: 10px; align-items: flex-start; }
.why li::before { content: '✓'; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--plum-2); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
.hide-sm { }
@media (max-width: 520px) { .hide-sm { display: none !important; } }
@media (max-width: 700px) { .help { right: 12px; bottom: 12px; } .help-fab { width: 46px; height: 46px; opacity: .92; } .help-fab svg { width: 22px; height: 22px; } .help-panel { bottom: 56px; width: calc(100vw - 24px); } }

/* Offre « 2e à -50 % » */
.coupon-tag { margin-top: 10px; padding: 8px 12px; border-radius: 10px; border: 1.5px dashed var(--plum-3); background: #fff; font-size: .84rem; }
.coupon-tag.on { border-color: var(--success); background: #F1F7F3; color: #24603D; }
.offer2-badge { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--plum); color: #fff; font: 700 1.5rem var(--sans); transform: rotate(-8deg); box-shadow: var(--shadow); }
.offer2-list .upsell-item { grid-template-columns: 64px 1fr auto; }
.offer2-list .upsell-item img { width: 64px; height: 80px; }
@media (max-width: 520px) { .offer2-list .upsell-item { grid-template-columns: 64px 1fr; } .offer2-list .upsell-item .btn { grid-column: 1 / -1; } }

/* Guides SEO */
.crumbs { padding-top: 26px; } .crumbs a { text-decoration: none; }
.article-head { max-width: 820px; padding: 18px 0 10px; }
.article-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 50px; padding: 20px 0 80px; }
.article-side { position: sticky; top: 90px; align-self: start; }
.article-body.prose { max-width: 760px; margin: 0; }
.article-body h2 { scroll-margin-top: 90px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .92rem; background: #fff; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.article-body th { background: var(--sand); }
.article-body a { color: var(--plum-2); font-weight: 600; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 26px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; } .toc a { font-weight: 500 !important; text-decoration: none; }
.reco-list { display: grid; gap: 12px; }
.reco { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); text-decoration: none; }
.reco img { width: 90px; height: 112px; object-fit: cover; border-radius: 10px; }
.reco p { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }
.side-links { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; font-size: .92rem; }
.guide-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.guide-card h2, .guide-card h3 { font-size: 1.25rem; margin: 0; }
.guide-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.seo-body { max-width: 860px; margin: 10px auto 0; }
.seo-body h2 { font-size: 1.5rem; margin-top: 1.4em; }
.seo-body p, .seo-body li { color: #4a3b43; }
.seo-body a { color: var(--plum-2); font-weight: 600; }
@media (max-width: 960px) { .article-grid { grid-template-columns: 1fr; } .article-side { position: static; } .reco { grid-template-columns: 70px 1fr; } .reco img { width: 70px; height: 88px; } .reco .btn { grid-column: 1 / -1; } }
@media (max-width: 1180px) { .nav a[href="/suivi"], .nav a[href="/collection/panty-shorts-gainants"] { display: none; } }
.article-body a.reco { color: var(--ink); font-weight: 400; }
.article-body a.reco b { color: var(--ink); }
.article-body a.reco .btn { color: #fff; }

/* =========================================================================
   v3 — passe de cohérence (photos uniquement, icônes SVG, composants unifiés)
   ========================================================================= */
.nav a { white-space: nowrap; }
.btn-sm { padding: 10px 16px; font-size: .84rem; border-width: 1.5px; }
.icon-link { display: inline-flex; align-items: center; gap: 6px; }
.icon-link svg, .ico-inline svg { width: 16px; height: 16px; }
.ico-inline { display: inline-flex; vertical-align: -3px; margin-right: 6px; color: var(--plum-2); }
.icon-circle { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: #E3F1E8; color: var(--success); display: grid; place-items: center; }
.icon-circle svg { width: 30px; height: 30px; }
.help-panel a { display: flex; align-items: center; gap: 10px; }
.help-panel a svg { width: 18px; height: 18px; color: var(--plum-2); flex: none; }
.progress-box > svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; color: var(--success); }
.coupon-tag { display: flex; align-items: center; gap: 8px; }
.coupon-tag svg { width: 18px; height: 18px; flex: none; }

/* Photos : même cadrage partout (le haut du corps reste visible) */
.card-media img, .zone-tile img, .hero-photos img, .spot-photos img, .reco img, .search-hit img, .line-item img, .upsell-item img { object-position: center 30%; }
.detail-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 30%; border-radius: 28px; background: var(--sand); }

/* Jauge de maintien */
.gauge { margin-top: 22px; padding: 20px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.gauge-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gauge-bars i { display: block; height: 10px; border-radius: 99px; background: var(--line); }
.gauge-bars .on i { background: var(--plum-2); }
.gauge-bars span { display: block; margin-top: 6px; font-size: .82rem; color: var(--muted); text-align: center; }
.gauge-bars span.cur { color: var(--plum); font-weight: 700; }

/* Zones tactiles ≥ 40 px */
.qty button { width: 40px; height: 40px; }
.unit-row .color-opts button { width: 36px; height: 36px; }
.remove { padding: 6px 0; }

/* Titres de page : une seule échelle */
.h-page { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }

/* Mobile : filtres sur une ligne qui défile, tableaux lisibles */
@media (max-width: 760px) {
  .toolbar .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px 6px; scrollbar-width: none; max-width: none !important; }
  .toolbar .chips .chip { flex: none; }
  .article-body table { display: block; overflow-x: auto; white-space: normal; }
  .article-body th, .article-body td { min-width: 120px; }
  .co-head .small { font-size: 0; } .co-head .small svg { font-size: 1rem; }
}
.h3 { font-size: 1.45rem; }
.color-note { position: absolute; left: 12px; bottom: 12px; background: rgba(255,253,251,.92); color: var(--ink); font-size: .78rem; font-weight: 500; padding: 6px 12px; border-radius: 99px; }
