/* Page « Peinture sur mesure » : styles propres à cette page */
:root { --teinte: #ff7a30; --teinte-2: #ffb07a; }

/* ---------- HERO ---------- */
.psm-hero {
  position: relative; overflow: hidden; min-height: 680px;
  display: flex; align-items: flex-end;
  background: var(--navy-950) url('images/peinture/hero-peinture-sur-mesure.jpg') center 40% / cover no-repeat;
  padding: 140px 0 56px;
}
.psm-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(11,12,23,0.97) 0%, rgba(11,12,23,0.86) 26%, rgba(11,12,23,0.35) 55%, rgba(11,12,23,0.15) 75%, rgba(11,12,23,0.55) 100%),
    linear-gradient(90deg, rgba(11,12,23,0.75) 0%, rgba(11,12,23,0.2) 45%, transparent 70%);
}
.psm-hero .container { position: relative; z-index: 1; width: 100%; }
.psm-hero .breadcrumb { margin-bottom: 14px; }
.psm-hero h1 { max-width: 820px; margin: 0 0 14px; text-shadow: 0 4px 24px rgba(0,0,0,0.6); }
.psm-hero h1 .hl { color: var(--teinte); transition: color .5s; }
.psm-hero-lead { max-width: 680px; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.6; margin: 0 0 22px; text-shadow: 0 2px 10px rgba(0,0,0,0.7); }
.psm-checks { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 28px; padding: 0; list-style: none; }
.psm-checks li { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: .95rem; }
.psm-checks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: var(--teinte) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12.5 10 17 19 7'/%3E%3C/svg%3E") center/12px no-repeat; transition: background-color .5s; }
.psm-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Bandeau prix aérosol ---------- */
.psm-price-tag {
  position: absolute; right: 4%; top: 120px; z-index: 2;
  width: 168px; height: 168px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(circle at 30% 30%, var(--teinte-2), var(--teinte) 60%);
  color: #fff; box-shadow: 0 18px 50px rgba(0,0,0,0.5), inset 0 -6px 18px rgba(0,0,0,0.18);
  transform: rotate(-8deg); transition: background .5s;
}
.psm-price-tag small { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; opacity: .95; }
.psm-price-tag strong { font-family: "Anton", sans-serif; font-weight: 400; font-size: 2.9rem; line-height: 1; }
.psm-price-tag span { font-size: .78rem; font-weight: 700; }

/* ---------- Sections communes ---------- */
.psm-section { position: relative; padding: 84px 0; }
.psm-section .section-title { margin-bottom: 12px; }
.psm-section .section-lead { max-width: 760px; }
.psm-eyebrow { display: inline-block; color: var(--teinte); font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; font-size: .82rem; margin-bottom: 10px; transition: color .5s; }

/* ---------- Essayez une teinte (nuancier) ---------- */
.psm-nuancier { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 26px 0 8px; }
.psm-nuancier-label { color: var(--ink-soft); font-weight: 700; margin-right: 6px; }
.psm-swatch {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 3px solid rgba(255,255,255,0.15); background: var(--c);
  box-shadow: inset -6px -8px 14px rgba(0,0,0,0.35), inset 6px 6px 12px rgba(255,255,255,0.25);
  transition: transform .2s, border-color .2s;
}
.psm-swatch:hover { transform: scale(1.12); }
.psm-swatch[aria-pressed="true"] { border-color: #fff; transform: scale(1.12); }
.psm-swatch-name { color: #fff; font-weight: 800; min-width: 190px; }

/* ---------- Formats ---------- */
.psm-formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.psm-format {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px 24px; overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.psm-format:hover { transform: translateY(-4px); border-color: rgba(255,122,48,0.5); }
.psm-format-visual { height: 170px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 18px; position: relative; }
.psm-format-visual::after { content: ""; position: absolute; bottom: -4px; left: 20%; right: 20%; height: 14px; border-radius: 50%;
  background: radial-gradient(ellipse, var(--teinte), transparent 70%); opacity: .45; filter: blur(4px); transition: background .5s; }
.psm-format-visual svg { height: 100%; width: auto; position: relative; z-index: 1; }
.psm-format-visual .fill { fill: var(--teinte); transition: fill .5s; }
.psm-format h3 { margin: 0 0 6px; font-family: "Oswald", "Nunito Sans", sans-serif; font-size: 1.35rem; color: #fff; letter-spacing: .3px; }
.psm-format .psm-sub { color: var(--ink-mute); font-size: .88rem; margin: 0 0 14px; }
.psm-format ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 7px; }
.psm-format li { color: var(--ink-soft); font-size: .93rem; padding-left: 20px; position: relative; }
.psm-format li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--teinte); transition: background .5s; }
.psm-format-price { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.psm-format-price strong { font-family: "Anton", sans-serif; font-weight: 400; font-size: 2rem; color: #fff; line-height: 1; }
.psm-format-price strong.is-pending { font-family: inherit; font-size: 1rem; font-weight: 800; color: var(--gold); }
.psm-format-price span { color: var(--ink-mute); font-size: .82rem; text-align: right; }
.psm-badge { position: absolute; top: 16px; right: 16px; background: var(--teinte); color: #fff; font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; padding: 5px 10px; border-radius: 999px; transition: background .5s; z-index: 2; }

/* ---------- Trouver son code couleur ---------- */
.psm-code { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; margin-top: 30px; }
.psm-brands { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.psm-brand {
  font: inherit; font-weight: 700; font-size: .9rem; color: var(--ink-soft); cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px;
  transition: background .2s, border-color .2s, color .2s;
}
.psm-brand:hover { border-color: rgba(255,122,48,0.6); color: #fff; }
.psm-brand[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #fff; }
.psm-code-card { background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.psm-code-card h3 { margin: 0 0 12px; color: #fff; font-family: "Oswald", sans-serif; font-size: 1.3rem; }
.psm-code-where { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: w; }
.psm-code-where li { counter-increment: w; position: relative; padding-left: 36px; color: var(--ink-soft); line-height: 1.5; }
.psm-code-where li::before { content: counter(w); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.psm-code-example { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #f4f1e8; color: #222; border-radius: 10px; padding: 12px 16px; font-family: "Courier New", monospace; font-size: .9rem; box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.psm-code-example b { background: #ffe066; padding: 2px 8px; border-radius: 4px; font-size: 1.05rem; letter-spacing: 1px; }
.psm-code-tip { margin: 16px 0 0; color: var(--ink-mute); font-size: .88rem; }
.psm-car-svg { width: 100%; height: auto; display: block; }
.psm-car-svg .body { fill: rgba(255,255,255,0.05); stroke: rgba(255,255,255,0.45); stroke-width: 2.5; }
.psm-car-svg .detail { fill: none; stroke: rgba(255,255,255,0.28); stroke-width: 2; }
.psm-car-svg .spot { opacity: 0; transition: opacity .3s; }
.psm-car-svg .spot.on { opacity: 1; }
.psm-car-svg .spot circle.pulse { fill: none; stroke: var(--orange); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: psmPulse 1.6s ease-out infinite; }
.psm-car-svg .spot circle.dot { fill: var(--orange); }
.psm-car-svg .spot text { fill: #fff; font: 700 15px "Nunito Sans", sans-serif; }
@keyframes psmPulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.psm-vin-hint { margin-top: 18px; display: flex; gap: 14px; align-items: flex-start; background: rgba(77,168,255,0.08); border: 1px solid rgba(77,168,255,0.3); border-radius: 14px; padding: 16px 18px; color: var(--ink-soft); }
.psm-vin-hint strong { color: #fff; }

/* ---------- Étapes ---------- */
.psm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; counter-reset: s; }
.psm-step { position: relative; background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 18px; padding: 30px 24px 24px; }
.psm-step::before { counter-increment: s; content: "0" counter(s); font-family: "Anton", sans-serif; font-size: 3.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--teinte); display: block; margin-bottom: 12px; transition: -webkit-text-stroke-color .5s; }
.psm-step h3 { margin: 0 0 8px; color: #fff; font-family: "Oswald", sans-serif; font-size: 1.25rem; }
.psm-step p { margin: 0; color: var(--ink-soft); line-height: 1.6; font-size: .95rem; }

/* ---------- Atelier (photos réelles) ---------- */
.psm-atelier { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 250px 250px; gap: 18px; margin-top: 34px; }
.psm-atelier figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.psm-atelier figure:first-child { grid-row: 1 / 3; }
.psm-atelier img { width: 100%; height: 100%; object-fit: cover; display: block; }
.psm-atelier img.pos-low { object-position: center 30%; }
.psm-atelier figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; color: #fff; font-weight: 700; font-size: .92rem; background: linear-gradient(0deg, rgba(11,12,23,0.9), transparent); }

/* ---------- Teintes possibles ---------- */
.psm-teintes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.psm-teinte { border-radius: 16px; padding: 22px 20px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); }
.psm-teinte i { display: block; width: 100%; height: 64px; border-radius: 10px; margin-bottom: 14px; }
.psm-teinte h3 { margin: 0 0 6px; color: #fff; font-size: 1.08rem; font-family: "Oswald", sans-serif; }
.psm-teinte p { margin: 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.5; }
.t-unie { background: linear-gradient(135deg, #d8352a, #a51f17); }
.t-metal { background: linear-gradient(115deg, #1b3f7a 0%, #6d93d6 38%, #173569 60%, #4f78c2 100%); }
.t-nacre { background: linear-gradient(120deg, #f6f2ea 0%, #e7d9f2 30%, #d9efe9 55%, #fbf3dd 80%, #efe8f6 100%); }
.t-ral { background: repeating-linear-gradient(90deg, #2a6f3a 0 25%, #f1c40f 25% 50%, #3b3b3b 50% 75%, #7a3d1d 75% 100%); }

/* ---------- Commande (aperçu) ---------- */
.psm-order { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; margin-top: 30px; }
.psm-form { background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; gap: 16px; }
.psm-form label { display: grid; gap: 6px; color: #fff; font-weight: 700; font-size: .92rem; }
.psm-form label small { color: var(--ink-mute); font-weight: 400; }
.psm-form input, .psm-form select { font: inherit; color: #fff; background: rgba(11,12,23,0.6); border: 1px solid rgba(255,255,255,0.18); border-radius: 10px; padding: 12px 14px; }
.psm-form input:focus, .psm-form select:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,48,0.2); }
.psm-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.psm-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.psm-seg button { font: inherit; font-weight: 700; font-size: .88rem; color: var(--ink-soft); background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 10px; padding: 11px 8px; cursor: pointer; }
.psm-seg button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #fff; }
.psm-total { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; color: var(--ink-soft); }
.psm-total strong { font-family: "Anton", sans-serif; font-weight: 400; font-size: 2rem; color: #fff; }
.psm-preview-note { font-size: .82rem; color: var(--gold); margin: 0; }
.psm-cart-msg { margin: 0; padding: 12px 14px; border-radius: 10px; font-size: .92rem; line-height: 1.5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.psm-cart-msg[hidden] { display: none; }
.psm-cart-msg.is-ok { background: rgba(46, 160, 90, 0.14); border: 1px solid rgba(46, 160, 90, 0.5); color: #fff; }
.psm-cart-msg.is-error { background: rgba(255, 122, 48, 0.12); border: 1px solid var(--orange); color: #fff; }
.psm-cart-msg a { color: var(--gold); font-weight: 700; }
.psm-cart-msg a.btn { color: #fff; padding: 8px 16px; }
#psm-add[disabled] { opacity: .7; cursor: wait; }
.psm-order-side h3 { color: #fff; font-family: "Oswald", sans-serif; margin: 0 0 10px; font-size: 1.3rem; }
.psm-order-side ul { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 12px; }
.psm-order-side li { display: flex; gap: 12px; color: var(--ink-soft); line-height: 1.5; }
.psm-order-side li b { color: #fff; }
.psm-ico { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255,122,48,0.14); color: var(--orange); }
.psm-ico svg { width: 20px; height: 20px; }
.psm-warn { background: rgba(255,216,61,0.07); border: 1px solid rgba(255,216,61,0.3); border-radius: 14px; padding: 16px 18px; color: var(--ink-soft); font-size: .92rem; line-height: 1.55; }
.psm-warn strong { color: var(--gold); }

/* ---------- Texte SEO + FAQ ---------- */
.psm-seo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 48px; margin-top: 28px; }
.psm-seo h2 { font-family: "Oswald", sans-serif; font-size: 1.35rem; color: #fff; margin: 0 0 10px; }
.psm-seo p { color: var(--ink-soft); line-height: 1.7; margin: 0; }
.psm-faq { margin-top: 40px; display: grid; gap: 12px; }
.psm-faq details { background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.psm-faq summary { cursor: pointer; padding: 18px 0; color: #fff; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.psm-faq summary::after { content: "+"; color: var(--orange); font-size: 1.4rem; line-height: 1; }
.psm-faq details[open] summary::after { content: "−"; }
.psm-faq details p { margin: 0 0 18px; color: var(--ink-soft); line-height: 1.65; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .psm-formats, .psm-steps { grid-template-columns: 1fr 1fr; }
  .psm-teintes { grid-template-columns: 1fr 1fr; }
  .psm-code, .psm-order, .psm-seo { grid-template-columns: 1fr; }
  .psm-price-tag { width: 132px; height: 132px; top: 100px; }
  .psm-price-tag strong { font-size: 2.2rem; }
}
@media (max-width: 720px) {
  .psm-hero { min-height: 620px; padding-top: 120px; background-position: 30% 40%; }
  .psm-formats, .psm-steps, .psm-teintes { grid-template-columns: 1fr; }
  .psm-atelier { grid-template-columns: 1fr; grid-template-rows: 240px 240px 240px; }
  .psm-atelier figure:first-child { grid-row: auto; }
  .psm-price-tag { width: 92px; height: 92px; right: 12px; top: 84px; }
  .psm-hero { padding-top: 190px; }
  .psm-price-tag strong { font-size: 1.7rem; }
  .psm-price-tag small, .psm-price-tag span { font-size: .62rem; }
  .psm-section { padding: 60px 0; }
  .psm-form .row2 { grid-template-columns: 1fr; }
}
