/* ============================================================
   SHAULA — Boutique d'astrophotographie sur mesure
   Identité de marque unifiée avec l'application et le favicon :
   - Signature Shaula : menthe #78e2c3 sur noir spatial #0b0d14
   - Alternance blanc pur (#ffffff) / sections sombres (#0b0d14)
   - Teinte menthe profonde (#0f7a65, même teinte 162°) sur fond
     blanc pour garantir un contraste AA (5,2:1)
   - Mode nuit astronomie rouge pur conservé en option
   ============================================================ */

:root {
  --bg: #ffffff;
  --surf: #f7f9f8;
  --surf2: #eef2f1;
  --dark: #0b0d14;
  --dark2: #141824;
  --tx: #1b1f26;
  --dim: #555d69;
  --mute: #88919e;
  --line: #e3e7ea;
  --line-dark: rgba(255, 255, 255, .13);
  --mint: #78e2c3;
  --mint-h: #96ecd3;
  --acc: #0f7a65;
  --acc-h: #0a5e4d;
  --acc-tint: rgba(15, 122, 101, .07);
  --warn: #e0a54a;
  --red: #e84242;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sans: "Montserrat", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --thin: "Montserrat", "Segoe UI Light", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Mode nuit astronomie (option terrain) */
body.night {
  --bg: #000000;
  --surf: #0c0000;
  --surf2: #160000;
  --dark: #000000;
  --dark2: #0a0000;
  --tx: #ff4d4d;
  --dim: #c43a3a;
  --mute: #8f2020;
  --line: rgba(255, 77, 77, .22);
  --line-dark: rgba(255, 77, 77, .22);
  --mint: #ff2b2b;
  --mint-h: #ff5252;
  --acc: #ff2b2b;
  --acc-h: #cc1f1f;
  --acc-tint: rgba(255, 43, 43, .12);
  --warn: #ff4d4d;
  scrollbar-color: #3d0000 #000;
}
body.night img:not(.no-night-filter) {
  filter: grayscale(1) sepia(1) hue-rotate(-52deg) saturate(5) brightness(.55);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- En-tête style IRPhotoMax ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--dark);
  color: #fff;
  border-bottom: 1px solid var(--line-dark);
  transition: background-color .25s var(--ease);
}
.topbar.overlay {
  position: fixed;
  left: 0;
  right: 0;
  background: rgba(11, 13, 20, .46);
  backdrop-filter: blur(6px);
  border-bottom-color: rgba(255, 255, 255, .1);
}
.topbar.overlay.scrolled {
  background: rgba(11, 13, 20, .95);
}
body.night .topbar { color: var(--tx); }

.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
body.night .brand { color: var(--tx); }
.brand svg { color: var(--mint); flex: none; }
.brand-tx { display: flex; flex-direction: column; gap: 2px; }
.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .68;
  line-height: 1;
}

.top-utils, .top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
}
.topbar .top-actions .btn {
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}
.topbar .top-actions .btn:hover {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--dark);
}
body.night .topbar .top-actions .btn {
  border-color: var(--line);
  color: var(--tx);
}
body.night .topbar .top-actions .btn:hover {
  background: var(--acc);
  border-color: var(--acc);
  color: #000;
}
.util-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, .88);
  text-decoration: none;
  transition: color .15s var(--ease);
}
.util-link:hover { color: var(--mint); }
body.night .util-link { color: var(--tx); }

.iconbtn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: none;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .15s var(--ease), color .15s var(--ease), background-color .15s var(--ease);
}
.iconbtn:hover { border-color: var(--mint); color: var(--mint); }
body.night .iconbtn { border-color: var(--line); color: var(--mint); }

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 4px;
  color: #fff;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease);
}
.menu-btn:hover { border-color: var(--mint); background: var(--mint); color: var(--dark); }
body.night .menu-btn { color: var(--tx); border-color: var(--line); }

/* ---------------- Menu tiroir plein écran ---------------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 28px 0 48px;
  overflow-y: auto;
}
.drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 40px;
}
.drawer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}
.drawer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 36px;
}
.drawer-item {
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  transition: border-color .18s var(--ease);
}
.drawer-item:hover { border-bottom-color: var(--mint); }
.drawer-item strong {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  transition: color .18s var(--ease);
}
.drawer-item:hover strong { color: var(--mint); }
.drawer-item span { font-size: 13px; color: rgba(255, 255, 255, .65); }
.drawer-side {
  display: grid;
  gap: 16px;
}
.drawer-card {
  padding: 22px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-dark);
}
.drawer-card h4 { margin: 0 0 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
.drawer-card p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .75); }

/* ---------------- Boutons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid var(--dark);
  border-radius: 4px;
  background: transparent;
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { background: var(--dark); color: var(--mint); }
.btn.pri { background: var(--dark); border-color: var(--dark); color: var(--mint); }
.btn.pri:hover { background: var(--dark2); border-color: var(--mint); color: var(--mint-h); }
.hero-slider .btn.pri { background: var(--mint); border-color: var(--mint); color: var(--dark); }
.hero-slider .btn.pri:hover { background: var(--mint-h); border-color: var(--mint-h); color: var(--dark); }
.btn.pill { border-radius: 999px; padding: 0 32px; }
.btn.sm { min-height: 36px; padding: 0 16px; font-size: 13px; }
.btn.full { width: 100%; }
.btn.ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn.ghost-light:hover { background: #fff; border-color: #fff; color: var(--dark); }
body.night .btn { border-color: var(--acc); color: var(--acc); }
body.night .btn.pri { background: var(--acc); border-color: var(--acc); color: #000; }

.text-link {
  color: var(--acc);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s var(--ease);
}
.text-link:hover { border-bottom-color: var(--acc); }

/* ---------------- Hero Carrousel plein écran (style IRPhotoMax) ---------------- */
.hero-slider {
  position: relative;
  min-height: 82vh;
  max-height: 820px;
  display: flex;
  align-items: center;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
  padding-top: 78px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 56% 66% at 72% 36%, rgba(120, 226, 195, .20), transparent 66%),
    radial-gradient(ellipse 46% 55% at 24% 70%, rgba(72, 130, 210, .14), transparent 64%),
    radial-gradient(circle at 50% 50%, #121726 0%, #0b0d14 100%);
  pointer-events: none;
}
/* Étoiles fines discrètes tant que la photo hero n'est pas encore ajoutée */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 14% 28%, rgba(255,255,255,.75), transparent),
    radial-gradient(1px 1px at 31% 19%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 48% 34%, rgba(255,255,255,.55), transparent),
    radial-gradient(2px 2px at 66% 24%, rgba(170,210,255,.85), transparent),
    radial-gradient(1px 1px at 82% 41%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 22% 72%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 74% 76%, rgba(255,255,255,.65), transparent),
    radial-gradient(1.5px 1.5px at 88% 18%, rgba(255,210,190,.7), transparent);
  opacity: .75;
}
body.night .hero-bg { background: #000; }
body.night .hero-bg::after { opacity: .2; }

.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}
.hero-slides { position: relative; z-index: 2; width: 100%; padding: 64px 0 88px; }
.hero-slide { display: none; text-align: center; max-width: 860px; margin: 0 auto; }
.hero-slide.active { display: block; animation: fadeSlide .45s var(--ease); }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.hero-slide h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 18px;
  color: #fff;
}
body.night .hero-slide h1 { color: var(--tx); }
.hero-slide p {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 300;
  color: rgba(255, 255, 255, .86);
  margin: 0 auto 28px;
  max-width: 52ch;
}
.hero-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-slot-tag {
  display: inline-block;
  margin-top: 22px;
  font: 11px var(--mono);
  color: rgba(255, 255, 255, .52);
  border: 1px dashed rgba(255, 255, 255, .24);
  padding: 4px 10px;
}

/* Points hexagonaux de carrousel (signature IRPhotoMax) */
.hex-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hex-dot {
  width: 14px;
  height: 16px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .38);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  cursor: pointer;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.hex-dot:hover { background: rgba(255, 255, 255, .75); }
.hex-dot.on { background: var(--mint); transform: scale(1.15); }

/* ---------------- Bannières promo 50/50 plein cadre ---------------- */
.promo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.promo-tile {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 40px;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #141c28 0%, #0b0d14 100%);
  border-right: 1px solid rgba(255, 255, 255, .08);
}
.promo-tile:last-child {
  background: linear-gradient(135deg, #102427 0%, #0b0d14 100%);
  border-right: 0;
}
body.night .promo-tile { background: #070000; border-bottom: 1px solid var(--line); }
.promo-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 20, .14) 0%, rgba(11, 13, 20, .86) 100%);
  z-index: 1;
  transition: opacity .25s var(--ease);
}
.promo-tile:hover::before { opacity: .65; }
.promo-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease);
}
.promo-tile:hover img { transform: scale(1.04); }
.promo-tile > :not(img) { position: relative; z-index: 2; }
.promo-tile h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600;
  margin: 0 0 8px;
  color: #fff;
}
.promo-tile p { margin: 0 0 14px; font-size: 14px; color: rgba(255, 255, 255, .82); max-width: 44ch; }
.promo-go { font-size: 13px; font-weight: 600; color: var(--mint); }
.promo-slot { font: 11px var(--mono); color: rgba(255, 255, 255, .48); margin-bottom: 10px; }

/* ---------------- Titres de section fins (signature IRPhotoMax) ---------------- */
.sec { padding: 76px 0; }
.sec-dark { background: var(--dark); color: #fff; }
.sec-headline {
  font: 200 clamp(30px, 4.4vw, 52px)/1.12 var(--thin);
  letter-spacing: 1.5px;
  text-align: center;
  margin: 0 0 46px;
}

/* ---------------- Section sombre "Nos engagements" (3 hexagones) ---------------- */
.features-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  text-align: center;
}
.feat-item { padding: 8px 14px; }
.hex-icon {
  width: 74px;
  height: 84px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--mint);
}
.hex-icon svg.hex-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(120, 226, 195, .32);
  transition: color .2s var(--ease);
}
.feat-item:hover .hex-icon svg.hex-frame { color: var(--mint); }
.feat-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #fff;
}
.feat-item p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, .75);
}

/* ---------------- Section blanche "Nos produits" (onglets + grille 4 col.) ---------------- */
.prod-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: -18px 0 38px;
}
.prod-tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
  cursor: pointer;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.prod-tabs button:hover { color: var(--tx); }
.prod-tabs button.on { color: var(--acc); border-bottom-color: var(--acc); }

.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.prod-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.prod-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--bg);
  transition: transform .2s var(--ease);
}
.prod-card:hover { transform: translateY(-3px); }
.prod-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surf);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  overflow: hidden;
  margin-bottom: 14px;
}
.prod-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease);
}
.prod-card:hover .prod-thumb img { transform: scale(1.04); }
.prod-flag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 15px;
  background: var(--dark);
  color: var(--mint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.prod-flag.amber { background: var(--warn); color: var(--dark); }
body.night .prod-flag { background: var(--acc); color: #000; }
.slot-code {
  font: 11px var(--mono);
  color: var(--mute);
  background: var(--bg);
  border: 1px dashed var(--line);
  padding: 4px 8px;
}
.prod-brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: center;
  margin-bottom: 4px;
}
.prod-title {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  color: var(--tx);
  margin: 0 0 4px;
  transition: color .15s var(--ease);
}
.prod-card:hover .prod-title { color: var(--acc); }
.prod-spec {
  font-size: 12.5px;
  color: var(--dim);
  text-align: center;
  margin: 0 0 8px;
}
.prod-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--tx);
  text-align: center;
  margin-top: auto;
}
.center-cta { text-align: center; margin-top: 40px; }

/* Tableau comparatif sobre (Volet motorisé vs Panneau autonome) */
.cmp-wrap { overflow-x: auto; margin-top: 48px; }
.cmp-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid var(--line);
}
.cmp-tbl th, .cmp-tbl td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.cmp-tbl th {
  background: var(--surf);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dim);
}
.cmp-tbl th.hl { background: var(--dark); color: var(--mint); }
body.night .cmp-tbl th.hl { background: var(--acc); color: #000; }
.cmp-tbl td:first-child { font-weight: 600; color: var(--tx); }
.cmp-tbl td.yes { color: var(--acc); font-weight: 600; }
.cmp-tbl tr:last-child td { border-bottom: 0; }

.measure-tip {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--dim);
}

/* ---------------- Section Vidéo + Aperçu logiciel sur fond blanc ---------------- */
.media-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.video-box {
  position: relative;
  min-height: 320px;
  background: var(--dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
}
.play-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--dark);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.video-box h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.video-box p { margin: 0 0 12px; font-size: 13px; color: rgba(255, 255, 255, .75); }

.ui-card {
  border: 1px solid var(--line);
  background: var(--surf);
  display: flex;
  flex-direction: column;
}
.ui-card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--dim);
}
.ui-tabs { display: inline-flex; gap: 6px; }
.ui-tabs button {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--dim);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.ui-tabs button.on { background: var(--acc); border-color: var(--acc); color: #fff; }
body.night .ui-tabs button.on { color: #000; }
.ui-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1220 / 790;
  object-fit: cover;
  object-position: top;
}
.ui-card-foot {
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

/* ---------------- Page Produit (style fiche produit IRPhotoMax) ---------------- */
.breadcrumb {
  background: var(--surf);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 13px;
  color: var(--mute);
}
.breadcrumb a { text-decoration: none; color: var(--dim); }
.breadcrumb a:hover { color: var(--acc); }
.breadcrumb span.cur { color: var(--acc); font-weight: 500; }

.pdp-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 40px 0 52px;
  align-items: start;
}
.pdp-main-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surf);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  overflow: hidden;
}
.pdp-main-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.pdp-thumb {
  aspect-ratio: 4 / 3;
  border: 2px solid var(--line);
  background: var(--surf);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  font-size: 11px;
  color: var(--dim);
  display: grid;
  place-items: center;
  text-align: center;
  transition: border-color .15s var(--ease);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumb.on, .pdp-thumb:hover { border-color: var(--acc); }
#maskStyleToggle .pdp-thumb {
  aspect-ratio: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tx);
  background: var(--bg);
}
#maskStyleToggle .pdp-thumb small { font-size: 12px; font-weight: 400; color: var(--dim); }
#maskStyleToggle .pdp-thumb.on { background: var(--acc-tint); color: var(--acc); }
body.night #maskStyleToggle .pdp-thumb.on { background: rgba(255, 43, 43, .12); }

.pdp-info h1 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.2;
}
.pdp-brand-line {
  font-size: 13px;
  color: var(--mute);
  margin: 0 0 14px;
}
.pdp-brand-line strong { color: var(--acc); font-weight: 600; }
.pdp-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--tx);
  margin: 0 0 18px;
}

.diam-box {
  padding: 16px 18px;
  background: var(--surf);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.diam-type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}
.diam-type-toggle button {
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease);
}
.diam-type-toggle button:hover {
  border-color: var(--acc);
  color: var(--tx);
}
.diam-type-toggle button.on {
  background: var(--acc);
  border-color: var(--acc);
  color: #fff;
}
body.night .diam-type-toggle button.on {
  color: #000;
}
.diam-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.diam-top label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); }
.diam-input-wrap { display: flex; align-items: baseline; gap: 5px; }
.diam-input-wrap input {
  width: 78px;
  text-align: right;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--tx);
  font-size: 20px;
  font-weight: 700;
  padding: 4px 8px;
}
.finder-range { width: 100%; margin: 8px 0 10px; accent-color: var(--acc); cursor: pointer; }
.finder-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.preset-pill {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--dim);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.preset-pill:hover { border-color: var(--acc); color: var(--acc); }
.preset-pill.on { background: var(--acc); border-color: var(--acc); color: #fff; }
body.night .preset-pill.on { color: #000; }

.size-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.size-opt {
  text-align: left;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--tx);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.size-opt:hover { border-color: var(--acc); }
.size-opt.on { border-color: var(--acc); background: var(--acc-tint); box-shadow: inset 0 0 0 1px var(--acc); }
body.night .size-opt.on { background: rgba(255, 43, 43, .12); }
.size-opt strong { display: block; font-size: 14px; font-weight: 600; }
.size-opt small { display: block; font-size: 11.5px; color: var(--dim); }
.size-opt .opt-price { font-size: 13.5px; font-weight: 700; color: var(--acc); white-space: nowrap; }

.mask-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.mask-pitch {
  padding: 10px 14px;
  background: var(--surf);
  border-left: 3px solid var(--acc);
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 14px;
}
.mask-pitch strong { color: var(--tx); }

.pdp-reassure {
  margin: 16px 0;
  padding: 14px 16px;
  background: var(--surf);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
}
.pdp-reassure p { margin: 0 0 6px; }
.pdp-reassure p:last-child { margin: 0; }
.pdp-reassure strong { color: var(--tx); }

.pdp-bullets {
  margin: 14px 0 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--dim);
  font-style: italic;
}
.pdp-bullets li { margin-bottom: 5px; }

/* Onglets Détails / Commander encadrés en bleu #0469fc (signature IRPhotoMax) */
.pdp-tabs-wrap { padding-bottom: 64px; }
.pdp-tab-bar { display: flex; gap: 4px; }
.pdp-tab-bar button {
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--surf);
  color: var(--dim);
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.pdp-tab-bar button.on {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--mint);
}
body.night .pdp-tab-bar button.on { background: var(--acc); border-color: var(--acc); color: #000; }
.pdp-tab-panel {
  border: 1px solid var(--dark);
  padding: 28px;
  background: var(--bg);
}
body.night .pdp-tab-panel { border-color: var(--acc); }

/* Fiche technique pilules noir spatial + menthe / gris */
.spec-pills {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 8px 10px;
}
.spec-k {
  background: var(--dark);
  color: var(--mint);
  padding: 9px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}
body.night .spec-k { background: var(--acc); color: #000; }
.spec-v {
  background: var(--surf);
  color: var(--tx);
  padding: 9px 14px;
  border-radius: 4px;
  font-size: 13.5px;
}
.todo-pill {
  font: 11px var(--mono);
  color: #b45309;
  background: #fef3c7;
  padding: 2px 7px;
  border-radius: 4px;
}
body.night .todo-pill { background: #1a0000; color: var(--tx); border: 1px solid var(--line); }

/* Formulaire propre */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--dim); }
.field input, .field select, .field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--tx);
  padding: 10px 12px;
  font-size: 14px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--acc);
}
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--dim);
  cursor: pointer;
}
.check-field input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  border: 1px solid var(--mute);
  border-radius: 3px;
  background: var(--bg);
  display: grid;
  place-content: center;
  flex: none;
  cursor: pointer;
}
.check-field input[type="checkbox"]:checked { background: var(--acc); border-color: var(--acc); }
.check-field input[type="checkbox"]:checked::after {
  content: "";
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.check-field a { color: var(--acc); text-decoration: underline; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.form-msg { font-size: 13.5px; color: var(--acc); font-weight: 500; margin: 12px 0 0; min-height: 20px; }
.form-msg.err { color: var(--red); }

/* Modale Stripe */
dialog.buy-modal {
  background: var(--bg);
  color: var(--tx);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  max-width: 480px;
  width: calc(100% - 32px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
}
dialog.buy-modal::backdrop { background: rgba(9, 12, 12, .72); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 10px; }
.modal-head h3 { margin: 4px 0 0; font-size: 20px; }
.modal-price { font-size: 16px; font-weight: 700; color: var(--acc); margin: 0 0 12px; }
.modal-note { background: var(--surf); border-left: 3px solid var(--acc); padding: 12px 14px; font-size: 13px; color: var(--dim); margin-bottom: 12px; }
.modal-close {
  border: 1px solid var(--line);
  background: var(--surf);
  color: var(--tx);
  width: 34px;
  height: 34px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
}

/* Pages légales */
.legal-page { max-width: 820px; padding: 52px 24px 72px; }
.legal-page h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; margin: 6px 0 10px; }
.legal-meta { font-size: 13px; color: var(--mute); padding-bottom: 16px; border-bottom: 1px solid var(--line); margin: 0 0 28px; }
.legal-page h2 { font-size: 19px; font-weight: 600; margin: 28px 0 10px; }
.legal-page p, .legal-page ul { font-size: 14px; color: var(--dim); margin: 0 0 12px; }
.legal-page strong { color: var(--tx); }
.legal-box { margin: 16px 0; padding: 16px 18px; background: var(--surf); border-left: 3px solid var(--acc); font-size: 13px; color: var(--dim); }
.sec-num { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); display: block; }
.kv-list { border-top: 1px solid var(--line); }
.kv-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv-row span { color: var(--dim); }

/* ---------------- Pied de page sombre #090c0c (style IRPhotoMax) ---------------- */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .72);
  padding: 56px 0 28px;
  font-size: 13px;
}
.foot-cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
footer h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 14px;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 8px; }
footer a { text-decoration: none; color: rgba(255, 255, 255, .72); transition: color .15s var(--ease); }
footer a:hover { color: var(--mint); }
.foot-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, .52);
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 24px;
}
.foot-brand {
  color: #fff;
  font-weight: 700;
  letter-spacing: .06em;
}
body.night .foot-brand { color: var(--tx); }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .promo-split, .media-split, .pdp-hero, .drawer-grid, .foot-cols { grid-template-columns: 1fr; }
  .prod-grid, .prod-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features-3 { grid-template-columns: 1fr; gap: 28px; }
  .util-hide-sm { display: none; }
}

@media (max-width: 768px) {
  .wrap { padding: 0 16px; }
  .slot-code { max-width: 100%; overflow-wrap: anywhere; }

  /* 1. Header & Drawer */
  .topbar-in {
    min-height: 60px;
    gap: 10px;
  }
  .brand { gap: 9px; min-width: 0; }
  .brand svg { width: 26px; height: 26px; }
  .brand-name { font-size: 16px; letter-spacing: .14em; }
  .brand-sub { font-size: 9px; letter-spacing: .16em; }
  .top-utils, .top-actions { gap: 8px; flex-shrink: 0; }
  .iconbtn { width: 44px; height: 44px; }
  .menu-btn {
    min-height: 44px;
    padding: 8px 12px;
    gap: 7px;
    font-size: 12px;
  }
  .topbar .top-actions .btn.sm {
    min-height: 44px;
    padding: 0 12px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  .drawer {
    padding: 16px 0 calc(36px + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .drawer-top {
    padding-bottom: 16px;
    margin-bottom: 20px;
    gap: 12px;
  }
  .drawer-top strong {
    font-size: 15px !important;
    letter-spacing: .12em !important;
    white-space: nowrap;
  }
  .drawer-top .menu-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .drawer-grid { gap: 24px; }
  .drawer-links { grid-template-columns: 1fr; gap: 4px; }
  .drawer-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 54px;
    padding: 14px 4px;
  }
  .drawer-item strong { font-size: 17px; line-height: 1.25; }
  .drawer-item span { font-size: 13px; line-height: 1.4; }
  .drawer-card { padding: 16px; }

  /* 2. Hero d'accueil */
  .hero-slider {
    min-height: 500px;
    min-height: min(76svh, 620px);
    max-height: none;
    padding-top: 64px;
  }
  .hero-slides { padding: 36px 0 76px; }
  .hero-slide h1 {
    font-size: clamp(26px, 7vw, 36px);
    line-height: 1.16;
    margin-bottom: 14px;
  }
  .hero-slide p {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 24px;
  }
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-width: 420px;
    margin: 0 auto;
  }
  .hero-cta-row .btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    line-height: 1.25;
    text-align: center;
  }
  .hero-slot-tag {
    margin-top: 18px;
    font-size: 10.5px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .hex-dots {
    bottom: 14px;
    gap: 6px;
  }
  .hex-dot {
    width: 44px;
    height: 44px;
    background: transparent;
    clip-path: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .hex-dot:hover, .hex-dot.on {
    background: transparent;
    transform: none;
  }
  .hex-dot::before {
    content: "";
    width: 15px;
    height: 17px;
    background: rgba(255, 255, 255, .42);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: background-color .18s var(--ease), transform .18s var(--ease);
  }
  .hex-dot.on::before {
    background: var(--mint);
    transform: scale(1.15);
  }
  body.night .hex-dot::before { background: rgba(255, 77, 77, .38); }
  body.night .hex-dot.on::before { background: var(--acc); }

  /* Sections & bannières */
  .sec { padding: 48px 0; }
  .sec-headline {
    font-size: clamp(26px, 7vw, 36px);
    margin-bottom: 28px;
  }
  .promo-tile {
    padding: 28px 20px;
    min-height: 230px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .promo-tile:last-child { border-bottom: 0; }
  .promo-tile h2 { font-size: clamp(20px, 5.6vw, 25px); }
  .feat-item { padding: 4px 8px; }
  .hex-icon { margin-bottom: 14px; }

  /* 3. Zones tactiles >= 44px : filtres, familles de masques, onglets, presets */
  .prod-tabs {
    gap: 8px;
    margin: -8px 0 26px;
  }
  .prod-tabs button {
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surf);
    color: var(--dim);
    font-size: 12.5px;
    letter-spacing: .04em;
    line-height: 1.25;
  }
  .prod-tabs button.on {
    background: var(--dark);
    border-color: var(--dark);
    color: var(--mint);
  }
  body.night .prod-tabs button {
    background: var(--surf);
    border-color: var(--line);
    color: var(--dim);
  }
  body.night .prod-tabs button.on {
    background: var(--acc);
    border-color: var(--acc);
    color: #000;
  }
  .center-cta { margin-top: 28px; }
  .center-cta .btn { width: 100%; max-width: 420px; min-height: 48px; }

  /* Aperçu interface & vidéo */
  .video-box { min-height: 250px; padding: 24px 18px; }
  .ui-card-bar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }
  .ui-tabs button {
    min-height: 44px;
    padding: 8px 14px;
    font-size: 13px;
  }
  .ui-card-foot {
    padding: 12px;
    gap: 10px;
  }
  .ui-card-foot .btn { min-height: 44px; }
  .ui-card-foot .text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  /* 4. Pages fiches produits & Configurateur */
  .breadcrumb {
    padding: 10px 0;
    font-size: 12.5px;
    line-height: 1.5;
  }
  .breadcrumb a {
    display: inline-block;
    padding: 4px 0;
  }
  .pdp-hero {
    gap: 24px;
    padding: 20px 0 34px;
  }
  .pdp-main-img { padding: 18px; }
  .pdp-thumbs { gap: 8px; margin-top: 10px; }
  .pdp-thumb {
    min-height: 52px;
    padding: 4px;
    line-height: 1.2;
  }
  #maskStyleToggle .pdp-thumb {
    min-height: 56px;
    padding: 12px 10px;
    font-size: 13.5px;
  }
  #maskStyleToggle .pdp-thumb small { font-size: 11.5px; }

  .pdp-info h1 {
    font-size: clamp(22px, 6.2vw, 28px);
    line-height: 1.2;
  }
  .pdp-brand-line {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 10px;
  }
  .pdp-price {
    font-size: 24px;
    margin-bottom: 14px;
  }

  .diam-box { padding: 14px; }
  .diam-type-toggle { gap: 8px; margin-bottom: 12px; }
  .diam-type-toggle button {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 12.5px;
    line-height: 1.25;
  }
  .diam-top {
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
  }
  .diam-top label {
    line-height: 1.3;
    flex: 1 1 160px;
  }
  .diam-input-wrap {
    align-items: center;
    flex-shrink: 0;
  }
  .diam-input-wrap input {
    width: 88px;
    min-height: 44px;
    font-size: 18px;
    padding: 6px 10px;
  }
  .finder-range {
    -webkit-appearance: none;
    appearance: none;
    height: 36px;
    margin: 4px 0 8px;
    background: transparent;
    touch-action: pan-y;
  }
  .finder-range::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 999px;
    background: var(--line);
  }
  .finder-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--acc);
    border: 3px solid var(--bg);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .28);
    margin-top: -10px;
  }
  .finder-range::-moz-range-track {
    height: 8px;
    border-radius: 999px;
    background: var(--line);
  }
  .finder-range::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--acc);
    border: 3px solid var(--bg);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .28);
  }
  .finder-presets { gap: 8px; }
  .preset-pill {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .size-opt {
    min-height: 54px;
    padding: 12px 14px;
  }
  .size-opt > span:first-child { min-width: 0; }
  .size-opt strong { font-size: 14.5px; }
  .size-opt small { font-size: 12px; line-height: 1.35; }
  .size-opt .opt-price { font-size: 14px; }

  /* Empêche le zoom auto d'iOS Safari (>= 16px) & confort tactile formulaires */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea {
    font-size: 16px;
  }
  .field { min-width: 0; }
  .field input, .field select, .field textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 11px 12px;
    font-size: 16px;
  }
  .check-field {
    min-height: 44px;
    padding: 4px 0;
    gap: 12px;
    font-size: 13.5px;
    line-height: 1.45;
  }
  .check-field input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 1px;
  }
  .check-field input[type="checkbox"]:checked::after {
    width: 5px;
    height: 10px;
  }

  /* Onglets PDP & CTAs pleine largeur */
  .pdp-tabs-wrap { padding-bottom: 48px; }
  .pdp-tab-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  .pdp-tab-bar button {
    min-height: 48px;
    padding: 10px 12px;
    font-size: 13.5px;
    line-height: 1.25;
    text-align: center;
  }
  .pdp-tab-panel { padding: 18px 16px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .form-actions {
    flex-direction: column;
    gap: 10px;
  }
  #goOrderTab, #stripeDirectBtn, #submitBtn, .form-actions .btn {
    width: 100%;
    min-height: 48px;
  }
  .spec-pills { grid-template-columns: 1fr; gap: 4px; }
  .spec-v { margin-bottom: 6px; }

  /* Modale Stripe */
  dialog.buy-modal {
    padding: 20px;
    width: calc(100% - 24px);
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
  }
  .modal-close {
    width: 44px;
    height: 44px;
    flex: none;
  }

  /* 5. Tableau comparatif & Pages légales */
  .cmp-wrap {
    margin-top: 32px;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .cmp-wrap::before {
    content: "← Faire glisser pour comparer →";
    display: block;
    position: sticky;
    left: 0;
    padding: 7px 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--dim);
    background: var(--surf);
    border-bottom: 1px solid var(--line);
    text-align: center;
  }
  .cmp-tbl {
    min-width: 540px;
    border: 0;
    font-size: 13.5px;
  }
  .cmp-tbl th, .cmp-tbl td { padding: 11px 12px; }

  .legal-page { padding: 32px 16px 52px; }
  .legal-page h1 { font-size: clamp(24px, 7vw, 32px); line-height: 1.2; }
  .legal-page h2 { font-size: 17px; margin-top: 24px; }
  .legal-page p, .legal-page li, .legal-box { overflow-wrap: anywhere; }
  .kv-row {
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
  }
  .kv-row span { font-size: 12.5px; }
  .kv-row b { overflow-wrap: anywhere; }

  /* Pied de page */
  footer { padding: 40px 0 24px; }
  .foot-cols { gap: 26px; padding-bottom: 24px; }
  footer li { margin-bottom: 2px; }
  footer a { display: inline-block; padding: 6px 0; }
  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .foot-in {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .foot-links { gap: 4px 18px; }
}

@media (max-width: 600px) {
  .prod-grid, .prod-grid.cols-3, .size-picker, .mask-fields { grid-template-columns: 1fr; }
  .prod-thumb { aspect-ratio: 4 / 3; }
  .pdp-main-img { aspect-ratio: 16 / 10; }
}

@media (max-width: 480px) {
  .diam-top { flex-wrap: wrap; }
  .ui-card-foot {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .ui-card-foot .btn { width: 100%; }
  .ui-card-foot .text-link { justify-content: center; }
  .promo-tile { min-height: 210px; padding: 24px 16px; }
  .topbar .brand-sub { display: none; }
}

@media (max-width: 380px) {
  .diam-type-toggle { grid-template-columns: 1fr; }
  .diam-type-toggle button { font-size: 13px; }
}
