/* ==========================================================================
   Living Prestige — composants
   Hero, boutons, cartes photo, grilles éditoriales, bandeaux, annuaire,
   fiche, galerie, encarts.
   ========================================================================== */

/* --- Hero photographique --- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--c-night);
  color: var(--c-ivory);
  --text: var(--c-ivory);
  --text-muted: #E6E1D8;
  --accent-text: var(--c-bronze-light);
  --focus: var(--c-ivory);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: hero-zoom 18s var(--ease-out) both; }
}

@keyframes hero-zoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 12, 12, 0.78) 0%, rgba(12, 12, 12, 0.58) 42%, rgba(12, 12, 12, 0.1) 78%),
    linear-gradient(180deg, rgba(12, 12, 12, 0.55) 0%, rgba(12, 12, 12, 0.12) 30%, rgba(12, 12, 12, 0.3) 60%, rgba(12, 12, 12, 0.88) 100%);
}

@media (max-width: 860px) {
  .hero::after {
    background: linear-gradient(180deg, rgba(12, 12, 12, 0.68) 0%, rgba(12, 12, 12, 0.6) 55%, rgba(12, 12, 12, 0.9) 100%);
  }
}

.hero__inner { text-shadow: 0 1px 24px rgba(0, 0, 0, 0.45); }

/* Hero sans photographie : motif architectural neutre. */
.hero--plain::after {
  background-image:
    linear-gradient(180deg, rgba(22, 22, 22, 0) 40%, rgba(22, 22, 22, 0.9) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%23A58B65' stroke-width='0.6' opacity='0.35'%3E%3Cpath d='M20 240V110a100 100 0 0 1 200 0v130'/%3E%3Cpath d='M50 240V118a70 70 0 0 1 140 0v122'/%3E%3Cpath d='M120 10v230'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, 240px 240px;
  background-position: center, center bottom;
}

.hero__inner {
  position: relative;
  display: grid;
  align-content: end;
  gap: var(--sp-5);
  min-height: min(100vh, 62rem);
  min-height: min(100svh, 62rem);
  padding-block: calc(var(--header-h) + var(--sp-8)) var(--sp-8);
}

.hero--page .hero__inner {
  min-height: min(78vh, 46rem);
  min-height: min(78svh, 46rem);
}

.hero--short .hero__inner {
  min-height: 0;
  padding-top: calc(var(--header-h) + var(--sp-9));
}

.no-js .hero__inner { padding-top: var(--sp-9); }

.hero h1 {
  max-width: 16ch;
  margin: 0;
  font-size: var(--fs-display);
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.hero--page h1 { font-size: var(--fs-3xl); line-height: 1; }

.hero h1 em { color: var(--c-bronze-light); }

.hero .eyebrow { margin: 0; }

.hero__lead {
  max-width: 38rem;
  margin: 0;
  font-size: var(--fs-lg);
  line-height: 1.65;
  color: #F0ECE5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4) var(--sp-6);
  margin-top: var(--sp-3);
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(247, 245, 240, 0.2);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(247, 245, 240, 0.88);
}

.hero__foot a { color: inherit; }

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  text-decoration: none;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(180deg, var(--c-bronze-light), transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__scroll::after { animation: scroll-line 2.4s var(--ease) infinite; transform-origin: top; }
}

@keyframes scroll-line {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

.hero .breadcrumb {
  padding-top: 0;
  color: rgba(247, 245, 240, 0.75);
}

.hero .breadcrumb [aria-current] { color: var(--c-ivory); }

/* Entrée en scène du texte du hero */
@media (prefers-reduced-motion: no-preference) {
  .hero__inner > * { animation: rise 1.2s var(--ease-out) both; }
  .hero__inner > :nth-child(2) { animation-delay: 0.1s; }
  .hero__inner > :nth-child(3) { animation-delay: 0.2s; }
  .hero__inner > :nth-child(4) { animation-delay: 0.3s; }
  .hero__inner > :nth-child(5) { animation-delay: 0.4s; }
  .hero__inner > :nth-child(6) { animation-delay: 0.5s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* En-tête clair (pages institutionnelles) */
.page-head {
  padding-block: var(--sp-8) var(--sp-7);
  border-bottom: 1px solid var(--c-line);
}

.page-head h1 { max-width: 18ch; margin-bottom: var(--sp-5); }
.page-head .lead { max-width: 40rem; margin: 0; }

/* --- Boutons et liens d'action --- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  min-height: 3.25rem;
  padding: var(--sp-3) var(--sp-6);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--text);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease-out);
}

.btn:hover { color: var(--bg); border-color: var(--text); }
.btn:hover::before { transform: scaleY(1); }

.hero .btn:hover,
.on-dark .btn:hover,
.section--dark .btn:hover { color: var(--c-night); }

.hero .btn::before,
.on-dark .btn::before,
.section--dark .btn::before { background: var(--c-ivory); }

.btn--solid {
  background: var(--c-bronze-text);
  border-color: var(--c-bronze-text);
  color: var(--c-white);
}

.btn--solid::before { background: var(--c-anthracite); }
.btn--solid:hover { color: var(--c-white); border-color: var(--c-anthracite); }

.hero .btn--solid { background: var(--c-ivory); border-color: var(--c-ivory); color: var(--c-night); }
.hero .btn--solid::before { background: var(--c-bronze-light); }
.hero .btn--solid:hover { color: var(--c-night); border-color: var(--c-bronze-light); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  text-decoration: none;
}

.link-arrow::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--accent);
  transition: width 0.45s var(--ease-out);
}

.link-arrow:hover::after { width: 3.5rem; }

/* --- Grilles --- */
.grid {
  display: grid;
  gap: var(--sp-6);
  margin: 0;
}

ul.grid,
ol.grid {
  padding: 0;
  list-style: none;
}

.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--sp-8);
  align-items: start;
}

.split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }

@media (max-width: 860px) {
  .split,
  .split--even { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
}

/* --- Images éditoriales --- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--c-sand);
}

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

.media--portrait { aspect-ratio: 4 / 5; }
.media--landscape { aspect-ratio: 3 / 2; }
.media--wide { aspect-ratio: 21 / 9; }

.figure { margin: 0; }
.figure img { width: 100%; }

.figure figcaption,
.credit {
  margin-top: var(--sp-3);
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.figure figcaption a,
.credit a { color: inherit; }

.figure figcaption strong {
  display: block;
  font-weight: 500;
  color: var(--text);
}

/* Composition image décalée avec cadre bronze */
.frame {
  position: relative;
  margin: 0;
}

.frame::before {
  content: "";
  position: absolute;
  inset: var(--sp-6) calc(-1 * var(--sp-6)) calc(-1 * var(--sp-6)) var(--sp-6);
  z-index: -1;
  border: 1px solid var(--accent);
}

.frame-wrap { position: relative; isolation: isolate; padding: 0 var(--sp-6) var(--sp-6) 0; }

/* --- Chiffres éditoriaux --- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
  margin: var(--sp-7) 0 0;
  padding: var(--sp-6) 0 0;
  border-top: 1px solid var(--c-line);
  list-style: none;
}

.stat {
  display: grid;
  gap: var(--sp-2);
}

.stat__value {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  line-height: 1;
  color: var(--accent-text);
}

.stat__label {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
}

/* --- Cartes photo (destinations, rubriques) --- */
.photo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 24rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--c-night);
  color: var(--c-ivory);
  --text: var(--c-ivory);
  --accent-text: var(--c-bronze-light);
  --focus: var(--c-ivory);
}

.photo-card__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.photo-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out), filter 0.6s var(--ease);
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.1) 0%, rgba(12, 12, 12, 0.35) 40%, rgba(12, 12, 12, 0.92) 100%);
  transition: background 0.6s var(--ease);
}

.photo-card:hover .photo-card__media img { transform: scale(1.06); }

.photo-card__body {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-6);
}

.photo-card__body > * { margin: 0; }

.photo-card__region {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--c-bronze-light);
}

.photo-card__title {
  font-size: var(--fs-2xl);
  line-height: 1;
}

.photo-card__title a { text-decoration: none; }
.photo-card__title a::after { content: ""; position: absolute; inset: 0; }

.photo-card__text {
  max-width: 28rem;
  font-size: var(--fs-sm);
  color: #F0ECE5;
}

.photo-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}

.photo-card__credit {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  max-width: 70%;
  font-size: 0.6875rem;
  line-height: 1.3;
  text-align: right;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  color: rgba(247, 245, 240, 0.9);
}

.photo-card__credit a { position: relative; z-index: 1; color: inherit; }

.photo-card--pending .photo-card__media img { filter: grayscale(0.7) brightness(0.62); }
.photo-card--pending:hover .photo-card__media img { filter: grayscale(0.2) brightness(0.9); }

/* Grille éditoriale asymétrique */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(19rem, auto);
  gap: var(--sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mosaic > :first-child { grid-column: span 2; grid-row: span 2; }
.mosaic > :first-child .photo-card__title { font-size: var(--fs-3xl); }
.mosaic > :nth-child(2),
.mosaic > :nth-child(3) { grid-column: span 2; }

@media (max-width: 1080px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic > :first-child { grid-column: span 2; grid-row: span 1; min-height: 30rem; }
  .mosaic > :nth-child(2),
  .mosaic > :nth-child(3) { grid-column: span 1; }
}

@media (max-width: 600px) {
  .mosaic { grid-template-columns: minmax(0, 1fr); }
  .mosaic > * { grid-column: auto !important; }
}

.mosaic .photo-card { min-height: 100%; }

/* --- Cartes classiques (fiches, articles) --- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--c-line);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease-out);
}

.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

@media (prefers-reduced-motion: no-preference) {
  .card:hover { transform: translateY(-4px); }
}

.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-sand);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.card:hover .card__media img { transform: scale(1.05); }

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
}

.card__meta {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent-text);
}

.card__title { margin: 0; font-size: var(--fs-xl); }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }

.card__text {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.card__foot a { position: relative; z-index: 1; }

.card__foot {
  margin-top: auto;
  padding-top: var(--sp-3);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* --- Rangées de styles (page Architecture) --- */
.style-row {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--sp-8);
  align-items: center;
  padding-block: var(--sp-8);
  border-top: 1px solid var(--c-line);
}

.style-row:nth-of-type(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.style-row:nth-of-type(even) .style-row__media { order: 2; }

.style-row__index {
  display: block;
  margin-bottom: var(--sp-4);
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-style: italic;
  color: var(--accent);
}

.style-row h3 { font-size: var(--fs-2xl); }
.style-row p { color: var(--text-muted); max-width: 34rem; }

.style-row--text { grid-template-columns: minmax(0, 1fr) !important; }
.style-row--text > div { max-width: 46rem; }

@media (max-width: 860px) {
  .style-row,
  .style-row:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
  .style-row:nth-of-type(even) .style-row__media { order: 0; }
}

/* --- Bandeau image pleine largeur avec citation --- */
.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: min(80vh, 48rem);
  padding-block: var(--sp-9);
  background: var(--c-night);
  color: var(--c-ivory);
  --text: var(--c-ivory);
  --text-muted: #E6E1D8;
  --accent-text: var(--c-bronze-light);
  --focus: var(--c-ivory);
}

.band__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(12, 12, 12, 0.88) 0%, rgba(12, 12, 12, 0.55) 55%, rgba(12, 12, 12, 0.2) 100%);
}

.band__content { max-width: 40rem; }

.band__quote {
  margin: 0 0 var(--sp-6);
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  font-style: italic;
  line-height: 1.15;
}

.band__credit {
  position: absolute;
  right: var(--gutter);
  bottom: var(--sp-4);
  font-size: 0.75rem;
  color: rgba(247, 245, 240, 0.88);
}

.band__credit a { color: inherit; }

/* --- Étiquettes de statut --- */
.status {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  width: fit-content;
  padding: 0.3rem 0.75rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
}

.status::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: currentColor;
}

.status--pending { color: #F7F5F0; }
.status--live { color: var(--c-bronze-light); }

/* --- Encarts --- */
.notice {
  padding: var(--sp-6);
  border-left: 2px solid var(--accent);
  background: var(--bg-alt);
}

.notice > :last-child { margin-bottom: 0; }

.notice__title {
  margin-bottom: var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent-text);
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: var(--sp-4);
  padding: var(--sp-8) var(--sp-6);
  border: 1px solid var(--c-line);
  text-align: center;
  background: var(--bg-alt);
}

.empty-state > * { margin: 0; max-width: 36rem; }
.empty-state h3 { font-size: var(--fs-xl); }
.empty-state p { color: var(--text-muted); }

/* Encart « à venir » avec image */
.teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 30rem;
  background: var(--bg-alt);
  border: 1px solid var(--c-line);
}

.teaser__media { position: relative; overflow: hidden; min-height: 18rem; background: var(--c-sand); }
.teaser__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.teaser__body {
  display: grid;
  align-content: center;
  gap: var(--sp-4);
  padding: var(--sp-8) var(--sp-7);
}

.teaser__body > * { margin: 0; }
.teaser__body p { color: var(--text-muted); }

@media (max-width: 860px) {
  .teaser { grid-template-columns: minmax(0, 1fr); }
  .teaser__body { padding: var(--sp-6); }
}

/* --- Tuile publication (Magazine / Blog) --- */
.tile {
  position: relative;
  display: grid;
  gap: var(--sp-4);
  align-content: start;
}

.tile > * { margin: 0; }
.tile .media { aspect-ratio: 16 / 10; }
.tile .media img { transition: transform 1.4s var(--ease-out); }
.tile:hover .media img { transform: scale(1.04); }
.tile h3 { font-size: var(--fs-2xl); }
.tile p { color: var(--text-muted); max-width: 32rem; }

/* --- Liste éditoriale numérotée (types, quartiers, catégories) --- */
.feature-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: feature;
}

.feature-list > li {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: var(--sp-4);
  padding-block: var(--sp-6);
  border-top: 1px solid var(--c-line);
  counter-increment: feature;
  transition: padding 0.4s var(--ease-out);
}

.feature-list > li:last-child { border-bottom: 1px solid var(--c-line); }

.feature-list > li::before {
  content: counter(feature, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-style: italic;
  line-height: 1.2;
  color: var(--accent);
}

.feature-list h3 { margin-bottom: var(--sp-2); font-size: var(--fs-xl); }
.feature-list p { margin: 0; color: var(--text-muted); }
.feature-list p + p { margin-top: var(--sp-3); }

/* --- Thèmes (page d'accueil, section architecture) --- */
.theme-card {
  position: relative;
  display: grid;
  gap: var(--sp-4);
  align-content: start;
  height: 100%;
}

.theme-card > * { margin: 0; }
.theme-card .media { aspect-ratio: 3 / 4; }
.theme-card .media img { transition: transform 1.4s var(--ease-out); }
.theme-card:hover .media img { transform: scale(1.05); }
.theme-card h3 { font-size: var(--fs-xl); }
.theme-card h3 a { text-decoration: none; }
.theme-card h3 a::after { content: ""; position: absolute; inset: 0; }
.theme-card p { font-size: var(--fs-sm); color: var(--text-muted); }

.theme-card__index {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
}

/* --- Citation --- */
.pull {
  margin: var(--sp-7) 0;
  padding-left: var(--sp-6);
  border-left: 1px solid var(--accent);
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-style: italic;
  line-height: 1.4;
}

/* --- Annuaire des propriétés --- */
.directory-tools {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
  align-items: end;
  margin-bottom: var(--sp-6);
  padding: var(--sp-5);
  background: var(--bg-alt);
  border: 1px solid var(--c-line);
}

@media (max-width: 860px) {
  .directory-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .directory-tools__search { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .directory-tools { grid-template-columns: minmax(0, 1fr); }
}

.field {
  display: grid;
  gap: var(--sp-2);
}

.field label {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field input,
.field select {
  width: 100%;
  min-height: 3rem;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-ivory);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-sm);
}

.field input:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--c-anthracite);
}

.directory-count {
  margin-bottom: var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.directory-count strong {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--text);
}

.directory-more {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-7);
}

.directory-group + .directory-group { margin-top: var(--sp-8); }
.directory-group__title { font-size: var(--fs-xl); }

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-6);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.anchor-nav a { text-decoration: none; }
.anchor-nav a:hover { text-decoration: underline; }

.sticky-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  padding-block: var(--sp-4);
  background: rgba(247, 245, 240, 0.94);
  border-bottom: 1px solid var(--c-line);
  overflow-x: auto;
}

.sticky-nav .anchor-nav { flex-wrap: nowrap; white-space: nowrap; }

/* --- Fiche propriété --- */
.fact-sheet {
  margin: 0;
  border-top: 1px solid var(--c-line);
}

.fact-sheet__row {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(0, 2fr);
  gap: var(--sp-4);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--c-line);
}

.fact-sheet dt {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.fact-sheet dd { margin: 0; }

.aside-box {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-5));
  padding: var(--sp-6);
  background: var(--bg-alt);
  border: 1px solid var(--c-line);
}

.aside-box h2 { font-size: var(--fs-xl); }

.sources {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.sources h2 { font-size: var(--fs-xl); color: var(--text); }
.sources ol { padding-left: 1.2em; }
.sources li { margin-bottom: var(--sp-2); }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin: 0;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.78);
}

.toc {
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid var(--c-line);
  background: var(--bg-alt);
  font-size: var(--fs-sm);
}

.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: var(--sp-2); }

/* --- Galerie accessible --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery__item { margin: 0; }

.gallery__link {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-sand);
}

.gallery__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.gallery__link:hover img { transform: scale(1.04); }

.gallery__dialog {
  width: min(100% - 2rem, 72rem);
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  background: var(--c-night);
  color: var(--c-ivory);
}

.gallery__dialog::backdrop { background: rgba(12, 12, 12, 0.94); }

.gallery__stage {
  position: relative;
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-5);
}

.gallery__stage img {
  width: 100%;
  max-height: calc(100vh - 10rem);
  object-fit: contain;
}

.gallery__caption {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--c-grey-light);
}

.gallery__controls {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
}

.gallery__btn {
  min-height: 2.75rem;
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--c-line-dark);
  background: transparent;
  color: var(--c-ivory);
  font: inherit;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.gallery__btn:hover { border-color: var(--c-bronze-light); color: var(--c-bronze-light); }
.gallery__btn:focus-visible { outline: 2px solid var(--c-ivory); outline-offset: 2px; }

/* --- Pagination statique --- */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-7);
  padding: 0;
  list-style: none;
}

.pagination a,
.pagination span {
  display: inline-grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--c-line);
  text-decoration: none;
  font-size: var(--fs-sm);
}

.pagination [aria-current] {
  background: var(--c-anthracite);
  border-color: var(--c-anthracite);
  color: var(--c-ivory);
}

/* --- Catégories (pastilles) --- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.45rem 1rem;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--text);
  background: var(--bg-alt);
}

/* --- Crédits photographiques --- */
.credits-list {
  display: grid;
  gap: var(--sp-3);
  padding-left: 1.2em;
  font-size: var(--fs-sm);
}

.credits-list li::marker { color: var(--accent); }

/* --- Carrousel du hero (accueil) --- */
.slider {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--c-night);
  color: var(--c-ivory);
  --text: var(--c-ivory);
  --text-muted: #CFC9BE;
  --accent-text: var(--c-bronze-light);
  --focus: var(--c-ivory);
  --slide-duration: 7s;
}

.slider__slides {
  position: relative;
  /* Hauteur fixe, identique pour toutes les diapositives. */
  height: clamp(34rem, 100vh, 54rem);
  height: clamp(34rem, 100svh, 54rem);
}

.slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 1.2s var(--ease), visibility 0s linear 1.2s;
}

.slide.is-active {
  visibility: visible;
  opacity: 1;
  z-index: 1;
  transition: opacity 1.2s var(--ease), visibility 0s;
}

.slide__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

/* Voile renforcé côté texte : lisibilité garantie quelle que soit la photo. */
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 12, 12, 0.78) 0%, rgba(12, 12, 12, 0.55) 38%, rgba(12, 12, 12, 0.1) 72%),
    linear-gradient(180deg, rgba(12, 12, 12, 0.55) 0%, rgba(12, 12, 12, 0) 22%, rgba(12, 12, 12, 0) 68%, rgba(12, 12, 12, 0.75) 100%);
}

.slide__content {
  position: relative;
  display: grid;
  align-content: center;
  gap: clamp(0.75rem, 2.2vh, 1.5rem);
  height: 100%;
  padding-top: calc(var(--header-h) + var(--sp-5));
  padding-bottom: var(--sp-6);
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
}

/* Place réservée à la barre de miniatures. */
.slider.is-enhanced .slide__content { padding-bottom: 8.5rem; }

.slide__content > * { margin: 0; }
.slide__content .eyebrow { margin: 0; }

.slide__title {
  max-width: 17ch;
  /* Limitée par la largeur ET la hauteur de l'écran. */
  font-size: min(clamp(2.5rem, 1.1rem + 4.2vw, 5.75rem), 10vh);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.slide__title em { color: var(--c-bronze-light); }

.slide__lead {
  max-width: 34rem;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  line-height: 1.6;
  color: #F3F0EA;
}

.slide__content .hero__actions { margin-top: var(--sp-2); }

/* Crédit discret, en haut à droite sous l'en-tête. */
.slide__credit {
  position: absolute;
  top: calc(var(--header-h) + var(--sp-3));
  right: var(--gutter);
  max-width: min(26rem, 55%);
  font-size: 0.6875rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-align: right;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  color: rgba(247, 245, 240, 0.92);
}

.slide__credit a { color: inherit; }

@media (prefers-reduced-motion: no-preference) {
  .slide.is-active .slide__media img { animation: hero-zoom 10s var(--ease-out) both; }
  .slide.is-active .slide__content > * { animation: rise 1.1s var(--ease-out) both; }
  .slide.is-active .slide__content > :nth-child(2) { animation-delay: 0.12s; }
  .slide.is-active .slide__content > :nth-child(3) { animation-delay: 0.24s; }
  .slide.is-active .slide__content > :nth-child(4) { animation-delay: 0.36s; }
}

@media (max-width: 860px) {
  .slider.is-enhanced .slide__content { padding-bottom: 7.5rem; }
  .slide::after {
    background:
      linear-gradient(180deg, rgba(12, 12, 12, 0.55) 0%, rgba(12, 12, 12, 0.35) 30%, rgba(12, 12, 12, 0.6) 60%, rgba(12, 12, 12, 0.9) 100%);
  }
  .slide__lead {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .slide__credit { top: calc(var(--header-h) + var(--sp-2)); max-width: 75%; }
}

/* Téléphones à faible hauteur : on garde l'essentiel (titre, texte, bouton principal). */
@media (max-width: 600px) and (max-height: 760px) {
  .slide__content .eyebrow,
  .slide__content .hero__actions .link-arrow { display: none; }
}

/* Barre de commandes : pause, compteur, flèches, miniatures */
.slider__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  border-top: 1px solid rgba(247, 245, 240, 0.16);
  background: linear-gradient(180deg, rgba(12, 12, 12, 0), rgba(12, 12, 12, 0.45));
}

.slider__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
}

.slider__count {
  min-width: 4.5rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: rgba(247, 245, 240, 0.85);
}

.slider__count [data-slider-current] {
  font-size: 1.75rem;
  color: var(--c-ivory);
}

.slider__btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid rgba(247, 245, 240, 0.35);
  border-radius: 50%;
  background: transparent;
  color: var(--c-ivory);
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.slider__btn:hover {
  background: var(--c-ivory);
  border-color: var(--c-ivory);
  color: var(--c-night);
}

.slider__btn svg { width: 1rem; height: 1rem; }

.slider__pause .icon-play { display: none; }
.slider__pause.is-paused .icon-play { display: block; }
.slider__pause.is-paused .icon-pause { display: none; }

.slider__thumbs {
  display: flex;
  flex: 1;
  gap: var(--sp-2);
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.slider__thumbs::-webkit-scrollbar { display: none; }

.slider__thumb {
  position: relative;
  display: grid;
  gap: var(--sp-2);
  width: 8.5rem;
  padding: 0 0 var(--sp-3);
  border: 0;
  background: none;
  color: rgba(247, 245, 240, 0.85);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.slider__thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.65;
  filter: grayscale(0.3);
  transition: opacity 0.4s var(--ease), filter 0.4s var(--ease);
}

.slider__thumb-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slider__thumb:hover,
.slider__thumb[aria-current="true"] { color: var(--c-ivory); }

.slider__thumb:hover img,
.slider__thumb[aria-current="true"] img { opacity: 1; filter: none; }

/* Piste et barre de progression sous chaque miniature */
.slider__thumb::after,
.slider__progress {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
}

.slider__thumb::after { background: rgba(247, 245, 240, 0.2); }
.slider__thumb[aria-current="true"]::after { background: rgba(194, 169, 130, 0.55); }

.slider__progress {
  z-index: 1;
  background: var(--c-bronze-light);
  transform: scaleX(0);
  transform-origin: left;
}

.slider__thumb[aria-current="true"] .slider__progress { transform: scaleX(1); }

.slider__progress.is-running {
  animation: slide-progress var(--slide-duration) linear both;
}

.slider.is-paused .slider__progress.is-running { animation-play-state: paused; }

@keyframes slide-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 860px) {
  .slider__bar { flex-wrap: wrap; gap: var(--sp-3); }
  .slider__count { min-width: 0; margin-right: auto; }
  .slider__thumbs { order: 5; flex-basis: 100%; justify-content: stretch; }
  .slider__thumbs li { flex: 1; }
  /* Sur mobile, les miniatures deviennent de simples barres de progression. */
  .slider__thumb { width: 100%; min-height: 1.5rem; padding: 0; }
  .slider__thumb img,
  .slider__thumb-label { display: none; }
  .slider__thumb::after,
  .slider__progress { bottom: 0.65rem; }
  .slider__btn { width: 2.75rem; height: 2.75rem; }
}
