/* Maskeo — masques 3D en papier à imprimer. Fond clair, les visuels des masques apportent la couleur. */
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat-latin-500-normal.woff2') format('woff2'); font-weight: 500 700; font-display: swap; }
@font-face { font-family: 'Unbounded'; src: url('../fonts/unbounded-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Unbounded'; src: url('../fonts/unbounded-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  /* Mode clair (par défaut) : fond blanc, les visuels des masques apportent la couleur */
  color-scheme: light;
  --bg: #fff;
  --fg: #16131c;
  --text: #4a4553;
  --muted: #77717f;
  --line: #e8e5ee;
  --card: #fff;
  --soft: #f6f4f9;
  --accent: #6b3fa0;
  --accent-fg: #fff;
  --accent-soft: #f0e9f8;
  --star: #f2a516;
  --danger: #b3261e;
  --header-bg: rgba(255, 255, 255, .94);
  --img-bg: #fff;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --radius: 14px;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Unbounded', 'Montserrat', system-ui, sans-serif;
}
/* Mode sombre (choisi par le visiteur, mémorisé dans localStorage.theme) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121016;
  --fg: #f3f0f7;
  --text: #cfc9d6;
  --muted: #9b94a5;
  --line: #2a2631;
  --card: #1a1720;
  --soft: #1e1b24;
  --accent: #a77be0;
  --accent-fg: #121016;
  --accent-soft: #2a2236;
  --danger: #f2a49e;
  --header-bg: rgba(18, 16, 22, .92);
  --img-bg: #fff;
}
body { transition: background-color .25s, color .25s; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(28px, 4.6vw, 52px); }
h2 { font-size: clamp(20px, 2.4vw, 28px); }
h3 { font-size: 16px; font-weight: 500; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; clip: auto; background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 100; }

/* ---------- en-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px; height: 72px; padding: 0 var(--gutter); background: var(--header-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: .04em; flex-shrink: 0; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { color: var(--fg); border-color: var(--accent); }
.tools { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.theme-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; cursor: pointer; color: inherit; }
.theme-btn:hover { background: var(--soft); }
.theme-btn .i-sun, :root[data-theme="dark"] .theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
.lang { position: relative; }
.lang summary { display: flex; align-items: center; white-space: nowrap; list-style: none; cursor: pointer; padding: 8px 10px; border-radius: 999px; font: 700 13px/1 var(--font); letter-spacing: .04em; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.lang summary:hover, .lang[open] summary { background: var(--soft); }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; list-style: none; margin: 0; padding: 6px; min-width: 150px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.lang a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 14px; }
.lang a:hover { background: var(--soft); }
.lang a[aria-current] { font-weight: 700; color: var(--accent); }
.cart-link { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; text-decoration: none; }
.cart-link:hover { background: var(--soft); }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: var(--accent-fg); font: 700 11px/19px var(--font); text-align: center; }
.menu-btn { display: none; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn span:first-child, .menu-btn span:first-child::before, .menu-btn span:first-child::after { position: absolute; left: 11px; width: 20px; height: 2px; background: currentColor; content: ''; transition: transform .2s; }
.menu-btn span:first-child { top: 20px; }
.menu-btn span:first-child::before { left: 0; top: -6px; }
.menu-btn span:first-child::after { left: 0; top: 6px; }
.menu-btn[aria-expanded="true"] span:first-child { background: transparent; }
.menu-btn[aria-expanded="true"] span:first-child::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:first-child::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .tools { margin-left: auto; }
  .nav { position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-120%); visibility: hidden; transition: transform .25s, visibility .25s; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); font-size: 17px; }
}

/* ---------- mise en page ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 64px; }
.block { margin-top: clamp(48px, 7vw, 88px); }
.block__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 20px; }
.block__head h2 { margin: 0; }
.more { color: var(--accent); font-weight: 500; text-decoration: none; white-space: nowrap; }
.more::after { content: ' →'; }
.page-head { padding: clamp(24px, 4vw, 48px) 0 8px; max-width: 820px; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--text); }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.narrow { max-width: 760px; }
.prose { color: var(--text); }
.prose h2 { color: var(--fg); margin-top: 1.6em; font-size: clamp(19px, 2vw, 24px); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--accent); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fg); }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-fg); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(107, 63, 160, .25); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); box-shadow: none; }
.btn--big { min-height: 56px; font-size: 16px; padding: 14px 30px; }

/* ---------- accueil ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 64px) 0 0; }
.hero__img { position: relative; display: block; text-decoration: none; }
.hero__img img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--img-bg); border: 1px solid var(--line); }
.hero__tag { position: absolute; left: 14px; top: 14px; padding: 8px 14px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 700; font-size: 14px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 800px) { .hero { grid-template-columns: minmax(0, 1fr); } .hero__img { max-width: 360px; } }
.reassure { list-style: none; padding: 0; margin: clamp(32px, 5vw, 56px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.reassure li { padding: 14px 16px 14px 42px; border-radius: var(--radius); background: var(--soft); font-weight: 500; font-size: 14px; position: relative; }
.reassure li::before { content: ''; position: absolute; left: 16px; top: 50%; width: 14px; height: 8px; margin-top: -6px; border: solid var(--accent); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
@media (max-width: 800px) { .reassure { grid-template-columns: 1fr 1fr; } }

.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; background: var(--soft); }
.tile img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .4s; }
.tile:hover img { transform: scale(1.05); }
.tile span { position: absolute; inset: auto 0 0; padding: 40px 12px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); font: 700 14px/1.2 var(--display); hyphens: auto; }
.tile small { display: block; font: 400 12px/1.4 var(--font); opacity: .85; margin-top: 4px; }
@media (max-width: 1180px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr 1fr; } }

/* ---------- grille de masques ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.card[hidden] { display: none; }
.card__img { position: relative; display: block; overflow: hidden; background: var(--img-bg); }
.card__img img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.card__body { padding: 12px 14px 14px; }
.card h3 { margin: 0 0 4px; font-size: 15px; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card__meta { margin: 0; font-size: 14px; color: var(--muted); }
.card__meta strong { color: var(--fg); }
.card__add { position: absolute; z-index: 2; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-fg); font: 700 22px/1 var(--font); cursor: pointer; opacity: .92; transition: transform .15s; }
.card__add:hover { transform: scale(1.1); }
.card__add.is-added { background: var(--fg); color: var(--bg); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- comment ça marche, FAQ ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { padding: 20px; border-radius: var(--radius); background: var(--soft); }
.steps h3 { margin: 10px 0 6px; font-weight: 700; }
.steps p { margin: 0; color: var(--text); font-size: 15px; }
.steps__n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font: 700 15px/1 var(--display); }
.block > .steps, main > .steps { margin-top: clamp(40px, 6vw, 72px); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 16px 32px 16px 0; font-weight: 500; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 22px; color: var(--accent); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--text); margin: 0 0 16px; }

/* ---------- fiche masque ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 64px); padding-top: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 860px) { .product { grid-template-columns: minmax(0, 1fr); } }
.gallery { position: sticky; top: 92px; }
@media (max-width: 860px) { .gallery { position: static; } }
.gallery__main { position: relative; }
.gallery__main img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--img-bg); border: 1px solid var(--line); }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery__thumbs button { flex: 0 0 72px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.gallery__thumbs button[aria-current] { border-color: var(--accent); }
.gallery__thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.buy h1 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 10px; }
.rating { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 8px; }
.stars { --r: 100%; display: inline-block; width: 90px; height: 17px; background: linear-gradient(90deg, var(--star) var(--r), var(--line) var(--r)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 17'%3E%3Cpath d='M9 0l2.6 5.6 6.1.7-4.5 4.2 1.2 6L9 13.5 3.6 16.5l1.2-6L.3 6.3l6.1-.7z'/%3E%3C/svg%3E") 0 0/18px 17px repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 17'%3E%3Cpath d='M9 0l2.6 5.6 6.1.7-4.5 4.2 1.2 6L9 13.5 3.6 16.5l1.2-6L.3 6.3l6.1-.7z'/%3E%3C/svg%3E") 0 0/18px 17px repeat-x; }
.price { font: 700 clamp(26px, 3vw, 34px)/1 var(--display); margin: 10px 0 18px; }
.summary { color: var(--text); }
.summary p { margin-bottom: .5em; }
.variants { border: 0; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.variants legend { font-weight: 500; margin-bottom: 8px; }
.variants label { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--card); }
.variants label:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.variants input { accent-color: var(--accent); }
.variants span { flex: 1; }
.buy__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 10px; }
.buy__actions .btn--big { flex: 1 1 240px; }
.buy__note { font-size: 13px; color: var(--muted); }
.details { margin: 24px 0 0; border-top: 1px solid var(--line); }
.details div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
.details a { color: var(--accent); }
@media (max-width: 480px) { .details div { grid-template-columns: 1fr; gap: 2px; } }
.product__desc { max-width: 820px; }
.reviews { max-width: 820px; }
.reviews blockquote { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); }
.reviews blockquote p { margin: 8px 0 6px; }
.reviews footer { font-size: 13px; color: var(--muted); }

/* ---------- panier, commande ---------- */
.cart, .order { max-width: 720px; }
.cart__list, .order__list { list-style: none; padding: 0; margin: 0 0 20px; }
.cart__list li, .order__list li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart__list img, .order__list img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex-shrink: 0; background: #fff; }
.cart__list a, .order__list a.name { flex: 1; font-weight: 500; text-decoration: none; }
.cart__remove { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; text-decoration: underline; }
.cart__total { display: flex; justify-content: space-between; font-size: 20px; padding: 6px 0 22px; }
.cart__total strong { font-family: var(--display); }
.order__status { font-size: 18px; }
.order__list .btn { min-height: 42px; padding: 8px 18px; }
.order__help h2 { margin-top: 32px; font-size: 20px; }
.form-error { color: var(--danger); font-weight: 500; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 140%); display: flex; align-items: center; gap: 16px; padding: 12px 14px 12px 20px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .3s; max-width: calc(100vw - 32px); }
.toast.is-on { transform: translate(-50%, 0); }
.toast a { color: var(--bg); background: var(--accent); padding: 8px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap; }

/* ---------- bandeau, chiffres, badges, réassurance ---------- */
.banner { display: block; padding: 10px var(--gutter); background: var(--accent); color: var(--accent-fg); text-align: center; font-weight: 500; font-size: 14px; text-decoration: none; }
.banner::after { content: ' →'; }
.stats { list-style: none; padding: 18px 22px; margin: clamp(32px, 5vw, 56px) 0 0; display: flex; flex-wrap: wrap; justify-content: space-around; gap: 12px 28px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; color: var(--text); }
.stats li { display: flex; align-items: center; gap: 8px; }
.stats strong { font: 700 20px/1 var(--display); color: var(--fg); }
.badge { position: absolute; z-index: 1; left: 10px; top: 10px; padding: 5px 10px; border-radius: 999px; background: var(--fg); color: var(--bg); font: 700 11px/1.2 var(--font); letter-spacing: .04em; text-transform: uppercase; }
.badge--new { background: var(--accent); color: var(--accent-fg); }
.gallery__main .badge { left: 14px; top: 14px; font-size: 12px; }
.sold { margin: -8px 0 14px; font-size: 14px; font-weight: 500; color: var(--accent); }
.buy__trust { list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--muted); }
.buy__trust li { padding-left: 22px; position: relative; margin-bottom: 6px; }
.buy__trust li::before { content: ''; position: absolute; left: 3px; top: 5px; width: 10px; height: 6px; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.eco { padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); background: var(--soft); }
.eco h2 { margin-bottom: 14px; }
.eco ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; color: var(--text); }
.eco li { padding-left: 26px; position: relative; }
.eco li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--accent); }
@media (max-width: 700px) { .eco ul { grid-template-columns: minmax(0, 1fr); } }
.muted { color: var(--muted); font-size: 14px; }

/* ---------- pied de page ---------- */
.site-footer { margin-top: 40px; padding: 40px var(--gutter) 32px; border-top: 1px solid var(--line); background: var(--soft); font-size: 14px; }
.site-footer > div { max-width: var(--max); margin: 0 auto 16px; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }
.footer-cats a { font-weight: 500; color: var(--fg); }
.footer-langs a[aria-current] { font-weight: 700; color: var(--accent); }
.footer-legal { max-width: var(--max); margin: 16px auto 0; color: var(--muted); font-size: 13px; }

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