/* Orchids Siam — couche finale.
   Chargée APRÈS base.css, shop.css et redesign.css : elle corrige les défauts
   mesurés le 17/09 et habille les blocs neufs (avis, mur de photos, page produit).
   Elle ne touche à AUCUNE scène au défilement : le héros collant, les chapitres
   horizontaux et le pied de page qui remonte restent exactement ce qu'ils étaient. */

/* ══ CORRECTIFS MESURÉS ══════════════════════════════════════════════════════ */

/* D33 — l'ancre arrivait 6 px sous l'entête : scroll-padding = hauteur réelle. */
html { scroll-padding-top: 91px; }
@media (max-width: 760px) { html { scroll-padding-top: 78px; } }

/* D31 — puces du carrousel à opacity .45 → 2,45:1, sous le seuil AA de 4,5.
   Mesuré après correction : 4,84:1 (encre #173d2e mélangée à 72 % sur crème). */
.slider-controls button { opacity: .72; }
.slider-controls button[aria-pressed="true"] { opacity: 1; }

/* D32 — cibles tactiles sous 44 px. On agrandit la zone de clic sans toucher au dessin. */
.slider-controls button, .chapter-tabs button, .dialog-close, [data-photo], [data-qty] { position: relative; }
.slider-controls button::after, .chapter-tabs button::after, .dialog-close::after {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max(100%, 44px); height: max(100%, 44px);
}
@media (max-width: 760px) { .dialog-close { width: 44px; height: 44px; } }

/* D36 — filets à 1,41:1, à la limite du visible. Portés à 3:1. */
:root { --line: #173d2e5c; }

/* D35 — le menu de tri n'avait aucun style : ni cadre, ni flèche. */
.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap select {
  appearance: none; -webkit-appearance: none; border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 34px 10px 16px; font-size: 14px; max-width: none;
  background: transparent; cursor: pointer;
}
.select-wrap > span { position: absolute; right: 14px; pointer-events: none; font-size: 14px; }
.select-wrap select:hover { border-color: var(--ink); }

/* D34 — les filtres défilaient horizontalement sans le dire. Dégradé de bord. */
.filter-wrap { position: relative; }
@media (max-width: 760px) {
  .filter-wrap::after {
    content: ''; position: absolute; right: 0; top: 0; bottom: 7px; width: 44px;
    background: linear-gradient(90deg, #f6f5ed00, var(--cream)); pointer-events: none;
  }
  .favorites .filter-wrap::after { background: linear-gradient(90deg, #173d2e00, var(--ink)); }
}

/* Cartes produit : prix barré et pastille de remise (23 produits en portaient un
   dans les données, aucun ne l'affichait — défaut D39). */
.product-compare { color: var(--muted); margin-right: 8px; font-size: .92em; }
.favorites .product-compare { color: #c5d2c4; }
.product-off {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: var(--ink); color: var(--cream); font-size: 11px; line-height: 1;
  padding: 6px 8px; border-radius: 999px; letter-spacing: .02em;
}
.favorites .product-off { background: var(--pink); color: var(--ink); }
.product-card h3 a { display: block; }
.product-photo { cursor: pointer; }

/* ══ AVIS ════════════════════════════════════════════════════════════════════ */
.avis { background: var(--cream); position: relative; z-index: 3; }
.avis-head { max-width: 720px; }
.avis-head h2 { font-size: clamp(40px, 4.6vw, 70px); margin: 20px 0 18px; }
.avis-intro { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 58ch; }
.avis-score { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 30px; }
.score-big { font: 400 56px/1 var(--serif); letter-spacing: -.03em; }
.score-big span { font-size: 22px; color: var(--muted); margin-left: 2px; }
.score-meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.stars { display: inline-flex; gap: 3px; }
.star { width: 14px; height: 14px; display: block; background: #173d2e26;
  clip-path: polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); }
.star.is-on { background: var(--ink); }

.avis-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 360px);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 40px 0 14px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.review {
  scroll-snap-align: start; background: var(--paper, #fffdf8); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 14px;
  margin: 0;
}
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-badge { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.review blockquote { margin: 0; font-size: 15px; line-height: 1.65; flex: 1; }
.review figcaption { display: flex; gap: 10px; align-items: baseline; font-size: 13px; color: var(--muted); }
.review figcaption strong { color: var(--ink); font-weight: 500; }
.avis-source { font-size: 12px; color: var(--muted); margin-top: 6px; }

.wall-head { margin-top: 70px; }
.wall-head h3 { font: 400 clamp(30px, 3.4vw, 46px)/1.05 var(--serif); letter-spacing: -.03em; }
.wall-head p { font-size: 15px; color: var(--muted); margin-top: 10px; }
.photo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 26px; }
.wall-photo { display: block; padding: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: #e7e9df; }
.wall-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.wall-photo:hover img { transform: scale(1.06); }

/* ══ PAGE PRODUIT ════════════════════════════════════════════════════════════ */
.pdp { padding: 0 var(--gutter) 0; }
.bread { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px;
  color: var(--muted); padding: 26px 0 22px; }
.bread a:hover { color: var(--ink); text-decoration: underline; }
.bread [aria-current] { color: var(--ink); }

.pdp-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 5%; align-items: start; padding-bottom: 90px; }
.pdp-gallery { position: sticky; top: 110px; }
.pdp-main { background: #e7e9df; border-radius: 24px; overflow: hidden; aspect-ratio: 1; }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.pdp-gallery .thumbs button { width: 72px; height: 72px; min-width: 72px; border-radius: 12px;
  overflow: hidden; background: #e7e9df; opacity: .55; transition: opacity .25s; padding: 0; }
.pdp-gallery .thumbs button.selected { opacity: 1; outline: 1.5px solid var(--ink); outline-offset: 2px; }
.pdp-gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-buy h1 { font: 400 clamp(34px, 3.8vw, 54px)/1.05 var(--serif); letter-spacing: -.03em; margin: 14px 0 18px; }
.detail-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 24px; }
.detail-price strong { font-weight: 500; }
.detail-compare { color: var(--muted); font-size: 17px; }
.detail-off { background: var(--ink); color: var(--cream); font-size: 12px; padding: 5px 9px; border-radius: 999px; }
.detail-tag { display: inline-block; margin-top: 14px; font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); }
.detail-description { font-size: 16px; line-height: 1.72; margin: 20px 0 26px; max-width: 54ch; }

.pdp-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 0 0 28px; }
.pdp-facts > div { background: var(--cream); padding: 14px 16px; }
.pdp-facts dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pdp-facts dd { margin: 5px 0 0; font-size: 15px; }

.detail-purchase { display: flex; gap: 12px; align-items: stretch; margin-bottom: 30px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 46px; height: 52px; font-size: 18px; }
.qty button:hover { background: #173d2e0d; }
.qty input { width: 44px; height: 52px; text-align: center; border: 0; background: transparent;
  font-size: 15px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.detail-purchase .button { flex: 1; min-width: 200px; border-radius: 999px; justify-content: center; gap: 12px; }
.detail-purchase .button:disabled { opacity: .45; }

.pdp-buy details { border-bottom: 1px solid var(--line); }
.pdp-buy summary { padding: 18px 0; font-size: 15px; }
.pdp-buy details[open] .faq-plus { transform: rotate(45deg); }
.faq-plus { transition: transform .3s; display: inline-block; }

.pdp-reviews { border-top: 1px solid var(--line); padding: 70px 0 20px; }
.pdp-rev-head h2 { font: 400 clamp(28px, 3vw, 42px)/1.1 var(--serif); letter-spacing: -.03em; }
.pdp-rev-head p { font-size: 15px; color: var(--muted); margin: 12px 0 16px; }
.pdp-related { border-top: 1px solid var(--line); padding-inline: 0; }

@media (max-width: 980px) {
  .pdp-grid { grid-template-columns: 1fr; gap: 34px; padding-bottom: 60px; }
  .pdp-gallery { position: static; }
  .avis-rail { grid-auto-columns: minmax(270px, 84vw); }
  .photo-wall { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
@media (max-width: 760px) {
  .pdp-facts { grid-template-columns: 1fr 1fr; }
  .detail-purchase .button { min-width: 0; }
  .avis-head h2 { font-size: 40px; }
  .wall-head { margin-top: 50px; }
}

/* Le mode « animations en pause » a été retiré : le réglage système
   prefers-reduced-motion le fait déjà, et deux mécanismes pour une seule
   intention, c'est deux fois plus de choses à maintenir (défaut D27). */
#motion-toggle { display: none; }

/* ══ PAGES LÉGALES ═══════════════════════════════════════════════════════════
   Une page légale se LIT : colonne étroite, interligne large, titres qui
   segmentent. Elle garde l'habillage du site — même en-tête, même pied — parce
   qu'une page de mentions qui ressemble à un autre site inquiète au lieu de
   rassurer. */
.legal { padding: 0 var(--gutter) 90px; max-width: 1180px; margin-inline: auto; }
.legal .bread { padding: 26px 0 30px; }

.legal-head { max-width: 62ch; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.legal-head h1 { font: 400 clamp(38px, 5vw, 66px)/1.03 var(--serif); letter-spacing: -.03em; margin: 0; }
.legal-intro { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 18px 0 0; max-width: 58ch; }
.legal-date  { font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
               color: var(--muted); margin: 20px 0 0; }

.legal-body { display: grid; gap: 46px; padding: 46px 0 0; max-width: 68ch; }
.legal-block h2 { font: 400 clamp(23px, 2.4vw, 30px)/1.2 var(--serif);
                  letter-spacing: -.02em; margin: 0 0 14px; }
.legal-block p  { font-size: 16.5px; line-height: 1.72; margin: 0 0 14px; }
.legal-block p:last-child { margin-bottom: 0; }
.legal-block ul { margin: 0 0 14px; padding-left: 20px; }
.legal-block li { font-size: 16.5px; line-height: 1.66; margin-bottom: 9px; }
.legal-block strong { font-weight: 600; }
.legal-block em { color: var(--muted); font-style: italic; }
.legal-block a { text-decoration: underline; text-underline-offset: 3px; }
.legal-block a:hover { opacity: .68; }

.contact-mail { font: 400 clamp(22px, 3vw, 34px)/1.2 var(--serif);
                letter-spacing: -.02em; text-decoration: none !important; display: inline-block; }
.contact-mail:hover { text-decoration: underline !important; }

.legal-nav { margin-top: 62px; padding-top: 26px; border-top: 1px solid var(--line);
             display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: baseline; }
.legal-nav .eyebrow { width: 100%; margin-bottom: 4px; }
.legal-nav a { font-size: 14px; color: var(--muted); }
.legal-nav a:hover { color: var(--ink); }
.legal-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.legal-back { display: inline-block; margin-top: 34px; font-size: 14px; }
.legal-back:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .legal { padding-bottom: 60px; }
  .legal-body { gap: 36px; padding-top: 34px; }
  .legal-block p, .legal-block li { font-size: 16px; }
}
