/* ==========================================================================
   SILL SA — style.css
   Core stylesheet — Mobile-first approach
   Typography scale: Golden Ratio (1.618)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Colours — Swiss Design SILL SA */
  --color-bg:        #F5F0EB;
  --color-bg-warm:   #F5F0EB;
  --color-heading:   #000000;
  --color-body:      #333333;
  --color-accent:    #FF0000;
  --color-accent-hover: #CC0000;
  --color-border:    #E0E0E0;
  --color-muted:     #999999;
  --color-white:     #FFFFFF;
  --color-dark:      #000000;
  --color-nav-bg:    #F5F0EB;
  --color-nav-text:  #000000;

  /* Typography — Helvetica Neue system stack
     Échelle Golden Ratio (φ = 1.618) depuis base 16px :
     16 → 20 → 26 → 33 → 42 → 68
     Sous-palier ×1.25 pour les intermédiaires.
     ──────────────────────────────────────────── */
  --font-stack:   'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body:    var(--font-stack);
  --font-heading: var(--font-stack);
  --font-nav:     var(--font-stack);

  --fs-base:    16px;        /* Base                          */
  --lh-base:    1.6;

  --fs-chapeau: 20px;        /* 16 × 1.25 — introductions    */
  --lh-chapeau: 1.5;

  --fs-h4:      20px;        /* 16 × 1.25 — sous-titres      */
  --lh-h4:      1.4;

  --fs-h3:      26px;        /* 16 × φ — titres section       */
  --lh-h3:      1.3;

  --fs-h2:      clamp(26px, 3.5vw, 42px);  /* 26 × φ — titres page */
  --lh-h2:      1.15;

  --fs-h1:      clamp(42px, 5.5vw, 68px);  /* 42 × φ — hero only   */
  --lh-h1:      1.05;

  /* Spacing & Layout — 12-column grid */
  --grid-max:      1400px;
  --grid-columns:  12;
  --grid-gutter:   20px;
  --grid-margin:   80px;
  --gutter:        20px;
  --margin-mobile: 20px;
  --margin-tablet: 40px;
  --margin-desktop: 80px;
  --narrow-max:    720px;

  /* Spacing scale (multiples of 8) */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  32px;
  --space-lg:  64px;
  --space-xl:  128px;

  /* Misc */
  --radius:       0;
  --radius-sm:    0;
  --shadow:       0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg:    0 4px 20px rgba(0, 0, 0, 0.10);
  --transition:   0.3s ease;
  --header-h:     100px;
}

/* --------------------------------------------------------------------------
   2. Reset / Normalize
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-body);
  background: var(--color-bg);
  font-weight: 400;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

ul, ol {
  list-style: none;
}

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

/* --------------------------------------------------------------------------
   3. Base Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: 200;
  letter-spacing: 0.06em;
}

h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 300;
}

h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 400;
  letter-spacing: 0.05em;
}

h4 {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: 400;
  letter-spacing: 0.05em;
}

p {
  margin-bottom: 1em;
}

.chapeau {
  font-family: var(--font-body);
  font-size: var(--fs-chapeau);
  line-height: var(--lh-chapeau);
  font-weight: 300;
  color: var(--color-body);
}

blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--gutter);
  margin: 1.5em 0;
  font-style: italic;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--grid-max);
  margin-inline: auto;
  padding-inline: var(--margin-mobile);
}

.content-narrow {
  max-width: var(--narrow-max);
  margin-inline: auto;
  padding-inline: var(--margin-mobile);
}

/* --------------------------------------------------------------------------
   5. Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--color-nav-bg);
  border-bottom: 2px solid #000000;
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 15px;
  padding-bottom: 15px;
}

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

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-nav-text);
  border-radius: 0;
  transition: var(--transition);
}

/* Mobile nav */
.nav-list {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--color-nav-bg);
  padding: 16px 0;
  flex-direction: column;
}

.nav-list.is-open {
  display: flex;
}

.nav-list li {
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.nav-list li:last-child {
  border-bottom: none;
}

.nav-list a {
  display: block;
  padding: 12px var(--margin-mobile);
  color: var(--color-nav-text);
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-list a:hover {
  color: var(--color-accent);
}

.nav-list a.is-active {
  color: var(--color-nav-text);
  border-bottom: 2px solid var(--color-accent);
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.dropdown {
  display: none;
  padding-left: 16px;
}

.has-dropdown.is-open .dropdown {
  display: block;
}

.dropdown a {
  font-weight: 400;
  font-size: 13px;
}

/* Language switcher */
.lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.lang-switch a {
  color: var(--color-muted);
  font-weight: 500;
}

.lang-switch a.is-active {
  color: var(--color-heading);
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 70vh;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: var(--header-h);
  background-color: #2A2A2A;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay,
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.10) 60%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 32px var(--margin-mobile) 40px;
  color: var(--color-white);
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: 12px;
}

.hero-content .chapeau {
  color: rgba(255, 255, 255, 0.9);
}

/* --------------------------------------------------------------------------
   7. KPI Section
   -------------------------------------------------------------------------- */
.kpi-section,
.section-kpi {
  background: var(--color-bg);
  padding: var(--space-lg) 0;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg) var(--space-md);
  text-align: center;
}

.kpi-card,
.kpi-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.kpi-label {
  font-size: 11px;
  font-family: var(--font-heading);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  order: 2;
  margin-top: 12px;
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: clamp(33px, 4.5vw, 42px);  /* = fs-h2 max — même palier φ */
  font-weight: 200;
  line-height: 1;
  color: var(--color-heading);
  letter-spacing: -0.02em;
  order: 1;
}

.kpi-unit {
  font-size: 11px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  order: 3;
  min-height: 20px;
}

/* Breadcrumb */
.breadcrumb {
  font-family: var(--font-heading);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
}
.breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
  transition: var(--transition);
}
.breadcrumb a:hover {
  color: var(--color-accent);
}

/* Date de mise à jour */
.page-update {
  font-size: 12px;
  color: var(--color-muted);
  letter-spacing: 0.02em;
  margin-top: 8px;
}

/* Abbr — soulignement pointillé discret */
abbr[title] {
  text-decoration: underline dotted var(--color-muted);
  text-underline-offset: 2px;
  cursor: help;
}

/* --------------------------------------------------------------------------
   7b. Contexte de marché — Section KPI conjoncture
   Composition : 3 colonnes séparées par des filets fins.
   Typographie légère (font-weight 300), chiffres contenus.
   L'espace blanc fait le travail.
   -------------------------------------------------------------------------- */
.section-marche {
  padding: var(--space-md) 0;
  background: var(--color-bg);
}

/* En-tête : filet rouge + titre + sous-titre */
.marche-header {
  margin-bottom: var(--space-lg);
  max-width: 480px;
}

.marche-rule {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.marche-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-heading);
  margin-bottom: var(--space-xs);
}

.marche-subtitle {
  font-size: 13px;
  color: var(--color-muted);
  letter-spacing: 0.02em;
  margin: 0;
}

/* Grille 3 colonnes — mobile : empilé */
.marche-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

/* Colonne */
.marche-col {
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

.marche-col-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  margin-bottom: var(--space-md);
}

/* Datum : un chiffre + son contexte */
.marche-datum {
  margin-bottom: var(--space-md);
}

.marche-datum:last-child {
  margin-bottom: 0;
}

.marche-value {
  display: inline;
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 33px);  /* palier φ : 26→33 */
  font-weight: 300;
  line-height: 1.1;
  color: var(--color-heading);
  letter-spacing: -0.01em;
}

.marche-unit {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-muted);
  letter-spacing: 0.02em;
  margin-left: 4px;
}

.marche-label {
  display: block;
  font-size: 13px;
  color: var(--color-body);
  margin-top: 4px;
  line-height: 1.4;
}

.marche-context {
  display: block;
  font-size: 11px;
  color: var(--color-muted);
  margin-top: 2px;
  font-style: italic;
}

/* Sources */
.marche-sources {
  margin-top: var(--space-md);
  font-size: 11px;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

/* Page marché — variante pleine page : espace réduit car le page-header a déjà sa marge */
.section-marche--page {
  padding-top: 0;
}

.section-marche--page .marche-header {
  display: none;  /* Le page-header fait déjà office de titre */
}

/* Section positionnement SILL SA */
.section-sill-position {
  padding: var(--space-md) 0;
  border-top: 2px solid var(--color-heading);
}

.sill-position-header {
  margin-bottom: var(--space-md);
}

.sill-position-header h2 {
  font-size: var(--fs-h3);
  font-weight: 300;
  margin-bottom: 12px;
}

/* Graphiques d'évolution — section charts */
.section-charts {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border);
}

.charts-section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-heading);
  margin-bottom: var(--space-md);
}

.charts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.chart-card {
  position: relative;
}

.chart-canvas-wrap {
  position: relative;
  width: 100%;
  height: 260px;
}

.chart-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-heading);
  margin-bottom: 4px;
}

.chart-subtitle {
  font-size: 11px;
  color: var(--color-muted);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-sm);
}

/* Répartition types de loyers — camembert + barres par projet */
.loyer-types {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.loyer-types-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-heading);
  margin-bottom: 4px;
}

.loyer-types-subtitle {
  font-size: 13px;
  color: var(--color-muted);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-md);
}

.loyer-charts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.loyer-chart-donut {
  max-width: 280px;
  max-height: 340px;
  margin: 0 auto;
}

.loyer-chart-bars {
  position: relative;
  min-height: 380px;
  max-height: 500px;
}

.loyer-types-note {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-heading);
  margin-top: var(--space-sm);
  text-align: center;
}

/* Teaser marché — accueil */
.section-marche-teaser {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
}

.marche-teaser-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.marche-teaser-left .marche-title {
  margin-bottom: 12px;
}

.marche-teaser-text {
  font-size: var(--fs-base);
  color: var(--color-body);
  font-weight: 400;
  line-height: 1.6;
  max-width: 360px;
  margin-bottom: var(--space-sm);
}

.btn-marche {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 12px 24px;
  transition: var(--transition);
}

.btn-marche:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.marche-teaser-right {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.marche-teaser-kpi {
  text-align: center;
}

.marche-teaser-kpi .marche-value {
  display: block;
}

.marche-teaser-kpi .marche-label {
  text-align: center;
}

/* Page chapeau — intro sous le h1 */
.page-chapeau {
  font-family: var(--font-body);
  font-size: var(--fs-chapeau);
  line-height: var(--lh-chapeau);
  font-weight: 300;
  color: var(--color-muted);
  max-width: 640px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   8. Timeline
   -------------------------------------------------------------------------- */
.timeline-section,
.section-timeline {
  padding: 96px 0;
}

.timeline-section h2,
.section-timeline h2 {
  margin-bottom: 48px;
}

/* Filters — horizontal scroll */
.timeline-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 40px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  mask-image: linear-gradient(to right, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 90%, transparent 100%);
}

.timeline-filters::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  flex-shrink: 0;
  padding: 8px 20px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  font-size: 13px;
  font-family: var(--font-heading);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-body);
  background: var(--color-white);
  transition: var(--transition);
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.filter-btn.is-active {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

/* Timeline axis — mobile: left side */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline-axis {
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-md);
}

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #E8C547;
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 0 2px #E8C547;
  z-index: 1;
}

.timeline-card {
  background: var(--color-white);
  border-top: 2px solid var(--color-accent);
  padding: var(--space-md) var(--space-md) var(--space-md);
}

.timeline-date {
  display: block;
  font-family: var(--font-heading);
  font-weight: 300;
  color: var(--color-accent);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.timeline-fulldate {
  display: block;
  font-family: var(--font-heading);
  font-weight: 300;
  color: var(--color-muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}

.timeline-card h3 {
  font-weight: 400;
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  margin-bottom: var(--space-xs);
}

.timeline-card p {
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--color-body);
  margin-bottom: var(--space-sm);
}

.timeline-card img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  margin-top: var(--space-sm);
}

/* --------------------------------------------------------------------------
   9. Portefeuille (Map)
   -------------------------------------------------------------------------- */
.portefeuille-section {
  padding: 64px 0;
}

/* Mobile: show map stacked above card grid, hide side panel */
.portefeuille-layout {
  display: block;
}

.portefeuille-layout .map-info-panel {
  display: none;
}

.carte-container {
  position: relative;
  width: 100%;
}

.carte-wrapper {
  background: #FAFAF8;
  border-radius: var(--radius);
  padding: 16px;
}

.carte-lausanne {
  width: 100%;
  height: auto;
}

.carte-outline {
  stroke: var(--color-border);
  stroke-width: 1;
  fill: none;
}

.carte-lac {
  fill: #E8F0FE;
}

/* Building points on map */
.map-point {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.map-point:hover {
  z-index: 6;
}

@keyframes pointPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.point-circle {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-accent);
  opacity: 0.35;
  transition: opacity var(--transition), transform var(--transition);
  position: relative;
  animation: pointPulse 3s ease-in-out infinite;
}

.map-point:hover .point-circle,
.map-point.is-active .point-circle {
  animation: none;
}

.point-inner {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-accent);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform var(--transition);
}

.map-point:hover .point-circle {
  opacity: 0.5;
  transform: scale(1.3);
}

.map-point:hover .point-inner {
  transform: translate(-50%, -50%) scale(1.2);
}

.map-point.is-active .point-circle {
  opacity: 0.6;
  transform: scale(1.4);
}

.map-point.is-active .point-inner {
  background-color: #CC0000;
}

/* Tooltip */
.map-tooltip {
  display: none;
  position: absolute;
  z-index: 20;
  pointer-events: none;
  background: var(--color-dark, #1A1A1A);
  color: var(--color-white);
  padding: 8px 14px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.map-tooltip.visible {
  display: block;
}

.tooltip-bg {
  fill: var(--color-white);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
  rx: 4;
}

/* Info panel */
.map-info-panel {
  width: 100%;
  padding: 24px;
  background: var(--color-bg);
  border-left: 2px solid var(--color-accent);
  margin-top: 24px;
}

.map-info-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 16px;
}

.map-info-panel h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.panel-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--color-muted);
  line-height: 1;
  padding: 4px;
}

.panel-close:hover {
  color: var(--color-heading);
}

.panel-address {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.panel-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--color-body);
  padding: 12px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 12px;
}

.panel-stats strong {
  font-weight: 500;
}

.map-info-panel .btn-link {
  font-size: 13px;
  margin-top: 8px;
}

/* Mosaic — default state before building is selected */
.panel-mosaic-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
  color: var(--color-heading);
}

.panel-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mosaic-thumb {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 1;
  transition: transform var(--transition), box-shadow var(--transition);
}

.mosaic-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.3);
  transition: filter var(--transition);
}

.mosaic-thumb:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

.mosaic-thumb:hover img {
  filter: grayscale(0);
}

.panel-mosaic-hint {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--color-muted);
  text-align: center;
}

/* Panel info content (AJAX-loaded) */
.map-info-panel p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* Mobile: larger touch targets on map points */
@media (max-width: 1023px) {
  .map-point {
    width: 36px;
    height: 36px;
  }
  .point-circle {
    width: 36px;
    height: 36px;
  }
  .portefeuille-layout {
    margin-bottom: var(--space-md);
  }
}

/* Mobile grid fallback — grouped by quartier */
.portefeuille-grid-mobile {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.quartier-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.quartier-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
  margin-top: var(--space-xs);
  margin-bottom: 0;
}

.immeuble-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}

.immeuble-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.immeuble-card-info {
  padding: 16px;
}

.immeuble-card-info h4 {
  margin-bottom: 4px;
}

.immeuble-card-info p {
  color: var(--color-muted);
  font-size: 13px;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   10. Immeuble Detail
   -------------------------------------------------------------------------- */
.section-immeuble {
  padding-bottom: var(--space-lg);
}

.section-immeuble h1 {
  font-weight: 300;
  margin-bottom: var(--space-sm);
}

.immeuble-hero {
  margin-bottom: var(--space-md);
}

.immeuble-hero img {
  width: 100%;
  max-height: clamp(280px, 50vw, 560px);
  object-fit: cover;
}

/* 2-column Swiss layout — mobile: stacked, desktop: sidebar + body */
.immeuble-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.immeuble-sidebar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-top: 2px solid var(--color-accent);
  border-bottom: 1px solid var(--color-border);
}

.immeuble-body .page-chapeau {
  margin-bottom: var(--space-sm);
}

.immeuble-description {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-body);
  margin-bottom: var(--space-md);
}

.meta-label {
  font-size: 11px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 2px;
}

.meta-value {
  font-weight: 500;
  color: var(--color-heading);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-weight: 400;
  margin-bottom: 24px;
}

.back-link::before {
  content: "\2190";
}

.back-link:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.photo-credit {
  font-size: 11px;
  color: var(--color-muted);
  margin-top: 8px;
  margin-bottom: 0;
  text-align: right;
}

.label-energie {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 0;
  background: #D4E8D0;
  color: #2E5A2E;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   11. Section À propos — unified layout (La Société, CA, Organisation, etc.)
   -------------------------------------------------------------------------- */

/* Main layout: sidebar + body */
.section-about {
  padding: var(--space-lg) 0;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

/* Sidebar navigation — contextual links */
.about-sidebar {
  border-top: 2px solid var(--color-accent);
  padding-top: var(--space-sm);
}

.about-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.about-nav-link {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  text-decoration: none;
  padding: 8px 16px 8px 0;
  transition: color var(--transition);
}

.about-nav-link:hover {
  color: var(--color-heading);
}

.about-nav-link.is-active {
  color: var(--color-accent);
  font-weight: 600;
}

/* Body content area */
.about-body {
  min-width: 0;
  overflow: hidden;
}

.about-body .page-chapeau {
  margin-bottom: var(--space-md);
}

.about-body .rich-text {
  line-height: 1.8;
}

.about-body .rich-text p {
  margin-bottom: 1.4em;
}

/* Golden Ratio hierarchy inside rich-text:
   h1 = 62.1px (page header, outside rich-text)
   h2 = 23.7px (section titles — fs-h3 scale)
   h3 = 18px   (sub-titles — fs-h4 scale)
   p  = 14.67px (body — fs-base)
   chapeau = 23.7px (intro — fs-chapeau)           */
.about-body .rich-text h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.about-body .rich-text h3,
.about-body .rich-text h4 {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}

.about-body .rich-text img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  display: block;
  margin: var(--space-md) 0;
}

/* Hero image in about pages */
.about-hero {
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.about-hero img {
  width: 100%;
  height: auto;
  display: block;
  max-height: clamp(280px, 40vw, 480px);
  object-fit: cover;
}

/* --- CA-specific styles --- */

.ca-group-photo {
  margin-bottom: var(--space-md);
  overflow: hidden;
  max-height: 420px;
}

.ca-group-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.ca-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.ca-card {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.ca-card:first-child {
  border-top: 2px solid var(--color-accent);
}

.ca-card-name {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-heading);
  flex: 1;
}

.ca-fonction {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ca-fonction-president {
  color: var(--color-accent);
  font-weight: 500;
}

.ca-bio {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   12. Publications
   -------------------------------------------------------------------------- */
.publications-section {
  padding: 64px 0;
}

.publications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
}

.publication-card {
  background: var(--color-white);
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.publication-card:hover {
  border-color: var(--color-heading);
}

.publication-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.publication-card-body,
.publication-info {
  padding: 16px 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.publication-year {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-accent);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.publication-type {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 0;
  background: var(--color-bg-warm);
  margin-top: auto;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.publication-card h4,
.publication-card h3 {
  margin-top: 6px;
  margin-bottom: 12px;
  font-size: var(--fs-base);
  line-height: 1.3;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   13. Location
   -------------------------------------------------------------------------- */
.location-section {
  padding: 64px 0;
}

main {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  color: rgba(0,0,0,0.5);
  padding: 48px 0 0;
  margin-top: var(--space-lg);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 32px;
}

.footer-grid a {
  color: rgba(0,0,0,0.6);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--color-dark);
}

.footer-grid h3,
.footer-grid h4 {
  color: var(--color-dark);
  margin-bottom: 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-grid ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.footer-bottom {
  text-align: center;
  font-size: 11px;
  color: rgba(0,0,0,0.4);
  padding: 20px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* --------------------------------------------------------------------------
   15. Page Header — Interior pages
   Le titre est un repère, pas un cri. Taille contenue, poids léger.
   -------------------------------------------------------------------------- */
.page-header {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-md);
}

.page-header h1 {
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: var(--lh-h2);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   16. 404
   -------------------------------------------------------------------------- */
.page-404 {
  text-align: center;
  padding: 120px var(--margin-mobile) 80px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-404 .error-code {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: 200;
  color: var(--color-border);
  line-height: 1;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   17. Utility Classes
   -------------------------------------------------------------------------- */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-weight: 400;
  font-size: var(--fs-base);
  letter-spacing: 0.02em;
  transition: var(--transition);
}

.btn-link::after {
  content: "\2192";
  transition: transform var(--transition);
}

.btn-link:hover {
  text-decoration: underline;
  color: var(--color-accent-hover);
}

.btn-link:hover::after {
  transform: translateX(4px);
}

/* Rich-text content block */
.rich-text p {
  margin-bottom: 1.4em;
}

.rich-text ul,
.rich-text ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

.rich-text ul {
  list-style: disc;
}

.rich-text ol {
  list-style: decimal;
}

.rich-text li + li {
  margin-top: 0.5em;
}

.rich-text img {
  margin: 1.5em 0;
}

.rich-text a {
  text-decoration: underline;
}

/* Immeuble rich-text — Swiss typography: generous leading, structured rhythm */
.immeuble-body .rich-text {
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--color-body);
}

.immeuble-body .rich-text p {
  margin-bottom: 1.6em;
}

/* Mini loyer-mix bar — sidebar housing type proportion */
.loyer-mix {
  grid-column: 1 / -1;
  margin-top: var(--space-xs);
}

.loyer-mix .meta-label {
  margin-bottom: 6px;
}

.loyer-mix-bar {
  display: flex;
  height: 4px;
  border-radius: 0;
  overflow: hidden;
  gap: 1px;
}

.loyer-mix-bar span {
  display: block;
  height: 100%;
}

.loyer-mix-bar .mix-llm { background: var(--color-accent); }
.loyer-mix-bar .mix-lla { background: #999; }
.loyer-mix-bar .mix-lm  { background: #E8C547; }
.loyer-mix-bar .mix-etu { background: var(--color-heading); }

.loyer-mix-legend {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.loyer-mix-legend span {
  font-size: 10px;
  color: var(--color-muted);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.loyer-mix-legend span::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
}

.loyer-mix-legend .mix-llm::before { background: var(--color-accent); }
.loyer-mix-legend .mix-lla::before { background: #999; }
.loyer-mix-legend .mix-lm::before  { background: #E8C547; }
.loyer-mix-legend .mix-etu::before { background: var(--color-heading); }

/* Architect signature — last element, detached */
.architect-signature {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   La Société — Swiss Design 3-column layout
   -------------------------------------------------------------------------- */
/* --- La Société — specific styles --- */

.societe-intro {
  margin-bottom: var(--space-md);
}

/* Chapeau — large intro text */
.societe-chapeau p {
  font-size: var(--fs-chapeau);
  line-height: var(--lh-chapeau);
  font-weight: 300;
  color: var(--color-heading);
  margin: 0 0 var(--space-md) 0;
}

/* Body text */
.societe-body {
  max-width: none;
}

/* Image */
.societe-image {
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.societe-hero-img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

/* Operations section */
.societe-operations {
  border-left: 3px solid var(--color-accent);
  padding-left: 24px;
  margin-top: var(--space-md);
}

.societe-operations h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.societe-ops-content {
  columns: 1;
}

.societe-ops-content li {
  break-inside: avoid;
}

/* ─── Environnement page ─── */

/* Hero image — 16:9 ratio */
.env-hero {
  margin-bottom: var(--space-md);
}

.env-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Chart — displayed at full size, no truncation */
.env-chart {
  margin-bottom: var(--space-md);
}

.env-chart img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
}

/* Override the generic about-body img rule for env-text */
.env-text img {
  max-height: none;
  object-fit: contain;
}

/* Carrousel projets phares */
.societe-carousel {
  margin-top: 64px;
  overflow: hidden;
}

.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.carousel-header h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.carousel-nav {
  display: flex;
  gap: 8px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border: 2px solid var(--color-heading);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--color-heading);
}

.carousel-btn:hover {
  background: var(--color-heading);
  color: var(--color-white);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.carousel-btn:disabled:hover {
  background: transparent;
  color: var(--color-heading);
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 280px;
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.carousel-slide .carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--color-white);
  padding: 32px 16px 12px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}

.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --------------------------------------------------------------------------
   18. Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Location page ─── */

.section-location {
  padding: var(--space-lg) 0;
}

.location-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.location-sidebar {
  order: 2;
}

.location-contact-card {
  position: relative;
  padding-top: 20px;
}

.location-rule {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin-bottom: 20px;
}

.location-contact-card h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.location-address,
.location-email,
.location-phone {
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-body);
  margin-bottom: 8px;
}

.location-email a,
.location-phone a {
  color: var(--color-body);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition), border-color var(--transition);
}

.location-email a:hover,
.location-phone a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.location-body {
  order: 1;
}

.location-section {
  margin-bottom: var(--space-md);
}

.location-section h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.location-intro {
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-body);
  max-width: var(--narrow-max);
}

.location-gerance-scope {
  font-family: var(--font-heading);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.location-link-arrow {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--color-heading);
  text-decoration: none;
  border-bottom: 1px solid var(--color-heading);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.location-link-arrow::after {
  content: ' \2192';
}

.location-link-arrow:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   18b. Bonnes pratiques — Thematic cards grid
   -------------------------------------------------------------------------- */

.section-bp {
  padding: var(--space-lg) 0;
}

/* Intro block */
.bp-intro {
  max-width: var(--narrow-max);
  margin-bottom: var(--space-lg);
}

.bp-intro-rule {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin-bottom: 24px;
}

.bp-intro p {
  font-size: var(--fs-chapeau);
  line-height: var(--lh-chapeau);
  color: var(--color-body);
}

/* Cards grid — mobile: 1 col, tablet: 2 cols, desktop: 3 cols */
.bp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

/* Card */
.bp-card {
  background: var(--color-white);
  border-top: 3px solid var(--color-dark);
  padding: 32px 28px 28px;
  transition: border-color var(--transition);
}

.bp-card:hover {
  border-top-color: var(--color-accent);
}

/* Card header: icon + title */
.bp-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.bp-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: var(--color-accent);
}

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

.bp-card-header h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin: 0;
  color: var(--color-heading);
}

/* Card body */
.bp-subtitle {
  font-family: var(--font-heading);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 16px;
  font-weight: 400;
}

.bp-card-body ul {
  list-style: none;
  padding: 0;
}

.bp-card-body li {
  position: relative;
  padding-left: 16px;
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-body);
  margin-bottom: 10px;
}

.bp-card-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1.5px;
  background: var(--color-accent);
}

.bp-card-body li:last-child {
  margin-bottom: 0;
}

.bp-card-body li strong {
  font-weight: 600;
  color: var(--color-heading);
}

/* Resources section */
.bp-resources {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
}

.bp-resources-rule {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  margin-bottom: 20px;
}

.bp-resources h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  color: var(--color-heading);
}

.bp-resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.bp-resource-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--color-white);
  text-decoration: none;
  border-left: 3px solid var(--color-border);
  transition: border-color var(--transition), background var(--transition);
}

.bp-resource-link:hover {
  border-left-color: var(--color-accent);
  background: #FAFAFA;
}

.bp-resource-type {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.bp-resource-title {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--color-heading);
  flex: 1;
}

.bp-resource-source {
  font-size: 13px;
  color: var(--color-muted);
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   19. Responsive — Tablet (>= 768px)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .container {
    padding-inline: var(--margin-tablet);
  }

  .content-narrow {
    padding-inline: var(--margin-tablet);
  }

  /* Nav — still mobile on tablet */
  .nav-list a {
    padding-inline: var(--margin-tablet);
  }

  /* KPI — tablet: 2 per row */
  .kpi-item {
    flex: 0 0 50%;
  }

  /* Loyer types — barres sur tablette */
  .loyer-chart-bars {
    min-height: 460px;
  }

  /* Restore desktop spacing for marche sections */
  .page-header { margin-bottom: var(--space-lg); }
  .section-marche { padding: var(--space-lg) 0; }
  .section-charts { padding: var(--space-lg) 0; }
  .charts-section-title { margin-bottom: var(--space-lg); }
  .charts-grid { gap: var(--space-lg); }
  .section-sill-position { padding: var(--space-lg) 0; }
  .sill-position-header { margin-bottom: var(--space-lg); }
  .loyer-types { margin-top: var(--space-xl); padding-top: var(--space-lg); }

  /* Timeline — still left-aligned on tablet */

  /* Portefeuille — tablette : quartiers sur 2 colonnes */
  .portefeuille-grid-mobile {
    grid-template-columns: repeat(2, 1fr);
  }

  .quartier-group {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gutter);
  }

  .quartier-label {
    grid-column: span 2;
  }

  .immeuble-card img {
    aspect-ratio: 3 / 2;
  }

  /* Immeuble — sidebar 3 cols on tablet */
  .immeuble-sidebar {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Publications */
  .publications-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Bonnes pratiques — 2 columns on tablet */
  .bp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* --------------------------------------------------------------------------
   19b. Responsive — Desktop (>= 1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .container {
    padding-inline: var(--margin-desktop);
  }

  .content-narrow {
    padding-inline: 0;
  }

  /* Header — horizontal nav */
  .nav-toggle {
    display: none;
  }

  .nav-list {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    border: none;
    padding: 0;
    background: transparent;
  }

  .nav-list li {
    border: none;
  }

  .nav-list a {
    padding: 8px 12px;
  }

  .nav-list a.is-active {
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 6px;
  }

  /* Dropdown — desktop hover */
  .has-dropdown .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--color-nav-bg);
    border: none;
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    z-index: 100;
  }

  .has-dropdown:hover .dropdown {
    display: block;
  }

  .dropdown a {
    padding: 8px 16px;
  }

  /* Hero */
  .hero {
    height: 80vh;
  }

  .hero-content {
    padding: 48px var(--margin-desktop) 64px;
    max-width: 700px;
  }

  /* KPI — desktop grid: 3 per row, second row centered */
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
  }

  /* Marché — 3 colonnes avec séparateurs verticaux */
  .marche-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .marche-col {
    border-top: none;
    padding: 0 var(--space-md);
    border-left: 1px solid var(--color-border);
  }

  .marche-col:first-child {
    padding-left: 0;
    border-left: none;
  }

  .marche-col:last-child {
    padding-right: 0;
  }

  /* Charts — 2 colonnes desktop */
  .charts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Loyer types — camembert à gauche, barres à droite */
  .loyer-charts-grid {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }

  .loyer-chart-donut {
    max-width: none;
  }

  /* Teaser marché — 2 colonnes desktop */
  .marche-teaser-inner {
    grid-template-columns: 1fr 2fr;
    align-items: center;
  }

  /* Timeline — alternating left / right */
  .timeline {
    padding-left: 0;
  }

  .timeline-axis {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item {
    width: 50%;
    padding-right: calc(var(--gutter) + 16px);
    text-align: right;
  }

  .timeline-item .timeline-dot {
    left: auto;
    right: -8px;
  }

  .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: calc(var(--gutter) + 16px);
    text-align: left;
  }

  .timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -8px;
  }

  .timeline-card {
    text-align: left;
    padding: var(--space-md);
  }

  /* Portefeuille — desktop: side-by-side map + panel */
  .portefeuille-layout {
    display: flex;
    gap: var(--gutter);
  }

  .portefeuille-layout .map-info-panel {
    display: block;
  }

  .carte-container {
    flex: 1;
  }

  .map-info-panel {
    width: 400px;
    flex-shrink: 0;
    margin-top: 0;
    position: relative;
  }

  .portefeuille-grid-mobile {
    display: none;
  }

  /* About — Müller-Brockmann 1/3 + 2/3 grid */
  .about-layout {
    grid-template-columns: 1fr 3fr;
    gap: var(--space-lg);
  }

  .about-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
  }

  .about-nav {
    flex-direction: column;
  }

  .about-nav-link {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .about-nav-link:last-child {
    border-bottom: none;
  }

  /* Location — 1/3 + 2/3 grid */
  .location-layout {
    grid-template-columns: 1fr 3fr;
    gap: var(--space-lg);
  }

  .location-sidebar {
    order: 0;
    position: sticky;
    top: 120px;
    align-self: start;
  }

  .location-body {
    order: 0;
  }

  /* Bonnes pratiques — 3 columns on desktop */
  .bp-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Immeuble — Müller-Brockmann 1/3 + 2/3 grid */
  .immeuble-content {
    grid-template-columns: 1fr 2fr;
    gap: var(--space-lg);
  }

  .immeuble-sidebar {
    grid-template-columns: 1fr;
    border-bottom: none;
  }

  /* CA — wider photo crop on desktop */
  .ca-group-photo {
    max-height: 360px;
  }

  /* Publications */
  .publications-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   19c. Responsive — Large (>= 1200px)
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
  .hero-content {
    max-width: 800px;
  }

  /* La Société — chapeau with accent border */
  .societe-chapeau {
    border-left: 3px solid var(--color-accent);
    padding-left: var(--space-sm);
  }

  .societe-ops-content {
    columns: 2;
    column-gap: 32px;
  }

  .carousel-slide {
    flex: 0 0 340px;
  }
}

/* --------------------------------------------------------------------------
   19d. En bref — Fiche signalétique AMAS
   -------------------------------------------------------------------------- */

/* Print-only header (hidden on screen) */
.enbref-print-header {
  display: none;
}

/* ── Hero KPI strip ── */
.enbref-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--color-border);
}

.enbref-hero-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}

.enbref-hero-kpi {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.enbref-hero-value {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 200;
  line-height: 1.1;
  color: var(--color-heading);
  letter-spacing: -0.02em;
}

.enbref-hero-kpi--accent .enbref-hero-value {
  color: var(--color-accent);
}

.enbref-hero-unit {
  font-size: 0.5em;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--color-muted);
}

.enbref-hero-kpi--accent .enbref-hero-unit {
  color: var(--color-accent);
}

.enbref-hero-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
}

/* ── Sections ── */
.enbref-anchors {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.enbref-anchors a {
  font-family: var(--font-heading);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border: 1px solid #000;
  color: #000;
  text-decoration: none;
  transition: var(--transition);
}
.enbref-anchors a:hover {
  background: #000;
  color: #fff;
}
#portefeuille,
#benchmark,
#finances,
#repartition,
#esg {
  scroll-margin-top: 120px;
}
.section-enbref {
  padding: 64px 0 72px;
}

.section-enbref--alt {
  background: var(--color-bg-warm, #F5F0EB);
}

/* ── Charts grid ── */
.enbref-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.enbref-chart-block {
  min-height: 300px;
}

.enbref-chart-block canvas {
  max-height: 260px;
}

/* ── Répartition layout (table + doughnut) ── */
.enbref-repart-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.enbref-repart-chart {
  display: flex;
  align-items: center;
  justify-content: center;
}

.enbref-repart-chart canvas {
  max-height: 220px;
}

/* ── Value accent ── */
.enbref-value--accent {
  font-weight: 700;
  color: var(--color-accent) !important;
}

/* ── Actions row ── */
.enbref-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

/* ── Disclaimer (en bas) ── */
.enbref-disclaimer {
  background: transparent;
  border-left: 4px solid var(--color-accent);
  padding: 16px 24px;
  margin-top: 40px;
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--color-muted);
}

.enbref-disclaimer a {
  color: var(--color-accent);
  text-decoration: none;
}

.enbref-disclaimer a:hover {
  text-decoration: underline;
}

/* ── Blocks ── */
.enbref-block {
  margin-bottom: 56px;
  page-break-inside: avoid;
}

.enbref-section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-heading);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-heading);
  margin-bottom: 20px;
}

/* ── Tables ── */
.enbref-table {
  width: 100%;
  border-collapse: collapse;
}

.enbref-table td,
.enbref-table th {
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-base);
  line-height: 1.5;
}

.enbref-label {
  width: 50%;
  font-weight: 600;
  color: var(--color-heading);
}

.enbref-value {
  text-align: right;
  color: var(--color-body);
}

/* Répartition table */
.enbref-table--repartition th {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  padding: 8px 16px;
  border-bottom: 2px solid var(--color-heading);
  text-align: right;
}

.enbref-table--repartition th:first-child {
  text-align: left;
}

.enbref-table--repartition td {
  text-align: right;
}

.enbref-table--repartition td:first-child {
  text-align: left;
}

.enbref-table--repartition tfoot td {
  border-top: 2px solid var(--color-heading);
  border-bottom: none;
  font-weight: 700;
}

/* Sources */
.enbref-sources-block {
  margin-top: 40px;
  padding: 16px 20px;
  background: var(--color-bg-warm, #F5F0EB);
  font-size: 12px;
  line-height: 1.7;
  color: var(--color-muted);
}

.enbref-sources {
  font-size: 12px;
  color: var(--color-muted);
}

/* Bandeau highlight ESG */
.enbref-esg-highlight {
  background: #FFFFFF;
  border: 2px solid #4ADE80;
  color: #1A1A1A;
  padding: 32px;
  text-align: center;
  margin-bottom: 32px;
}
.enbref-esg-pct {
  font-size: var(--fs-h1);
  font-weight: 700;
  display: block;
  line-height: 1.1;
  color: #22C55E;
}
.enbref-esg-label {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 600;
}
.enbref-esg-sub {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  opacity: 0.9;
}

/* Table ESG 4 colonnes */
.enbref-table--esg { table-layout: fixed; width: 100%; }
.enbref-table--esg col:nth-child(1) { width: 45%; }
.enbref-table--esg col:nth-child(2) { width: 20%; }
.enbref-table--esg col:nth-child(3) { width: 20%; }
.enbref-table--esg col:nth-child(4) { width: 15%; }
.enbref-table--esg th {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  border-bottom: 2px solid #000;
  text-align: left;
}
.enbref-table--esg th:nth-child(2),
.enbref-table--esg th:nth-child(3),
.enbref-table--esg th:nth-child(4) { text-align: right; }
.enbref-table--esg td {
  padding: 8px 12px;
}
.enbref-table--esg td:nth-child(2),
.enbref-table--esg td:nth-child(3),
.enbref-table--esg td:nth-child(4) { text-align: right; }
.enbref-ecart {
  font-weight: 700;
  color: #22C55E;
}
.enbref-sia-note {
  margin-top: 16px;
  padding: 16px 20px;
  background: #FFFBEB;
  border-left: 3px solid #FFD700;
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-body);
}
.enbref-table--densite { width: auto; margin-bottom: 0; }
.enbref-table--densite th,
.enbref-table--densite td { padding: 6px 16px; }
.enbref-table--densite th:nth-child(2),
.enbref-table--densite td:nth-child(2) { text-align: right; }
.enbref-table--densite th {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  border-bottom: 2px solid #000;
}

@media (max-width: 767px) {
  .enbref-table--esg { font-size: 12px; }
  .enbref-table--esg th,
  .enbref-table--esg td { padding: 6px 6px; }
  .enbref-table--esg col:nth-child(1) { width: 38%; }
  .enbref-table--esg col:nth-child(2) { width: 22%; }
  .enbref-table--esg col:nth-child(3) { width: 22%; }
  .enbref-table--esg col:nth-child(4) { width: 18%; }
  .enbref-esg-highlight { padding: 24px 16px; }
  .enbref-esg-pct { font-size: var(--fs-h2); }
  .enbref-section-title { font-size: var(--fs-h4); }
  .enbref-table--densite { width: 100%; font-size: 13px; }
  .enbref-table--densite th,
  .enbref-table--densite td { padding: 6px 8px; }
  .enbref-sia-note { padding: 12px 14px; font-size: 13px; }
  .enbref-sia-note p { font-size: 13px; line-height: 1.5; }
  .enbref-anchors { gap: 6px; }
  .enbref-anchors a { padding: 5px 10px; font-size: 10px; }
  .enbref-charts-grid { grid-template-columns: 1fr; }
}

@media print {
  .enbref-esg-highlight { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Bouton export PDF */
.btn-print {
  display: inline-block;
  margin-top: 32px;
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-heading);
  background: transparent;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.btn-print:hover {
  border-color: var(--color-heading);
  color: var(--color-accent);
}

/* Mobile */
@media (max-width: 767px) {
  .enbref-hero-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }
  .enbref-hero-grid > :last-child {
    grid-column: 1 / -1;
  }
  .enbref-hero-value {
    font-size: 36px;
  }
  .enbref-charts-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .enbref-repart-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .enbref-table td,
  .enbref-table th {
    padding: 8px 10px;
    font-size: 13px;
  }
  .enbref-label {
    width: 45%;
  }
  .enbref-actions {
    flex-direction: column;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .enbref-hero-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .enbref-charts-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* --------------------------------------------------------------------------
   20. Print
   -------------------------------------------------------------------------- */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .site-header,
  .site-footer,
  .nav-toggle,
  .timeline-filters,
  .filter-btn {
    display: none !important;
  }

  body {
    font-size: 11pt;
    line-height: 1.5;
  }

  .hero {
    height: auto;
    min-height: 0;
    margin-top: 0;
  }

  .hero-overlay {
    display: none;
  }

  .container,
  .content-narrow {
    max-width: 100%;
    padding: 0;
  }

  .page-header {
    padding-top: 0;
  }

  .timeline {
    padding-left: 0;
  }

  .timeline-axis {
    display: none;
  }

  .timeline-dot {
    display: none;
  }

  .timeline-item {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    page-break-inside: avoid;
  }

  .timeline-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666 !important;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  /* En bref — A4 portrait */
  .enbref-print-header {
    display: flex !important;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #000;
  }
  .enbref-print-header img {
    height: 40px !important;
  }
  .enbref-print-header div {
    font-size: 10pt;
    line-height: 1.4;
  }
  .btn-print {
    display: none !important;
  }
  .enbref-disclaimer {
    border-left: 3px solid #000 !important;
    background: #f5f5f5 !important;
    font-size: 9pt;
    padding: 12px 16px;
  }
  .enbref-block {
    page-break-inside: avoid;
  }
  .enbref-section-title {
    color: #000 !important;
    border-bottom: 1px solid #000 !important;
    font-size: 12pt;
  }
  .enbref-table td,
  .enbref-table th {
    padding: 6px 12px;
    font-size: 10pt;
  }
  .enbref-table--repartition th {
    font-size: 8pt;
  }
  .enbref-sources-block {
    background: #f5f5f5 !important;
    font-size: 8pt;
  }
  .breadcrumb {
    display: none !important;
  }
  .page-update {
    display: none !important;
  }
  .page-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  .section-enbref {
    padding-top: 0 !important;
  }
  .enbref-disclaimer a::after {
    content: none !important;
  }
  .enbref-sources-block a::after {
    content: none !important;
  }
}

/* ================================================================
   GALERIE IMMEUBLE
   ================================================================ */
.immeuble-galerie { margin-top: 48px; }
.immeuble-galerie h2 { font-family: var(--font-heading); font-size: var(--fs-h3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 24px; }
.galerie-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.galerie-item img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; transition: opacity var(--transition); }
.galerie-item:hover img { opacity: 0.85; }
@media (min-width: 768px) { .galerie-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

/* --- Immeuble prev/next navigation --- */
.immeuble-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-xl, 64px);
    padding-top: var(--space-md, 32px);
    border-top: 1px solid var(--color-border);
}
.immeuble-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-muted);
    font-family: var(--font-heading);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color var(--transition);
    max-width: 45%;
}
.immeuble-nav-link:hover { color: var(--color-accent); }
.immeuble-nav-next { text-align: right; margin-left: auto; }
.immeuble-nav-arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}
.immeuble-nav-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Lightbox --- */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.lightbox-overlay.is-open { opacity: 1; pointer-events: auto; }
.lightbox-overlay img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox-caption { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; text-align: center; }
.lightbox-close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 32px; cursor: pointer; background: none; border: none; line-height: 1; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { opacity: 0.7; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 48px; cursor: pointer; background: none; border: none; line-height: 1; padding: 16px; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* --------------------------------------------------------------------------
   ORGANISATION — Page dédiée
   -------------------------------------------------------------------------- */

.org-photo {
  margin-bottom: 48px;
}

.org-photo img {
  width: 100%;
  display: block;
}

.org-section {
  margin-bottom: 48px;
}

.org-section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-heading);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-heading);
}

/* Grille membres */
.org-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.org-card {
  padding: 24px;
  background: var(--color-bg-warm);
  border-left: 3px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.org-card--lead {
  border-left-color: var(--color-accent);
}

.org-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-heading);
}

.org-card--lead .org-name {
  color: var(--color-accent);
}

.org-fonction {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-muted);
  line-height: 1.4;
}

/* Organigramme gouvernance */
.org-governance {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.org-gov-block {
  width: 100%;
  max-width: 480px;
  padding: 20px 24px;
  background: var(--color-bg-warm);
  border: 1px solid var(--color-border);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.org-gov-block--active {
  border: 2px solid var(--color-accent);
  background: #FFF;
}

.org-gov-label {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-heading);
}

.org-gov-block--active .org-gov-label {
  color: var(--color-accent);
}

.org-gov-sub {
  font-size: 13px;
  color: var(--color-muted);
}

.org-gov-sub a {
  color: var(--color-accent);
  text-decoration: none;
}

.org-gov-sub a:hover {
  text-decoration: underline;
}

.org-gov-arrow {
  width: 2px;
  height: 24px;
  background: var(--color-heading);
  position: relative;
}

.org-gov-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--color-heading);
}

@media (max-width: 767px) {
  .org-grid {
    grid-template-columns: 1fr;
  }
}
