/*
 * Diamant-Unique — direction : écrin noir. Les photos produit sont sur fond noir pur (charte d'origine) :
 * la page entière est noire pour qu'elles s'y fondent sans cadre, comme des bijoux posés sur du velours.
 * Texte ivoire, accent or champagne (liens, prix barré, sélection), surfaces à peine plus claires que le fond.
 * Layout : colonne 1240 px ; grilles produit 4 → 2 colonnes ; fiche produit galerie | achat collant.
 */
@font-face { font-family: "Bodoni Moda"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/bodoni-moda-latin-500-normal-17akP5X.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-weight: 500; font-style: italic; font-display: swap; src: url("../fonts/bodoni-moda-latin-500-italic-VWDWnF1.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/bodoni-moda-latin-600-normal-PSb56mc.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-400-normal-scmC9DJ.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-500-normal-gR7F0A2.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal-s3nkSBB.woff2") format("woff2"); }

:root {
  --paper: #000000;        /* fond de page = fond des photos */
  --pearl: #101013;        /* surfaces : récapitulatif, tuiles, bandeau */
  --velvet: #000000;
  --ink: #efebe4;          /* texte ivoire */
  --muted: #9d988f;
  --line: #2b2a30;
  --accent: #cfae72;     /* or champagne */
  --accent-soft: #1e1a12;
  --gold: #cfae72;
  --ok: #79d29f;
  --ok-bg: #0f2218;
  --error: #f0907f;
  --error-bg: #2a120e;

  --display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 0.9375rem;
  --step-1: 1.125rem;
  --step-2: 1.5rem;
  --step-3: 2.125rem;
  --step-4: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);

  --wrap: 1240px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --radius: 2px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-0)/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 600 var(--step--1)/1.2 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.price { font-variant-numeric: tabular-nums; font-weight: 600; }
.price s { color: var(--muted); font-weight: 400; margin-left: 8px; text-decoration-color: var(--gold); }

/* Boutons et champs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 28px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 600; letter-spacing: 0.04em; text-decoration: none; cursor: pointer; border-radius: var(--radius); transition: background .2s, color .2s; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--block { width: 100%; }
.btn--small { min-height: 40px; padding: 0 16px; font-size: var(--step--1); letter-spacing: 0.02em; }
.invoice-link { align-self: flex-start; margin-top: 4px; }
.invoice-link .icon { width: 18px; height: 18px; color: var(--gold); }
.invoice-link small { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; }
.invoice-link:hover .icon, .invoice-link:hover small { color: var(--paper); border-color: var(--paper); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.back-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font: 600 var(--step--1)/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding-block: 6px; }
.back-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.back-link:hover { color: var(--gold); }
.back-link:hover svg { transform: translateX(-3px); }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: var(--step--1); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.02em; }
.input, .select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); }
.select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 40px;
  /* chevron or champagne (#cfae72 = --gold ; une variable CSS ne peut pas entrer dans un data URI) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23cfae72' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
.select:hover { border-color: var(--muted); }
.select option { background: var(--pearl); color: var(--ink); }
.input:focus, .select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.field .error, .form-error { color: var(--error); font-size: var(--step--1); }
.field.has-error .input { border-color: var(--error); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--step--1); }
.check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* Messages */
.flashes { display: flex; flex-direction: column; gap: 8px; padding-block: 16px 0; }
.flash { padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--accent-soft); font-size: var(--step--1); }
.flash--success { border-color: var(--ok); background: var(--ok-bg); }
.flash--error { border-color: var(--error); background: var(--error-bg); }

/* En-tête */
.header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.header__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-block: 18px; }
.logo { font-family: var(--display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 500; letter-spacing: 0.02em; text-decoration: none; white-space: nowrap; }
.logo em { font-style: italic; color: var(--accent); }
.header__tools { display: flex; justify-content: flex-end; align-items: center; gap: 20px; font-size: var(--step--1); }
.header__tools a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.header__search { display: flex; align-items: center; border-bottom: 1px solid var(--line); max-width: 260px; }
.header__search input { border: 0; padding: 8px 0; background: transparent; min-width: 0; width: 100%; }
.header__search input:focus { outline: none; }
.header__search button { border: 0; background: none; padding: 6px; cursor: pointer; }
.cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--paper); font-size: 0.7rem; font-weight: 600; }
.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; flex: none; }
.menu-toggle { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }

.nav { border-top: 1px solid var(--line); }
.nav__list { list-style: none; margin: 0 auto; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 30px; }
.nav__item { position: static; }
.nav__link { display: block; padding: 14px 0; font-size: var(--step--1); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid transparent; }
.nav__item:hover > .nav__link, .nav__link[aria-current] { border-color: var(--gold); color: var(--ink); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.9); padding-block: 28px 32px; display: none; }
.nav__item:hover .mega, .nav__item:focus-within .mega { display: block; }
.mega__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 24px; }
.mega__grid h4 { margin: 0 0 8px; font: 600 var(--step--1)/1.3 var(--body); }
.mega__grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: var(--step--1); }
.mega__grid a { text-decoration: none; color: var(--muted); }
.mega__grid a:hover { color: var(--accent); }

@media (max-width: 960px) {
  .header__bar { grid-template-columns: auto 1fr auto; }
  .logo { justify-self: center; }
  .menu-toggle { display: inline-flex; }
  .header__search { display: none; }
  .header__tools .label { display: none; }
  .nav { display: none; }
  .nav.is-open { display: block; max-height: calc(100vh - 120px); overflow-y: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .mega { position: static; display: block; box-shadow: none; border: 0; padding-block: 8px 16px; }
  .mega__grid { grid-template-columns: 1fr 1fr; }
  .mobile-search { display: flex !important; max-width: none; margin-bottom: 8px; }
}
.mobile-search { display: none !important; }

/* Pied de page */
.reassurance { background: var(--paper); border-block: 1px solid var(--line); margin-top: 96px; }
.reassurance .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 40px; }
.reassurance div { display: flex; flex-direction: column; gap: 4px; font-size: var(--step--1); }
.reassurance strong { color: var(--gold); font-family: var(--display); font-size: var(--step-1); font-weight: 500; }
@media (max-width: 860px) { .reassurance .wrap { grid-template-columns: 1fr 1fr; } }
.footer { background: var(--pearl); color: var(--muted); font-size: var(--step--1); }
.footer .wrap { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 56px 32px; }
.footer h4 { color: var(--ink); margin: 0 0 12px; font: 600 var(--step--1)/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer .logo { color: var(--ink); }
.footer__legal { border-top: 1px solid var(--line); padding-block: 18px; }
@media (max-width: 860px) { .footer .wrap { grid-template-columns: 1fr 1fr; } .footer .wrap > :first-child { grid-column: 1 / -1; } }

/* Accueil */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 72px); padding-block: clamp(32px, 6vw, 80px); }
.hero__text { display: flex; flex-direction: column; gap: 22px; max-width: 34rem; }
.hero__text h1 em { font-style: italic; color: var(--accent); }
.hero__text p { font-size: var(--step-1); color: var(--muted); }
.hero__media { margin: 0; background: var(--velvet); aspect-ratio: 4 / 3; display: grid; place-items: center; position: relative; }
.hero__media img { width: 100%; }
.hero__media figcaption { position: absolute; left: 20px; bottom: 16px; right: 20px; display: flex; justify-content: space-between; gap: 12px; font-size: var(--step--1); }
.hero__media a:hover { color: var(--gold); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.section { padding-block: 48px 0; display: flex; flex-direction: column; gap: 28px; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.universes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px 20px; }
.universe { display: flex; flex-direction: column; gap: 8px; text-decoration: none; min-width: 0; }
.universe__media { position: relative; display: block; aspect-ratio: 1; background: var(--velvet); overflow: hidden; border-bottom: 1px solid var(--line); transition: border-color .3s; }
.universe__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform .5s ease; }
.universe:hover .universe__media img { transform: scale(1.2); }
.universe:hover .universe__media { border-color: var(--gold); }
.universe strong { font-family: var(--display); font-size: var(--step-1); font-weight: 500; line-height: 1.25; margin-top: 6px; }
.universe:hover strong { color: var(--gold); }
.universe__count { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.universe__count span { display: inline-block; transition: transform .2s; }
.universe:hover .universe__count span { transform: translateX(4px); }
@media (max-width: 700px) { .universes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.story div { border-top: 1px solid var(--gold); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.story strong { font-family: var(--display); font-size: var(--step-2); font-weight: 500; }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; } }

/* Cartes produit */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } }
.card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; min-width: 0; }
.card__media { position: relative; background: var(--velvet); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.card__media img { width: 100%; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__title { font-size: var(--step-0); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card__title { color: var(--gold); }
.card__media::after { content: ""; position: absolute; inset: 0; border: 1px solid transparent; transition: border-color .3s; pointer-events: none; }
.card:hover .card__media::after { border-color: var(--line); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--pearl); color: var(--ink); border: 1px solid var(--line); padding: 3px 9px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.badge--promo { background: var(--accent); color: var(--paper); }
.badge--out { background: #2b2a30; color: var(--ink); }

/* Catalogue */
.page-head { padding-block: 40px 28px; display: flex; flex-direction: column; gap: 12px; }
.breadcrumb { font: 600 0.72rem/1.4 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb a { text-decoration: none; }
.breadcrumb span + span::before { content: "/"; margin-right: 8px; color: var(--muted); opacity: .5; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--step--1); text-decoration: none; background: var(--paper); cursor: pointer; }
.chip:hover, .chip[aria-current] { border-color: var(--ink); color: var(--ink); }
.listing { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .listing { grid-template-columns: 1fr; } }
.facets { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 150px; }
.facets details { border-bottom: 1px solid var(--line); padding-block: 12px; }
.facets summary { cursor: pointer; font-weight: 600; font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; }
.facets summary::after { content: "+"; color: var(--muted); }
.facets details[open] summary::after { content: "–"; }
.facets ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.facets label { display: flex; gap: 10px; align-items: center; font-size: var(--step--1); cursor: pointer; }
.facets label small { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.facets input { accent-color: var(--accent); }
@media (max-width: 900px) { .facets { position: static; } .facets details:not([open]) { padding-block: 10px; } }
.toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; font-size: var(--step--1); }
.toolbar__sort { display: flex; align-items: center; gap: 10px; }
.toolbar__sort label { color: var(--muted); }
/* en-tête de catégorie compact : les bijoux restent au-dessus de la ligne de flottaison */
.cat-head { padding-block: 40px 28px; margin-bottom: 32px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.cat-head__title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; }
.cat-head__title h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.cat-head__count { color: var(--gold); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.seo-text { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.seo-text h2 { font-size: var(--step-1); }
.seo-text p { color: var(--muted); font-size: var(--step--1); line-height: 1.7; }
.toolbar .select { min-height: 40px; width: auto; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); text-decoration: none; font-size: var(--step--1); }
.pagination [aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.empty { padding: 56px 24px; text-align: center; background: var(--pearl); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; align-items: center; }

/* Fiche produit */
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding-top: 24px; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
.gallery__main { background: var(--velvet); aspect-ratio: 4 / 3; display: grid; place-items: center; order: 2; }
.gallery__main img { width: 100%; }
.gallery__thumbs { display: flex; flex-direction: column; gap: 10px; order: 1; }
.gallery__thumbs button { padding: 0; border: 1px solid transparent; background: var(--velvet); cursor: pointer; opacity: .7; }
.gallery__thumbs button:hover { opacity: 1; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--gold); opacity: 1; }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } .gallery__thumbs { flex-direction: row; order: 3; overflow-x: auto; } .gallery__thumbs button { width: 64px; flex: none; } }
.buy { position: sticky; top: 150px; display: flex; flex-direction: column; gap: 20px; }
.buy h1 { font-size: var(--step-3); }
.buy .price { font-size: var(--step-2); font-family: var(--body); }
.buy__meta { display: flex; flex-direction: column; gap: 8px; font-size: var(--step--1); border-block: 1px solid var(--line); padding-block: 14px; }
.buy__meta div { display: flex; gap: 10px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.dot--off { background: var(--error); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes a { min-width: 46px; height: 42px; padding: 0 10px; display: grid; place-items: center; border: 1px solid var(--line); text-decoration: none; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.sizes a[aria-current] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.sizes a.is-out { color: var(--muted); text-decoration: line-through; }
.engraving { border: 1px solid var(--line); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.engraving summary { cursor: pointer; font-size: var(--step--1); font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.engraving summary span { color: var(--gold); }
.qty-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 14px; }
.prose > .text { display: block; }
.text p + p { margin-top: 12px; }
.prose h2 { font-size: var(--step-2); margin-top: 18px; }
.prose h3 { font-size: var(--step-1); font-family: var(--body); font-weight: 600; margin-top: 8px; }
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.specs { columns: 2 240px; column-gap: 24px; } /* maçonnerie : pas de trou sous un bloc court */
.spec { border-top: 1px solid var(--gold); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; break-inside: avoid; margin-bottom: 24px; }
.spec header { display: flex; flex-direction: column; gap: 2px; }
.spec h3 { font-size: var(--step-1); }
.spec dl { margin: 0; font-size: var(--step--1); }
.spec dl div { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; border-bottom: 1px solid var(--line); }
.spec dl div:last-child { border-bottom: 0; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.spec-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 16px; background: var(--pearl); border: 1px solid var(--line); font-size: var(--step--1); }
.spec-total span { color: var(--muted); }
.spec-total strong { font-family: var(--display); font-size: var(--step-1); font-weight: 500; color: var(--gold); }
.tabs { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.tabs h2 { font-size: var(--step-3); margin: 0 0 8px; }
@media (max-width: 900px) { .tabs { grid-template-columns: 1fr; } }

/* Panier et tunnel */
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 32px; font-size: var(--step--1); counter-reset: step; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; font-size: 0.75rem; }
.steps li + li::after { order: -1; content: ""; width: 24px; height: 1px; background: var(--line); }
.steps [aria-current] { color: var(--ink); font-weight: 600; }
.steps [aria-current]::before { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .cart { grid-template-columns: 1fr; } }
.cart-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 20px; padding-block: 20px; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line__media { background: var(--velvet); }
.cart-line__info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cart-line__info small { color: var(--muted); }
.cart-line__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-line__side .select { width: 76px; min-height: 40px; }
.gift-wrap .cart-line__media { display: grid; place-items: center; aspect-ratio: 4 / 3; }
.gift-wrap .cart-line__info span { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
@media (max-width: 560px) { .cart-line { grid-template-columns: 84px minmax(0, 1fr); } .cart-line__side { grid-column: 2; align-items: flex-start; flex-direction: row; } }
.summary { background: var(--pearl); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 150px; }
.summary dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 0; font-size: var(--step--1); }
.summary dd { margin: 0; padding-left: 16px; text-align: right; font-variant-numeric: tabular-nums; }
.recap-items { list-style: none; margin: 0; padding: 0 0 18px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.recap-items li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.recap-items__media { background: var(--velvet); aspect-ratio: 4 / 3; display: block; }
.recap-items__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.recap-items__title { font-size: var(--step--1); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recap-items small { color: var(--muted); font-size: 0.75rem; }
.recap-items .price { font-size: var(--step--1); white-space: nowrap; }
.summary .total { border-top: 1px solid var(--line); padding-top: 14px; font-size: var(--step-1); font-weight: 600; }
.summary .discount { color: var(--ok); }
.progress { height: 3px; background: var(--line); position: relative; }
.progress span { position: absolute; inset: 0 auto 0 0; background: var(--gold); }
.coupon { display: flex; gap: 8px; }
.coupon .input { min-height: 42px; text-transform: uppercase; }
.coupon .btn { min-height: 42px; padding: 0 16px; }
.box { border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.box h2 { font-size: var(--step-2); }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.choice { position: relative; display: flex; gap: 12px; padding: 16px; border: 1px solid var(--line); cursor: pointer; font-size: var(--step--1); align-items: flex-start; }
.choice:hover { border-color: var(--muted); }
.choice:has(input:checked) { border-color: var(--gold); background: var(--accent-soft); }
.choice:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
/* bouton radio dessiné : anneau fin, point or quand sélectionné */
.choice input[type="radio"] { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; border: 1px solid var(--muted); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.choice input[type="radio"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform .15s; }
.choice input[type="radio"]:checked { border-color: var(--gold); }
.choice input[type="radio"]:checked::before { transform: scale(1); }
.choice input:focus-visible { outline: none; }
/* facturation masquée tant que « identique » est coché, même sans JS */
.box:has([name="same_billing"]:checked) #billing { display: none; }
/* page contact */
.contact-intro { font-size: var(--step-1); color: var(--muted); max-width: 52ch; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.contact-card p, .contact-card address { color: var(--muted); font-size: var(--step--1); font-style: normal; line-height: 1.7; }
.contact-card--main { border-color: var(--gold); background: var(--accent-soft); }
.contact-card__phone { font-family: var(--display); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.05rem); text-decoration: none; letter-spacing: 0.02em; white-space: nowrap; }
.contact-card__phone:hover { color: var(--gold); }
.contact-hours { margin: 8px 0 0; width: 100%; font-size: var(--step--1); }
.contact-hours div { display: flex; justify-content: space-between; padding-block: 8px; border-bottom: 1px solid var(--line); }
.contact-hours div:last-child { border-bottom: 0; }
.contact-hours dt { color: var(--muted); }
.contact-hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.contact-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: var(--step--1); }
.contact-links a { text-decoration: none; }
.contact-links a::before { content: "›"; color: var(--gold); margin-right: 8px; }
.contact-links a:hover { color: var(--gold); }
.contact-legal { margin-top: 16px; color: var(--muted); font-size: 0.75rem; }
/* FAQ : thèmes en puces, questions en accordéon */
.faq-nav { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }
.faq-nav .chip small { color: var(--gold); font-weight: 600; margin-left: 2px; }
.faq-section { display: flex; flex-direction: column; scroll-margin-top: 170px; margin-top: 24px; }
.faq-section h2 { font-size: var(--step-2); padding-bottom: 12px; border-bottom: 1px solid var(--gold); margin: 0 0 4px; }
.faq-item { border-bottom: 1px solid var(--line); scroll-margin-top: 170px; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; font-weight: 500; font-size: var(--step-0); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-size: 1rem; transition: transform .2s, border-color .2s; }
.faq-item summary:hover { color: var(--gold); }
.faq-item[open] summary { color: var(--gold); }
.faq-item[open] summary::after { transform: rotate(45deg); border-color: var(--gold); }
.faq-item__answer { padding: 0 46px 22px 0; color: var(--muted); display: flex; flex-direction: column; gap: 10px; font-size: var(--step--1); line-height: 1.7; }
.faq-item__answer ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.faq-item__answer strong, .faq-item__answer b { color: var(--ink); }
.faq-help { margin-top: 40px; padding: 24px; background: var(--pearl); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.faq-help strong { font-family: var(--display); font-size: var(--step-1); font-weight: 500; color: var(--ink); }
.faq-help span { color: var(--muted); font-size: var(--step--1); }
/* page de confirmation */
.confirm-page { padding-top: 48px; }
.confirm { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .confirm { grid-template-columns: 1fr; } }
.confirm__hero { display: flex; gap: 22px; align-items: flex-start; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.confirm__hero h1 { font-size: var(--step-3); }
.confirm__seal { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; }
.confirm__seal svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.confirm__todo { border-color: var(--gold); background: var(--accent-soft); }
.confirm__todo h2 { font-size: var(--step-2); }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { position: relative; padding: 0 0 22px 34px; display: flex; flex-direction: column; gap: 2px; font-size: var(--step--1); }
.timeline li::before { content: ""; position: absolute; left: 0; top: 3px; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--muted); background: var(--paper); }
.timeline li::after { content: ""; position: absolute; left: 6px; top: 18px; bottom: 2px; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li strong { font-size: var(--step-0); font-weight: 600; }
.timeline li span { color: var(--muted); }
.timeline .is-done::before { background: var(--gold); border-color: var(--gold); }
.timeline .is-current::before { border-color: var(--gold); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline .is-current strong { color: var(--gold); }
.recap-items--large li { grid-template-columns: 88px minmax(0, 1fr) auto; }
.recap-items--large .recap-items__title, .recap-items--large .price { font-size: var(--step-0); }
.confirm__totals { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 0; font-size: var(--step--1); max-width: 420px; margin-left: auto; width: 100%; }
.confirm__totals dd { margin: 0; text-align: right; padding-left: 16px; font-variant-numeric: tabular-nums; }
.confirm__totals .total { border-top: 1px solid var(--line); padding-top: 12px; font-size: var(--step-1); font-weight: 600; }
.confirm__aside { position: sticky; top: 150px; gap: 14px; }
.confirm__pay { display: flex; gap: 12px; align-items: center; }
.confirm__pay > span { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* moyens de paiement : pictogramme or au trait */
.choice--pay { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "icon radio" "text text"; align-items: center; align-content: start; gap: 14px 12px; }
.choice--pay input[type="radio"] { grid-area: radio; margin: 0; }
.choice--pay > span { grid-area: text; }
.pay-icon { grid-area: icon; width: 34px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.pay-icon--square { width: 26px; height: 26px; }
.choice--pay > span { color: var(--muted); line-height: 1.5; }
.choice--pay strong { color: var(--ink); }
.brands { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.brands span { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--line); border-radius: 3px; padding: 2px 7px; }
.address-card { display: flex; flex-direction: column; gap: 3px; line-height: 1.5; min-width: 0; flex: 1; }
.address__name { font-weight: 600; font-size: var(--step-0); }
.address-card__edit { align-self: flex-start; margin-top: 8px; color: var(--muted); font-size: 0.75rem; }
.address-card__edit:hover { color: var(--gold); }
.tag { align-self: flex-start; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.choice--add { border-style: dashed; color: var(--muted); text-decoration: none; flex-direction: column; justify-content: center; align-items: center; min-height: 140px; gap: 4px; }
.choice--add span { font-size: 1.6rem; line-height: 1; color: var(--gold); }
.choice--add:hover { color: var(--ink); border-color: var(--gold); }
.choice strong { display: block; font-size: var(--step-0); margin-bottom: 2px; }
.demo-bank { max-width: 460px; margin: 64px auto; border: 1px dashed var(--gold); padding: 32px; display: flex; flex-direction: column; gap: 18px; text-align: center; }

/* Compte */
.account { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 32px; }
@media (max-width: 800px) { .account { grid-template-columns: 1fr; } }
.account nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.account nav a { display: block; padding: 10px 0; text-decoration: none; border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.account nav a[aria-current] { font-weight: 600; color: var(--accent); }
@media (max-width: 800px) { .account nav ul { flex-direction: row; overflow-x: auto; gap: 20px; } .account nav a { white-space: nowrap; } }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.table th { text-align: left; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: var(--pearl); white-space: nowrap; }
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.pill--wait { background: var(--accent-soft); color: var(--accent); }
.pill--ko { background: var(--error-bg); color: var(--error); }
.cards-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.address { border: 1px solid var(--line); padding: 18px; font-size: var(--step--1); display: flex; flex-direction: column; gap: 10px; }
.address.is-default { border-color: var(--ink); }
.voucher { border: 1px solid var(--gold); padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.voucher code { font: 600 var(--step-1) var(--body); letter-spacing: 0.18em; }
.auth { max-width: 980px; margin: 48px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.auth > * { min-width: 0; }
@media (max-width: 800px) { .auth { grid-template-columns: 1fr; } }
.narrow { max-width: 460px; margin: 48px auto 0; }

/* Pages éditoriales */
.static { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-top: 16px; align-items: start; }
.static nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: var(--step--1); position: sticky; top: 150px; }
.static nav a { text-decoration: none; color: var(--muted); }
.static nav a[aria-current] { color: var(--ink); font-weight: 600; }
@media (max-width: 800px) { .static { grid-template-columns: 1fr; } .static nav { display: none; } }

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