/* ==========================================================================
   BONNE VISITE - THÈME CLAIR MONOCHROME
   Feuille unique : remplace styles.css + theme-noir.css
   ========================================================================== */

@font-face {
  font-family: "Sansation";
  src: url("font/Sansation_Light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Sansation";
  src: url("font/Sansation_Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Sansation";
  src: url("font/Sansation_Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Encre & gris */
  --ink: #1f1f21;
  --ink-2: #48484c;
  --muted: #6c6c72;
  --muted-light: #9a9aa0;

  /* Surfaces */
  --paper: #ffffff;
  --mist: #f5f5f6;
  --pearl: #ebebed;
  --frost: rgba(255, 255, 255, 0.76);
  --frost-strong: rgba(255, 255, 255, 0.9);

  /* Filets */
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.16);

  /* Ombres (très légères) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.10);

  /* Rayons */
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Layout */
  --container: 1180px;
  --header-height: 68px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* Typo */
  --font-display: "Sansation", "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-text: "Plus Jakarta Sans", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Alias utilisés par les scripts et styles en ligne des pages */
  --navy: var(--ink);
  --accent: var(--ink);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
  background: var(--mist);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Fond texturé (media/fond-clair.jpg), fixe derrière tout le site */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--mist) url("media/fond-clair.jpg") center / cover no-repeat;
}

::selection {
  background: var(--ink);
  color: #ffffff;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

button, input, select, textarea, a {
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding-top: var(--safe-top);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--container);
  height: var(--header-height);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.7;
}

.logo img {
  height: 38px;
  width: auto;
}

.nav-panel {
  order: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-actions {
  order: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.menu a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.menu a:hover {
  color: var(--ink);
}

.menu a[aria-current="page"] {
  color: var(--ink);
}

.menu a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-phone-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.nav-panel-footer {
  display: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.nav-toggle-lines {
  position: relative;
  width: 18px;
  height: 12px;
}

.nav-toggle-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.26s ease, opacity 0.2s ease, top 0.26s ease;
}

.nav-toggle-lines span:nth-child(1) { top: 0; }
.nav-toggle-lines span:nth-child(2) { top: 5px; }
.nav-toggle-lines span:nth-child(3) { top: 10px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 980;
  background: rgba(240, 240, 242, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body.nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   Structure des pages
   -------------------------------------------------------------------------- */
.page-panel {
  /* + 1px : le filet bas de la barre de navigation */
  height: calc(var(--header-height) + var(--safe-top) + 1px);
}

.page-shell {
  flex: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 88px;
}

.page-shell-wide {
  max-width: 1320px;
}

/* Grand panneau givré : laisse deviner la texture du fond */
.section-card {
  padding: clamp(24px, 4vw, 48px);
  background: var(--frost);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.section-intro {
  max-width: 62ch;
  margin: 0 0 32px;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--muted);
}

/* Sur-titre avec la coupe diagonale du monogramme */
.home-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-pill::before,
.detail-heading::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 16px;
  background: var(--ink);
  transform: skewX(-28deg);
}

.card,
.section,
.location-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card {
  padding: clamp(22px, 3.2vw, 36px);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.button,
.btn-hero-primary,
.btn-hero-secondary,
.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.button:active,
.btn-hero-primary:active,
.btn-hero-secondary:active,
.btn-hero-ghost:active {
  transform: scale(0.98);
}

.button-primary,
.btn-hero-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.button-primary:hover,
.btn-hero-primary:hover {
  background: #3a3a3d;
  border-color: #3a3a3d;
}

.button-primary:disabled {
  cursor: progress;
}

.button-secondary,
.btn-hero-secondary {
  background: var(--frost-strong);
  border-color: var(--line-strong);
  color: var(--ink);
}

.button-secondary:hover,
.btn-hero-secondary:hover {
  border-color: var(--ink);
}

.btn-hero-ghost {
  padding: 0 6px;
  color: var(--ink);
}

.btn-hero-ghost span {
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s ease;
}

.btn-hero-ghost:hover span {
  border-color: var(--ink);
}

.btn-hero-primary svg {
  transition: transform 0.3s var(--ease);
}

.btn-hero-primary:hover svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Accueil
   -------------------------------------------------------------------------- */
.home {
  flex: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 88px;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}

.home-section {
  margin-top: 40px;
}

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.home-section-head .home-pill {
  margin: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s ease;
}

.text-link:hover {
  border-color: var(--ink);
}

.home-about {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  margin-top: 96px;
}

.home > .home-about:first-child {
  margin-top: 40px;
}

.home-about-photo {
  position: relative;
  justify-self: center;
}

.home-about-photo img {
  width: min(320px, 70vw);
  filter: grayscale(1);
}

.home-avatar-badge {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  padding: 8px 16px;
  background: var(--ink);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-about p {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.75;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Annonces : filtres & grille
   -------------------------------------------------------------------------- */
.annonce-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.search-wrap,
.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  color: var(--muted);
  pointer-events: none;
}

.search-wrap input[type="search"] {
  padding-left: 46px;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 16px; /* Évite le zoom automatique sur iOS Safari */
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-light);
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231f1f21' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.annonce-count-wrap {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.annonce-count {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.annonce-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}

.annonce-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s ease;
}

.annonce-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}

.annonce-visual {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--pearl);
}

.annonce-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.annonce-card:hover .annonce-visual img {
  transform: scale(1.04);
}

.annonce-badge,
.annonce-photo-count {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xs);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.annonce-badge {
  top: 12px;
  left: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.annonce-photo-count {
  right: 12px;
  bottom: 12px;
}

.annonce-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 22px;
}

.annonce-price {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
}

.annonce-title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-2);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.annonce-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.annonce-meta svg {
  flex-shrink: 0;
}

.annonce-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

.tag-chip svg {
  color: var(--muted);
}

.status-note {
  grid-column: 1 / -1;
  padding: 40px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Fiche annonce
   -------------------------------------------------------------------------- */
.detail-wrap {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 52px);
}

.detail-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 3.5vw, 44px);
}

.detail-gallery {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-hero-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--pearl);
  border-radius: var(--radius-lg);
  cursor: pointer;
  user-select: none;
}

.detail-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.gallery-nav-btn,
.gallery-zoom-btn {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, color 0.2s ease;
}

.gallery-nav-btn:hover,
.gallery-zoom-btn:hover {
  background: var(--ink);
  color: #ffffff;
}

.gallery-nav-btn {
  top: 50%;
  transform: translateY(-50%);
}

.gallery-nav-prev { left: 14px; }
.gallery-nav-next { right: 14px; }

.gallery-zoom-btn {
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
}

.gallery-counter {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.thumbs {
  display: flex;
  gap: 8px;
  padding-bottom: 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.thumbs::-webkit-scrollbar {
  height: 4px;
}

.thumbs::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 99px;
}

.thumb-button {
  flex: 0 0 84px;
  height: 60px;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-xs);
  opacity: 0.55;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.thumb-button:hover {
  opacity: 0.85;
}

.thumb-button.active {
  opacity: 1;
  box-shadow: inset 0 0 0 2px var(--ink);
}

.thumb-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-button.active img {
  padding: 2px;
  border-radius: var(--radius-xs);
}

.detail-summary {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.detail-summary .section-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
}

.detail-price {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
}

/* Caractéristiques : tableau à filets plutôt que tuiles */
.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  border-top: 1px solid var(--line-strong);
}

.meta-card {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.meta-label,
.energy-label {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta-value {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.energy-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.energy-badge {
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.energy-label {
  margin-bottom: 10px;
}

.energy-grade {
  display: flex;
  align-items: center;
  gap: 12px;
}

.energy-letter {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--muted-light);
  border-radius: var(--radius-xs);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
}

.energy-copy strong {
  display: block;
  font-size: 14px;
}

.energy-copy span {
  font-size: 13px;
  color: var(--muted);
}

/* Seule couleur du site : le code réglementaire DPE / GES */
.energy-badge[data-grade="A"] .energy-letter { background: #22c55e; }
.energy-badge[data-grade="B"] .energy-letter { background: #65a30d; }
.energy-badge[data-grade="C"] .energy-letter { background: #84cc16; }
.energy-badge[data-grade="D"] .energy-letter { background: #eab308; color: var(--ink); }
.energy-badge[data-grade="E"] .energy-letter { background: #f97316; }
.energy-badge[data-grade="F"] .energy-letter { background: #ea580c; }
.energy-badge[data-grade="G"] .energy-letter { background: #dc2626; }

.detail-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.detail-desc-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 22px;
}

.detail-description {
  max-width: 78ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-2);
  white-space: pre-line;
}

.cta-box {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.cta-box h3 {
  margin: 0;
  font-size: 22px;
}

.cta-box p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.cta-box-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 900px) {
  .cta-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }

  .cta-box-copy {
    flex: 1;
  }

  .cta-box .hero-actions {
    flex-shrink: 0;
  }
}

/* --------------------------------------------------------------------------
   Visionneuse photos (claire)
   -------------------------------------------------------------------------- */
body.lightbox-open {
  overflow: hidden !important;
}

.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(246, 246, 247, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  touch-action: pan-y;
  transition: opacity 0.28s var(--ease), visibility 0.28s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.lightbox-header {
  position: relative;
  z-index: 10;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top)) 24px 14px;
}

.lightbox-close-btn,
.lightbox-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lightbox-close-btn:hover,
.lightbox-footer-btn:hover,
.lightbox-nav-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.lightbox-counter-badge {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.lightbox-header-spacer {
  width: 100px;
}

.lightbox-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: 0 16px;
  overflow: hidden;
}

.lightbox-photo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: calc(100vh - 160px);
  cursor: pointer;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 170px);
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  user-select: none;
  transition: opacity 0.2s ease;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lightbox-prev-desktop { left: 24px; }
.lightbox-next-desktop { right: 24px; }

.lightbox-footer {
  position: relative;
  z-index: 10;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px max(20px, env(safe-area-inset-bottom));
}

.lightbox-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 50vw;
  padding: 4px;
  overflow-x: auto;
}

.lightbox-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  background: var(--line-strong);
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-dot.active {
  background: var(--ink);
  transform: scale(1.3);
}

.lightbox-dot-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

@media (min-width: 721px) {
  .lightbox-footer {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Honoraires
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Carte mise en avant : encre pleine, coupe diagonale du monogramme */
.pricing-card.featured {
  overflow: hidden;
  background: linear-gradient(118deg, #2c2c2f 0 62%, #3a3a3e 62% 100%);
  border-color: transparent;
  color: #ffffff;
}

.pricing-card h3 {
  margin: 0 0 18px;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.pricing-card .price {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 300;
  line-height: 1;
}

.pricing-card p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.pricing-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.pricing-card.featured h3,
.pricing-card.featured p,
.pricing-card.featured .pricing-note {
  color: rgba(255, 255, 255, 0.78);
}

.pricing-card.featured .pricing-note {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.featured-badge {
  position: absolute;
  top: 70px;
  right: 22px;
  padding: 4px 10px;
  background: #ffffff;
  border-radius: var(--radius-xs);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.location-box {
  margin-top: 28px;
  padding: 28px;
}

.location-box h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.row span {
  font-size: 15px;
  color: var(--ink-2);
}

.row strong {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Contact & formulaires
   -------------------------------------------------------------------------- */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 20px;
}

.contact-info-list h3 {
  font-family: var(--font-text);
  font-weight: 700;
}

.contact-quick-call {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.2;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s ease;
}

.contact-quick-call:hover {
  border-color: var(--ink);
}

.hours-table {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.hour-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.hour-day {
  font-weight: 500;
}

.hour-time {
  color: var(--muted);
}

.hour-row.is-today {
  margin: 0 -12px;
  padding: 10px 12px;
  background: var(--ink);
  border-bottom-color: transparent;
  border-radius: var(--radius-xs);
  color: #ffffff;
}

.hour-row.is-today .hour-day {
  font-weight: 600;
}

.hour-row.is-today .hour-time {
  color: rgba(255, 255, 255, 0.82);
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.full {
  grid-column: 1 / -1;
}

.section {
  margin-bottom: 6px;
  padding: 26px;
}

.section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 600;
}

.section h3 svg {
  color: var(--muted);
}

.button-wide {
  width: 100%;
}

.button-large {
  align-self: flex-start;
  min-height: 54px;
  padding: 0 32px;
  font-size: 16px;
}

/* Champ piège anti-robots */
.hp-field {
  position: absolute;
  left: -9999px;
}

#msg {
  min-height: 24px;
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  background: rgba(255, 255, 255, 0.78);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  align-items: start;
  gap: 32px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px calc(40px + var(--safe-bottom));
  font-size: 14px;
  color: var(--muted);
}

.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer-brand img {
  width: 46px;
  height: 46px;
}

.site-footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-footer-brand span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-footer address {
  font-style: normal;
}

.site-footer-contact,
.site-footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-footer a {
  color: var(--ink-2);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Tablette
   ========================================================================== */
@media (max-width: 1024px) {
  .detail-top-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .annonce-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .annonce-toolbar .search-wrap {
    grid-column: 1 / -1;
  }

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

/* ==========================================================================
   Menu mobile (tiroir)
   ========================================================================== */
@media (max-width: 860px) {
  :root {
    --header-height: 60px;
  }

  .nav-inner {
    justify-content: space-between;
    padding: 0 16px;
  }

  .logo img {
    height: 32px;
  }

  .nav-actions {
    position: relative;
    z-index: 995;
  }

  .nav-phone-btn {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .nav-phone-btn .nav-phone-label {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 990;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    width: min(88vw, 360px);
    height: 100vh;
    height: 100dvh;
    padding: calc(var(--header-height) + var(--safe-top) + 20px) 24px 32px;
    overflow-y: auto;
    background: #ffffff;
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease), opacity 0.25s ease;
  }

  body.nav-open .nav-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .menu a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
  }

  .menu a::after {
    display: none;
  }

  .nav-panel-footer {
    display: block;
    margin-top: 28px;
  }

  .nav-panel-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
  }

  .nav-panel-contact strong {
    font-size: 15px;
    color: var(--ink);
  }

  .nav-panel-tel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    margin-top: 10px;
    background: var(--ink);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
  }
}

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 720px) {
  body::before {
    background-position: 32% center;
  }

  .page-shell,
  .page-shell-wide {
    padding: 20px 14px 64px;
  }

  .section-card {
    padding: 22px 16px;
    border-radius: var(--radius-lg);
  }

  .home {
    padding: 0 14px 64px;
  }

  .home > .home-about:first-child {
    margin-top: 20px;
  }

  .home-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-section {
    margin-top: 20px;
  }

  .home-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-about {
    grid-template-columns: 1fr;
  }

  .home-about-photo img {
    width: 220px;
  }

  .annonce-toolbar,
  .annonce-grid,
  .grid-2,
  .form-grid,
  .form-row-2,
  .energy-badges {
    grid-template-columns: 1fr;
  }

  .annonce-grid {
    gap: 18px;
  }

  .detail-hero-image {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
  }

  .gallery-nav-btn {
    width: 38px;
    height: 38px;
  }

  .gallery-nav-prev { left: 10px; }
  .gallery-nav-next { right: 10px; }

  .thumb-button {
    flex: 0 0 70px;
    height: 52px;
  }

  .cta-box,
  .section,
  .location-box {
    padding: 20px 16px;
  }

  .hero-actions,
  .button-large {
    align-self: stretch;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 32px;
  }

  /* Visionneuse : scène dégagée, navigation au pouce en bas */
  .lightbox-prev-desktop,
  .lightbox-next-desktop {
    display: none !important;
  }

  .lightbox-header {
    padding: max(14px, env(safe-area-inset-top)) 16px 10px;
  }

  .lightbox-header-spacer {
    display: none;
  }

  .lightbox-stage {
    padding: 4px 8px;
  }

  .lightbox-photo-wrapper {
    width: 100%;
    max-width: 100vw;
    height: 100%;
    max-height: calc(100dvh - 130px);
  }

  .lightbox-img {
    width: auto;
    height: auto;
    max-height: calc(100dvh - 130px);
    border-radius: var(--radius-xs);
  }

  .lightbox-footer {
    padding: 10px 14px max(16px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 440px) {
  .lightbox-footer-btn span {
    display: none;
  }

  .lightbox-footer-btn {
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
