/* =====================================================================
   Thème « Maison artisanale » — ivoire, brun profond, bronze
   Chargé uniquement quand ce thème est choisi dans l'admin.
   ===================================================================== */
:root {
  --black: #f5ece2;          /* fond papier ivoire (proche du logo) */
  --ink: #eee2d4;            /* sections alternées */
  --panel: #fbf6ef;          /* cartes */
  --line: #dac7b0;
  --line-strong: #bf9f78;
  --gold: #9a6a33;           /* bronze */
  --gold-hi: #c69455;
  --gold-lo: #7d5426;
  --ivory: #2a1d15;          /* texte principal, brun encre */
  --muted: #6c5644;
  --text-soft: #46362a;
  --deep: #6e1a26;           /* rubis profond : boutons, bandeaux, pied de page */
  --deep-2: #4f121b;
  --accent: #9b2335;         /* rubis vif : petits titres, liens, prix */
  --accent-rgb2: 155, 35, 53;
  --cream: #f5ece2;
  --danger: #a8453a;
  --ok: #5b7448;
  --header-bg: rgba(245, 236, 226, .93);
  --hero-glow: #eddcc6;
  --tile-hover: #f8f1e8;
  --tile-custom: var(--deep);
  --accent-rgb: 168, 118, 62;
  --ok-bg: #e9eddd; --ok-line: #c8d3b4; --err-bg: #f5e2db; --err-line: #e2b9ad;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
  --script: 'Pinyon Script', 'Segoe Script', cursive;
  --radius: 0;
  --arch: 999px 999px 3px 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

body {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .005em;
  color: var(--ivory);
  background-color: var(--black);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: rgba(var(--accent-rgb), .25); }
h1, h2, h3, h4 { font-weight: 400; letter-spacing: 0; }
h4 { font-family: var(--sans); font-weight: 600; font-size: .84rem; text-transform: uppercase; letter-spacing: .24em; color: var(--ivory); }
em { color: var(--gold); }
a { color: var(--accent); transition: color .3s; }
a:hover { color: var(--deep); }

/* ---------- Petits titres et ornements ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-weight: 600; font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ''; width: 30px; height: 1px; background: currentColor; }
.section-head .eyebrow::after, .page-hero .eyebrow::after { content: ''; width: 38px; height: 1px; background: currentColor; }
.ornament {
  display: block; width: 168px; height: 14px; margin: 18px 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 168 14' fill='none' stroke='%23a8763e' stroke-width='1'%3E%3Cpath d='M0 7h66M102 7h66'/%3E%3Cpath d='M84 1l6 6-6 6-6-6z'/%3E%3Ccircle cx='72' cy='7' r='1.6' fill='%23a8763e'/%3E%3Ccircle cx='96' cy='7' r='1.6' fill='%23a8763e'/%3E%3C/svg%3E") no-repeat center / contain;
}
.section-head .ornament, .page-hero .ornament { margin: 14px auto 0; }

/* ---------- Boutons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .9em;
  padding: 16px 28px; border-radius: 0;
  font: 600 .8rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  transition: color .45s var(--ease), border-color .45s var(--ease), background-color .45s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-gold { background: var(--deep); color: var(--cream); border: 1px solid var(--deep); }
.btn-gold:hover { color: var(--cream); border-color: var(--gold); filter: none; box-shadow: none; }
.btn-gold::after { content: '⟶'; font-size: 1.1em; letter-spacing: 0; transition: transform .45s var(--ease); }
.btn-gold:hover::after { transform: translateX(5px); }
.btn-ghost { background: transparent; color: var(--ivory); border: 1px solid var(--ivory); outline: 1px solid rgba(var(--accent-rgb), .45); outline-offset: 4px; }
.btn-ghost::before { background: var(--deep); }
.btn-ghost:hover { color: var(--cream); background: transparent; }
.btn-block { display: flex; width: 100%; }
.btn[disabled]::before { display: none; }
.icon-btn { border-radius: 50%; border-color: var(--line-strong); }
.cart-count { background: var(--gold); color: var(--cream); }

/* ---------- Bandeau et en-tête ---------- */
.topbar { background: var(--deep); color: #f1e6d6; border: 0; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; padding: 8px 16px; }
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--line); }
.header-inner { position: relative; height: 80px; }
.brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); flex-direction: column; gap: 6px; }
.brand img { width: 58px; height: 58px; border: 1px solid var(--line-strong); }
.brand-name { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--ivory); }
.brand-name em { font-style: normal; color: var(--ivory); }
.header-inner .cart-link { margin-left: auto; }
.main-nav .wrap { gap: 32px; padding-bottom: 12px; }
.main-nav a { position: relative; color: var(--ivory); font-size: .8rem; letter-spacing: .16em; font-weight: 500; border: 0; padding: 4px 0; }
.main-nav a::after { content: ''; position: absolute; left: 50%; right: 50%; bottom: -2px; height: 1px; background: var(--accent); transition: left .4s var(--ease), right .4s var(--ease); }
.main-nav a:hover, .main-nav a.active { color: var(--accent); border: 0; }
.main-nav a:hover::after, .main-nav a.active::after { left: 0; right: 0; }
.nav-toggle span { background: var(--ivory); }
@media (min-width: 861px) { .brand { position: static; transform: none; margin: 0 auto; flex-direction: row; } .header-inner { justify-content: center; } .header-inner .cart-link { position: absolute; right: 16px; } }
@media (max-width: 860px) {
  .header-inner { height: 78px; }
  .brand { flex-direction: row; gap: 10px; }
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: .78rem; letter-spacing: .22em; }
  .main-nav { background: var(--panel); }
  .main-nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: .74rem; }
  .main-nav a::after { display: none; }
}
@media (max-width: 400px) { .brand-name { display: none; } }

/* ---------- Grande bannière ---------- */
.hero { background: none; border: 0; overflow: visible; }
.hero-inner { grid-template-columns: 1.1fr .9fr; gap: 56px; padding: 52px 16px 64px; }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); font-weight: 400; line-height: 1; margin: 14px 0 0; color: var(--ivory); }
.hero h1 em {
  display: inline-block; font-family: var(--script); font-style: normal; font-weight: 400;
  font-size: 1.12em; line-height: 1.1; color: var(--gold); margin-top: .12em;
}
.hero .lead { font-size: 1.12rem; line-height: 1.7; color: var(--text-soft); max-width: 500px; }
.hero-actions { gap: 18px; margin-top: 26px; }
.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 400px; }
.hero-arch {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--arch); overflow: hidden;
  background: radial-gradient(circle at 50% 46%, #faf4ec 0%, #f3e8dc 75%); border: 1px solid var(--line-strong);
  box-shadow: 0 50px 90px -50px rgba(60, 35, 15, .55);
  display: grid; place-items: center;
}
.hero-visual::before {
  content: ''; position: absolute; inset: -16px; border: 1px solid rgba(var(--accent-rgb), .45);
  border-radius: var(--arch); pointer-events: none;
}
.hero-arch img { width: 96%; height: auto; box-shadow: none; border-radius: 0; transform: none; margin: 0; max-width: none; mix-blend-mode: normal; }
.hero-sprig { display: block; position: absolute; width: 150px; bottom: -40px; right: -64px; transform: rotate(160deg); opacity: .75; pointer-events: none; }
.hero-seal {
  display: grid; position: absolute; left: -46px; bottom: 54px; width: 118px; height: 118px; place-items: center; text-align: center;
  border-radius: 50%; background: var(--deep); color: var(--cream); transform: rotate(-9deg);
  font-family: var(--serif); font-style: italic; font-size: 1.02rem; line-height: 1.15; padding: 14px;
  box-shadow: 0 0 0 5px var(--black), 0 0 0 6px rgba(var(--accent-rgb), .6), 0 20px 40px -18px rgba(0, 0, 0, .45);
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding: 34px 20px 48px; text-align: center; }
  .hero-visual { order: -1; max-width: 250px; }
  .hero-sprig { width: 100px; bottom: -26px; right: -36px; }
  .hero-seal { width: 84px; height: 84px; font-size: .78rem; left: -22px; bottom: -18px; }
  .hero .eyebrow { justify-content: center; }
  .hero .eyebrow::after { content: ''; width: 38px; height: 1px; background: currentColor; }
  .hero .ornament { margin: 22px auto; }
  .hero .lead { margin: 0 auto; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 320px; margin-left: auto; margin-right: auto; }
}

/* ---------- Bandeau défilant ---------- */
.marquee { display: block; overflow: hidden; border: 0; background: var(--deep); padding: 13px 0; }
.marquee-track { display: flex; width: max-content; animation: ep-marquee 42s linear infinite; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: #f3e9da; padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: '✦'; font-style: normal; font-size: .8rem; color: #d4a96a; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes ep-marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--ink); border: 0; }
.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: clamp(2.1rem, 4vw, 3rem); margin: 8px 0 0; }

/* Collections en arches */
.collections-grid { background: none; border: 0; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.collection-tile {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--arch);
  min-height: 270px; padding: 54px 26px 30px; text-align: center; justify-content: flex-start; align-items: center;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s var(--ease), background .6s var(--ease);
}
.collection-tile::before { content: ''; position: absolute; inset: 10px; border: 1px solid transparent; border-radius: var(--arch); transition: border-color .6s var(--ease); pointer-events: none; }
.collection-tile:hover { transform: translateY(-8px); background: var(--tile-hover); border-color: var(--line-strong); box-shadow: 0 40px 60px -45px rgba(60, 35, 15, .5); }
.collection-tile:hover::before { border-color: rgba(var(--accent-rgb), .45); }
.tile-num { display: block; font-family: var(--sans); font-weight: 600; font-size: .76rem; letter-spacing: .22em; color: var(--accent); margin-bottom: 14px; }
.collection-tile h3 { font-size: 1.95rem; font-weight: 500; color: var(--ivory); margin-bottom: .3em; }
.collection-tile .tagline { font-family: var(--serif); font-style: italic; font-size: 1.18rem; color: var(--text-soft); max-width: 260px; margin: 0 auto auto; }
.collection-tile .link-arrow { margin-top: 18px; font-family: var(--sans); font-weight: 600; font-size: .76rem; letter-spacing: .2em; color: var(--accent); display: inline-flex; align-items: center; gap: 12px; }
.collection-tile .link-arrow::before { content: ''; width: 26px; height: 1px; background: currentColor; transition: width .5s var(--ease); }
.collection-tile .link-arrow::after { content: none; }
.collection-tile:hover .link-arrow::before { width: 46px; }
.collection-tile.is-custom { background: var(--deep); border-color: var(--deep); }
.collection-tile.is-custom h3, .collection-tile.is-custom .link-arrow { color: var(--cream); }
.collection-tile.is-custom .tagline { color: #e3d6c4; }
.collection-tile.is-custom .tile-num, .collection-tile.is-custom .link-arrow { color: #d9b27c; }
.collection-tile.is-custom::before { border-color: rgba(var(--accent-rgb), .5); }
@media (max-width: 1000px) { .collections-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .collections-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .collection-tile { min-height: 0; padding: 36px 12px 20px; } .collection-tile h3 { font-size: 1.35rem; } .collection-tile .tagline { font-size: .98rem; } .tile-num { margin-bottom: 8px; font-size: .68rem; } .collection-tile .link-arrow { margin-top: 10px; font-size: .68rem; } .collection-tile .link-arrow::before { width: 14px; } }

/* Cartes bijoux */
.grid { gap: 28px 22px; }
.card-img { border-radius: var(--arch); border: 1px solid var(--line); background: radial-gradient(circle at 50% 45%, #f6eadb, var(--panel) 70%); }
.card-img img { transition: transform 1s var(--ease); }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { text-align: center; padding-top: 14px; }
.card-body h3 { font-size: 1.45rem; font-weight: 500; margin-bottom: .1em; }
.card-desc { font-size: .92rem; color: var(--text-soft); }
.card-price { color: var(--accent); font-family: var(--sans); font-size: .95rem; letter-spacing: .08em; font-weight: 600; }
.badge { background: var(--deep); color: var(--cream); letter-spacing: .2em; font-size: .6rem; padding: 6px 10px; top: auto; bottom: 14px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.badge-out { background: var(--muted); }

/* Savoir-faire */
.promises { gap: 32px 30px; }
.promises > div { position: relative; padding-top: 6px; }
.promise-num { display: block; font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--accent); margin-bottom: 10px; }
.promises h4 { margin-bottom: 8px; }
.promises p { color: var(--text-soft); font-size: 1rem; line-height: 1.65; }
.section-promises { background: var(--ink); }

/* ---------- Pages intérieures ---------- */
.page-hero { background: none; border-bottom: 1px solid var(--line); padding: 48px 0 32px; }
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 4rem); margin-top: 14px; }
.tagline-lg { font-family: var(--script); font-style: normal; font-size: 2.3rem; color: var(--gold); margin-bottom: .3em; }
.page-title { font-size: clamp(2.3rem, 4.5vw, 3.4rem); }
.crumbs { letter-spacing: .08em; }
.product { gap: 56px; }
.product-media { border-radius: var(--arch); border: 1px solid var(--line); background: radial-gradient(circle at 50% 45%, #f6eadb, var(--panel) 70%); overflow: hidden; }
.product-info h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); }
.product-short { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--text-soft); }
.product-price { font-family: var(--serif); font-weight: 400; color: var(--ivory); font-size: 2.1rem; }
.specs dt { letter-spacing: .14em; font-size: .74rem; font-weight: 600; color: var(--muted); }
.prose h2 { font-weight: 400; color: var(--ivory); }

/* ---------- Formulaires ---------- */
label { font-size: .78rem; letter-spacing: .12em; font-weight: 600; color: var(--text-soft); }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  background: #fffaf3; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; padding: 13px 4px; color: var(--ivory); transition: border-color .3s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent) !important; box-shadow: 0 1px 0 0 var(--accent); }
textarea { border: 1px solid var(--line) !important; padding: 12px 14px !important; }
fieldset { border-color: var(--line); padding: 22px 22px 6px; }
legend { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--ivory); }
.card-form, .summary { background: var(--panel); border-color: var(--line); }
.summary h3 { font-weight: 400; }
.totals .total { color: var(--ivory); font-weight: 400; }
.steps span { border-color: var(--accent); color: var(--accent); font-style: italic; }
.steps h4 { margin-bottom: 8px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--deep-2); color: #efe4d4; border: 0; padding-top: 52px; margin-top: 0; }
.footer-grid { gap: 40px; }
.footer-logo { width: 96px; height: 96px; border: 1px solid rgba(var(--accent-rgb), .6); }
.site-footer h4 { color: #d9b27c; font-size: .8rem; margin-bottom: 12px; }
.footer-grid a, .footer-grid p { color: #ddd0bd; font-size: .98rem; }
.footer-grid a:hover { color: var(--cream); }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.4rem; line-height: 1.35; color: #e6c48f !important; margin-top: 14px; }
.footer-bottom { border-top-color: rgba(255, 255, 255, .12); color: #c2b29c; letter-spacing: .1em; font-size: .76rem; text-transform: uppercase; margin-top: 30px; }

/* ---------- Apparitions au défilement ---------- */
.reveal-on .rv { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-on .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .reveal-on .rv { opacity: 1; transform: none; transition: none; }
  .btn::before, .collection-tile, .card-img img { transition: none; }
}
.hero-visual .hero-sprig { aspect-ratio: auto; border-radius: 0; box-shadow: none; max-width: none; margin: 0; height: auto; }


/* =====================================================================
   Présentations des collections (Admin → Textes & boutons → Apparence)
   ===================================================================== */
.tile-body { display: flex; flex-direction: column; align-items: center; flex: 1; width: 100%; }
.tile-img { display: none; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.collection-tile:hover .tile-img img { transform: scale(1.06); }

/* --- Médaillons : photo ronde, nom dessous --- */
.cs-medaillons { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 34px 24px; }
.cs-medaillons .collection-tile { background: none; border: 0; border-radius: 0; min-height: 0; padding: 0; box-shadow: none; }
.cs-medaillons .collection-tile::before { display: none; }
.cs-medaillons .collection-tile:hover { background: none; box-shadow: none; transform: translateY(-4px); }
.cs-medaillons .tile-img {
  display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #f8eee2, var(--panel) 72%);
  border: 1px solid var(--line-strong); outline: 1px solid rgba(var(--accent-rgb2), .35); outline-offset: 6px;
  transition: outline-color .5s var(--ease), outline-offset .5s var(--ease);
}
.cs-medaillons .collection-tile:hover .tile-img { outline-color: var(--accent); outline-offset: 9px; }
.cs-medaillons .tile-num { display: none; }
.cs-medaillons .collection-tile h3 { font-size: 1.45rem; margin: 22px 0 .15em; }
.cs-medaillons .collection-tile .tagline { font-size: 1rem; margin: 0 auto; }
.cs-medaillons .collection-tile .link-arrow { display: none; }
.cs-medaillons .collection-tile.is-custom { background: none; }
.cs-medaillons .collection-tile.is-custom h3 { color: var(--accent); }
.cs-medaillons .collection-tile.is-custom .tagline { color: var(--text-soft); }

/* =====================================================================
   Pages de collection : bijoux en grandes photos (nom sur la photo)
   ===================================================================== */
.grid-photos { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-photos .card { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: radial-gradient(circle at 50% 38%, #f8eee2, #efe2d2 75%); }
.grid-photos .card::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(255, 248, 236, .5); z-index: 2; pointer-events: none; transition: border-color .5s var(--ease); }
.grid-photos .card:hover::before { border-color: rgba(255, 248, 236, .9); }
.grid-photos .card:hover { box-shadow: 0 30px 50px -35px rgba(40, 10, 15, .6); }
.grid-photos .card-img { position: absolute; inset: 0; aspect-ratio: auto; border: 0; border-radius: 0; background: none; }
.grid-photos .card-img img { object-fit: contain; padding: 6% 12% 34%; }
.grid-photos .card-img img[src^="/uploads/"] { object-fit: cover; padding: 0; }
.grid-photos .card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(79, 18, 27, .72) 74%, var(--deep-2) 100%); }
.grid-photos .card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; text-align: left; padding: 24px 28px 28px; }
.grid-photos .card-body h3 { color: #fff8ee; font-size: 1.75rem; margin-bottom: .15em; }
.grid-photos .card-desc { color: #f0e2d6; font-size: .95rem; margin-bottom: .5em; }
.grid-photos .card-price { color: #f0c98f; font-size: 1rem; }
.grid-photos .card-price s { color: #d9b9ae; }
.grid-photos .badge { top: 22px; bottom: auto; left: 22px; transform: none; background: #fff8ee; color: var(--deep); }
@media (max-width: 1000px) { .grid-photos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .grid-photos { gap: 10px; }
  .grid-photos .card::before { inset: 7px; }
  .grid-photos .card-body { padding: 14px 14px 16px; }
  .grid-photos .card-body h3 { font-size: 1.15rem; }
  .grid-photos .card-desc { display: none; }
  .grid-photos .card-price { font-size: .85rem; }
  .grid-photos .badge { top: 14px; left: 14px; font-size: .55rem; }
}
@media (max-width: 640px) { .tagline-lg { font-size: 1.65rem; line-height: 1.35; } .page-hero { padding: 34px 0 24px; } }

/* Médaillons : une seule ligne si possible, sinon lignes centrées */
.collections-grid.cs-medaillons { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 22px; }
.cs-medaillons .collection-tile { flex: 1 1 0; min-width: 128px; max-width: 190px; }
.cs-medaillons .collection-tile h3 { font-size: 1.3rem; margin-top: 18px; }
.cs-medaillons .collection-tile .tagline { font-size: .95rem; }
@media (max-width: 640px) {
  .collections-grid.cs-medaillons { gap: 22px 14px; }
  .cs-medaillons .collection-tile { flex: 0 1 calc(33.333% - 10px); min-width: 96px; }
  .cs-medaillons .collection-tile h3 { font-size: 1.05rem; margin-top: 12px; }
  .cs-medaillons .collection-tile .tagline { display: none; }
  .cs-medaillons .tile-img { outline-offset: 4px; }
}

/* Sélection de l'accueil : petites cartes photo, centrées (pas une page produit) */
.grid-photos.grid-selection { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.grid-selection > .card-wrap { flex: 0 1 240px; }
.grid-selection .card::before { inset: 8px; }
.grid-selection .card-img img { padding: 8% 14% 38%; }
.grid-selection .card-body { padding: 14px 18px 18px; }
.grid-selection .card-body h3 { font-size: 1.22rem; }
.grid-selection .card-desc { display: none; }
.grid-selection .card-price { font-size: .88rem; }
.grid-selection .badge { top: 14px; left: 14px; font-size: .55rem; }
@media (max-width: 640px) {
  .grid-photos.grid-selection { gap: 10px; }
  .grid-selection > .card-wrap { flex-basis: calc(50% - 5px); }
  .grid-selection .card-body h3 { font-size: 1.05rem; }
}

/* =====================================================================
   Page collection : en-tête compact, barre d'outils, cartes moyennes
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.coll-head { padding: 26px 0 18px; text-align: center; }
.coll-head .crumbs { margin-bottom: 10px; font-size: .82rem; }
.coll-head h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 500; margin: 0; }
.coll-tagline { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--gold-lo); margin: 4px 0 0; }
.coll-desc { color: var(--text-soft); max-width: 620px; margin: 8px auto 0; font-size: 1rem; }
.coll-head .admin-edit-link { margin: 12px 0 0; }
.coll-body { padding: 0 0 64px; }
.coll-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; padding: 14px 0; margin-bottom: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.coll-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; padding: 2px; }
.coll-chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .84rem; color: var(--ivory); background: var(--panel); white-space: nowrap; transition: border-color .3s, color .3s, background .3s; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--deep); border-color: var(--deep); color: var(--cream); }
.coll-sort { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.coll-count { font-size: .86rem; color: var(--muted); white-space: nowrap; }
.coll-sort select { width: auto; margin: 0; padding: 8px 28px 8px 10px; font-size: .9rem; background-color: var(--panel); border: 1px solid var(--line-strong) !important; }
.coll-empty { text-align: center; padding: 40px 0; color: var(--text-soft); }
.grid-photos.grid-collection { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.grid-collection > .card-wrap { flex: 0 1 270px; }
.grid-collection .card::before { inset: 8px; }
.grid-collection .card-img img { padding: 8% 14% 38%; }
.grid-collection .card-body { padding: 16px 20px 20px; }
.grid-collection .card-body h3 { font-size: 1.3rem; }
.grid-collection .card-desc { font-size: .85rem; margin-bottom: .35em; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.grid-collection .card-price { font-size: .9rem; }
.grid-collection .badge { top: 14px; left: 14px; font-size: .55rem; }
@media (max-width: 640px) {
  .coll-toolbar { padding: 10px 0; margin-bottom: 16px; }
  .coll-sort { width: 100%; justify-content: space-between; }
  .grid-photos.grid-collection { gap: 10px; }
  .grid-collection > .card-wrap { flex-basis: calc(50% - 5px); }
  .grid-collection .card-body { padding: 12px 12px 14px; }
  .grid-collection .card-body h3 { font-size: 1.05rem; }
  .grid-collection .card-desc { display: none; }
}

/* =====================================================================
   Fiche bijou
   ===================================================================== */
.pdp { padding: 22px 0 56px; }
.pdp .crumbs { font-size: .82rem; margin-bottom: 18px; }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 52px; align-items: start; }
.pdp-media { position: sticky; top: 140px; }
.pdp-frame { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: radial-gradient(circle at 50% 42%, #faf2e8, #efe2d2 78%); border: 1px solid var(--line); }
.pdp-frame::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(var(--accent-rgb), .25); border-radius: 3px; pointer-events: none; }
.pdp-frame img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform 1.2s var(--ease); }
.pdp-frame img[src^="/uploads/"] { object-fit: cover; padding: 0; }
.pdp-frame:hover img { transform: scale(1.04); }
.pdp-badge { position: absolute; top: 22px; left: 22px; background: var(--deep); color: var(--cream); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; padding: 7px 12px; font-weight: 600; }
.pdp-info { padding-top: 4px; }
.pdp-coll { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--accent); }
.pdp-info h1 { font-size: clamp(2.1rem, 3.6vw, 3rem); font-weight: 500; line-height: 1.08; margin: 8px 0 6px; }
.pdp-short { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--text-soft); margin: 0 0 14px; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin: 0 0 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.pdp-price span { font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--ivory); }
.pdp-price s { color: var(--muted); font-size: 1.05rem; }
.pdp-price small { color: var(--muted); font-size: .8rem; letter-spacing: .1em; }
.pdp-form { margin: 0; }
.pdp-field { border: 0; padding: 0; margin: 0 0 18px; }
.pdp-field legend, .pdp-field > label { font-family: var(--sans); font-style: normal; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ivory); margin-bottom: 10px; padding: 0; display: block; }
.pdp-field small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.size-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.size-chip { margin: 0; cursor: pointer; }
.size-chip input { position: absolute; opacity: 0; pointer-events: none; }
.size-chip span { display: grid; place-items: center; min-width: 48px; height: 44px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--panel); font: 500 .95rem var(--sans); letter-spacing: 0; color: var(--ivory); text-transform: none; transition: border-color .25s, background .25s, color .25s; }
.size-chip:hover span { border-color: var(--accent); }
.size-chip input:checked + span { background: var(--deep); border-color: var(--deep); color: var(--cream); }
.size-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pdp-hint { display: inline-block; margin-top: 10px; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; }
.engrave { position: relative; }
.engrave input { padding-right: 70px !important; border: 1px solid var(--line-strong) !important; border-radius: 4px !important; padding-left: 12px !important; background: var(--panel) !important; }
.engrave-count { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: .78rem; color: var(--muted); }
.pdp-buy { display: flex; gap: 12px; align-items: stretch; margin-top: 6px; }
.qty { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--panel); flex: 0 0 auto; }
.qty button { width: 42px; border: 0; background: none; font-size: 1.2rem; color: var(--ivory); cursor: pointer; }
.qty button:hover { color: var(--accent); }
.qty input { width: 44px !important; text-align: center; border: 0 !important; background: none !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; -moz-appearance: textfield; font-weight: 500; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-add { flex: 1; padding: 18px 24px; border-radius: 4px; }
.pdp-stock { margin: 12px 0 0; font-size: .88rem; color: var(--accent); font-weight: 500; }
.pdp-out { padding: 18px; border: 1px dashed var(--line-strong); border-radius: 4px; text-align: center; }
.pdp-out p { margin-bottom: 12px; }
.pdp-reassure { list-style: none; padding: 0; margin: 22px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.pdp-reassure li { position: relative; padding-left: 24px; font-size: .92rem; color: var(--text-soft); }
.pdp-reassure li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 9px; height: 9px; border: 1px solid var(--accent); transform: rotate(45deg); }
.ep-on .pdp-reassure { display: block; white-space: pre-line; }
.pdp-acc { border-top: 1px solid var(--line); }
.pdp-acc details { border-bottom: 1px solid var(--line); }
.pdp-acc summary { list-style: none; cursor: pointer; padding: 16px 2px; font: 600 .82rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ivory); display: flex; justify-content: space-between; align-items: center; }
.pdp-acc summary::-webkit-details-marker { display: none; }
.pdp-acc summary::after { content: '+'; font-size: 1.3rem; font-weight: 300; color: var(--accent); transition: transform .3s var(--ease); }
.pdp-acc details[open] summary::after { transform: rotate(45deg); }
.pdp-acc details > div { padding: 0 2px 16px; color: var(--text-soft); font-size: .98rem; line-height: 1.7; }
.pdp-acc details > div p:last-child { margin-bottom: 0; }
.pdp-acc .specs { margin: 0; grid-template-columns: 90px 1fr; }
.pdp-custom { display: inline-block; margin-top: 18px; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--accent); }
.pdp-custom::after { content: ' →'; }
.pdp-related { background: var(--ink); padding: 52px 0; }
@media (max-width: 860px) {
  .pdp { padding-top: 12px; }
  .pdp-grid { grid-template-columns: 1fr; gap: 22px; }
  .pdp-media { position: static; }
  .pdp-frame { aspect-ratio: 1; }
  .pdp-info h1 { font-size: 2rem; }
  .pdp-reassure { grid-template-columns: 1fr 1fr; font-size: .86rem; }
}

/* Galerie fiche bijou */
.pdp-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(251, 246, 239, .9); color: var(--ivory); font-size: 1.5rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .3s; }
.pdp-frame:hover .pdp-nav, .pdp-nav:focus-visible { opacity: 1; }
.pdp-nav.prev { left: 18px; } .pdp-nav.next { right: 18px; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.pdp-thumbs button { flex: 0 0 72px; height: 72px; padding: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; cursor: pointer; background: radial-gradient(circle at 50% 42%, #faf2e8, #efe2d2 78%); transition: border-color .25s; }
.pdp-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs button img[src$=".svg"] { object-fit: contain; padding: 8px; }
.pdp-thumbs button.is-active { border-color: var(--deep); box-shadow: inset 0 0 0 1px var(--deep); }
@media (hover: none) { .pdp-nav { opacity: 1; } }

/* Code promo, réduction, newsletter */
.discount { color: var(--accent); font-weight: 500; }
.promo-box { margin: 8px 0 18px; }
.promo-box summary { cursor: pointer; color: var(--accent); font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.promo-box summary::-webkit-details-marker { display: none; }
.promo-form { display: flex; gap: 10px; margin-top: 10px; align-items: center; }
.promo-form input[name=code] { margin: 0 !important; max-width: 220px; border: 1px solid var(--line-strong) !important; padding: 11px 12px !important; text-transform: uppercase; }
.promo-form .btn { padding: 12px 18px; }
.promo-on { margin: 8px 0 18px; padding: 10px 14px; border: 1px dashed var(--accent); border-radius: 4px; justify-content: space-between; background: var(--panel); }
.checkout-promo { max-width: 460px; margin: 18px 0 0 auto; }
@media (max-width: 860px) { .checkout-promo { margin: 18px 0 0; max-width: none; } }
.footer-news { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; align-items: center; margin-top: 40px; padding-top: 28px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-news h4 { margin-bottom: 6px; }
.footer-news p { color: #ddd0bd; margin: 0; }
.news-form { display: flex; gap: 10px; }
.news-form input[type=email] { margin: 0 !important; background: rgba(255, 255, 255, .08) !important; border: 1px solid rgba(255, 255, 255, .25) !important; color: #fff8ee !important; padding: 13px 14px !important; }
.news-form input::placeholder { color: #cdb9a8; }
.news-form .btn-gold { background: #f3e6d4; color: var(--deep); border-color: #f3e6d4; white-space: nowrap; }
.news-form .btn-gold:hover { color: var(--cream); }
@media (max-width: 760px) { .footer-news { grid-template-columns: 1fr; } .news-form { flex-direction: column; } }

.footer-bottom .credit { display: block; margin-top: 6px; letter-spacing: .08em; }
.footer-bottom .credit a { color: #e6c48f; }
.footer-bottom .credit a:hover { color: #fff3e3; }

.news-form { flex-wrap: wrap; }
.news-form .news-legal { flex-basis: 100%; margin: 4px 0 0; font-size: .8rem; color: #c9b8a5; }
.news-form .news-legal a { color: #e6c48f; }

/* ---------- Avis clients ---------- */
.stars { display: inline-flex; gap: 1px; color: #d9c6ae; letter-spacing: 0; line-height: 1; }
.stars .on { color: var(--accent); }
.pdp-rating { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 12px; font-size: .9rem; color: var(--muted); text-decoration: none; }
.pdp-rating .stars { font-size: 1rem; }
.pdp-rating:hover { color: var(--accent); }
.pdp-reviews { border-top: 1px solid var(--line); }
.rv-summary { margin: 12px 0 0; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; color: var(--muted); }
.rv-summary .stars { font-size: 1.25rem; }
.rv-summary strong { color: var(--ivory); font-weight: 600; }
.rv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.rv-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 10px; }
.rv-card .stars { font-size: 1.05rem; margin: 0; }
.rv-text { margin: 0; font-family: var(--serif); font-size: 1.18rem; line-height: 1.5; color: var(--text-soft); white-space: pre-line; flex: 1; }
.rv-meta { margin: 0; font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.rv-meta strong { color: var(--ivory); font-weight: 600; }
.rv-verified { color: var(--ok); font-weight: 500; }

/* Formulaire « Donner mon avis » */
.rv-form { max-width: 620px; margin: 30px auto 0; display: grid; gap: 18px; }
.rv-item { margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 20px 22px; display: grid; gap: 14px; }
.rv-prod { display: flex; align-items: center; gap: 14px; }
.rv-prod img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--ink); }
.rv-name { margin: 0; font-family: var(--serif); font-size: 1.35rem; color: var(--ivory); }
.rv-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rv-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-stars label { font-size: 2.1rem; line-height: 1; color: #d9c6ae; cursor: pointer; padding: 2px; transition: color .15s, transform .15s; }
.rv-stars label:hover, .rv-stars label:hover ~ label, .rv-stars input:checked ~ label { color: var(--accent); }
.rv-stars label:hover { transform: scale(1.12); }
.rv-stars input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.rv-comment, .rv-author { display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.rv-comment small { color: var(--muted); }
.rv-send { justify-self: center; min-width: 240px; }
@media (max-width: 560px) { .rv-item { padding: 16px; } .rv-send { width: 100%; } }

/* ---------- Modes de livraison ---------- */
.ship-modes { display: grid; gap: 10px; }
.ship-mode { display: grid !important; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; transition: border-color .2s, box-shadow .2s; margin: 0 !important; }
.ship-mode:hover { border-color: var(--line-strong); }
.ship-mode:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb2), .1); }
.ship-mode input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.ship-mode-body { display: grid; gap: 2px; }
.ship-mode-body strong { font-weight: 500; color: var(--ivory); text-transform: none; letter-spacing: 0; }
.ship-mode-body small { color: var(--muted); font-size: .85rem; text-transform: none; letter-spacing: 0; font-weight: 400; }
.ship-mode-price { font-weight: 600; color: var(--ivory); white-space: nowrap; }
.relay-field { display: grid; gap: 6px; padding: 4px 2px 0; }
.free-ship { margin: 14px 0 4px; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--panel); }
.free-ship p { margin: 0 0 8px; font-size: .92rem; color: var(--text-soft); }
.free-ship strong { color: var(--accent); }
.free-ship.is-done { border-style: solid; border-color: var(--ok-line); background: var(--ok-bg); }
.free-ship.is-done p { margin: 0; color: var(--ok); font-weight: 500; }
.free-ship.is-done progress { display: none; }
.free-ship progress { display: block; width: 100%; height: 6px; border: 0; border-radius: 3px; overflow: hidden; background: var(--ink); appearance: none; -webkit-appearance: none; }
.free-ship progress::-webkit-progress-bar { background: var(--ink); }
.free-ship progress::-webkit-progress-value { background: var(--accent); border-radius: 3px; }
.free-ship progress::-moz-progress-bar { background: var(--accent); }

/* ---------- Variantes ---------- */
.variant-chip span { height: auto; min-height: 48px; padding: 8px 16px; display: grid; gap: 2px; text-align: center; }
.variant-chip small { font-size: .78rem; opacity: .8; font-weight: 400; }
.variant-chip.is-out { cursor: not-allowed; }
.variant-chip.is-out span { opacity: .45; text-decoration: line-through; }
.card-price .from { font-size: .78em; font-weight: 400; color: var(--muted); }
.pdp-alert { display: grid; gap: 8px; margin: 14px 0 10px; }
.pdp-alert label { font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ivory); }
.pdp-alert-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pdp-alert-row input { flex: 1 1 200px; }

/* ---------- Liste d'envies ---------- */
.card-wrap { position: relative; }
.wish { position: absolute; top: 12px; right: 12px; z-index: 4; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255, 248, 236, .7); background: rgba(251, 246, 239, .88); color: var(--deep); cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.wish:hover { transform: scale(1.08); }
.wish[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: var(--cream); }
.wish[aria-pressed="true"] path { fill: currentColor; }
.wish:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pdp-title-row { display: flex; align-items: flex-start; gap: 14px; justify-content: space-between; }
.pdp-title-row h1 { margin-bottom: 0; }
.wish-pdp { position: static; flex: none; margin-top: 6px; border-color: var(--line-strong); background: var(--panel); }
.header-inner .wish-link { position: relative; display: grid; place-items: center; width: 40px; height: 40px; color: var(--ivory); margin-left: auto; }
.header-inner .wish-link + .cart-link { margin-left: 4px; }
@media (min-width: 861px) { .header-inner .wish-link { position: absolute; right: 62px; } }
.wish-empty { text-align: center; padding: 40px 0; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.topbar-vacation { background: var(--accent); font-size: .8rem; text-transform: none; letter-spacing: .04em; }
.vacation-note { margin: 18px 0; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel); color: var(--text-soft); }
.wish-hint { text-align: center; margin-top: 22px; color: var(--muted); font-size: .9rem; }
.cart-count[hidden] { display: none !important; }
.size-chip input:checked + span small { color: var(--cream); opacity: .9; }
.ship-mode-body strong { font-size: 1rem; }
.ship-mode-body small { font-size: .88rem; }

/* ---------- Galerie : miniatures sur le côté (ordinateur), en dessous (mobile) ---------- */
.pdp-frame img { transition: transform 1.2s var(--ease), opacity .14s ease; }
.pdp-frame img.is-switching { opacity: 0; }
.pdp-thumbs button { position: relative; }
.pdp-thumbs button:hover { border-color: var(--line-strong); }
.pdp-thumbs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pdp-thumbs button.is-active { border-color: var(--deep); box-shadow: inset 0 0 0 1px var(--deep); }
.pdp-thumbs button:not(.is-active) img { opacity: .78; transition: opacity .2s; }
.pdp-thumbs button:hover img { opacity: 1; }
@media (min-width: 861px) {
  .pdp-media.has-thumbs { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 14px; align-items: start; }
  .pdp-media.has-thumbs .pdp-thumbs {
    order: -1; flex-direction: column; margin-top: 0; gap: 10px;
    height: 0; min-height: 100%;                 /* même hauteur que la grande photo */
    overflow-y: auto; overflow-x: hidden; padding: 1px; scroll-snap-type: y proximity;
  }
  .pdp-media.has-thumbs .pdp-thumbs button { flex: 0 0 auto; width: 100%; height: auto; aspect-ratio: 1; scroll-snap-align: start; }
}
.pdp-grid > * { min-width: 0; }

.card-wrap > .card { width: 100%; }
.coll-chips .chip small { font-size: .78em; opacity: .65; margin-left: 2px; }
.coll-chips .chip.is-active small { opacity: .8; }
.gift-box { display: grid; gap: 10px; }
.gift-opt input { accent-color: var(--accent); }

/* ---------- Suivi de commande ---------- */
.track-form { max-width: 460px; margin: 26px auto 0; display: grid; gap: 14px; }
.track-steps { list-style: none; margin: 30px auto 24px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 560px; position: relative; }
.track-steps::before { content: ""; position: absolute; top: 17px; left: 16.6%; right: 16.6%; height: 2px; background: var(--line); }
.track-steps li { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; font-size: .9rem; color: var(--muted); }
.track-steps .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 2px solid var(--line); font-weight: 600; z-index: 1; }
.track-steps li.is-done .dot { background: var(--deep); border-color: var(--deep); color: var(--cream); }
.track-steps li.is-done strong { color: var(--ivory); }
.track-steps li.is-current .dot { box-shadow: 0 0 0 5px rgba(var(--accent-rgb2), .15); }
.track-steps small { font-size: .8rem; min-height: 1em; }
.track-parcel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; padding: 16px 18px; border: 1px solid var(--accent); border-radius: 12px; background: var(--panel); }
.track-parcel p { margin: 0; }
.track-card { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 20px 22px; }
.track-card h2 { margin: 0 0 12px; font-size: 1.4rem; }
.track-items { list-style: none; margin: 0; padding: 0; }
.track-items li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.track-items li small { display: block; color: var(--muted); font-size: .82rem; }
.track-items li.total { border-bottom: 0; font-weight: 600; color: var(--ivory); }
.track-addr { color: var(--muted); font-size: .9rem; margin: 12px 0 0; }
.track-docs { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 0; }
.track-help { margin-top: 22px; color: var(--muted); }
@media (max-width: 520px) { .track-steps strong { font-size: .82rem; } }

/* ---------- Recherche ---------- */
.header-inner .search-link { display: grid; place-items: center; width: 40px; height: 40px; color: var(--ivory); margin-left: auto; }
.header-inner .search-link + .wish-link { margin-left: 0; }
@media (min-width: 861px) { .header-inner .search-link { position: absolute; right: 104px; } }
.search-form { display: flex; gap: 10px; max-width: 620px; margin: 0 auto 26px; }
.search-form input { flex: 1; min-width: 0; font-size: 1.05rem; }
.search-count { text-align: center; color: var(--muted); margin: 0 0 18px; }
@media (max-width: 520px) { .search-form .btn { padding-left: 16px; padding-right: 16px; } }
