/* =========================================================
   Fresques murales N&B — feuille de style
   ========================================================= */

@font-face { font-family: "Archivo Black"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/archivo-black-latin.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/inter-latin.woff2) format("woff2"); }

:root { --o: #e8661c; --o-dark: #c4520f; --ink: #141414; --wall: #efebe5; }
* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
html { scroll-behavior: smooth; }
body { font: 16px/1.55 "Inter", system-ui, sans-serif; background: var(--ink); color: var(--ink); overflow-x: clip; }
img { display: block; }
a { color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Mur (scène qui reste à l'écran pendant le défilement) ---------- */
#track { position: relative; height: 650vh; }
/* lvh = hauteur de l'écran barre d'adresse masquée : ne change pas quand la barre apparaît (mobile) */
.stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: #e9e6e1; }
.scene { position: absolute; left: 0; top: 0; will-change: transform; }
.scene > .photo { position: absolute; inset: 0; width: 100%; height: 100%; }
/* tout le mur du fond : de l'angle gauche à l'angle droit, du plafond à la plinthe */
.fresque { position: absolute; left: 0; top: 0; width: 74.7%; height: 70.37%; overflow: hidden; mix-blend-mode: multiply; }
/* échelle, chaise et plante détourées, remises devant la fresque */
.objets { position: absolute; left: 0; top: 20.255%; width: 58.75%; height: 51.01%; pointer-events: none; }
/* un trait = un coup de marqueur qui se trace */
.vs { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }

.hero { position: absolute; left: 0; right: 0; top: 24%; text-align: center; pointer-events: none; padding: 0 1rem; }
.hero h1 { font-family: "Archivo Black", Impact, sans-serif; font-weight: 400; font-size: clamp(2.2rem, 6vw, 5.2rem); line-height: .95; text-transform: uppercase; text-shadow: 0 0 30px rgba(255, 255, 255, .9); }
.hero h1 span { color: var(--o); }
.hero p { margin-top: 1.2rem; font-size: .95rem; font-weight: 600; }
.hint { margin-top: 2.2rem; font-size: .85rem; opacity: .65; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(8px); } }

/* ---------- Sélecteur de dessin (verre) ---------- */
.styles {
  position: fixed; z-index: 60; top: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; padding: 4px; border-radius: 999px; max-width: calc(100vw - 16px);
  overflow-x: auto; scrollbar-width: none;
  border: 1px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .38);
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .85), 0 10px 30px -10px rgba(30, 20, 10, .35);
  transition: opacity .3s;
}
.styles::-webkit-scrollbar { display: none; }
.styles button {
  font: 600 .85rem/1 "Inter", system-ui, sans-serif; color: #1b1b1d; border: 0; background: none;
  padding: 0 .9rem; min-height: 40px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.styles button[aria-pressed="true"] { background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.styles button:focus-visible { outline: 2px solid var(--o); outline-offset: 1px; }
.styles.hide { opacity: 0; pointer-events: none; }
.loading { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-size: .85rem; font-weight: 600; background: rgba(255, 255, 255, .7); padding: .4rem .9rem; border-radius: 999px; opacity: 0; transition: opacity .2s; }
.loading.on { opacity: 1; }
@media (max-width: 420px) { .styles button { padding: 0 .6rem; font-size: .8rem; } }

/* ---------- Cards effet verre (iOS) ---------- */
.cards { position: absolute; top: 115vh; right: 4vw; width: min(360px, 88vw); z-index: 5; }
.card {
  position: relative; overflow: hidden; margin-bottom: 70vh; padding: 1.5rem 1.6rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .2));
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .9), inset 0 -1px 1px rgba(255, 255, 255, .25),
    0 20px 50px -12px rgba(30, 20, 10, .35), 0 2px 8px rgba(30, 20, 10, .08);
  color: #1b1b1d;
  opacity: 0; transform: translateY(80px) scale(.96); filter: blur(6px);
  transition: opacity .7s, transform .9s cubic-bezier(.2, .9, .25, 1), filter .7s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 60% at 15% 0%, rgba(255, 255, 255, .55), transparent 55%),
              linear-gradient(to bottom, rgba(255, 255, 255, .18), transparent 40%);
}
.card > * { position: relative; }
.card.in { opacity: 1; transform: none; filter: none; }
.card .num { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 800; background: rgba(232, 102, 28, .14); border: 1px solid rgba(232, 102, 28, .3); color: var(--o-dark); }
.card h2 { font-weight: 800; font-size: 1.45rem; line-height: 1.15; letter-spacing: -.02em; margin: .7rem 0 .5rem; }
.card p, .card li { font-size: .97rem; line-height: 1.5; color: rgba(27, 27, 29, .82); }
.card ul { list-style: none; }
.card li { padding-left: 1.1rem; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: .6em; width: .4rem; height: .4rem; border-radius: 50%; background: var(--o); }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; margin-top: 1rem; padding: 0 1.4rem; border-radius: 999px;
  color: #fff; font-weight: 700; text-decoration: none; border: 1px solid rgba(255, 255, 255, .5);
  background: linear-gradient(180deg, #f27a35, #e0600f);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .6), 0 8px 20px -6px rgba(224, 96, 15, .6);
}
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---------- Demande de devis ---------- */
.devis { background: var(--wall); padding: clamp(48px, 7vw, 96px) max(5vw, 16px); scroll-margin-top: 0; }
.devis-in { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.devis h2 { font-family: "Archivo Black", Impact, sans-serif; font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; text-wrap: balance; }
.devis h2 span { color: var(--o); }
.devis-intro p { margin-top: 1rem; font-size: 1.05rem; color: #3a3836; max-width: 42ch; }
.steps { list-style: none; margin-top: 1.6rem; display: grid; gap: .7rem; }
.steps li { display: flex; gap: .8rem; align-items: center; font-weight: 600; }
.steps b { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: .85rem; }
.devis-intro .small { font-size: .9rem; color: #6a6662; }
.form {
  background: #fff; border-radius: 28px; padding: clamp(20px, 3vw, 36px);
  box-shadow: 0 30px 60px -30px rgba(30, 20, 10, .35), 0 2px 8px rgba(30, 20, 10, .06);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 18px;
}
.f { display: grid; gap: 6px; align-content: start; }
.f.full { grid-column: 1 / -1; }
.f > label, .f > .lab { font-size: .9rem; font-weight: 600; color: #2a2826; }
.req { color: var(--o-dark); }
.f input, .f select, .f textarea {
  font: 16px/1.4 "Inter", system-ui, sans-serif; color: #1b1b1d; width: 100%; min-height: 48px;
  border: 1.5px solid #ddd8d0; border-radius: 14px; padding: 11px 14px; background: #fbfaf8;
}
.f textarea { min-height: 120px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(232, 102, 28, .25); }
.unit { position: relative; }
.unit input { padding-right: 48px; }
.unit::after { content: "m²"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #6a6662; font-weight: 600; }
.err { font-size: .82rem; color: #b3261e; min-height: 1em; }
.f.bad input, .f.bad select, .f.bad textarea { border-color: #b3261e; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #ddd8d0; font-weight: 600; font-size: .92rem; cursor: pointer; background: #fbfaf8; }
.seg input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(232, 102, 28, .35); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: #3a3836; line-height: 1.45; font-weight: 400 !important; }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--o); }
.hp { position: absolute; left: -9999px; }
.send { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.send button {
  font: 700 1rem/1 "Inter", system-ui, sans-serif; color: #fff; border: 0; cursor: pointer; min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: linear-gradient(180deg, #f27a35, #e0600f); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .6), 0 10px 22px -8px rgba(224, 96, 15, .7);
}
.send button:disabled { opacity: .6; cursor: wait; }
.send button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.send .note { font-size: .82rem; color: #6a6662; }
.done { grid-column: 1 / -1; display: grid; gap: 12px; }
.done:focus { outline: none; }
.done h3 { font-family: "Archivo Black", Impact, sans-serif; font-weight: 400; font-size: 1.6rem; }
.done pre { white-space: pre-wrap; overflow-wrap: anywhere; font: .9rem/1.5 "Inter", system-ui, sans-serif; background: #f6f3ee; border-radius: 14px; padding: 14px 16px; }
.done .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ghost { font: 600 .95rem "Inter", sans-serif; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; color: inherit; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
@media (max-width: 860px) { .devis-in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pied de page ---------- */
footer { background: var(--ink); color: #fff; padding: 4rem max(5vw, 16px) 2.5rem; text-align: center; }
footer h2 { font-family: "Archivo Black", Impact, sans-serif; font-weight: 400; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; }
footer h2 span { color: var(--o); }
footer .tag { margin-top: .8rem; opacity: .75; }
footer .share { margin-top: 2.2rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
footer .share-t { width: 100%; font-size: .9rem; opacity: .75; }
footer .pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  font: 600 .92rem "Inter", system-ui, sans-serif; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08);
}
footer .pill:hover { background: rgba(255, 255, 255, .16); }
footer .pill:focus-visible { outline: 2px solid var(--o); outline-offset: 2px; }
footer .pill[hidden] { display: none; }
footer .links { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; font-size: .9rem; opacity: .75; }
footer .links a { text-decoration: none; }
footer .links a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hint { animation: none; }
  .card { transition: none; filter: none; }
}
