/* ═══════════════════════════════════════════════════════════════════════
   style.css — Maison Bouvines
   Palette : brique/crème/anthracite nordique
   Typographie : Playfair Display (titres) + Outfit (corps)
═══════════════════════════════════════════════════════════════════════ */

/* ─── VARIABLES ────────────────────────────────────────────────────── */
:root {
  --color-bg:            #FAF8F3;
  --color-cream:         #F0EAE0;
  --color-terracotta:    #A0522D;
  --color-terracotta-h:  #8B4513;
  --color-anthracite:    #1A1714;
  --color-stone:         #6A6058;
  --color-border:        #D5CCBE;
  --color-sand:          #E2D8C8;
  --color-white:         #FDFAF5;

  --font-display:        'Playfair Display', Georgia, serif;
  --font-body:           'Outfit', system-ui, sans-serif;

  --section-pad:         clamp(5rem, 10vw, 8rem);
  --container:           1280px;
  --gap:                 2rem;
  --radius:              2px;
  --ease-out:            cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:         cubic-bezier(0.45, 0, 0.55, 1);
}

/* ─── RESET & BASE ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-anthracite);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ─── SCROLL REVEAL ─────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.22s; }
.reveal-d3 { transition-delay: 0.34s; }
.reveal-d4 { transition-delay: 0.46s; }

/* ─── LAYOUT HELPERS ─────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.section {
  padding: var(--section-pad) 0;
}

.section--cream {
  background: var(--color-cream);
}

.section-header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--color-anthracite);
}

.section-title em {
  font-style: italic;
  color: var(--color-terracotta);
}

/* ─── NAV ────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem clamp(1.25rem, 5vw, 3rem);
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.nav.scrolled {
  background: rgba(26, 23, 20, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  padding: 0.9rem clamp(1.25rem, 5vw, 3rem);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.nav-street {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 400;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.01em;
}

.nav-city {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.nav-cta {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius);
  transition: background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
}

/* ─── HERO ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

.hero-img.loaded {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* gradient diagonal : coin bas-gauche opaque, coin haut-droit transparent */
  background:
    linear-gradient(135deg,
      rgba(20, 16, 12, 0.80) 0%,
      rgba(20, 16, 12, 0.50) 45%,
      rgba(20, 16, 12, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 clamp(1.5rem, 6vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  max-width: 800px;
}

.hero-location {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 400;
  line-height: 0.95;
  color: var(--color-white);
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  gap: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-title .hero-word {
  display: block;
}

.hero-title em {
  font-style: italic;
  color: rgba(210, 140, 90, 0.9);
}

.hero-specs {
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.65);
}

/* Prix hero — positionné en bas à droite */
.hero-price {
  position: absolute;
  bottom: clamp(3rem, 6vw, 5rem);
  right: clamp(1.5rem, 5vw, 4rem);
  z-index: 1;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-price-label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.hero-price-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.hero-price-note {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
}

/* Flèche scroll */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.hero-scroll:hover {
  opacity: 1;
}

.hero-scroll-track {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1) translateY(0); }
  50%       { opacity: 1;   transform: scaleY(1.2) translateY(4px); }
}

/* ─── POINTS FORTS ───────────────────────────────────────────────────── */
.points-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.point {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  transition: background 0.3s ease;
}

.point:hover {
  background: var(--color-white);
}

/* Grand numéro fantôme en arrière-plan */
.point-num {
  position: absolute;
  top: -0.2em;
  right: 0.1em;
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 700;
  color: var(--color-terracotta);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.point-icon {
  width: 2rem;
  height: 2rem;
  color: var(--color-terracotta);
  margin-bottom: 1.25rem;
}

.point-icon svg {
  width: 100%;
  height: 100%;
}

.point-value {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--color-anthracite);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.point-label {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-stone);
  line-height: 1.4;
}

/* ─── DESCRIPTION ────────────────────────────────────────────────────── */
.description-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.description-text {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.description-lead {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-anthracite);
  margin-bottom: 1.25rem;
}

.description-text p {
  margin-bottom: 1rem;
  color: var(--color-stone);
}

.description-text p:last-of-type {
  margin-bottom: 0;
}

.description-text strong {
  color: var(--color-anthracite);
  font-weight: 500;
}

/* Liste équipements */
.description-equip {
  margin-top: 2rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.description-equip li {
  font-size: 0.875rem;
  color: var(--color-stone);
  padding-left: 1.25rem;
  position: relative;
}

.description-equip li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 1px;
  background: var(--color-terracotta);
}

.description-equip li strong {
  color: var(--color-anthracite);
  font-weight: 500;
}

/* Photos droite */
.description-right {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.description-figure {
  overflow: hidden;
  border-radius: var(--radius);
}

.description-figure img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.description-figure:hover img {
  transform: scale(1.03);
}

.description-figure--small img {
  aspect-ratio: 16/7;
}

/* ─── GALERIE ────────────────────────────────────────────────────────── */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 0.5rem;
  margin-top: 0;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

/* Première photo : grande, occupe 2 colonnes × 2 rangées */
.galerie-item:first-child {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

/* Photo large (7e, façade arrière drone) */
.galerie-item.galerie-wide {
  grid-column: span 2;
}

.galerie-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-sand);
  border: none;
  padding: 0;
  border-radius: var(--radius);
}

.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out), filter 0.5s ease;
  filter: saturate(0.92);
}

.galerie-item:hover img {
  transform: scale(1.05);
  filter: saturate(1.05);
}

/* Overlay au hover */
.galerie-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 23, 20, 0);
  transition: background 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.galerie-item:hover .galerie-item-overlay {
  background: rgba(26, 23, 20, 0.25);
}

.galerie-zoom-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: white;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.galerie-item:hover .galerie-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

.galerie-item-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
  background: linear-gradient(to top, rgba(0,0,0,0.45), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.galerie-item:hover .galerie-item-label {
  opacity: 1;
}

/* Photos supplémentaires cachées initialement */
.galerie-item.galerie-extra {
  display: none;
}

.galerie-item.galerie-extra.galerie-visible {
  display: block;
}

/* Bouton voir toutes les photos */
.galerie-more-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-anthracite);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  cursor: pointer;
  margin-top: 2.5rem;
  border-radius: var(--radius);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.galerie-more-btn:hover {
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: white;
}

.galerie-more-count {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.65;
}

/* ─── PIÈCES (TABS) ──────────────────────────────────────────────────── */

/* Empêche le navigateur de compenser le collapse des accordéons par un scroll automatique */
.pieces {
  overflow-anchor: none;
}

.pieces-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 3rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.pieces-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-stone);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s ease, border-color 0.25s ease;
  margin-bottom: -1px;
}

.tab-btn:hover {
  color: var(--color-anthracite);
}

.tab-btn.active {
  color: var(--color-terracotta);
  border-bottom-color: var(--color-terracotta);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: tabFadeIn 0.35s var(--ease-out);
}

/* Sur desktop, le corps de l'accordéon est toujours déplié */
.accordion-header { display: none; }
.accordion-body {
  max-height: none !important;
  overflow: visible;
  border: none;
  border-radius: 0;
}
.accordion-body .pieces-layout {
  padding: 0;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pieces-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

/* Tableau des surfaces */
.pieces-rooms {
  display: flex;
  flex-direction: column;
}

.room-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
}

.room-row:first-child {
  border-top: 1px solid var(--color-border);
}

.room-name {
  font-size: 0.9375rem;
  color: var(--color-anthracite);
}

.room-name em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--color-stone);
  display: block;
  margin-top: 0.1rem;
}

.room-surface {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-terracotta);
  white-space: nowrap;
  flex-shrink: 0;
}

.room-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-stone);
}

.room-total span:last-child {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-anthracite);
}

/* ─── CAROUSEL DES ONGLETS ───────────────────────────────────────────── */
.tab-carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-sand);
}

.carousel-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.42s var(--ease-out);
  will-change: transform;
}

.carousel-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.carousel-slide:hover img {
  transform: scale(1.03);
}

/* Flèches de navigation */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(26, 23, 20, 0.5);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  padding: 0;
}

.carousel-btn:hover {
  background: rgba(26, 23, 20, 0.82);
}

.carousel-btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.carousel-prev { left: 0.6rem; }
.carousel-next { right: 0.6rem; }

/* Points indicateurs */
.carousel-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}

.carousel-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.active {
  background: white;
  transform: scale(1.3);
}

/* Compteur */
.carousel-counter {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.35);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

/* ─── INFOS + DPE ────────────────────────────────────────────────────── */
.infos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

/* Tableau infos */
.infos-table {
  width: 100%;
  border-collapse: collapse;
}

.infos-table th,
.infos-table td {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
  vertical-align: top;
}

.infos-table th {
  font-weight: 400;
  color: var(--color-stone);
  width: 50%;
  text-align: left;
}

.infos-table td {
  font-weight: 500;
  color: var(--color-anthracite);
  text-align: right;
}

.infos-table .prix-row th,
.infos-table .prix-row td {
  padding-top: 1.25rem;
  border-bottom: none;
}

.infos-table .prix-row td {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-terracotta);
}

/* DPE custom */
.dpe-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-anthracite);
  margin-bottom: 1.5rem;
}

.dpe-bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 2rem;
}

.dpe-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 32px;
  border-radius: 2px;
  padding: 0 0.75rem;
  position: relative;
  transition: filter 0.2s ease;
}

/* Largeurs progressives (flèche DPE officielle) */
.dpe-a { width: 28%; background: #00A651; }
.dpe-b { width: 38%; background: #52B947; }
.dpe-c { width: 49%; background: #C8D400; }
.dpe-d { width: 60%; background: #FFCC00; }
.dpe-e { width: 72%; background: #F7941D; }
.dpe-f { width: 84%; background: #F15A24; }
.dpe-g { width: 96%; background: #ED1C24; }

/* Clip en flèche */
.dpe-bar::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 0;
  bottom: 0;
  width: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  z-index: 1;
}

.dpe-a::after  { border-left: 12px solid #00A651; }
.dpe-b::after  { border-left: 12px solid #52B947; }
.dpe-c::after  { border-left: 12px solid #C8D400; }
.dpe-d::after  { border-left: 12px solid #FFCC00; }
.dpe-e::after  { border-left: 12px solid #F7941D; }
.dpe-f::after  { border-left: 12px solid #F15A24; }
.dpe-g::after  { border-left: 12px solid #ED1C24; }

.dpe-letter {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  position: relative;
  z-index: 2;
}

/* Barre active : taille normale + valeur visible */
.dpe-active {
  outline: 2px solid var(--color-anthracite);
  outline-offset: 2px;
}

.dpe-active .dpe-letter {
  font-size: 1.1rem;
}

.dpe-bar-value {
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  position: relative;
  z-index: 2;
  margin-left: 0.25rem;
}

/* Barres non-active : atténuées */
.dpe-bar:not(.dpe-active) {
  filter: saturate(0.6) brightness(1.1);
}

.dpe-ges {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.25rem;
  gap: 1rem;
}

.dpe-ges-label {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-stone);
  letter-spacing: 0.04em;
}

.dpe-ges-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-anthracite);
}

.dpe-energy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dpe-energy-label {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-stone);
  letter-spacing: 0.04em;
}

.dpe-energy-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-anthracite);
  line-height: 1;
}

.dpe-energy-note {
  font-size: 0.72rem;
  color: var(--color-stone);
  margin-top: 0.2rem;
}

/* ─── CARTE ──────────────────────────────────────────────────────────── */
.map-wrap {
  margin-top: clamp(3rem, 6vw, 5rem);
  height: 420px;
  overflow: hidden;
}

#map {
  width: 100%;
  height: 100%;
}

/* ─── CONTACT ────────────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.contact-intro p {
  font-size: 1.05rem;
  color: var(--color-stone);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-coords {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-coord-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-coord-row dt {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-stone);
}

.contact-link {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-anthracite);
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.contact-link:hover {
  color: var(--color-terracotta);
  text-decoration-color: var(--color-terracotta);
}

/* Formulaire */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-stone);
}

.form-group label span {
  color: var(--color-terracotta);
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 0.6rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-anthracite);
  outline: none;
  transition: border-color 0.25s ease;
  resize: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-border);
  font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--color-terracotta);
}

.form-error {
  font-size: 0.75rem;
  color: #c0392b;
  min-height: 1rem;
}

.form-submit {
  align-self: flex-start;
  background: var(--color-anthracite);
  color: var(--color-white);
  border: none;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.25s ease, transform 0.2s ease;
}

.form-submit:hover {
  background: var(--color-terracotta);
}

.form-submit:active {
  transform: scale(0.98);
}

.form-success {
  padding: 1rem 1.25rem;
  background: #f0faf5;
  border-left: 3px solid #2ecc71;
  font-size: 0.9rem;
  color: #1a6b3c;
  border-radius: var(--radius);
}

/* ─── FOOTER ─────────────────────────────────────────────────────────── */
.footer {
  background: var(--color-anthracite);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.footer-address {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  white-space: nowrap;
}

.footer-legal {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-legal a {
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: rgba(255,255,255,0.85);
}

.footer-price {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-price-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: rgba(160, 82, 45, 0.85);
  line-height: 1;
}

.footer-price-label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* ─── LIGHTBOX ───────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 12, 10, 0.96);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.18);
}

.lightbox-close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-nav svg {
  width: 1.25rem;
  height: 1.25rem;
}

.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

.lightbox-figure {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--radius);
  transition: opacity 0.2s ease;
}

.lightbox-img.fading {
  opacity: 0;
}

.lightbox-caption {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
}

.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────── */

/* Tablette (≤ 1024px) */
@media (max-width: 1024px) {
  .points-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .description-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .description-right {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .description-figure--small {
    display: block;
  }

  .pieces-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tab-photo {
    display: none;
  }

  .infos-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .dpe-bars .dpe-a { width: 22%; }
  .dpe-bars .dpe-b { width: 32%; }
  .dpe-bars .dpe-c { width: 43%; }
  .dpe-bars .dpe-d { width: 54%; }
  .dpe-bars .dpe-e { width: 66%; }
  .dpe-bars .dpe-f { width: 78%; }
  .dpe-bars .dpe-g { width: 92%; }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .footer-address {
    grid-column: 1;
  }

  .footer-price {
    grid-column: 2;
    text-align: right;
  }

  .footer-legal {
    grid-column: 1 / -1;
  }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  .nav-city { display: none; }

  .hero-title {
    font-size: clamp(3rem, 13vw, 5.5rem);
  }

  .hero-price {
    position: static;
    margin-top: 1rem;
    text-align: left;
    padding-left: clamp(1.5rem, 6vw, 5rem);
    padding-bottom: clamp(4rem, 8vw, 7rem);
  }

  .hero {
    flex-direction: column;
    justify-content: flex-end;
  }

  .points-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .galerie-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .galerie-item:first-child {
    grid-column: 1 / -1;
    grid-row: span 1;
  }

  .galerie-item.galerie-wide {
    grid-column: span 1;
  }

  .description-right {
    grid-template-columns: 1fr;
  }

  .description-figure--small {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-price {
    text-align: left;
  }

  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }

  /* ── Accordion mobile pour "Les espaces" ── */
  .pieces-tabs {
    display: none; /* les onglets horizontaux disparaissent */
  }

  /* Tous les panels visibles sur mobile (l'accordéon gère le contenu) */
  .tab-panel,
  .tab-panel[hidden] {
    display: block !important;
  }

  /* Réactiver le comportement accordéon */
  .accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--color-cream);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--color-anthracite);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, border-color 0.2s ease;
    margin-bottom: 0;
  }

  .accordion-header:hover {
    background: var(--color-sand);
    border-color: var(--color-terracotta);
  }

  .accordion-header.open {
    background: var(--color-terracotta);
    border-color: var(--color-terracotta);
    color: #fff;
    border-radius: 4px 4px 0 0;
  }

  .accordion-chevron {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
  }

  .accordion-header.open .accordion-chevron {
    transform: rotate(180deg);
  }

  .accordion-body {
    overflow: hidden !important;
    max-height: 0 !important;
    border: 1px solid var(--color-border) !important;
    border-top: none !important;
    border-radius: 0 0 4px 4px !important;
  }

  .accordion-header.open + .accordion-body {
    max-height: none !important;
  }

  .accordion-body .pieces-layout {
    padding: 1.25rem !important;
  }

  .tab-panel {
    margin-bottom: 0.75rem;
  }
}

/* Petit mobile (≤ 480px) */
@media (max-width: 480px) {
  .points-grid {
    grid-template-columns: 1fr;
  }

  .galerie-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .galerie-item:first-child {
    grid-row: span 1;
  }

  .hero-scroll {
    display: none;
  }
}
