/* ============================================
   Gestion JFP — feuille de style principale v2
   Identité : Marine + Or, Playfair Display + Inter
   Recentrée sur la gestion immobilière professionnelle
   ============================================ */

:root {
  /* Palette officielle Gestion JFP — charcoal très foncé + or */
  --color-primary: #181B22;       /* charcoal profond, presque noir */
  --color-primary-dark: #0D0F14;  /* noir charbon pour le footer */
  --color-primary-light: #262A33; /* charcoal moyen pour gradients */
  --color-accent: #C49A22;
  --color-accent-dark: #a07d18;
  --color-accent-light: #d9b352;
  --color-accent-ink: #8A690F;      /* or foncé lisible sur fond clair (contraste AA) */
  /* Palette « Ivoire chaud » — fonds crème légèrement dorés (choix d'Antoine, 2026-07) */
  --color-bg: #F7F4EC;
  --color-bg-soft: #FFFDF8;
  --color-bg-alt: #EFE9DC;
  --color-bg-dark: #0D0F14;
  --color-text: #221F18;
  --color-text-muted: #6E685C;
  --color-border: #E4DCC9;
  --color-success: #2d8659;
  --color-danger: #c0392b;
  --color-warning: #d68910;

  /* Typographie */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Espacements */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 6rem;
  --space-14: 8rem;

  /* Rayons */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(24, 27, 34, 0.06);
  --shadow-md: 0 6px 16px rgba(24, 27, 34, 0.08);
  --shadow-lg: 0 16px 40px rgba(24, 27, 34, 0.14);

  /* Conteneur */
  --container-max: 1320px;
  --container-tight: 980px;

  /* Transitions */
  --transition: 220ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================
   Reset & base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Empêche tout défilement horizontal accidentel (éléments décoratifs qui dépassent) */
  overflow-x: clip;
  /* Curseur fléché personnalisé (charcoal + bordure or) */
  cursor: url('../images/logo/jfp-cursor.svg') 3 2, auto;
}
input, textarea, select { cursor: text; }
button, a, [role="button"], .btn,
.listing-card, .feature-card,
.nav-toggle, .tour-plan-hotspot, .tour-scene-btn,
.modal-close, label[for], summary,
.faq-question, .mosaic-item {
  cursor: url('../images/logo/jfp-cursor-hover.svg') 3 2, pointer;
}

img, picture, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-primary);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 700; }
h1, h2 { text-wrap: balance; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 var(--space-4); }

/* ============================================
   Conteneur & utilitaires
   ============================================ */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-5); }
.container-tight { max-width: var(--container-tight); margin: 0 auto; padding: 0 var(--space-5); }
.section { padding: var(--space-12) 0; position: relative; }
.section-lg { padding: var(--space-14) 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-primary); color: white; overflow: hidden; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: white; }
.text-center { text-align: center; }
.muted { color: var(--color-text-muted); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--color-accent-ink);
  margin-bottom: var(--space-3);
  font-family: var(--font-sans);
}
.section-dark .eyebrow,
.page-header .eyebrow { color: var(--color-accent-light); }

/* Lien d'évitement (accessibilité clavier / lecteur d'écran) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-md) 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
  color: #fff;
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

/* Contour de focus visible au clavier (sans gêner la souris) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-accent-dark);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Diviseur doré */
.section-divider {
  width: 60px;
  height: 2px;
  background: var(--color-accent);
  border: none;
  margin: var(--space-4) auto;
}

/* Filigrane clé */
.watermark {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
  color: currentColor;
  z-index: 0;
}
.watermark svg { width: 100%; height: auto; }
.section-dark .watermark { opacity: 0.05; }

/* ============================================
   Navigation (transparente sur héro, marine au scroll)
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
.site-header.scrolled {
  background: rgba(24, 27, 34, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
/* Sur les pages internes (sans hero photo), on garde la nav marine dès le départ */
.site-header.solid {
  background: var(--color-primary);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  max-width: var(--container-max);
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: var(--space-2);
}
.brand img { display: block; transition: opacity var(--transition); }
.brand-logo-full { height: 64px; width: auto; }
.brand-logo-full-sm { height: 44px; width: auto; }

/* Le logo "color" est visible sur fond clair, le "blanc" sur fond foncé */
.brand .logo-color { display: none; }
.brand .logo-white { display: block; }
.site-header.solid .brand .logo-color,
.site-header.scrolled .brand .logo-color {
  display: none;
}
.site-header.solid .brand .logo-white,
.site-header.scrolled .brand .logo-white {
  display: block;
}

.nav-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--space-2) 0;
  position: relative;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}
.nav-links a:hover,
.nav-links a.active { color: var(--color-accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--color-primary);
    padding: var(--space-4);
    gap: var(--space-3);
  }
  .nav-links.open {
    display: flex;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.3);
  }
}

/* ============================================
   Hero plein écran 100vh
   ============================================ */
.hero {
  position: relative;
  background: var(--color-primary-dark); /* évite une bande claire derrière le parallaxe */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  padding: var(--space-12) var(--space-5);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, #181B22 0%, #07090C 100%);
  will-change: transform;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(196, 154, 34, 0.20), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(38, 42, 51, 0.55), transparent 60%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 100px 100px;
}
/* Overlay sombre par-dessus la photo (à venir) */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom,
    rgba(24, 27, 34, 0.55) 0%,
    rgba(24, 27, 34, 0.40) 40%,
    rgba(13, 19, 38, 0.75) 100%);
}
/* Filigrane logo (clé + immeubles) dans le héro */
.hero-watermark {
  position: absolute;
  z-index: 1;
  width: 1000px;
  max-width: 95vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.045;
  color: white;
  pointer-events: none;
}
.hero-watermark svg { width: 100%; height: auto; display: block; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
}
.hero-logo {
  width: clamp(160px, 22vw, 260px);
  margin: 0 auto var(--space-6);
}
.hero-logo img { width: 100%; height: auto; }

.hero h1 {
  color: white;
  margin-bottom: var(--space-5);
  font-size: clamp(2.4rem, 6.5vw, 4.5rem);
  line-height: 1.08;
  font-weight: 700;
}
.hero h1 em {
  font-style: italic;
  color: var(--color-accent-light);
  font-weight: 500;
}
.hero p {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  opacity: 0.92;
  margin: 0 auto var(--space-6);
  max-width: 720px;
}
.hero .cta-group {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* Indicateur de scroll */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.scroll-indicator-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--color-accent));
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.6); transform-origin: top; opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ============================================
   Section "Déclaration forte"
   ============================================ */
.statement {
  padding: var(--space-14) var(--space-5);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.statement-content {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.statement-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 4.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}
.statement-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--color-accent);
  text-transform: none;
}
.statement-text {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 0 auto var(--space-6);
  line-height: 1.7;
}

/* ============================================
   Mosaïque de photos (style magazine)
   ============================================ */
.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: 280px;
  gap: var(--space-3);
}
.mosaic-item {
  background: linear-gradient(135deg, #d5d2cc, #b6b2a8);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-slow);
}
.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  cursor: zoom-in;
}
.mosaic-item:hover img { transform: scale(1.05); }
.mosaic-item-1 { grid-column: 1; grid-row: 1 / span 2; }
.mosaic-item-2 { grid-column: 2; grid-row: 1; }
.mosaic-item-3 { grid-column: 3; grid-row: 1; }
.mosaic-item-4 { grid-column: 2 / span 2; grid-row: 2; }

.mosaic-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  background: linear-gradient(135deg, #e7e4dc, #c9c5ba);
  font-style: italic;
  font-family: var(--font-serif);
}

@media (max-width: 820px) {
  .mosaic {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }
  .mosaic-item-1 { grid-column: 1 / span 2; grid-row: 1; }
  .mosaic-item-2 { grid-column: 1; grid-row: 2; }
  .mosaic-item-3 { grid-column: 2; grid-row: 2; }
  .mosaic-item-4 { grid-column: 1 / span 2; grid-row: 3; }
}

/* ============================================
   Boutons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  text-align: center;
  font-family: var(--font-sans);
  min-height: 50px;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.6);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.10);
  border-color: white;
  color: white;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-danger { background: var(--color-danger); color: white; border-color: var(--color-danger); }
.btn-sm { padding: var(--space-2) var(--space-4); font-size: 0.72rem; min-height: 40px; }
.btn-block { width: 100%; }

/* ============================================
   Cartes appartement
   ============================================ */
.listings-grid {
  display: grid;
  /* min(360px, 100%) : évite le débordement sur les petits téléphones */
  grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr));
  gap: var(--space-6);
}
.listing-card {
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.listing-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(196, 154, 34, 0.35);
  color: inherit;
}
.listing-card:hover::after { transform: scaleX(1); }

.listing-card-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #d8d4cc, #b6b2a8);
  position: relative;
  overflow: hidden;
}
.listing-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--transition-slow);
}
.listing-card:hover .listing-card-image img { transform: scale(1.05); }
.listing-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  opacity: 0.45;
}
.listing-card-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}
.listing-card-badge.tour { background: rgba(24, 27, 34, 0.85); color: white; }
.listing-card-badge.unavailable { color: white; }
.listing-card-badge.unavailable { background: var(--color-text-muted); }
.listing-card-body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.listing-card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 var(--space-2);
  line-height: 1.25;
}
.listing-card-subtitle {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-4);
}
.listing-card-specs {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  font-size: 0.88rem;
  color: var(--color-text);
  flex-wrap: wrap;
}
.listing-card-spec { display: flex; align-items: center; gap: var(--space-1); }
.listing-card-spec strong { color: var(--color-primary); font-weight: 600; }
.listing-card-price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.listing-card-price-value {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
}
.listing-card-price-period {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ============================================
   Filtres
   ============================================ */
.filters {
  background: var(--color-bg-alt);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: end;
}
.filter-group { display: flex; flex-direction: column; gap: var(--space-1); }
.filter-group label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.10em;
}
.filter-group select,
.filter-group input {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: white;
  font-size: 0.95rem;
  min-width: 140px;
  font-family: inherit;
}

/* ============================================
   Section "Pourquoi JFP"
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.feature-card {
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.section-dark .feature-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
}
.section-dark .feature-card h3 { color: white; }
.section-dark .feature-card p { color: rgba(255,255,255,0.78); }

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(196, 154, 34, 0.35);
}
.section-dark .feature-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(196, 154, 34, 0.40);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: white;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: var(--space-2);
  font-weight: 700;
}
.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ============================================
   Stats bar
   ============================================ */
.stats-bar {
  background: var(--color-primary);
  color: white;
  padding: var(--space-12) 0;
  position: relative;
  overflow: hidden;
  /* Fine ligne dorée pour séparer les deux sections sombres consécutives */
  border-top: 1px solid rgba(196, 154, 34, 0.28);
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(196, 154, 34, 0.20), transparent 60%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-5);
  position: relative;
  text-align: center;
}
.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 3.8rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-label {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.faq-item {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-5) var(--space-6);
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: all var(--transition);
}
.faq-item.open .faq-icon {
  background: var(--color-accent);
  color: white;
  transform: rotate(45deg);
}
.faq-icon svg { width: 16px; height: 16px; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-answer-content {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 400px;
}

/* ============================================
   Page détail appartement
   ============================================ */
.listing-detail { padding: calc(var(--space-12) + 70px) 0 var(--space-12); }
.listing-header { margin-bottom: var(--space-6); }
.listing-header h1 { margin-bottom: var(--space-2); }
.listing-header .listing-address {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: var(--space-4);
}
.listing-summary {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  padding: var(--space-5);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}
.listing-summary-item { display: flex; flex-direction: column; }
.listing-summary-item-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.listing-summary-item-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
}
.listing-summary-item-value.price {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-accent);
}

.listing-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-8);
}
@media (max-width: 980px) {
  .listing-layout { grid-template-columns: 1fr; }
}

.listing-section { margin-bottom: var(--space-8); }
.listing-section h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

/* Visite 360° avec plan latéral */
.tour-with-plan {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-4);
}
@media (max-width: 900px) {
  .tour-with-plan { grid-template-columns: 1fr; }
}
.tour-plan-panel {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  position: relative;
}
.tour-plan-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.tour-plan-image-wrapper {
  position: relative;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.tour-plan-image-wrapper img { width: 100%; height: auto; display: block; }
.tour-plan-hotspots { position: absolute; inset: 0; pointer-events: none; }
.tour-plan-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  transition: transform var(--transition);
  font-family: var(--font-sans);
}
.tour-plan-hotspot:hover { transform: translate(-50%, -50%) scale(1.15); }
.tour-plan-hotspot.active {
  background: var(--color-primary);
  box-shadow: 0 0 0 6px rgba(24, 27, 34, 0.15), 0 2px 8px rgba(0,0,0,0.25);
  width: 32px; height: 32px;
}
.tour-plan-hotspot-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.tour-plan-hotspot:hover .tour-plan-hotspot-tooltip { opacity: 1; }

.tour-container {
  width: 100%;
  height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-dark);
  position: relative;
}
.tour-scenes {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}
.tour-scene-btn {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  background: white;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  transition: all var(--transition);
  font-family: var(--font-sans);
  font-weight: 500;
}
.tour-scene-btn:hover { border-color: var(--color-accent); }
.tour-scene-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.tour-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255,255,255,0.72);
  text-align: center;
  padding: var(--space-6);
}
.tour-placeholder svg { margin-bottom: var(--space-4); opacity: 0.55; }

/* Galerie photos */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: var(--space-2);
}
.gallery-grid > *:first-child {
  grid-row: 1 / 3;
  grid-column: 1;
}
.gallery-item {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  background: linear-gradient(135deg, #ede9e0, #d3cec0);
  font-style: italic;
  font-family: var(--font-serif);
}
@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 160px; }
  .gallery-grid > *:first-child { grid-row: 1; grid-column: 1 / 3; }
}

/* Liste de caractéristiques */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-2);
}
.feature-list li {
  padding: var(--space-2) 0;
  padding-left: var(--space-5);
  position: relative;
}
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* ============================================
   Animation "Porte qui s'ouvre" (0.85s total)
   ============================================ */
.door-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  visibility: hidden;
}
.door-overlay.active { visibility: visible; pointer-events: auto; }
.door-panel {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  background: var(--color-primary);
  transition: transform 0.28s cubic-bezier(0.86, 0, 0.07, 1);
}
.door-panel.left  { left: 0;  transform: translateX(-101%); }
.door-panel.right { right: 0; transform: translateX(101%); }
.door-overlay.active .door-panel.left,
.door-overlay.active .door-panel.right { transform: translateX(0); }
.door-overlay.opening .door-panel.left  { transform: translateX(-101%); }
.door-overlay.opening .door-panel.right { transform: translateX(101%); }

.door-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 140px;
  height: 140px;
  z-index: 1;
  opacity: 0;
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.16s ease;
}
.door-overlay.active .door-lock {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
.door-overlay.opening .door-lock {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
}
.door-lock-ring {
  position: absolute;
  inset: 0;
  border: 3px solid var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 32px rgba(196, 154, 34, 0.5);
  animation: lockPulse 0.5s ease-out;
}
@keyframes lockPulse {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.door-lock svg {
  position: absolute;
  inset: 18%;
  width: 64%;
  height: 64%;
  animation: keyTurn 0.18s cubic-bezier(0.34, 1.56, 0.64, 1) 0.04s both;
}
@keyframes keyTurn {
  0% { transform: rotate(0); }
  100% { transform: rotate(90deg); }
}

/* Animations on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-clip {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s cubic-bezier(0.7, 0, 0.3, 1);
}
.reveal-clip.visible { clip-path: inset(0 0% 0 0); }

.stagger > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.stagger.visible > * { opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger.visible > *:nth-child(2) { transition-delay: 120ms; }
.stagger.visible > *:nth-child(3) { transition-delay: 240ms; }
.stagger.visible > *:nth-child(4) { transition-delay: 360ms; }
.stagger.visible > *:nth-child(5) { transition-delay: 480ms; }
.stagger.visible > *:nth-child(6) { transition-delay: 600ms; }

/* ============================================
   Formulaire
   ============================================ */
.application-form {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: sticky;
  top: 120px;
}
.application-form h2 { font-size: 1.4rem; margin-bottom: var(--space-2); }
.application-form .form-intro { color: var(--color-text-muted); font-size: 0.92rem; margin-bottom: var(--space-5); }
.form-field { margin-bottom: var(--space-4); }
.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--color-text);
  letter-spacing: 0.02em;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(196, 154, 34, 0.15);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.form-success, .form-error {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  font-size: 0.9rem;
}
.form-success { background: #e8f5ee; color: var(--color-success); border: 1px solid #b8e0c8; }
.form-error { background: #fbeaea; color: var(--color-danger); border: 1px solid #efc3c0; }

/* ============================================
   Page header interne (autres pages que home)
   ============================================ */
.page-header {
  background: var(--color-primary);
  color: white;
  padding: calc(var(--space-12) + 70px) 0 var(--space-10);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(196, 154, 34, 0.18), transparent 50%);
}
.page-header .container { position: relative; }
.page-header h1 { color: white; margin-bottom: var(--space-2); }
.page-header p { opacity: 0.92; max-width: 700px; }

/* ============================================
   Pied de page
   ============================================ */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.85);
  padding: var(--space-12) 0 var(--space-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-6);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
}
.site-footer h4 {
  color: white;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--space-3);
  font-weight: 600;
}
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--color-accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--space-2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: var(--space-4);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* ============================================
   Page admin
   ============================================ */
.admin-page { padding: calc(var(--space-6) + 70px) 0 var(--space-6); }
.admin-toolbar {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
}
.admin-table {
  width: 100%;
  background: white;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.admin-table th,
.admin-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}
.admin-table th {
  background: var(--color-bg-alt);
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.10em;
}
.admin-table tr:hover { background: var(--color-bg-alt); }
.admin-table .actions { display: flex; gap: var(--space-2); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-available { background: #e8f5ee; color: var(--color-success); }
.badge-unavailable { background: #ECE7DA; color: var(--color-text-muted); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 27, 34, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-4);
}
.modal-backdrop.open { display: flex; }
.modal {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  padding: var(--space-5);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h2 { margin: 0; font-size: 1.3rem; }
.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-muted);
}
.modal-body { padding: var(--space-5); }
.modal-footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}

/* Messages d'upload affichés DANS le modal (sinon cachés derrière) */
.modal-feedback {
  padding: 0 var(--space-5);
}
.modal-feedback:empty { display: none; }
.modal-feedback .form-success,
.modal-feedback .form-error { margin: var(--space-3) 0 0; }

/* États vides */
.empty-state {
  text-align: center;
  padding: var(--space-10) var(--space-5);
  color: var(--color-text-muted);
}
.empty-state h3 { color: var(--color-text); margin-bottom: var(--space-2); }

/* Réduction mouvement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-clip { opacity: 1; transform: none; transition: none; clip-path: none; }
  .stagger > * { opacity: 1; transform: none; transition: none; }
  .door-panel, .door-lock, .door-lock svg { transition: none !important; animation: none !important; }
  .scroll-indicator-line { animation: none; }
}

/* About section responsive */
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr !important; gap: var(--space-6) !important; }
  .contact-grid { grid-template-columns: 1fr !important; gap: var(--space-6) !important; }
}

/* ============================================
   Gate de connexion (admin)
   ============================================ */
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background:
    radial-gradient(circle at 20% 30%, rgba(196, 154, 34, 0.10), transparent 50%),
    linear-gradient(135deg, #181B22 0%, #07090C 100%);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.auth-gate.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.auth-form {
  background: var(--color-bg-soft);
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  text-align: center;
}
.auth-logo {
  height: 56px;
  width: auto;
  margin: 0 auto var(--space-5);
  display: block;
}
.auth-form h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
  color: var(--color-primary);
}
.auth-form > p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-5);
}
.auth-field {
  margin-bottom: var(--space-4);
  text-align: left;
}
.auth-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.auth-field input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  background: white;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.auth-field input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(196, 154, 34, 0.18);
}
.auth-error {
  background: #fbeaea;
  color: var(--color-danger);
  border: 1px solid #efc3c0;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  margin: var(--space-4) 0 0;
}
.auth-hint {
  margin-top: var(--space-5) !important;
  font-size: 0.75rem !important;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
}
.auth-hint code {
  background: var(--color-bg-alt);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.85em;
}

/* Masquer le contenu admin tant qu'on n'est pas authentifié */
body[data-page="admin"]:not(.authed) .site-header,
body[data-page="admin"]:not(.authed) main {
  visibility: hidden;
}

/* ============================================
   Admin — UI Upload (photos, plan, scènes 360°)
   ============================================ */
.upload-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.upload-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.upload-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--color-bg-soft);
  flex-shrink: 0;
}
.upload-thumb-lg {
  width: 80px;
  height: 80px;
}
.upload-info {
  flex: 1;
  min-width: 0;
}
.upload-info code {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-shrink: 0;
}
.upload-empty {
  padding: var(--space-3);
  text-align: center;
  font-size: 0.88rem;
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
}

/* Sections repliables (details/summary) dans le modal admin */
.admin-collapsible {
  margin: var(--space-3) 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  overflow: hidden;
}
.admin-collapsible summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-3) var(--space-4);
  user-select: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
  transition: background var(--transition);
}
.admin-collapsible summary::-webkit-details-marker { display: none; }
.admin-collapsible summary::before {
  content: '▶';
  display: inline-block;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.admin-collapsible[open] summary::before {
  transform: rotate(90deg);
}
.admin-collapsible summary:hover {
  background: var(--color-bg-soft);
}
.admin-collapsible[open] summary {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-soft);
}
.admin-collapsible-content {
  padding: var(--space-4);
  background: var(--color-bg-soft);
}
.admin-collapsible .muted.small {
  font-size: 0.78rem;
  font-weight: 400;
  margin-left: auto;
}
.admin-collapsible-360 {
  border-color: var(--color-accent);
  border-width: 2px;
}
.admin-collapsible-360 summary {
  color: var(--color-accent-dark);
}
.admin-collapsible-360 summary:hover {
  background: rgba(196, 154, 34, 0.06);
}
.upload-single {
  margin-bottom: var(--space-1);
}
.upload-btn {
  margin: 0;
  cursor: pointer;
}

/* Scènes 360° */
.tour-scenes-editor {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}
.scene-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  border-left: 3px solid var(--color-accent);
}
.scene-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
.scene-card-header strong {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--color-primary);
}
.scene-card-footer {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.scene-card .form-field { margin-bottom: var(--space-3); }
.scene-card .form-row { margin-bottom: var(--space-2); }
.scene-photo-display {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
}
.scene-connections {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
}
.connection-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.connection-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 500;
  flex: 1;
  min-width: 200px;
  cursor: pointer;
}
.connection-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}
.connection-coords {
  display: flex;
  gap: var(--space-3);
  font-size: 0.85rem;
}
.connection-coords label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.connection-coords input {
  width: 70px;
  padding: var(--space-1) var(--space-2);
  font-size: 0.88rem;
}

/* Sections du formulaire d'admin */
.admin-section-title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: var(--space-2);
  margin: var(--space-6) 0 var(--space-4);
}
.admin-section-title:first-child { margin-top: 0; }

/* Grille de checkboxes pour les options récurrentes */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-2);
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg-alt);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.checkbox-item:hover {
  border-color: var(--color-accent);
  background: white;
}
.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--color-accent);
  flex-shrink: 0;
}
.checkbox-item:has(input:checked) {
  background: rgba(196, 154, 34, 0.10);
  border-color: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
}

/* Lien admin discret (petite serrure en bas de la page À propos) */
.hidden-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--color-text-muted);
  opacity: 0.35;
  transition: opacity var(--transition), color var(--transition), transform var(--transition);
}
.hidden-admin-link:hover {
  opacity: 1;
  color: var(--color-accent);
  transform: scale(1.15);
}
/* Version sur fond sombre (footer) — plus discrète encore */
.hidden-admin-link-dark {
  color: rgba(255, 255, 255, 0.5);
  opacity: 0.25;
}
.hidden-admin-link-dark:hover {
  color: var(--color-accent);
  opacity: 1;
}

/* ============================================================
   Visite 360 — hotspots agrandis + logo JFP en filigrane
   ============================================================ */

/* Conteneur : on s'assure que le contenu reste contenu et qu'on peut
   poser un filigrane par-dessus (incluant en mode plein ecran, car
   Pannellum place le plein ecran sur ce meme element). */
.tour-container {
  isolation: isolate;
}

/* Hotspot de navigation entre scenes — anneau blanc pose au sol (style 3) */
.tour-container .pnlm-hotspot.pnlm-scene {
  width: 90px !important;
  height: 90px !important;
  margin-left: -45px !important;
  margin-top: -45px !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-radius: 50%;
  transition: transform 0.2s ease;
  cursor: pointer;
}

/* Anneau blanc a plat sur le plancher */
.tour-container .pnlm-hotspot.pnlm-scene::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 60%;
  width: 84px;
  height: 84px;
  margin-left: -42px;
  margin-top: -42px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.95);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.06) 72%);
  box-shadow:
    0 0 0 1.5px rgba(0, 0, 0, 0.45),
    0 6px 16px rgba(0, 0, 0, 0.45),
    inset 0 0 18px rgba(255, 255, 255, 0.25);
  transform: rotateX(62deg);
  pointer-events: none;
}

/* Chevron blanc qui pointe vers le haut, au-dessus de l'anneau */
.tour-container .pnlm-hotspot.pnlm-scene::after {
  content: "";
  position: absolute;
  top: 30%;
  left: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%) rotate(45deg);
  border-top: 5px solid rgba(255, 255, 255, 0.97);
  border-left: 5px solid rgba(255, 255, 255, 0.97);
  border-radius: 2px;
  filter:
    drop-shadow(1.5px -1.5px 0 rgba(0, 0, 0, 0.55))
    drop-shadow(-1.5px 1.5px 0 rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.tour-container .pnlm-hotspot.pnlm-scene:hover::before {
  border-color: #ffffff;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.12) 72%);
}

/* ============================================================
   Patch « nadir » — disque logo qui masque les pieds du trepied
   ============================================================ */
.tour-container .jfp-nadir {
  width: 240px !important;
  height: 240px !important;
  margin-left: -120px !important;
  margin-top: -120px !important;
  background: none !important;
  cursor: default;
  pointer-events: none;
}
/* Cap neutre : disque sombre qui se fond dans le plancher et masque le trepied,
   SANS logo ni anneau dore (plus propre pour partager). Le logo reviendra plus
   tard — voir la regle ::after commentee ci-dessous pour le reactiver. */
.tour-container .jfp-nadir .jfp-nadir-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      var(--color-primary-dark) 0%,
      var(--color-primary-dark) 42%,
      rgba(24, 27, 34, 0.82) 68%,
      rgba(24, 27, 34, 0) 100%);
}
/* Logo au sol — desactive pour l'instant (a reactiver plus tard) :
.tour-container .jfp-nadir .jfp-nadir-disc::after {
  content: "";
  position: absolute;
  inset: 22%;
  background: url('../images/logo/jfp-white.svg') no-repeat center / contain;
  opacity: 0.92;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}
*/

/* Etiquette de hotspot (apparait au survol) plus lisible */
.tour-container .pnlm-tooltip span {
  background: rgba(24, 27, 34, 0.92);
  border: 1px solid rgba(196, 154, 34, 0.45);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Logo Gestion JFP en filigrane (coin bas-droit du panorama) */
.tour-container::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 110px;
  height: 34px;
  background: url('../images/logo/jfp-white.svg') no-repeat center / contain;
  opacity: 0.72;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
}

/* En mode plein ecran, on agrandit un peu le filigrane */
.tour-container:fullscreen::after,
.tour-container:-webkit-full-screen::after {
  width: 150px;
  height: 46px;
  right: 28px;
  bottom: 28px;
}

/* ============================================================
   Ecran de chargement 360 de marque (entre les pieces)
   ============================================================ */
.tour-container .pnlm-load-box {
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 50% 45%, var(--color-primary-light) 0%, var(--color-primary) 55%, var(--color-primary-dark) 100%) !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  cursor: progress;
  z-index: 10;
}

/* N'afficher l'ecran (flex) que lorsque Pannellum montre la boite ;
   sinon respecter le « display:none » inline qu'il pose pour la cacher. */
.tour-container .pnlm-load-box:not([style*="display: none"]) {
  display: flex !important;
}

/* Masquer le spinner sprite par defaut de Pannellum (on a le notre) */
.tour-container .pnlm-load-box .pnlm-lbox { display: none !important; }

/* Logo Gestion JFP au-dessus du spinner */
.tour-container .pnlm-load-box::before {
  content: "";
  width: 150px;
  height: 46px;
  background: url('../images/logo/jfp-white.svg') no-repeat center / contain;
  opacity: 0.95;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

/* Texte sous le spinner */
.tour-container .pnlm-load-box::after {
  content: "Chargement de la visite\2026";
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

/* Premier <p> (« Loading… ») transforme en anneau dore qui tourne */
.tour-container .pnlm-load-box p:first-of-type {
  font-size: 0 !important;
  width: 46px;
  height: 46px;
  margin: 0 !important;
  padding: 0 !important;
  border: 3px solid rgba(196, 154, 34, 0.25);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: jfpSpin 0.85s linear infinite;
}

/* Barre de progression native masquee (le spinner suffit) */
.tour-container .pnlm-load-box .pnlm-lbar { display: none !important; }

/* Message d'erreur eventuel, lisible */
.tour-container .pnlm-load-box .pnlm-lmsg {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 80%;
}

@keyframes jfpSpin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   Mode calibration des fleches 360 (URL : ?calibrate=1)
   ============================================================ */
.tour-calibrate-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 50;
  background: rgba(13, 15, 20, 0.92);
  color: #ffffff;
  border: 1px solid rgba(196, 154, 34, 0.55);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  min-width: 240px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.5);
}
.tour-calibrate-overlay .cal-title {
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 10px;
}
.tour-calibrate-overlay .cal-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
  font-variant-numeric: tabular-nums;
}
.tour-calibrate-overlay .cal-row span { color: rgba(255,255,255,0.55); }
.tour-calibrate-overlay .cal-row strong { color: #ffffff; font-weight: 600; }
.tour-calibrate-overlay .cal-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.18s ease;
}
.tour-calibrate-overlay .cal-btn:hover { background: var(--color-accent-light); }
.tour-calibrate-overlay .cal-hint {
  margin: 10px 0 0;
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  line-height: 1.45;
}
.tour-calibrate-overlay kbd {
  background: rgba(255,255,255,0.12);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10.5px;
  font-family: var(--font-sans);
}
.tour-calibrate-overlay .cal-toast {
  margin-top: 8px;
  font-size: 11.5px;
  color: #6ee7b7;
  opacity: 0;
  transition: opacity 0.25s ease;
  min-height: 14px;
}
.tour-calibrate-overlay .cal-toast.show { opacity: 1; }

/* ============================================================
   Section « Nouveaux logements à venir »
   ============================================================ */
.a-venir-buildings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}
.a-venir-card {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border, #e7e7e7);
  border-left: 4px solid var(--color-accent);
  border-radius: 12px;
  padding: var(--space-5);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.a-venir-badge {
  display: inline-block;
  background: rgba(196, 154, 34, 0.14);
  color: #9c7715;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: var(--space-3);
}
.a-venir-card h3 {
  margin: 0 0 4px;
  font-size: 1.4rem;
  color: var(--color-primary);
}
.a-venir-card p { margin: 0; color: var(--color-text-muted, #666); }

/* Galerie « À venir » façon mosaïque de l'accueil :
   grande photo à gauche (2 rangées), vignettes à droite,
   plan 3D en bandeau large en bas. Clic pour agrandir. */
.a-venir-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: 176px;
  grid-auto-flow: dense;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.a-venir-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  cursor: zoom-in;
  transition: box-shadow var(--transition);
}
.a-venir-gallery img:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16); }
/* Case vedette à gauche (photo de l'aire ouverte) : grande, sur 2 rangées */
.a-venir-gallery img:first-child {
  grid-column: 1;
  grid-row: 1 / span 2;
}
/* Dernière photo : bandeau large en bas à droite */
.a-venir-gallery img:last-child {
  grid-column: 2 / span 2;
}
@media (max-width: 980px) {
  .a-venir-gallery { grid-auto-rows: 132px; }
}
@media (max-width: 640px) {
  .a-venir-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 102px; }
  .a-venir-gallery img:first-child { grid-column: 1 / -1; grid-row: span 3; }
  .a-venir-gallery img:last-child { grid-column: auto; }
}
/* ============================================================
   Lightbox (agrandissement des photos au clic)
   ============================================================ */
.jfp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(13, 15, 20, 0.93);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}
.jfp-lightbox.open { display: flex; }
.jfp-lightbox figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  text-align: center;
}
.jfp-lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  margin: 0 auto;
  background: white;
}
.jfp-lightbox figcaption {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 12px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
}
.jfp-lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: white;
  font-size: 2.2rem;
  line-height: 1;
  opacity: 0.8;
  cursor: pointer;
}
.jfp-lightbox-close:hover { opacity: 1; color: var(--color-accent-light); }
