:root {
  --navy: #0a1330;
  --navy-2: #111c42;
  --gold: #d9ad5b;
  --gold-2: #f3d697;
  --cream: #f6efe4;
  --muted: #b8bdd0;
  --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; line-height: 1.15; }

/* ---------- Barre du haut ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px clamp(16px, 4vw, 40px);
  background: linear-gradient(to bottom, rgba(6, 12, 32, .85), rgba(6, 12, 32, 0));
}
.brand { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; text-decoration: none; color: var(--gold); }
.brand span { color: var(--cream); font-family: var(--sans); font-size: .75rem; letter-spacing: .35em; text-transform: uppercase; margin-left: 6px; }
.topbar nav { display: flex; gap: 22px; align-items: center; font-size: .85rem; }
.topbar nav a { text-decoration: none; opacity: .85; }
.topbar nav a:hover { opacity: 1; color: var(--gold-2); }
html.in-tour .nav-maison { display: none; }   /* déjà dans la maison : le bouton « Sortir » suffit */
.link-btn {
  font: inherit; color: var(--navy); background: var(--gold); border: 0; cursor: pointer;
  padding: 8px 16px; border-radius: 999px; font-weight: 500;
}
.link-btn:hover { background: var(--gold-2); }

/* ---------- Accueil : image cliquable ---------- */
.hero-wrap { position: relative; overflow: hidden; background: #050b1f; isolation: isolate; }
/* Écrans très larges (21:9, 32:9…) : l'image est en 16:9. Si elle prenait toute la largeur,
   elle serait plus haute que l'écran et la maison passerait sous le bas de l'écran.
   On limite donc sa largeur pour qu'elle tienne en entier en hauteur, et les côtés sont
   remplis par la même image floutée et assombrie (fixe, aucun coût pendant les animations). */
.hero-wrap::before {
  content: ""; position: absolute; inset: -60px; z-index: -1; pointer-events: none;
  background: url("assets/hero-1280.webp?v=2") center / cover no-repeat;
  filter: blur(36px) brightness(.55) saturate(1.1);
}
.hero-stage { width: min(100%, calc(100svh * 2000 / 1125)); margin-inline: auto; }
@supports not (height: 100svh) {
  .hero-stage { width: min(100%, calc(100vh * 2000 / 1125)); }
}
/* ombre douce entre l'image nette et les bords flous (invisible sur un écran normal) */
.hero-stage { box-shadow: 0 0 70px 24px rgba(4, 9, 26, .6); }
/* Fluidité : on n'anime jamais de "filter" sur la grande image (très lourd pour la carte graphique).
   Assombrir = un voile sombre dont on anime seulement l'opacité. Bouger = transform uniquement. */
.hero-stage {
  position: relative;
  transition: transform .75s cubic-bezier(.6, 0, .2, 1), opacity .75s ease;
}
.hero-stage img { width: 100%; height: auto; }
.hero-pic { display: block; position: relative; z-index: 0; }
/* voile du survol (sous la maison illuminée) */
.hero-stage::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(4, 9, 26, .24); opacity: 0; transition: opacity .6s cubic-bezier(.4, 0, .2, 1);
}
.hovering::before { opacity: 1; }
/* voile de l'avancée vers la porte (par-dessus tout) */
.hero-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: rgba(4, 9, 26, .3); opacity: 0; transition: opacity 2.4s ease;
}
/* Avancée lente de la caméra vers la porte */
.hero-stage.approach {
  /* zoom léger volontairement : au-delà, l'image étirée devient floue sur les grands écrans */
  transform: scale(1.35);
  transition: transform 2.4s cubic-bezier(.55, 0, .15, 1);
}
.hero-stage.approach::after { opacity: 1; }
.hero-stage.approach, .hero-stage.leaving { will-change: transform; }
.hero-map { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; }
/* zone cliquable invisible (la forme de la maison) */
.house-link polygon { fill: transparent; stroke: none; cursor: pointer; }
.house-link:focus { outline: none; }

/* au survol : la maison s'illumine en blanc, le paysage autour s'assombrit un peu */
.house-glow { opacity: 0; pointer-events: none; transition: opacity .6s cubic-bezier(.4, 0, .2, 1); will-change: opacity; }
.hovering .house-glow { opacity: 1; }

/* Point lumineux "Entrer" devant la porte */
.door-spot {
  position: absolute; z-index: 3; width: 0; height: 0; padding: 0; border: 0; background: none; cursor: pointer;
}
.door-spot .dot, .door-spot .ring {
  position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%);
}
.door-spot .dot {
  width: 16px; height: 16px; background: radial-gradient(circle, #fff8e6, var(--gold));
  box-shadow: 0 0 18px 6px rgba(243, 214, 151, .8);
}
.door-spot .ring {
  width: 16px; height: 16px; border: 2px solid rgba(243, 214, 151, .9);
  animation: ring 2.4s cubic-bezier(.2, .6, .3, 1) infinite;
}
.door-spot .ring.r2 { animation-delay: 1.2s; }
.door-spot-label {
  position: absolute; left: 0; top: 24px; transform: translateX(-50%);
  font-size: .7rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap;
  color: var(--gold-2); padding: 4px 8px 4px 12px; border-radius: 999px;
  background: rgba(8, 14, 38, .78); border: 1px solid rgba(217, 173, 91, .5); backdrop-filter: blur(4px);
}
.door-spot .dot { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.door-spot:hover .dot, .door-spot:focus-visible .dot { transform: translate(-50%, -50%) scale(1.3); }
.door-spot:focus { outline: none; }
.approach .door-spot, .approach .hero-map { opacity: 0; transition: opacity .4s; }
/* anneaux : on agrandit avec transform (fluide), pas avec width/height */
@keyframes ring {
  from { transform: translate(-50%, -50%) scale(1); opacity: .9; }
  to { transform: translate(-50%, -50%) scale(4.4); opacity: 0; }
}
.hero-hint.gone { opacity: 0; transition: opacity .4s; }

/* ---------- La double porte ---------- */
.door-overlay {
  position: fixed; inset: 0; z-index: 50; overflow: hidden; cursor: pointer;
  perspective: 1800px; perspective-origin: 50% 50%;
}
.door {
  position: absolute; top: 0; bottom: 0; width: 50.2%; overflow: hidden;
  opacity: 0; backface-visibility: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .45), transparent 10%, transparent 90%, rgba(0, 0, 0, .45)),
    linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 25%, transparent 75%, rgba(0, 0, 0, .5)),
    repeating-linear-gradient(90deg, #3d2717 0 16px, #24160c 16px 18px, #4b301c 18px 34px, #24160c 34px 36px);
  box-shadow: inset 0 0 140px rgba(0, 0, 0, .65);
  transition: opacity .8s ease, transform 2s cubic-bezier(.7, 0, .2, 1);
}
.door.left { left: 0; transform-origin: left center; transform: scale(1.08); }
.door.right { right: 0; transform-origin: right center; transform: scale(1.08); }
/* cadre doré + ligne LED, comme sur vos murs */
.door::before {
  content: ""; position: absolute; inset: 7% 10%;
  border: 1px solid rgba(217, 173, 91, .55); border-radius: 2px;
  box-shadow: 0 0 24px rgba(217, 173, 91, .25), inset 0 0 24px rgba(217, 173, 91, .12);
}
.door::after {
  content: ""; position: absolute; top: 7%; bottom: 7%; width: 3px; border-radius: 2px;
  background: linear-gradient(#fff6dc, #f3d697);
  box-shadow: 0 0 22px 5px rgba(243, 214, 151, .75);
}
.door.left::after { left: 20%; }
.door.right::after { right: 20%; }
.handle {
  position: absolute; top: 66%; height: 15%; width: 7px; border-radius: 4px;
  background: linear-gradient(90deg, #8a6528, #f3d697 45%, #b8893a);
  box-shadow: 0 0 12px rgba(243, 214, 151, .55);
}
.door.left .handle { right: 4%; }
.door.right .handle { left: 4%; }
/* logo coupé en deux par l'ouverture */
.door-logo {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--serif); font-weight: 600; line-height: .9; text-align: center; white-space: nowrap;
  font-size: clamp(5rem, 13vw, 12rem);
  background: linear-gradient(160deg, #fff1c9 10%, #d9ad5b 45%, #8a6528 70%, #f3d697 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .6));
}
.door-logo small {
  display: block; font-family: var(--sans); font-weight: 400; font-size: .14em; letter-spacing: .6em; margin-top: .3em;
}
.door.left .door-logo { left: 100%; }
.door.right .door-logo { left: 0; }

/* lumière derrière les portes */
.door-light {
  position: absolute; inset: 0; opacity: 0; transform: scaleX(.015);
  /* lumière chaude et douce (plus de flash blanc qui éblouit) */
  background: radial-gradient(ellipse at center, rgba(255, 226, 170, .8) 0%, rgba(240, 196, 120, .55) 20%, rgba(217, 173, 91, .25) 45%, rgba(10, 19, 48, 0) 72%);
  transition: opacity 1s ease .3s, transform 2.2s cubic-bezier(.7, 0, .2, 1);
}

.door-overlay.show .door { opacity: 1; transform: scale(1); }
.door-overlay.show .door-light { opacity: 1; }
.door-overlay.open .door.left, .door-overlay.is-open .door.left { transform: rotateY(-105deg); }
.door-overlay.open .door.right, .door-overlay.is-open .door.right { transform: rotateY(105deg); }
.door-overlay.open .door-light, .door-overlay.is-open .door-light { transform: scaleX(1.8) scaleY(1.4); opacity: .75; }
.door-overlay.open { animation: overlay-out 1.2s cubic-bezier(.4, 0, .2, 1) 1.15s forwards; }
@keyframes overlay-out { to { opacity: 0; } }

/* Sortie : la lumière revient, les portes se referment, puis tout s'efface */
.door-overlay.fading-in { animation: overlay-in .55s ease both; }
.door-overlay.fade-out { opacity: 0; transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1) .15s; }
@keyframes overlay-in { from { opacity: 0; } }
.hero-stage.instant { transition: none !important; }
.hero-stage.leaving { transition: transform 2.6s cubic-bezier(.3, 0, .2, 1); }
.hero-stage.leaving::after { transition: opacity 2.6s ease; }
.hero-stage.instant::after { transition: none !important; }
.door { will-change: transform, opacity; }

.hero-tip {
  position: absolute; z-index: 4; transform: translate(-50%, calc(-100% - 14px));
  pointer-events: none; text-align: center; white-space: nowrap;
  background: rgba(8, 14, 38, .88); border: 1px solid rgba(217, 173, 91, .6);
  padding: 8px 16px; border-radius: 10px; backdrop-filter: blur(6px);
  animation: pop .2s ease;
}
.hero-tip strong { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--gold-2); }
.hero-tip span { font-size: .75rem; color: var(--muted); }

.hero-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 999px; font-size: .85rem;
  background: rgba(8, 14, 38, .7); border: 1px solid rgba(255, 255, 255, .15); backdrop-filter: blur(6px);
}
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(217, 173, 91, .7); animation: pulse 1.8s infinite; }

/* ---------- Liste des maisons ---------- */
.houses { padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 40px); max-width: 1280px; margin: 0 auto; text-align: center; }
.houses h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0; }
.lead { color: var(--muted); margin: .4em 0 2em; }
.houses .room-grid { text-align: left; }

/* ---------- Page « L'équipe » ---------- */
.team-page { position: relative; min-height: 100vh; overflow: hidden; }
.team-page .house-bg { position: fixed; background-size: cover; background-position: center; }
.team-exit { position: fixed; z-index: 21; top: 70px; left: clamp(16px, 4vw, 40px); }
.team {
  position: relative; max-width: 1100px; margin: 0 auto; text-align: center;
  padding: clamp(120px, 14vh, 160px) clamp(16px, 4vw, 40px) clamp(60px, 8vw, 100px);
}
.team-kicker { margin: 0; color: var(--gold); font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; }
.team h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin: .1em 0 0; color: var(--gold-2); }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); text-align: left; }
.team-card {
  display: flex; flex-direction: column; border-radius: 18px; overflow: hidden;
  background: linear-gradient(170deg, rgba(17, 28, 66, .92), rgba(8, 15, 40, .95));
  border: 1px solid rgba(217, 173, 91, .25); box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .35s;
}
.team-card:hover { transform: translateY(-4px); border-color: rgba(217, 173, 91, .55); }
.team-photo {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, var(--gold-2), var(--gold) 55%, #9c7535);
}
.team-photo > span[aria-hidden] { font-family: var(--serif); font-size: 5rem; font-weight: 600; color: var(--navy); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.team-card:hover .team-photo img { transform: scale(1.03); }
.team-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, rgba(8, 15, 40, .9), transparent); }
.team-badge {
  position: absolute; z-index: 1; left: 18px; bottom: 16px;
  padding: 4px 12px; border-radius: 999px; font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy); background: var(--gold-2);
}
.team-body { padding: 22px 26px 28px; }
.team-body h3 { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; margin: 0; line-height: 1.1; }
.team-role { margin: .25em 0 .9em; color: var(--gold); font-size: .85rem; font-weight: 500; }
.team-text { margin: 0; color: var(--muted); font-size: .95rem; }
.team-facts {
  list-style: none; padding: 0; margin: clamp(32px, 5vw, 52px) auto 0; max-width: 640px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.team-facts li { display: grid; gap: 2px; }
.team-facts strong { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 600; color: var(--gold-2); line-height: 1; }
.team-facts span { color: var(--muted); font-size: .8rem; letter-spacing: .06em; }
.team-cta { margin: 36px 0 0; }
.team-cta .btn-gold { width: auto; padding: 14px 30px; }
/* apparition : normale, ou après l'ouverture des portes */
.team-page .reveal { animation: rise .8s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--d) * .1s); }
.team-page.arriving .reveal { animation-duration: 1s; animation-delay: calc(1.1s + var(--d) * .14s); }
.team-page.arriving .house-bg { animation: push-in 3s cubic-bezier(.15, .7, .2, 1) both; }
@media (max-width: 760px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-exit { top: 62px; }
  .team { padding-top: 120px; }
}
@media (prefers-reduced-motion: reduce) { .team-page .reveal, .team-page .house-bg { animation: none !important; } }

/* ---------- Maison : choix des pièces ---------- */
.house-view { position: relative; min-height: 100vh; overflow: hidden; }
.house-bg {
  position: absolute; inset: -20px; background-repeat: no-repeat;
  filter: blur(8px) brightness(.4) saturate(1.1); transform: scale(1.05);
  will-change: transform; backface-visibility: hidden;
}
.house-content { position: relative; max-width: 1200px; margin: 0 auto; padding: 110px clamp(16px, 4vw, 40px) 60px; }
.house-content h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); margin: .2em 0 0; color: var(--gold-2); }
.room-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.room-card {
  position: relative; text-decoration: none; border-radius: var(--radius); overflow: hidden;
  background: rgba(10, 19, 48, .75); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(8px);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.room-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .6s ease; }
.room-card:hover, .room-card:focus-visible { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.room-card:hover img { transform: scale(1.05); }
.room-card-body { display: block; padding: 16px 18px 18px; }
.room-card-body strong { display: block; font-family: var(--serif); font-size: 1.5rem; }
.room-card-body small { color: var(--muted); }
.room-enter {
  position: absolute; top: 14px; right: 14px; padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 500;
  background: var(--gold); color: var(--navy); opacity: 0; transform: translateY(-6px); transition: .3s;
}
.room-card:hover .room-enter, .room-card:focus-visible .room-enter { opacity: 1; transform: none; }

/* ---------- Pièce : le mur TV ---------- */
.room-view { max-width: 1400px; margin: 0 auto; padding: 90px clamp(16px, 4vw, 40px) 60px; }
.room-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.wall { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.wall img { width: 100%; aspect-ratio: 1; object-fit: cover; animation: fade .45s ease; }
.arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(8, 14, 38, .6); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; backdrop-filter: blur(6px);
}
.arrow:hover { background: var(--gold); color: var(--navy); }
.prev { left: 14px; } .next { right: 14px; }
.counter { position: absolute; bottom: 14px; right: 14px; font-size: .8rem; padding: 4px 12px; border-radius: 999px; background: rgba(8, 14, 38, .7); }

.panel { position: sticky; top: 90px; }

/* ---------- Composition du mur ---------- */
.wall img { transition: filter .4s; }
.wall.parts-on img, .wall.parts-peek img { filter: brightness(.7); }
.parts { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; }
.parts-on .parts, .parts-peek .parts { opacity: 1; pointer-events: auto; }
.part { position: absolute; transform: translate(-50%, -50%); }
.part b {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font-size: .85rem; font-weight: 600; color: var(--navy); cursor: default;
  background: radial-gradient(circle at 35% 30%, #fff3d0, var(--gold));
  box-shadow: 0 0 0 4px rgba(217, 173, 91, .3), 0 4px 14px rgba(0, 0, 0, .5);
  transition: transform .25s;
}
.parts-on .part b { animation: pop-in .45s cubic-bezier(.3, 1.5, .5, 1) backwards; animation-delay: calc(var(--n) * 60ms); }
.part.hidden-part b { background: rgba(8, 14, 38, .85); color: var(--gold-2); border: 2px dashed var(--gold); }
.part em {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  white-space: nowrap; font-style: normal; font-size: .75rem; padding: 4px 10px; border-radius: 6px;
  background: rgba(8, 14, 38, .92); border: 1px solid rgba(217, 173, 91, .5); color: var(--cream);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.part:hover em, .part.hl em { opacity: 1; }
.part:hover b, .part.hl b { transform: scale(1.25); }
.parts-focus .part:not(.hl) { opacity: .35; }
@keyframes pop-in { from { transform: scale(0); } }

.parts-toggle {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  font: inherit; font-size: .8rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  color: var(--gold-2); background: rgba(8, 14, 38, .75); border: 1px solid rgba(217, 173, 91, .6); backdrop-filter: blur(6px);
}
.parts-toggle:hover, .parts-on .parts-toggle { background: var(--gold); color: var(--navy); }

.included h2 { font-size: 1.5rem; margin: 28px 0 12px; color: var(--gold-2); }
.parts-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.parts-list li {
  display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; cursor: default;
  border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .02); transition: border-color .2s, background .2s;
}
.parts-list li:hover, .parts-list li.hl, .parts-list li:focus-visible { border-color: var(--gold); background: rgba(217, 173, 91, .08); outline: none; }
.parts-list li > b {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font-size: .75rem; color: var(--navy); background: var(--gold);
}
.parts-list strong { font-weight: 500; font-size: .9rem; }
.parts-list small { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.tag-hidden { color: var(--gold) !important; font-size: .68rem !important; text-transform: uppercase; letter-spacing: .08em; }
.drill-note {
  margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; font-size: .82rem;
  background: rgba(226, 114, 91, .08); border: 1px solid rgba(226, 114, 91, .35);
}

/* ---------- Formulaire : perçage ---------- */
.danger-box {
  margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; font-size: .85rem;
  background: rgba(226, 114, 91, .07); border: 1px solid rgba(226, 114, 91, .45);
}
.danger-box > p { margin: 0 0 8px; }
.danger-title { font-weight: 600; color: #f3b3a3; font-size: .95rem; }
.danger-box .hint { margin: -4px 0 12px; }
label.check { display: flex !important; gap: 10px; align-items: flex-start; color: var(--cream) !important; font-size: .82rem !important; cursor: pointer; margin: 6px 0 0 !important; }
label.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--gold); }
label.check.invalid span { color: #f0a090; }
.included-box .mini-parts { columns: 2; column-gap: 20px; }
.included-box p { margin: 8px 0 0; color: var(--cream); }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; color: var(--gold); margin: 0; }
.panel h1 { font-size: clamp(2.4rem, 4vw, 3.4rem); margin: .1em 0 .3em; }
.panel h2 { font-size: 1.3rem; margin: 1.8em 0 .7em; color: var(--gold-2); }
.tags { list-style: none; padding: 0; margin: 1em 0 1.6em; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .78rem; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(217, 173, 91, .5); color: var(--gold-2); }
.btn-gold {
  font: inherit; font-weight: 500; width: 100%; padding: 14px 20px; border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy);
  transition: transform .15s, box-shadow .2s;
}
.btn-gold:hover { box-shadow: 0 10px 30px rgba(217, 173, 91, .35); }
.btn-gold:active { transform: scale(.98); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 10px; }
.thumb { font: inherit; color: inherit; padding: 0; background: none; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; text-align: left; opacity: .7; transition: .2s; }
.thumb img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.thumb span { display: block; font-size: .72rem; padding: 6px 4px; }
.thumb:hover { opacity: 1; }
.thumb.active { border-color: var(--gold); opacity: 1; }
.other-rooms { display: flex; flex-wrap: wrap; gap: 10px; }
.other-rooms a { text-decoration: none; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); font-size: .85rem; }
.other-rooms a:hover { border-color: var(--gold); color: var(--gold-2); }

/* ---------- Bouton retour ---------- */
.nav-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.nav-row .crumbs { margin: 0; }
.back-btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 8px 18px 8px 14px; border-radius: 999px; font-size: .85rem; font-weight: 500;
  border: 1px solid rgba(217, 173, 91, .55); color: var(--gold-2);
  background: rgba(8, 14, 38, .55); backdrop-filter: blur(6px);
  transition: background .2s, color .2s, transform .2s;
}
.back-btn span { transition: transform .2s; }
.back-btn:hover, .back-btn:focus-visible { background: var(--gold); color: var(--navy); }
.back-btn:hover span { transform: translateX(-4px); }

/* ---------- Arrivée dans la maison : tout apparaît en cascade ---------- */
/* "backwards" (et pas "both") pour que l'effet de survol des cartes marche après l'animation */
.house-view .room-card, .house-view .reveal { animation: rise .7s cubic-bezier(.2, .7, .2, 1) backwards; }
.house-view .reveal { animation-delay: calc(var(--d) * .1s); }
.house-view .room-card { animation-delay: calc(.2s + var(--i) * .08s); }
.house-view.arriving .house-bg { animation: push-in 3s cubic-bezier(.15, .7, .2, 1) both; }
.house-view.arriving .reveal { animation-delay: calc(1.1s + var(--d) * .15s); animation-duration: 1s; }
.house-view.arriving .room-card { animation-delay: calc(1.5s + var(--i) * .13s); animation-duration: 1s; }
.house-view.arriving .nav-row { animation: rise 1s cubic-bezier(.2, .7, .2, 1) 2.2s backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
/* arrivée : seul le transform bouge (le flou reste fixe, sinon ça saccade) */
@keyframes push-in { from { transform: scale(1.25); opacity: .6; } }

.crumbs { font-size: .82rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.crumbs a { text-decoration: none; color: var(--gold-2); }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Formulaire de devis ---------- */
dialog {
  width: min(660px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; overflow-x: hidden;
  border: 1px solid rgba(217, 173, 91, .4); border-radius: 18px;
  background: var(--navy-2); color: var(--cream); padding: 28px;
}
dialog select {
  display: block; width: 100%; margin-top: 4px; padding: 11px 12px; font: inherit; font-size: .95rem;
  color: var(--cream); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .15); border-radius: 8px;
}
dialog select option { background: var(--navy-2); }
dialog small { color: rgba(184, 189, 208, .7); font-size: .9em; }

/* Barre d'étapes */
.steps-bar { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: s; }
.steps-bar li {
  counter-increment: s; font-size: .72rem; color: var(--muted); padding-top: 10px;
  border-top: 3px solid rgba(255, 255, 255, .12); transition: border-color .3s, color .3s;
}
.steps-bar li::before { content: counter(s) ". "; }
.steps-bar li.active { border-color: var(--gold); color: var(--gold-2); font-weight: 500; }
.steps-bar li.done { border-color: rgba(217, 173, 91, .5); color: var(--cream); }

/* Étapes */
.step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.step.active { display: block; animation: rise .4s cubic-bezier(.2, .7, .2, 1); }
.step legend { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--cream); padding: 0; margin-bottom: 12px; }
.sub { font-size: .8rem; color: var(--muted); margin: 6px 0 8px; }
.hint { font-size: .75rem; color: rgba(184, 189, 208, .75); margin: 8px 0 0; }
.calc { font-size: .85rem; color: var(--gold-2); margin: -2px 0 10px; line-height: 1.7; }
.calc:empty { display: none; }

/* Choix en pastilles */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; border-radius: 10px; }
.chips label { margin: 0; cursor: pointer; position: relative; }
/* case cachée : minuscule et contenue dans sa pastille (sinon elle héritait de width:100% et débordait) */
.chips input { position: absolute; left: 0; top: 0; width: 1px !important; height: 1px; margin: 0 !important; padding: 0 !important; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 8px 14px; border-radius: 999px; font-size: .85rem; color: var(--cream);
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .03); transition: .15s;
}
.chips label:hover span { border-color: rgba(217, 173, 91, .7); }
.chips input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 500; }
.chips input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.chips.multi input:checked + span::before { content: "✓ "; }

/* Champ en erreur */
label.invalid input, label.invalid textarea, label.invalid select { border-color: #e2725b; }
.chips.invalid { outline: 1px solid #e2725b; outline-offset: 4px; }
.form-error { color: #f0a090; font-size: .85rem; margin: 10px 0 0; }

/* Aide "comment mesurer" */
.howto { margin: 0 0 14px; font-size: .82rem; background: rgba(217, 173, 91, .08); border: 1px solid rgba(217, 173, 91, .25); border-radius: 10px; padding: 10px 14px; }
.howto summary { cursor: pointer; color: var(--gold-2); font-weight: 500; }
.howto ul { margin: 8px 0 0; padding-left: 18px; color: var(--cream); }

/* Aperçu à l'échelle */
.preview { margin: 0 0 18px; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .08); }
.preview svg { display: block; width: 100%; height: 190px; }
.preview.empty svg { display: none; }
.preview figcaption { font-size: .75rem; color: var(--muted); text-align: center; margin-top: 6px; }
.preview figcaption.warn { color: #f0a090; }
.pv-wall { fill: #efe6d8; }
.pv-clad { fill: #b98f63; }
.pv-slat { stroke: #8a6744; stroke-width: 3; }
.pv-glow { fill: rgba(255, 214, 140, .55); filter: blur(6px); }
.pv-tv { fill: #0b0b0f; stroke: #333; stroke-width: 1.5; }
.pv-tv-txt { fill: rgba(255, 255, 255, .55); text-anchor: middle; font-family: var(--sans); }
.pv-cab { fill: #f7f3ec; stroke: #cfc6b8; stroke-width: 1.5; }
.pv-led { stroke: #ffd98a; stroke-width: 3; }
.pv-dim { stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 6 4; }
.pv-txt { fill: var(--gold-2); text-anchor: middle; font-family: var(--sans); }

/* Photos */
.photo-box { margin-top: 6px; padding: 14px 16px; border-radius: 12px; border: 1px dashed rgba(217, 173, 91, .5); background: rgba(217, 173, 91, .05); font-size: .85rem; }
.photo-box p { margin: 0 0 6px; }
.photo-box ol { margin: 0 0 12px; padding-left: 20px; color: var(--muted); }
.file { display: inline-block !important; margin: 0 !important; padding: 9px 16px; border-radius: 999px; cursor: pointer; color: var(--navy) !important; background: var(--gold-2); font-weight: 500; font-size: .85rem !important; }
.file input { display: none; }

/* Navigation entre étapes */
.step-nav { display: flex; gap: 10px; margin-top: 18px; }
.step-nav .btn-gold { flex: 1; }
.btn-ghost {
  font: inherit; padding: 14px 18px; border-radius: 10px; cursor: pointer;
  color: var(--cream); background: transparent; border: 1px solid rgba(255, 255, 255, .25);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }

/* Après l'envoi */
#quote-form.sent .steps-bar, #quote-form.sent .preview, #quote-form.sent .step,
#quote-form.sent .step-nav, #quote-form.sent .form-error { display: none; }
#quote-form.sent .form-note { font-size: 1.05rem; padding: 30px 10px; }
dialog::backdrop { background: rgba(3, 6, 18, .7); backdrop-filter: blur(4px); }
dialog h2 { font-size: 2rem; margin: 0 0 .2em; color: var(--gold-2); outline: none; }
.quote-design { color: var(--gold); margin: 0 0 1em; font-size: .9rem; }
dialog label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
dialog input, dialog textarea {
  display: block; width: 100%; margin-top: 4px; padding: 11px 12px; font: inherit; font-size: .95rem;
  color: var(--cream); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .15); border-radius: 8px;
}
dialog input:focus, dialog textarea:focus { outline: none; border-color: var(--gold); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.close { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: var(--muted); font-size: 1.8rem; cursor: pointer; }
.close:hover { color: #fff; }
.form-note { text-align: center; color: var(--gold-2); margin: 14px 0 0; }

/* ---------- Animations ---------- */
.fade-in { animation: fade .6s ease; }
@keyframes fade { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, calc(-100% - 4px)); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(217, 173, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 173, 91, 0); } }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .room-layout { grid-template-columns: 1fr; }
  .panel { position: static; }
  .topbar nav a { display: none; }
  .hero-hint { font-size: .72rem; bottom: 8px; }
  .hero-tip { display: none; }
}
@media (max-width: 600px) {
  .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .room-card-body strong { font-size: 1.2rem; }
  .hero-hint { white-space: nowrap; padding: 6px 12px; }
  .link-btn { padding: 6px 12px; font-size: .75rem; }
}
@media (max-width: 480px) {
  .grid2 { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   VISITE PIÈCE PAR PIÈCE
   Transition volontairement douce : fondu enchaîné + très léger zoom.
   Pas de flou animé, pas de flash, pas de découpe : reposant pour les yeux.
   ========================================================= */
html.in-tour, html.in-tour body { overflow: hidden; overscroll-behavior: none; }
.tour-stage { position: fixed; inset: 0; overflow: hidden; background: #070d24; touch-action: pan-x; }

.layer {
  position: absolute; inset: 0; overflow: hidden; background: var(--navy);
  opacity: 0; visibility: hidden; z-index: 1;
  transition: opacity .9s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .9s;
}
.layer.is-leaving { z-index: 2; }
.layer.is-active, .layer.is-leaving { will-change: opacity; }   /* fondu calculé par la carte graphique */
.layer.is-active { opacity: 1; visibility: visible; z-index: 3; transition: opacity .9s cubic-bezier(.4, 0, .2, 1), visibility 0s; }

/* fond flou fixe (jamais animé, pour rester fluide) */
.layer-bg {
  position: absolute; inset: -60px; background-size: cover; background-position: center;
  filter: blur(30px) brightness(.3) saturate(1.2);
}

.scene-grid {
  position: relative; height: 100%;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); align-items: center;
  gap: clamp(24px, 4vw, 70px); padding: 100px clamp(20px, 5vw, 80px) 60px;
}
.scene-wall {
  position: relative; justify-self: end; width: min(100%, calc(100svh - 180px)); aspect-ratio: 1;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .6), 0 0 0 1px rgba(217, 173, 91, .18);
  transform: scale(1.025); transition: transform 1.6s cubic-bezier(.22, .61, .36, 1);
}
.is-active .scene-wall { transform: scale(1); }
.scene-wall img { width: 100%; height: 100%; object-fit: cover; }
.parts-on .scene-wall img { filter: brightness(.7); }

/* le texte arrive juste après l'image, et part tout de suite */
.scene-text {
  max-width: 470px; opacity: 0; transform: translateY(18px);
  transition: opacity .3s ease, transform .3s ease;
}
.is-active .scene-text { opacity: 1; transform: none; transition: opacity .8s ease .35s, transform .8s cubic-bezier(.22, .61, .36, 1) .35s; }
.scene-num { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); margin: 0 0 6px; letter-spacing: .05em; }
.scene-num span { color: var(--muted); }
.scene-text h2 { font-size: clamp(2.4rem, 4.4vw, 4rem); margin: .1em 0 .3em; }
.scene-mood { font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; color: var(--gold-2); margin: 0 0 .8em; }
.scene-desc { color: var(--muted); margin: 0; }
.scene-text .btn-gold { width: auto; padding: 14px 26px; }

/* intro */
.intro-text { position: relative; height: 100%; display: grid; place-content: center; justify-items: center; text-align: center; padding: 0 20px; }
.intro-text h1 { font-size: clamp(3rem, 8vw, 6rem); margin: .1em 0; color: var(--gold-2); }
.intro-text .lead { font-size: 1.1rem; margin: 0 0 1.8em; }
.start-btn { width: auto !important; padding: 14px 30px !important; }
.tour .reveal { animation: rise .8s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--d) * .12s); }
.tour.arriving .reveal { animation-duration: 1s; animation-delay: calc(1.2s + var(--d) * .15s); }
.tour.arriving .intro-layer .house-bg { animation: push-in 3s cubic-bezier(.15, .7, .2, 1) both; }

/* fin de visite : son contenu défile normalement */
.end-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }
.tour-end { max-width: 1240px; margin: 0 auto; padding: 110px clamp(16px, 4vw, 40px) 130px; }
.tour-end > h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin: .1em 0 1em; }
.end-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.end-wall { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.end-wall img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: brightness(.75); }
.end-cta { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.end-cta .btn-gold { width: auto; padding: 14px 28px; }

/* sans animation (arrivée directe sur une pièce) */
.tour.no-anim .layer, .tour.no-anim .scene-wall, .tour.no-anim .scene-text { transition: none !important; }

/* mini-plan qui suit la visite */
.minimap {
  position: absolute; right: clamp(12px, 2.5vw, 28px); bottom: clamp(12px, 2.5vw, 28px); z-index: 10; width: 220px;
  padding: 12px 12px 10px; border-radius: 14px;
  background: rgba(6, 12, 32, .75); border: 1px solid rgba(217, 173, 91, .35); backdrop-filter: blur(10px);
}
.minimap svg { display: block; width: 100%; overflow: visible; }
.mm-house { fill: none; stroke: rgba(255, 255, 255, .25); stroke-width: 1.5; }
.mm-room { cursor: pointer; outline: none; }
.mm-room rect { fill: rgba(255, 255, 255, .03); stroke: rgba(217, 173, 91, .35); stroke-width: 1; transition: fill .6s, stroke .6s; }
.mm-room text { fill: var(--muted); font: 600 10px var(--sans); text-anchor: middle; pointer-events: none; transition: fill .6s; }
.mm-room:hover rect, .mm-room:focus-visible rect { fill: rgba(217, 173, 91, .18); }
.mm-room.visited rect { fill: rgba(217, 173, 91, .1); }
.mm-room.active rect { fill: rgba(217, 173, 91, .38); stroke: var(--gold-2); }
.mm-room.active text { fill: #fff; }
.mm-path { fill: none; stroke: rgba(243, 214, 151, .45); stroke-width: 1.2; stroke-dasharray: 2 3; }
.mm-door { fill: var(--gold); }
.mm-dot { fill: #fff6dc; filter: drop-shadow(0 0 5px rgba(243, 214, 151, 1)); transition: transform .9s cubic-bezier(.4, 0, .2, 1); }
.mm-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 8px 2px 0; font-size: .75rem; }
.mm-cap span { color: var(--gold); letter-spacing: .08em; }
.mm-cap strong { font-weight: 500; }

/* boutons pièce précédente / suivante */
.tour-nav {
  position: absolute; left: 50%; bottom: clamp(14px, 2.5vw, 28px); transform: translateX(-50%); z-index: 10;
  display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 999px;
  background: rgba(6, 12, 32, .7); border: 1px solid rgba(217, 173, 91, .3); backdrop-filter: blur(10px);
}
.tour-arrow {
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.1rem;
  color: var(--navy); background: var(--gold-2); transition: background .2s, opacity .2s;
}
.tour-arrow:hover { background: #fff1c9; }
.tour-arrow:disabled { opacity: .25; cursor: default; }
.tour-count { min-width: 64px; text-align: center; font-size: .85rem; letter-spacing: .08em; color: var(--cream); }
.tour-count:empty { display: none; }

.tour-progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 10; background: rgba(255, 255, 255, .06); }
.tour-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform-origin: left; transform: scaleX(0); transition: transform .9s cubic-bezier(.4, 0, .2, 1); }

.tour-exit { position: fixed; z-index: 21; top: 70px; left: clamp(16px, 4vw, 40px); }

@media (max-width: 860px) {
  .scene-grid { grid-template-columns: 1fr; align-content: center; gap: 16px; padding: 64px 16px 150px; }
  .scene-wall { justify-self: center; width: min(100%, 44svh); }
  .scene-text { max-width: none; }
  .scene-text h2 { font-size: 2rem; margin: 0 0 .2em; }
  .scene-mood { font-size: 1.05rem; margin-bottom: .6em; overflow-wrap: anywhere; }
  .scene-desc, .scene-text .tags { display: none; }
  .scene-text .btn-gold { padding: 11px 18px; font-size: .9rem; }
  .minimap { width: 132px; padding: 8px; right: 10px; bottom: 10px; }
  .mm-cap { display: none; }
  .tour-nav { left: 12px; transform: none; bottom: 12px; }
  .end-grid { grid-template-columns: 1fr; }
  .tour-exit { top: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  .layer, .scene-wall, .scene-text, .mm-dot, .tour-progress i { transition: none !important; }
}

/* =========================================================
   FICHE PRODUIT (survol = aperçu, clic = reste ouverte avec ×)
   ========================================================= */
.part { cursor: pointer; outline: none; }
.part b { cursor: pointer; }
.part em { display: none; }                       /* remplacée par la fiche */
.part.open b, .part:focus-visible b { transform: scale(1.3); box-shadow: 0 0 0 5px rgba(243, 214, 151, .55), 0 4px 14px rgba(0, 0, 0, .5); }

.part-card {
  position: absolute; z-index: 6; width: min(290px, 80%);
  border-radius: 14px; overflow: hidden; color: var(--cream);
  background: rgba(10, 18, 44, .96); border: 1px solid rgba(217, 173, 91, .55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  animation: card-in .28s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;                           /* simple aperçu : ne gêne pas la souris */
}
.part-card.pinned { pointer-events: auto; border-color: var(--gold-2); }
@keyframes card-in { from { opacity: 0; transform: translateX(var(--from, -10px)) scale(.97); } }

.pc-img { position: relative; background: #111; }
.pc-img svg, .pc-img img { display: block; width: 100%; aspect-ratio: 320 / 190; object-fit: cover; }
.pc-note {
  position: absolute; left: 8px; top: 8px; font-size: .62rem; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: rgba(255, 255, 255, .85);
}
.pc-body { padding: 12px 14px 14px; }
.pc-title { display: flex; align-items: center; gap: 10px; margin: 0; }
.pc-title b {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font-size: .75rem; color: var(--navy); background: var(--gold);
}
.pc-title strong { font-weight: 600; font-size: .95rem; }
.pc-tag { margin: 6px 0 0; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.pc-desc { margin: 6px 0 0; font-size: .8rem; line-height: 1.5; color: var(--muted); }

.pc-close {
  display: none; position: absolute; top: 8px; right: 8px; z-index: 1;
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); cursor: pointer;
  font-size: 1.1rem; line-height: 1; color: #fff; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px);
}
.pinned .pc-close { display: grid; place-items: center; }
.pc-close:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ---------- Page Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: clamp(14px, 2vw, 24px); text-align: left; }
.contact-card {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 26px 24px 24px;
  border-radius: 18px; text-decoration: none; color: inherit;
  background: linear-gradient(170deg, rgba(17, 28, 66, .92), rgba(8, 15, 40, .95));
  border: 1px solid rgba(217, 173, 91, .22); box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .35s, box-shadow .35s;
}
a.contact-card:hover, a.contact-card:focus-visible, .contact-card:focus-within {
  transform: translateY(-4px); border-color: rgba(217, 173, 91, .6);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 0 40px rgba(217, 173, 91, .12);
}
.contact-card:focus-visible { outline: none; }
.contact-card.is-main { background: linear-gradient(165deg, rgba(60, 46, 22, .95), rgba(14, 18, 40, .96)); border-color: rgba(217, 173, 91, .45); }
.contact-ico {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 12px; border-radius: 14px;
  background: rgba(217, 173, 91, .12); border: 1px solid rgba(217, 173, 91, .35);
}
.contact-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--gold-2); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.contact-ico.small { display: inline-grid; width: 30px; height: 30px; margin: 0 10px 0 0; border-radius: 9px; vertical-align: middle; }
.contact-ico.small svg { width: 16px; height: 16px; }
.contact-label { font-size: .72rem; font-weight: 500; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); }
.contact-card strong { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.contact-hint { color: var(--muted); font-size: .88rem; margin: 2px 0 16px; }
.contact-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.contact-action { margin-top: auto; font-size: .88rem; font-weight: 500; color: var(--gold-2); text-decoration: none; }
.contact-actions .contact-action { margin-top: 0; }
.contact-action:hover { color: #fff1c9; }
.contact-copy {
  font: inherit; font-size: .78rem; padding: 5px 12px; border-radius: 999px; cursor: pointer;
  color: var(--cream); background: transparent; border: 1px solid rgba(255, 255, 255, .25); transition: border-color .2s, background .2s;
}
.contact-copy:hover { border-color: var(--gold); background: rgba(217, 173, 91, .12); }
.contact-foot {
  margin-top: clamp(28px, 4vw, 44px); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 18px 22px; border-radius: 16px; background: rgba(6, 12, 32, .6); border: 1px solid rgba(255, 255, 255, .1);
}
.contact-zone { margin: 0; color: var(--muted); }
.contact-zone b { color: var(--cream); font-weight: 500; }
.contact-foot .btn-gold { width: auto; padding: 13px 26px; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-foot { justify-content: center; text-align: center; }
}

/* ---------- Curseur doré (ordinateur) ----------
   Image de curseur native : affichée par le système, donc AUCUN retard sur la souris.
   Fin contour sombre pour rester visible aussi sur les murs clairs. */
@media (hover: hover) and (pointer: fine) {
  html, body { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='12' fill='none' stroke='%23000' stroke-opacity='.35' stroke-width='3.5'/%3E%3Ccircle cx='16' cy='16' r='12' fill='none' stroke='%23f3d697' stroke-width='1.6'/%3E%3Ccircle cx='16' cy='16' r='3.4' fill='%23000' fill-opacity='.35'/%3E%3Ccircle cx='16' cy='16' r='2.4' fill='%23fff3d1'/%3E%3C/svg%3E") 16 16, auto; }
  :is(a, button, [role="button"], label, summary, select, .house-link polygon, .door-overlay, .mm-room, .part),
  :is(a, button, [role="button"], label, summary) * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='14' fill='%23d9ad5b' fill-opacity='.22' stroke='%23000' stroke-opacity='.35' stroke-width='3.5'/%3E%3Ccircle cx='16' cy='16' r='14' fill='none' stroke='%23f3d697' stroke-width='2'/%3E%3Ccircle cx='16' cy='16' r='3.4' fill='%23000' fill-opacity='.35'/%3E%3Ccircle cx='16' cy='16' r='2.4' fill='%23fff3d1'/%3E%3C/svg%3E") 16 16, pointer; }
  :is(input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), textarea) { cursor: text; }
  :is(button, input, select):disabled, .tour-arrow:disabled { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='12' fill='none' stroke='%23000' stroke-opacity='.35' stroke-width='3.5'/%3E%3Ccircle cx='16' cy='16' r='12' fill='none' stroke='%23f3d697' stroke-width='1.6'/%3E%3Ccircle cx='16' cy='16' r='3.4' fill='%23000' fill-opacity='.35'/%3E%3Ccircle cx='16' cy='16' r='2.4' fill='%23fff3d1'/%3E%3C/svg%3E") 16 16, default; }
  .part b { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='14' fill='%23d9ad5b' fill-opacity='.22' stroke='%23000' stroke-opacity='.35' stroke-width='3.5'/%3E%3Ccircle cx='16' cy='16' r='14' fill='none' stroke='%23f3d697' stroke-width='2'/%3E%3Ccircle cx='16' cy='16' r='3.4' fill='%23000' fill-opacity='.35'/%3E%3Ccircle cx='16' cy='16' r='2.4' fill='%23fff3d1'/%3E%3C/svg%3E") 16 16, pointer; }
  .parts-list li { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='12' fill='none' stroke='%23000' stroke-opacity='.35' stroke-width='3.5'/%3E%3Ccircle cx='16' cy='16' r='12' fill='none' stroke='%23f3d697' stroke-width='1.6'/%3E%3Ccircle cx='16' cy='16' r='3.4' fill='%23000' fill-opacity='.35'/%3E%3Ccircle cx='16' cy='16' r='2.4' fill='%23fff3d1'/%3E%3C/svg%3E") 16 16, auto; }
}
