/* 5 variantes de la page Peinture sur mesure (aperçu). Chaque bloc est limité à body.psm-vN */

/* Barre de choix des variantes (aperçu uniquement) */
.psm-switch { position: fixed; z-index: 200; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 4px; padding: 5px; border-radius: 999px;
  background: rgba(11,12,23,0.92); border: 1px solid rgba(255,255,255,0.18); box-shadow: 0 10px 30px rgba(0,0,0,0.5); max-width: calc(100vw - 32px); overflow-x: auto; }
.psm-switch a { white-space: nowrap; color: var(--ink-soft); text-decoration: none; font-weight: 800; font-size: .82rem; padding: 8px 13px; border-radius: 999px; }
.psm-switch a[aria-current] { background: var(--orange); color: #fff; }

/* Code-couleur section + recherche */
.psm-recherche .psm-code { align-items: start; }

/* ===================== V2 CONFIGURATEUR ===================== */
.cfg-hero { position: relative; overflow: hidden; padding: 130px 0 70px; min-height: 720px;
  background: radial-gradient(ellipse at 70% 60%, color-mix(in srgb, var(--teinte) 22%, transparent), transparent 60%),
              linear-gradient(180deg, #0b0c17 0%, #11142a 60%, #0b0c17 100%); transition: background .6s; }
.cfg-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 80px); mask: linear-gradient(0deg, #000, transparent); pointer-events: none; }
.cfg-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.cfg-left h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 0 0 12px; }
.cfg-left h1 .hl { color: var(--teinte-txt, var(--teinte)); transition: color .5s; }
.cfg-left .psm-hero-lead { margin-bottom: 22px; }
.cfg-right { position: relative; text-align: center; }
.cfg-stage { position: relative; padding: 40px 0 10px; }
.cfg-stage::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: 10px; height: 90px; border-radius: 50%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--teinte) 45%, transparent), transparent 70%); filter: blur(10px); transition: background .6s; }
.cfg-car { position: relative; width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.6)); }
.cfg-car stop { transition: stop-color .6s; }
.cfg-readout { display: inline-flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.cfg-readout span { color: var(--ink-mute); font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.cfg-readout strong { color: #fff; font-size: 1.25rem; }
.cfg-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cfg-dots .psm-swatch { width: 36px; height: 36px; }
.psm-v2 .cfg-right .psm-price-tag { top: -10px; right: 0; }
@media (max-width: 1024px) { .cfg-grid { grid-template-columns: 1fr; } .cfg-right { order: -1; } .cfg-hero { padding-top: 110px; } }

/* ===================== V3 NUANCIER ===================== */
.nua-hero { position: relative; overflow: hidden; min-height: 720px; padding: 140px 0 80px;
  background: var(--navy-950) url('images/peinture/hero-peinture-sur-mesure.jpg') center / cover no-repeat; }
.nua-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,12,23,0.96) 0%, rgba(11,12,23,0.85) 40%, rgba(11,12,23,0.5) 70%, rgba(11,12,23,0.75) 100%); }
.nua-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; }
.nua-hero h1 { margin: 0 0 14px; }
.nua-hero h1 .hl { color: var(--teinte-txt, var(--teinte)); transition: color .5s; }
.nua-fan { position: relative; height: 470px; }
.nua-blade { position: absolute; left: 50%; bottom: 40px; width: 92px; height: 380px; margin-left: -46px; padding: 0; border-radius: 14px 14px 10px 10px;
  border: 1px solid rgba(255,255,255,0.25); cursor: pointer; transform-origin: 50% 92%;
  transform: rotate(calc((var(--i) - 4) * 11deg)); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
  background: linear-gradient(180deg, var(--c) 0 72%, #f4f1e8 72% 100%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45), inset 8px 0 14px rgba(255,255,255,0.18), inset -8px 0 14px rgba(0,0,0,0.25); }
.nua-blade span { position: absolute; left: 0; right: 0; bottom: 14px; color: #333; font: 700 .7rem/1.2 "Nunito Sans", sans-serif; padding: 0 6px; }
.nua-blade:hover { transform: rotate(calc((var(--i) - 4) * 11deg)) translateY(-18px); z-index: 5; }
.nua-blade[aria-pressed="true"] { transform: rotate(calc((var(--i) - 4) * 11deg)) translateY(-34px); z-index: 6; box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 0 3px #fff; }
.nua-pin { position: absolute; left: 50%; bottom: 58px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #9aa0ad 60%, #444); z-index: 10; box-shadow: 0 3px 10px rgba(0,0,0,0.6); }
@media (max-width: 1024px) { .nua-grid { grid-template-columns: 1fr; } .nua-fan { height: 380px; } .nua-blade { height: 300px; width: 74px; margin-left: -37px; } }
@media (max-width: 720px) { .nua-blade { transform: rotate(calc((var(--i) - 4) * 9deg)); } .nua-fan { height: 330px; } .nua-blade { height: 260px; width: 60px; margin-left: -30px; } .nua-blade span { display: none; } }

/* ===================== V4 ÉCLABOUSSURE ===================== */
.spl-hero { position: relative; overflow: hidden; min-height: 760px; padding: 130px 0 150px; display: flex; align-items: flex-end;
  background: #0b0c17 url('images/peinture/hero-peinture-sur-mesure.jpg') center 35% / cover no-repeat; }
.spl-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,12,23,0.95) 10%, rgba(11,12,23,0.2) 60%, rgba(11,12,23,0.6) 100%); }
.spl-hero .container { position: relative; z-index: 1; width: 100%; }
.spl-kicker { display: inline-block; margin: 0 0 10px; padding: 6px 14px; border-radius: 999px; background: var(--teinte); color: var(--teinte-ink, #fff); font-weight: 800; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; transition: background .5s; }
.spl-hero h1 { font-size: clamp(3rem, 9vw, 7.5rem); line-height: .92; margin: 0 0 24px; letter-spacing: -1px; text-transform: uppercase; }
.spl-hero h1 span { display: inline-block; }
.spl-hero h1 span:not(.hl) { color: transparent; -webkit-text-stroke: 2px #fff; }
.spl-hero h1 .hl { color: var(--teinte-txt, var(--teinte)); transition: color .5s; }
.spl-bottom { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: end; }
.spl-drip { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 120px; z-index: 2; }
.spl-drip path { fill: var(--teinte); transition: fill .5s; }
.psm-v4 .psm-section { clip-path: polygon(0 0, 100% 40px, 100% 100%, 0 calc(100% - 40px)); margin-top: -40px; padding: 120px 0; }
.psm-v4 .psm-section:nth-of-type(even) { clip-path: polygon(0 40px, 100% 0, 100% calc(100% - 40px), 0 100%); }
.psm-v4 .psm-recherche { background: linear-gradient(160deg, color-mix(in srgb, var(--teinte) 30%, #0b0c17) 0%, #0b0c17 55%); }
.psm-v4 .section-title { font-size: clamp(2rem, 4.4vw, 3.4rem); text-transform: uppercase; }
.psm-v4 .psm-format { border-radius: 4px 28px 4px 28px; }
.psm-v4 .psm-step { border-radius: 28px 4px 28px 4px; }
@media (max-width: 1024px) { .spl-bottom { grid-template-columns: 1fr; } }

/* ===================== V5 LABORATOIRE ===================== */
.psm-v5 { --lab-line: rgba(77,168,255,0.12); }
.lab-hero { position: relative; overflow: hidden; min-height: 740px; padding: 130px 0 70px; display: flex; align-items: center;
  background-color: #090b16; background-image: linear-gradient(var(--lab-line) 1px, transparent 1px), linear-gradient(90deg, var(--lab-line) 1px, transparent 1px); background-size: 40px 40px; }
.lab-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; background: url('images/peinture/hero-peinture-sur-mesure.jpg') 65% center / cover no-repeat;
  -webkit-mask: linear-gradient(90deg, transparent 0%, #000 35%); mask: linear-gradient(90deg, transparent 0%, #000 35%); }
.lab-cross { position: absolute; left: var(--x); top: var(--y); width: 70px; height: 70px; margin: -35px 0 0 -35px; border: 2px solid var(--teinte); border-radius: 50%; transition: border-color .5s; }
.lab-cross::before, .lab-cross::after { content: ""; position: absolute; background: var(--teinte); transition: background .5s; }
.lab-cross::before { left: 50%; top: -14px; bottom: -14px; width: 2px; margin-left: -1px; }
.lab-cross::after { top: 50%; left: -14px; right: -14px; height: 2px; margin-top: -1px; }
.lab-cross b, .lab-cross i { position: absolute; left: 84px; white-space: nowrap; font: 700 .78rem "Courier New", monospace; background: rgba(9,11,22,0.85); padding: 3px 8px; border-left: 2px solid var(--teinte); }
.lab-cross b { top: 4px; color: #fff; } .lab-cross i { top: 30px; color: var(--teinte); font-style: normal; }
.lab-grid { position: relative; z-index: 1; width: 100%; }
.lab-text { max-width: 600px; }
.lab-tag { font: 700 .85rem "Courier New", monospace; color: var(--blue-glow); letter-spacing: 2px; margin: 0 0 10px; }
.lab-hero h1 { margin: 0 0 14px; }
.lab-hero h1 .hl { color: var(--teinte-txt, var(--teinte)); transition: color .5s; }
.lab-data { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0 0 26px; background: rgba(77,168,255,0.25); border: 1px solid rgba(77,168,255,0.25); border-radius: 10px; overflow: hidden; }
.lab-data div { background: rgba(9,11,22,0.92); padding: 12px 14px; }
.lab-data dt { font: 700 .68rem "Courier New", monospace; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 1px; }
.lab-data dd { margin: 4px 0 0; font-family: "Anton", sans-serif; font-size: 1.5rem; color: #fff; }
.psm-v5 .psm-section { background-image: linear-gradient(var(--lab-line) 1px, transparent 1px), linear-gradient(90deg, var(--lab-line) 1px, transparent 1px); background-size: 40px 40px; }
.psm-v5 .psm-eyebrow { font-family: "Courier New", monospace; color: var(--blue-glow); }
.psm-v5 .psm-eyebrow::before { content: "// "; }
.psm-v5 .psm-format, .psm-v5 .psm-step, .psm-v5 .psm-teinte, .psm-v5 .psw { border-radius: 6px; border-color: rgba(77,168,255,0.3); }
.psm-v5 .psw { position: relative; overflow: hidden; }
.psm-v5 .psw::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; top: 0; background: linear-gradient(90deg, transparent, var(--teinte), transparent); animation: labScan 3s linear infinite; pointer-events: none; opacity: .8; }
@keyframes labScan { 0% { top: 0; } 100% { top: 100%; } }
@media (max-width: 1024px) { .lab-photo { width: 100%; opacity: .35; -webkit-mask: none; mask: none; } .lab-data { grid-template-columns: repeat(2, 1fr); } .lab-cross { display: none; } }

/* teinte appliquée aux boutons principaux dans toutes les variantes */
.psm-hero .hl, .psm-eyebrow { transition: color .5s; }

/* texte coloré lisible même avec une teinte sombre */
.psm-hero h1 .hl { color: var(--teinte-txt, var(--teinte)); }
.psm-eyebrow { color: var(--teinte-txt, var(--teinte)); }
