/* ==========================================================================
   Patricia Raffaello — site vitrine
   Identité : blanc (héro), or de la carte de visite #C19E60, sections sombres #131313.
   Typo : Lato ; accroche en script (Allura).
   ========================================================================== */

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
  --bg: #f5ede0;               /* fond du site : beige sable (plus de blanc) */
  --cream: #fbf7f0;            /* cartes, formulaires, fiches : crème clair sur le beige */
  --ink: #141414;
  --ink-soft: #262626;
  --muted: #666666;            /* texte secondaire sur beige (contraste ≥ 4,5:1 sur tous les beiges) */
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.16);
  --surface: #ede3d1;
  --warm: #efe5d4;
  --sand: #f5ede0;             /* beige du haut de page : en-tête et héro (le ciel de la photo s'y fond) */
  --sand-ink: #7a5d27;         /* or foncé lisible sur --sand (contraste 5,3:1) */

  --gold: #c19e60;             /* or de la carte : accents, sur fond sombre */
  --gold-dark: #7a5d27;        /* or foncé : petits textes sur beige (contraste ≥ 4,8:1) */
  --gold-soft: rgba(193, 158, 96, 0.14);

  --dark: #131313;
  --dark-2: #1c1c1c;
  --dark-line: rgba(255, 255, 255, 0.12);
  --on-dark: #f3efe7;
  --on-dark-muted: #b9b2a6;

  --ok: #1d6b3a;
  --ok-bg: #eaf5ee;
  --error: #b42318;
  --error-bg: #fdecea;

  --font: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --script: "Allura", "Segoe Script", "Brush Script MT", cursive;
  --max: 90rem;
  --gutter: clamp(1rem, 4.4vw, 4rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --radius: 4px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 4.25rem;

  --azulejo: #1f4e9c;          /* bleu azulejo : liserés (section Résidence) */
  --terracotta: #c4683f;       /* statut « sous compromis » (section Résidence) */
  --glow: rgba(255, 196, 120, 0.55); /* halo des logements allumés */
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

/* langue autre que le français : page masquée le temps d'appliquer les traductions */
html.i18n-wait body {
  opacity: 0;
}

html.has-dialog {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

p,
h1,
h2,
h3,
figure,
dl,
dd,
blockquote {
  margin: 0;
}

[hidden] {
  display: none !important;
}

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

[tabindex="-1"]:focus {
  outline: none;
}

.section--dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold);
}

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

/* champ piège anti-spam : rogné à 1 px, hors parcours clavier (tabindex -1) et masqué aux lecteurs
   d'écran (aria-hidden) ; si la feuille de style ne charge pas, son libellé demande de le laisser vide */
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--dark);
  color: #fff;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

main:focus {
  outline: none;
}

section[id],
article[id] {
  scroll-margin-top: var(--header-h);
}

.icon {
  flex: none;
  width: 1.125em;
  height: 1.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  /* bandeau noir, textes dorés */
  background: rgba(13, 13, 13, 0.95);
  color: #d9b46c;
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow 0.3s;
  animation: fade-down 0.9s var(--ease-out) both;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(193, 158, 96, 0.25), 0 12px 30px -24px rgba(0, 0, 0, 0.6);
}

.nav {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  max-width: var(--max);
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
}

/* Logo JRodeia Consulting : monogramme JR dans son cadre or + nom en Oswald */
.logo {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.6rem;
}

.logo__mark {
  width: 3.5rem;
  height: 1.75rem;
  flex: none;
}

.logo__text {
  background: linear-gradient(120deg, #f1d79a, #c19e60);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--gold);
  -webkit-text-fill-color: transparent;
  font-family: "Oswald", var(--font);
  font-size: 1.375rem;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav__panel {
  display: flex;
  flex: 1;
  align-items: center;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  font-size: 0.875rem;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0;
  color: #d9b46c;
  transition: color 0.2s;
}

.nav__link:hover {
  color: #f1d79a;
}

.chev {
  width: 0.75rem;
  height: 0.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease-out);
}

.nav__cta {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1.25rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(193, 158, 96, 0.6);
  border-radius: 999px;
  color: #e6c983;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}

.nav__cta svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.nav__cta:hover {
  background: rgba(193, 158, 96, 0.12);
  border-color: var(--gold);
}

/* Dropdowns */

.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: -0.75rem;
  min-width: 12rem;
  padding: 0.4rem;
  border: 1px solid rgba(193, 158, 96, 0.25);
  border-radius: 10px;
  background: #161616;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.3s var(--ease-out), visibility 0.2s;
}

/* bridge the gap so the menu doesn't close while the pointer travels to it */
.dropdown::before {
  content: "";
  position: absolute;
  inset: -0.6rem 0 auto;
  height: 0.6rem;
}

.dropdown a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  color: #d9b46c;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.dropdown a:hover {
  background: rgba(193, 158, 96, 0.1);
  color: #f1d79a;
}

.nav__link[aria-expanded="true"] + .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav__link[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

@media (hover: hover) and (min-width: 961px) {
  .has-dropdown:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .has-dropdown:hover .chev {
    transform: rotate(180deg);
  }
}

/* Burger (mobile only) */

.nav__burger {
  display: none;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: auto;
  margin-right: -0.5rem;
}

.nav__burger span {
  position: absolute;
  left: 0.6875rem;
  width: 1.125rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out);
}

.nav__burger span:first-child {
  top: 1rem;
}

.nav__burger span:last-child {
  top: 1.4375rem;
}

.site-header.is-open .nav__burger span:first-child {
  transform: translateY(0.21875rem) rotate(45deg);
}

.site-header.is-open .nav__burger span:last-child {
  transform: translateY(-0.21875rem) rotate(-45deg);
}

/* Sélecteur de langue FR · EN · PT */

.lang {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav__panel .lang {
  margin-left: auto;
}

.lang__btn {
  position: relative;
  min-width: 2rem;
  padding: 0.45rem 0.3rem;
  border-radius: 3px;
  color: rgba(217, 180, 108, 0.65);
  transition: color 0.2s;
}

.lang__btn::after {
  content: "";
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  bottom: 0.2rem;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
}

.lang__btn:hover {
  color: #f1d79a;
}

.lang__btn[aria-pressed="true"] {
  color: #f1d79a;
}

.lang__btn[aria-pressed="true"]::after {
  transform: none;
}

.lang__sep {
  color: var(--gold);
}

.lang--dark .lang__btn {
  color: var(--on-dark-muted);
}

.lang--dark .lang__btn:hover,
.lang--dark .lang__btn[aria-pressed="true"] {
  color: #fff;
}

/* ==========================================================================
   Hero (comportement inchangé : vidéo, masque, animations)
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--sand);
}

.hero .eyebrow {
  color: var(--sand-ink);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  grid-template-areas:
    "eyebrow eyebrow"
    "title text"
    "cta   .";
  column-gap: 3rem;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(2rem, 4.6vw, 4.5rem) var(--gutter) 0;
}

.hero__eyebrow {
  grid-area: eyebrow;
  margin-bottom: clamp(1rem, 1.8vw, 1.5rem);
  animation: fade-up 1s var(--ease-out) 0.1s both;
}

.hero__title {
  grid-area: title;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.015em;
}

/* each line rises out of its own mask */
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.hero__title .line > span {
  display: inline-block;
  animation: rise 1.2s var(--ease-out) both;
  animation-delay: 0.2s;
}

.hero__title .line:nth-child(2) > span {
  animation-delay: 0.32s;
}

.hero__text {
  grid-area: text;
  justify-self: end;
  max-width: 26rem;
  margin: 0.4em 0 0;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.6;
  animation: fade-up 1s var(--ease-out) 0.5s both;
}

.hero__actions {
  grid-area: cta;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2.25rem;
  margin-top: clamp(1.5rem, 2.8vw, 2.5rem);
  animation: fade-up 1s var(--ease-out) 0.62s both;
}

/* Photo band: the sky melts into the beige of the hero, house anchored to the bottom */

.hero__media {
  position: relative;
  z-index: 1;
  width: 100%;
  /* sous les boutons : pas de chevauchement avec le texte du héro */
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.hero__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1536 / 1024;
  max-height: min(80vh, 48vw);
  max-height: min(80svh, 48vw);
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  display: block;
  transform-origin: 50% 40%;
  animation: media-in 2.2s var(--ease-out) 0.15s both;
}

/* ==========================================================================
   Boutons et liens
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.3rem 2.6rem;
  border: 1px solid transparent;
  border-radius: 2px;
  background: #111;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 22px 30px -14px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  background: #262626;
  transform: translateY(-2px);
  box-shadow: 0 28px 36px -14px rgba(0, 0, 0, 0.5);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: progress;
  opacity: 0.65;
  transform: none;
}

.btn--gold {
  background: var(--gold);
  color: var(--dark);
  box-shadow: 0 22px 30px -16px rgba(0, 0, 0, 0.7);
}

.btn--gold:hover {
  background: #d1b277;
}

.btn--line {
  border-color: rgba(193, 158, 96, 0.7);
  background: transparent;
  color: var(--on-dark);
  box-shadow: none;
}

.btn--line:hover {
  border-color: var(--gold);
  background: rgba(193, 158, 96, 0.12);
  box-shadow: none;
}

.btn--outline {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.btn--outline:hover {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.btn--block {
  width: 100%;
}

.btn--small {
  padding: 0.95rem 1.5rem;
}

.btn .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.link-arrow svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--gold-dark);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease-out);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

.link {
  color: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.link:hover {
  color: var(--gold-dark);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  transition: border-color 0.2s, background 0.2s;
}

.pill .icon {
  color: #128c3e;
}

.pill:hover {
  border-color: #128c3e;
  background: #f1f8f3;
}

.pill--small {
  min-height: 2.25rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
}

.icon-btn {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.2s;
}

.icon-btn:hover {
  background: var(--surface);
}

.icon-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

/* ==========================================================================
   Sections : structure commune
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section);
}

.section--warm {
  background: var(--warm);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 2rem;
  height: 1px;
  background: var(--gold);
}

.eyebrow--center::after {
  content: "";
  flex: none;
  width: 2rem;
  height: 1px;
  background: var(--gold);
}

.section--dark .eyebrow {
  color: var(--gold);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end;
  gap: 1.5rem 4rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.section-head__main .eyebrow {
  margin-bottom: 1.1rem;
}

.section-head--center {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  margin-bottom: -0.25rem;
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 3.125rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.015em;
  white-space: pre-line;
  text-wrap: balance;
}

.section-text {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  white-space: pre-line;
}

.section-head > .section-text {
  justify-self: end;
}

.section-head--center > .section-text {
  justify-self: center;
}

.section--dark .section-text {
  color: var(--on-dark-muted);
}

/* filet or avec losange (vitrine) */
.rule,
.ornament {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold);
}

.rule::before,
.rule::after,
.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.rule i,
.ornament i {
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  background: currentColor;
  transform: rotate(45deg);
}

.ornament {
  width: 7rem;
}

/* ==========================================================================
   Nos biens : filtres, grille, cartes
   ========================================================================== */

.biens__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  min-height: 2.75rem;
  padding: 0.6rem 1.35rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.chip:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.biens__count {
  color: var(--muted);
  font-size: 0.875rem;
}

/* tri par prix (« Trier par ») */
.biens__sort {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.biens__sort select {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, var(--ink) 25%, transparent);
  border-radius: var(--radius);
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5l3-3' fill='none' stroke='%23777' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 0.75rem;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 2.6vw, 2.5rem) clamp(1.25rem, 2vw, 2rem);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  transition: box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out), border-color 0.3s;
}

.card:hover {
  border-color: rgba(193, 158, 96, 0.55);
  box-shadow: 0 30px 50px -34px rgba(0, 0, 0, 0.45);
  transform: translateY(-3px);
}

.card:focus-within {
  border-color: var(--gold);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface);
}

.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.04);
}

.card--off .card__media img {
  filter: grayscale(0.35);
}

.no-photo {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.6rem;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-size: 0.8125rem;
}

.no-photo svg {
  width: 2.25rem;
  height: 2.25rem;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  max-width: calc(100% - 2rem);
  padding: 0.4rem 0.7rem;
  border-radius: 2px;
  background: rgba(251, 247, 240, 0.94);
  color: var(--ink);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ruban de statut (réservé, sous compromis, vendu, vendu sur plan, loué, bientôt disponible, en construction) */
.ribbon {
  position: absolute;
  right: 0;
  bottom: 1rem;
  z-index: 1;
  padding: 0.45rem 0.9rem 0.45rem 1.35rem;
  background: var(--dark);
  color: var(--gold);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  clip-path: polygon(0.6rem 0, 100% 0, 100% 100%, 0.6rem 100%, 0 50%);
}

.ribbon--vendu,
.ribbon--vendu_sur_plan,
.ribbon--loue {
  background: var(--gold);
  color: var(--dark);
}

.card__count {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.55rem;
  border-radius: 2px;
  background: rgba(19, 19, 19, 0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.card__count svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem 1.4rem 1.4rem;
}

.card__meta {
  color: var(--gold-dark);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card__head {
  display: grid;
  gap: 0.3rem;
}

.card__title {
  min-width: 0;
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.3;
}

/* le lien du titre (/bien/<référence>) couvre toute la carte */
.card__open {
  text-align: left;
  color: inherit;
  text-decoration: none;
}

.card__open::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--radius);
}

.card__open:focus-visible {
  outline: none;
}

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

.card__price {
  font-size: 1.0625rem;
  font-weight: 700;
}

.price--request {
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card__place {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.card__place .icon {
  color: var(--gold-dark);
}

.specs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.15rem;
  margin-top: auto;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.specs li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.specs .icon {
  color: var(--gold-dark);
}

/* étiquette DPE aux couleurs officielles */
.dpe {
  display: inline-grid;
  place-items: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.35rem;
  border-radius: 2px;
  background: #ccc;
  color: var(--dark);
  font-size: 0.8125rem;
  font-weight: 900;
  line-height: 1;
}

/* chaque classe fixe le fond ET la lettre (étiquette et échelle de la fiche) :
   lettre sombre de A à F (5,0:1 à 15,9:1), blanche sur le vert foncé de A+ et le rouge de G (4,9:1) */
.dpe--Ap { background: #00843d; color: #fff; }
.dpe--A { background: #009a3d; color: var(--dark); }
.dpe--B { background: #51b847; color: var(--dark); }
.dpe--C { background: #ccd422; color: var(--dark); }
.dpe--D { background: #fff200; color: var(--dark); }
.dpe--E { background: #fdb913; color: var(--dark); }
.dpe--F { background: #ef7d22; color: var(--dark); }
.dpe--G { background: #e3001b; color: #fff; }

.spec-dpe__label {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* chargement */
.card--skeleton {
  pointer-events: none;
}

.card--skeleton:hover {
  box-shadow: none;
  transform: none;
}

.sk {
  display: block;
  border-radius: 3px;
  background: linear-gradient(90deg, #efefec 0, #f7f7f5 40%, #efefec 80%) 0 0 / 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.card--skeleton .card__media {
  border-radius: var(--radius) var(--radius) 0 0;
}

.card--skeleton .card__media .sk {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.sk--line {
  height: 0.9rem;
}

.sk--title {
  width: 70%;
  height: 1.25rem;
}

.sk--short {
  width: 40%;
}

/* vide / erreur */
.state {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.state svg {
  width: 2.5rem;
  height: 2.5rem;
  fill: none;
  stroke: var(--gold-dark);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.state p {
  max-width: 32rem;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

.state--error {
  border-color: rgba(180, 35, 24, 0.35);
  background: var(--error-bg);
}

.state--error svg {
  stroke: var(--error);
}

/* ==========================================================================
   Coup de cœur (bien en vitrine)
   ========================================================================== */

.vitrine {
  padding-top: 0;
}

.vitrine .rule {
  margin-bottom: var(--section);
}

.vitrine__title {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.feature + .feature {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.feature__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

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

.feature__media:hover img {
  transform: scale(1.03);
}

.feature__media::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.feature__thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.feature__thumbs img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}

.feature__body {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}

.feature__badge {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--gold-dark);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.feature__price {
  font-size: 1.375rem;
  font-weight: 700;
}

.feature__text {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.feature .specs {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.feature__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 0.5rem;
}

.ami-line {
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

/* licence sous la liste des biens */
.biens__ami {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

/* ==========================================================================
   Patricia Raffaello (section sombre, comme la carte de visite)
   ========================================================================== */

.patricia {
  overflow: hidden;
}

.patricia::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60rem 40rem at 85% 0%, rgba(193, 158, 96, 0.1), transparent 60%);
  pointer-events: none;
}

.patricia__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.patricia__portrait {
  position: relative;
  max-width: 34rem;
  margin: 0 1.25rem 1.25rem 0;
}

.patricia__portrait::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--gold);
  pointer-events: none;
}

.patricia__portrait img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1131 / 1095;
  object-fit: cover;
  background: var(--dark-2);
}

.patricia__body {
  display: grid;
  justify-items: start;
  gap: 1.15rem;
}

.patricia__name {
  font-size: clamp(2.25rem, 4.4vw, 3.75rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.patricia__titre {
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.6;
  text-transform: uppercase;
}

.script {
  font-family: var(--script);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.patricia__accroche {
  color: var(--gold);
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.15;
}

.patricia__bio {
  max-width: 38rem;
  color: var(--on-dark-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
  white-space: pre-line;
}

.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  width: 100%;
  margin-top: 0.75rem;
  border-top: 1px solid var(--dark-line);
}

.figure {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 1.25rem 1.25rem 0.25rem 0;
}

.figure dd {
  color: var(--gold);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.figure dt {
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.patricia__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-top: 0.75rem;
}

/* J. Rodeia (avant Patricia) : même présentation, portrait à droite (au-dessus du texte sur mobile) */
/* deux présentations à la suite : filet de séparation */
.patricia + .patricia {
  border-top: 1px solid var(--dark-line);
}

.patricia--inverse::before {
  background: radial-gradient(60rem 40rem at 15% 100%, rgba(193, 158, 96, 0.1), transparent 60%);
}

.patricia--inverse .patricia__inner {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.patricia--inverse .patricia__portrait {
  order: 2;
  justify-self: end;
  width: 100%;
}

.patricia--inverse .patricia__portrait img {
  /* portrait en hauteur (3:4) : cadre presque entier, aligné en haut pour ne jamais couper la tête */
  aspect-ratio: 4 / 5;
  object-position: center top;
}

/* ==========================================================================
   Services
   ========================================================================== */

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.6vw, 2.5rem);
}

.service {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.75rem, 3.4vw, 3rem);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: 0 30px 60px -50px rgba(0, 0, 0, 0.5);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-dark);
}

.service__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service__title {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.25;
}

.service__text {
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-line;
}

.service__contact {
  display: grid;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.service__person {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* photo du contact : portrait rond, cadré sur le visage */
.service__avatar {
  flex: none;
  width: 4rem;
  height: 4rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  background: var(--surface);
}

.service__who {
  display: grid;
  gap: 0.2rem;
}

.service__who > span {
  color: var(--gold-dark);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service__who strong {
  font-size: 1.0625rem;
}

.service__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.service__tel {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.2s;
}

.service__tel .icon {
  color: var(--gold-dark);
}

.service__tel:hover {
  color: var(--gold-dark);
}

.services__email {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--muted);
  text-align: center;
}

.services__email a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.25em;
}

.services__email a .icon {
  color: var(--gold-dark);
}

/* ==========================================================================
   Estimation / contact : mise en page en deux colonnes
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.split__text {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
}

@media (min-width: 961px) {
  .split__text {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.checks {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.checks li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink-soft);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--gold-soft);
}

.checks li::after {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: 0.38rem;
  width: 0.4rem;
  height: 0.65rem;
  border: solid var(--gold-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ==========================================================================
   Formulaires
   ========================================================================== */

.form {
  display: grid;
  gap: 1.15rem;
  min-width: 0;
}

.form--card {
  padding: clamp(1.5rem, 3.4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: 0 40px 70px -55px rgba(0, 0, 0, 0.55);
}

.form__title {
  font-size: 1.375rem;
  font-weight: 400;
}

.form__intro {
  color: var(--muted);
  font-size: 0.9375rem;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.15rem 1.25rem;
}

.form__grid .field {
  grid-column: span 3;
}

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

.form__grid .field--third {
  grid-column: span 2;
}

.field {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  min-width: 0;
}

.field label {
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.req {
  color: var(--gold-dark);
}

.opt {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid #c9c4bb;
  border-radius: 3px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.field select {
  padding-right: 2.5rem;
  -webkit-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-dark) 50%), linear-gradient(135deg, var(--gold-dark) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 52%, calc(100% - 0.95rem) 52%;
  background-size: 0.32rem 0.32rem;
  background-repeat: no-repeat;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #77726a;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #a39d92;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold-dark);
  outline: none;
  box-shadow: 0 0 0 3px rgba(193, 158, 96, 0.35);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
}

.field [aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.2);
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  color: var(--error);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.field__error::before {
  content: "!";
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 1rem;
  height: 1rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: var(--error);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 900;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.35rem;
}

.form__required {
  color: var(--muted);
  font-size: 0.8125rem;
}

.form__status:empty {
  display: none;
}

.form__status {
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  background: var(--warm);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.form__status[data-type="success"] {
  border-color: var(--ok);
  background: var(--ok-bg);
  color: var(--ok);
}

.form__status[data-type="error"] {
  border-color: var(--error);
  background: var(--error-bg);
  color: var(--error);
}

.form__privacy {
  color: var(--muted);
  font-size: 0.8125rem;
}

/* ==========================================================================
   Avis
   ========================================================================== */

.avis__summary {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
  text-align: right;
}

.avis__average {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.avis__google {
  color: var(--muted);
  font-size: 0.875rem;
}

.avis__google a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.2em;
}

.stars {
  display: inline-flex;
  gap: 0.15rem;
  color: var(--gold);
}

.stars svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.stars .off {
  color: #ddd6c8;
}

.avis__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2vw, 2rem);
}

.review {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.review__text {
  position: relative;
  flex: 1;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.review__text::before {
  content: "\201C";
  display: block;
  height: 2.25rem;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.5rem;
  line-height: 1;
}

.review__who {
  display: grid;
  gap: 0.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.review__author {
  font-weight: 700;
}

.review__meta {
  color: var(--muted);
  font-size: 0.8125rem;
}

.review__translated {
  color: var(--muted);
  font-size: 0.75rem;
  font-style: italic;
}


/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  border-top: 1px solid var(--line);
}

.contact-list {
  display: grid;
  width: 100%;
  margin-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.contact-item {
  display: grid;
  gap: 0.3rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-item--inline {
  grid-template-columns: minmax(7.5rem, auto) minmax(0, 1fr);
  align-items: baseline;
  gap: 0.25rem 1.25rem;
}

.contact-item__label {
  color: var(--gold-dark);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-item__who {
  color: var(--ink-soft);
}

.contact-item__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.contact-item__value {
  font-size: 1.1875rem;
  font-weight: 700;
  transition: color 0.2s;
}

.contact-item__value:hover {
  color: var(--gold-dark);
}

.contact-item__value--mail {
  overflow-wrap: anywhere;
}

/* ==========================================================================
   Pied de page (sombre)
   ========================================================================== */

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(3.5rem, 7vw, 6rem);
  background: var(--dark);
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
}

/* fond vidéo : côte de l'Algarve au ralenti, sous un voile sombre (textes lisibles) */
.footer__bg {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.footer__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

.footer__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(19, 19, 19, 0.92) 0%, rgba(19, 19, 19, 0.74) 45%, rgba(19, 19, 19, 0.9) 100%);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 1.1fr);
  gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.footer__brand {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 0.6rem;
}

.brand-logo {
  width: min(13.5rem, 100%);
  height: auto;
  margin-bottom: 0.4rem;
}

.brand-logo__name {
  font-family: "Oswald", var(--font);
  font-size: 34px;
  font-weight: 300;
  letter-spacing: 0.4px;
}

.brand-logo__activity {
  font-family: var(--font);
  font-size: 13.5px;
}


.footer__ami {
  margin-top: 0.4rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(193, 158, 96, 0.6);
  border-radius: 2px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__title {
  margin-bottom: 1.1rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer__list {
  display: grid;
  gap: 1rem;
}

.footer__list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.9rem;
}

.footer__label {
  flex-basis: 100%;
  font-size: 0.8125rem;
}

.footer__list a {
  color: #fff;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}

.footer__list a:hover {
  color: var(--gold);
}

.footer__list--links {
  gap: 0.6rem;
}

.footer__agent {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 0.5rem;
}

.footer__name {
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer__accroche {
  margin: 0.25rem 0 0.5rem;
  color: var(--gold);
  font-size: 1.75rem;
  line-height: 1.2;
}

.footer__agent .lang {
  margin-left: -0.3rem;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--dark-line);
  border-radius: 50%;
  color: var(--on-dark);
  transition: border-color 0.2s, color 0.2s;
}

.socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.socials svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--dark-line);
  font-size: 0.8125rem;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer__legal .link,
.footer__legal a {
  color: var(--on-dark-muted);
  text-decoration: underline;
  text-decoration-color: rgba(193, 158, 96, 0.6);
  text-underline-offset: 0.2em;
}

.footer__legal .link:hover,
.footer__legal a:hover {
  color: #fff;
}

/* ==========================================================================
   Boîtes de dialogue : fiche d'un bien, mentions légales
   ========================================================================== */

dialog {
  padding: 0;
  border: 0;
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(10, 10, 10, 0.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.fiche {
  width: min(76rem, calc(100% - 2rem));
  max-width: none;
  height: calc(100% - 2rem);
  max-height: 56rem;
  margin: auto;
  overflow: hidden;
  border-radius: 6px;
  background: var(--cream);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
}

.fiche[open] {
  display: flex;
  flex-direction: column;
  animation: dialog-in 0.45s var(--ease-out) both;
}

.fiche__bar {
  display: flex;
  flex: none;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0.75rem 0.6rem clamp(1rem, 2.4vw, 2rem);
  border-bottom: 1px solid var(--line);
}

.fiche__ref {
  margin-right: auto;
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fiche__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Galerie */
.gallery {
  position: relative;
  background: var(--dark);
}

.gallery__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 62vh;
  max-height: 62svh;
  width: 100%;
  overflow: hidden;
}

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

.gallery__stage .no-photo {
  color: var(--on-dark-muted);
}

.gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(251, 247, 240, 0.9);
  color: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transform: translateY(-50%);
  transition: background 0.2s, transform 0.3s var(--ease-out);
}

.gallery__nav:hover {
  background: var(--cream);
}

.gallery__nav svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery__nav--prev {
  left: 1rem;
}

.gallery__nav--next {
  right: 1rem;
}

.gallery__nav:focus-visible {
  outline-color: var(--gold);
  outline-offset: 2px;
}

.gallery__counter {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
  background: rgba(19, 19, 19, 0.75);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem clamp(1rem, 2.4vw, 2rem);
  overflow-x: auto;
  scrollbar-width: thin;
}

.gallery__thumb {
  flex: none;
  width: 5.5rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  opacity: 0.55;
  outline-offset: 2px;
  transition: opacity 0.2s;
}

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

.gallery__thumb:hover,
.gallery__thumb[aria-current="true"] {
  opacity: 1;
}

.gallery__thumb[aria-current="true"] {
  box-shadow: 0 0 0 2px var(--gold);
}

.gallery__thumb:focus-visible {
  outline-color: var(--gold);
}

/* Contenu de la fiche */
.fiche__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(1.5rem, 3.4vw, 3rem) clamp(1rem, 3.4vw, 3rem) clamp(2rem, 4vw, 3.5rem);
}

.fiche__main {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}

.fiche__head {
  display: grid;
  gap: 0.6rem;
}

.fiche__title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.fiche__price {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 700;
}

.fiche__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--ink-soft);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag--gold {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.tag--dark {
  border-color: var(--dark);
  background: var(--dark);
  color: var(--gold);
}

.fiche__h {
  margin-bottom: 0.85rem;
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  border-top: 1px solid var(--line);
}

.facts > div {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.facts dt .icon {
  color: var(--gold-dark);
}

.facts dd {
  font-weight: 700;
}

.fiche__desc {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.75;
  white-space: pre-line;
}

/* échelle DPE */
.dpe-scale {
  display: grid;
  gap: 0.3rem;
  max-width: 24rem;
}

.dpe-scale__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dpe-scale__bar {
  display: flex;
  align-items: center;
  height: 1.5rem;
  padding: 0 0.55rem;
  font-size: 0.8125rem;
  font-weight: 900;
  clip-path: polygon(0 0, calc(100% - 0.6rem) 0, 100% 50%, calc(100% - 0.6rem) 100%, 0 100%);
}

.dpe-scale__row.is-current .dpe-scale__bar {
  height: 2.1rem;
  font-size: 1.0625rem;
  box-shadow: inset 0 0 0 2px rgba(19, 19, 19, 0.85);
}

.dpe-scale__row.is-current::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 0.45rem solid transparent;
  border-bottom: 0.45rem solid transparent;
  border-right: 0.6rem solid var(--dark);
}

.dpe-scale__note {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.fiche__ami {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}

.fiche__aside {
  position: sticky;
  top: 1.5rem;
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.fiche__aside .form {
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  background: var(--warm);
}

.fiche__direct {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.fiche__direct a {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  transition: border-color 0.2s, background 0.2s;
}

.fiche__direct a:hover {
  border-color: var(--gold);
  background: var(--warm);
}

.fiche__direct .icon {
  color: var(--gold-dark);
}

/* Mentions légales */
.legal {
  width: min(46rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100% - 2rem);
  margin: auto;
  overflow: hidden;
  border-radius: 6px;
  background: var(--cream);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
}

.legal[open] {
  display: flex;
  flex-direction: column;
  animation: dialog-in 0.4s var(--ease-out) both;
}

.legal__head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.75rem 1rem clamp(1.25rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}

.legal__title {
  font-size: 1.375rem;
  font-weight: 400;
}

.legal__body {
  flex: 1;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  overflow-y: auto;
  color: var(--ink-soft);
  line-height: 1.7;
}

.legal__body p {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.legal__foot {
  display: flex;
  flex: none;
  justify-content: flex-end;
  padding: 1rem clamp(1.25rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   Motion
   ========================================================================== */

@keyframes rise {
  from {
    transform: translateY(110%);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes media-in {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) and (min-width: 961px) {
  .nav {
    gap: 2rem;
  }

  .nav__menu {
    gap: 1.6rem;
  }

  .nav__cta {
    margin-left: 0.75rem;
  }

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

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

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

@media (max-width: 960px) {
  .nav {
    gap: 1rem;
  }

  .nav__burger {
    display: block;
  }

  .nav__panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100svh - var(--header-h));
    padding: 0.5rem var(--gutter) 1.5rem;
    overflow-y: auto;
    border-bottom: 1px solid rgba(193, 158, 96, 0.25);
    background: #0f0f0f;
    box-shadow: 0 30px 40px -30px rgba(0, 0, 0, 0.6);
  }

  .site-header.is-open .nav__panel {
    display: flex;
    animation: fade-down 0.4s var(--ease-out) both;
  }

  .nav__menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: 1rem;
  }

  .nav__menu > li {
    border-bottom: 1px solid rgba(193, 158, 96, 0.2);
  }

  .nav__link {
    width: 100%;
    padding: 0.9rem 0;
  }

  .nav__link .chev {
    margin-left: auto;
  }

  .dropdown {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 0.6rem 0.75rem;
    border: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dropdown::before {
    content: none;
  }

  .nav__link[aria-expanded="true"] + .dropdown {
    display: block;
  }

  .nav__panel .lang {
    align-self: flex-start;
    margin: 1rem 0 0 -0.3rem;
    font-size: 0.875rem;
  }

  .lang__btn {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  .nav__cta {
    align-self: flex-start;
    margin: 1rem 0 0;
    font-size: 1rem;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .section-head > .section-text {
    justify-self: start;
  }

  .section-head--center > .section-text {
    justify-self: center;
  }

  .avis__summary {
    justify-items: start;
    text-align: left;
  }

  .feature,
  .patricia__inner,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .patricia__portrait {
    width: min(calc(100% - 1.25rem), 26rem);
  }

  .patricia--inverse .patricia__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .patricia--inverse .patricia__portrait {
    order: 0;
    justify-self: start;
  }

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

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

  .fiche__aside {
    position: static;
  }

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

@media (max-width: 900px) {
  /* the video band fills whatever height the viewport has left */
  .hero {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
  }

  .hero__inner {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "eyebrow"
      "title"
      "text"
      "cta";
    padding-top: clamp(1.5rem, 6vw, 3rem);
  }

  .hero__title {
    font-size: clamp(2.125rem, 9vw, 3.25rem);
  }

  .hero__text {
    justify-self: start;
    margin-top: 1.25rem;
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero__media {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 1.5rem;
  }

  .hero__frame {
    flex: 1;
    aspect-ratio: auto;
    min-height: 20rem;
    max-height: none;
  }

  .hero__img {
    position: absolute;
    inset: 0;
    object-position: 38% 30%;
  }
}

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

  .biens__bar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .form__grid .field,
  .form__grid .field--third {
    grid-column: 1 / -1;
  }

  .btn {
    padding: 1.15rem 1.75rem;
  }

  .form__foot .btn {
    width: 100%;
  }

  .contact-item--inline {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* fiche en plein écran sur mobile */
  .fiche,
  .legal {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }

  .legal {
    height: auto;
    max-height: 100%;
    margin: auto 0 0;
    border-radius: 8px 8px 0 0;
  }

  .gallery__stage {
    aspect-ratio: 4 / 3;
  }

  .gallery__nav {
    width: 2.5rem;
    height: 2.5rem;
  }

  .gallery__nav--prev {
    left: 0.5rem;
  }

  .gallery__nav--next {
    right: 0.5rem;
  }

  .fiche__bar .lang {
    font-size: 0.6875rem;
  }

  .fiche__bar .lang__btn {
    min-width: 2.25rem;
    min-height: 2.5rem;
  }

  .feature__thumbs {
    display: none;
  }
}

@media (max-width: 380px) {
  .fiche__ref {
    display: none;
  }

  .fiche__bar .lang {
    margin-right: auto;
  }

  .service__tel,
  .contact-item__value {
    font-size: 1.0625rem;
  }
}

/* ==========================================================================
   Résidence interactive
   Image d'un programme neuf ; chaque logement est une
   zone SVG (coordonnées en % de l'image) reliée à un bien de l'admin (js/residence.js).
   ========================================================================== */

.residence {
  overflow: hidden;
}

.residence__head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.residence__line {
  display: block;
}

.residence__name {
  color: var(--gold);
  font-family: var(--script);
  font-size: 1.4em;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}

.residence__intro {
  max-width: 38rem;
  color: var(--on-dark-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* en-tête : révélé à l'entrée dans l'écran */
.residence:not(.is-in) .residence__line,
.residence:not(.is-in) .residence__intro {
  opacity: 0;
}

.residence.is-in .residence__line {
  animation: residenceLine 1.1s var(--ease-out) 0.15s both;
}

.residence.is-in .residence__line + .residence__line {
  animation-delay: 0.3s;
}

.residence.is-in .residence__intro {
  animation: fade-in 1s var(--ease-out) 0.5s both;
}

@keyframes residenceLine {
  from { opacity: 0; transform: translateY(28px); filter: blur(12px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* ── Scène ─────────────────────────────────────────────────────────────── */

.residence__frame {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.residence__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dark-2);
}

.residence__canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.residence__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 60%;
}

.residence.is-in .residence__img {
  animation: residenceZoom 2.2s var(--ease-out) both;
}

@keyframes residenceZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

/* images absentes : cadre de remplacement, contours visibles en permanence */
.residence__placeholder {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  margin: 0;
  /* tant que le visuel de la résidence manque : carte de l'Algarve (données Natural Earth) */
  background:
    linear-gradient(180deg, rgba(13, 13, 13, 0.3) 0%, rgba(13, 13, 13, 0.3) 70%, rgba(13, 13, 13, 0.8) 100%),
    url("../assets/residence/carte-algarve.webp") center / cover no-repeat,
    var(--dark-2);
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  align-content: end;
  padding-bottom: 4%;
}

.residence.no-image .residence__placeholder {
  display: grid;
}

.residence.no-image .residence__img {
  visibility: hidden;
}

.residence.no-image .residence__zone:not(.is-off) {
  stroke-dashoffset: 0;
  stroke-opacity: 0.35;
}

.residence.no-image .residence__zone.is-on {
  stroke-opacity: 1;
  fill: rgba(193, 158, 96, 0.12);
}

/* ── Couches SVG ───────────────────────────────────────────────────────── */

.residence__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.residence__veil {
  fill: rgba(10, 10, 10, 0.35);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.residence.is-hovering .residence__veil {
  opacity: 1;
  transition-duration: 0.5s;
}

/* vendu / loué : logement en niveaux de gris */
.residence__grey {
  opacity: 0;
  filter: grayscale(1) brightness(0.8);
}

.residence__grey.is-on {
  opacity: 1;
}

.residence__zone {
  fill: transparent;
  stroke: var(--gold);
  stroke-width: 0.25;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dashoffset: var(--len, 0);
  pointer-events: all;
  cursor: pointer;
  transition: stroke-dashoffset 0.4s var(--ease-out), filter 0.4s var(--ease-out), fill 0.4s;
}

.residence__zone.is-off {
  pointer-events: none;
  stroke-opacity: 0;
}

.residence__zone[data-statut="sous_compromis"] {
  stroke: var(--terracotta);
}

.residence__zone[data-statut="vendu"],
.residence__zone[data-statut="loue"] {
  stroke: var(--on-dark-muted);
}

.residence__zone.is-on,
.residence__zone.is-sweep {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.9s var(--ease-out), filter 0.6s var(--ease-out), fill 0.4s;
}

/* logement survolé : contour or, halo et voile doré (le reste est assombri) */
.residence__zone.is-on {
  fill: rgba(193, 158, 96, 0.16);
  filter: drop-shadow(0 0 6px var(--glow));
}

/* ── Pastilles ─────────────────────────────────────────────────────────── */

.residence__pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.residence__pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: rgba(19, 19, 19, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--on-dark);
  font: 700 0.875rem/1 var(--font);
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.4s var(--ease-out), background 0.3s, border-color 0.3s;
}

.residence.pins-in .residence__pin {
  transform: translate(-50%, -50%) scale(1);
  animation: pinIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--i, 0) * 0.08s) both;
}

@keyframes pinIn {
  from { transform: translate(-50%, -50%) scale(0); }
  to   { transform: translate(-50%, -50%) scale(1); }
}

.residence__pin::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  animation: pinPulse 2.4s ease-out calc(var(--i, 0) * 0.3s) infinite;
  pointer-events: none;
}

@keyframes pinPulse {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}

.residence.pins-in .residence__pin.is-on {
  animation: none;
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(19, 19, 19, 0.9);
}

.residence__pin.is-on::before {
  animation: none;
  opacity: 0;
}

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

.residence__pin[data-statut="sous_compromis"],
.residence__pin[data-statut="sous_compromis"]::before {
  border-color: var(--terracotta);
}

.residence__pin[data-statut="bientot_disponible"] {
  border-style: dashed;
}

.residence__pin[data-statut="vendu"],
.residence__pin[data-statut="loue"] {
  border-color: var(--on-dark-muted);
  color: var(--on-dark-muted);
}

.residence__pin[data-statut="vendu"]::before,
.residence__pin[data-statut="loue"]::before {
  border-color: var(--on-dark-muted);
  animation: none;
  opacity: 0;
}

/* pastille barrée */
.residence__pin[data-statut="vendu"]::after,
.residence__pin[data-statut="loue"]::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 50%;
  height: 1px;
  background: var(--on-dark-muted);
  transform: rotate(-35deg);
}

/* ── Infobulle ─────────────────────────────────────────────────────────── */

.residence__tip {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  margin: 0;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  background: rgba(19, 19, 19, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--on-dark);
  font-size: 0.8125rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.residence__tip.is-on {
  opacity: 1;
  transform: none;
}

.residence__tip strong {
  font-weight: 700;
}

/* ── Indication de défilement (mobile) ─────────────────────────────────── */

.residence__hint {
  display: none;
}

/* ── Erreur ────────────────────────────────────────────────────────────── */

.residence__error {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  width: min(24rem, calc(100% - 2 * var(--gutter) - 2rem));
  padding: 1.5rem;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  background: rgba(19, 19, 19, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-align: center;
  transform: translate(-50%, -50%);
}

.residence__error p {
  color: var(--on-dark);
}

/* ── Panneau d'offre ───────────────────────────────────────────────────── */

.residence__panel {
  position: absolute;
  z-index: 4;
  top: 1.5rem;
  right: calc(var(--gutter) + 1.5rem);
  bottom: 1.5rem;
  width: min(24rem, 38%);
  overflow: hidden auto;
  overscroll-behavior: contain;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  background: rgba(19, 19, 19, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  color: var(--on-dark);
  opacity: 0;
  transform: translateX(24px);
  filter: blur(8px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), filter 0.4s var(--ease-out);
}

.residence__panel.is-left {
  right: auto;
  left: calc(var(--gutter) + 1.5rem);
  transform: translateX(-24px);
}

.residence__panel.is-open {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition-duration: 0.55s;
}

.residence__handle {
  display: none;
}

.residence__close {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--dark-line);
  border-radius: 50%;
  background: rgba(19, 19, 19, 0.7);
  color: var(--on-dark);
  cursor: pointer;
}

.residence__close svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.residence__panel-body {
  transition: opacity 0.15s;
}

.residence__panel.is-swapping .residence__panel-body {
  opacity: 0;
}

.residence__photo {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--dark-2);
}

.residence__photo img,
.residence__photo-empty {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.residence__photo-empty {
  background: linear-gradient(135deg, #262626, var(--dark-2));
}

/* vidéo de la résidence, premier média du carrousel */
.residence__media {
  width: 100%;
  height: 100%;
}

.residence__media video,
.residence__media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  object-fit: contain;
}

/* sur une vidéo, flèches et compteur laissent la place aux commandes du lecteur */
.residence__photo.is-video .residence__photo-btn {
  top: 40%;
}

.residence__photo.is-video .residence__photo-tags {
  pointer-events: none;
}

.residence__photo.is-video .residence__photo-count {
  bottom: 3.4rem;
}

.residence__panel.is-fresh .residence__photo img {
  animation: residencePhoto 1.2s var(--ease-out) both;
}

@keyframes residencePhoto {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

.residence__photo-btn {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-top: -1.125rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.6);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.residence__photo-btn:hover,
.residence__photo-btn:focus-visible {
  border-color: var(--gold);
  background: rgba(17, 17, 17, 0.85);
}

.residence__photo-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.residence__photo-btn .icon {
  width: 1.1rem;
  height: 1.1rem;
}

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

.residence__photo-count {
  position: absolute;
  right: 0.75rem;
  bottom: 0.6rem;
  padding: 0.15rem 0.5rem;
  border-radius: 1rem;
  background: rgba(17, 17, 17, 0.6);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.residence__photo-tags {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: calc(100% - 4.5rem);
}

.residence__photo-num,
.residence__photo-badge {
  padding: 0.35rem 0.6rem;
  border-radius: 2px;
  background: rgba(19, 19, 19, 0.8);
  color: var(--on-dark);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.residence__photo-badge {
  background: var(--gold);
  color: var(--dark);
}

.residence__sold {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem 1rem;
  background: rgba(19, 19, 19, 0.85);
  color: var(--on-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
}

.residence__panel-content {
  display: grid;
  gap: 0.85rem;
  padding: 1.25rem 1.5rem 1.5rem;
}

.residence__panel.is-fresh .residence__panel-item {
  animation: residenceItem 0.4s var(--ease-out) calc(var(--i, 0) * 0.06s) both;
}

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

.residence__ref {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant: small-caps;
  letter-spacing: 0.12em;
}

.residence__panel-title {
  color: var(--on-dark);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.25;
}

.residence__loc {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--on-dark-muted);
  font-size: 0.875rem;
}

.residence__loc .icon {
  flex: none;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
}

.residence__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-block: 1px solid var(--dark-line);
}

.residence__facts > div {
  padding: 0.7rem 0.5rem;
  text-align: center;
}

.residence__facts > div + div {
  border-left: 1px solid var(--dark-line);
}

.residence__facts dt {
  color: var(--on-dark-muted);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.residence__facts dd {
  margin: 0.25rem 0 0;
  color: var(--on-dark);
  font-size: 1rem;
  font-weight: 700;
}

.residence__price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.residence__price-value {
  color: var(--gold);
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1.1;
}

.residence__badge {
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--on-dark);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.residence__badge[data-statut="sous_compromis"] {
  border-color: var(--terracotta);
}

.residence__badge[data-statut="bientot_disponible"] {
  border-style: dashed;
}

.residence__badge[data-statut="vendu"],
.residence__badge[data-statut="loue"] {
  border-color: var(--on-dark-muted);
  color: var(--on-dark-muted);
}

.residence__desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* texte court (résidence à venir ou vendue) : affiché en entier */
.residence__desc--full {
  display: block;
}

.residence__count {
  margin: 0;
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* logements de la résidence : une ligne par logement, clic → fiche complète */
.residence__units {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.residence__unit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(193, 158, 96, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  color: var(--on-dark);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.residence__unit:hover,
.residence__unit:focus-visible {
  border-color: var(--gold);
  background: rgba(193, 158, 96, 0.08);
}

.residence__unit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.residence__unit-main {
  display: grid;
  flex: 1;
  gap: 0.15rem;
  min-width: 0;
}

.residence__unit-title {
  font-size: 0.9375rem;
  line-height: 1.3;
}

.residence__unit-meta {
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
}

.residence__unit-side {
  display: grid;
  justify-items: end;
  gap: 0.3rem;
  flex: none;
}

.residence__unit-price {
  color: var(--gold);
  font-size: 0.9375rem;
  white-space: nowrap;
}

.residence__unit .icon {
  flex: none;
  width: 1rem;
  height: 1rem;
  color: var(--gold);
}

.residence__lot-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(193, 158, 96, 0.18);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
}

.residence__empty,
.residence__note {
  margin: 1rem auto 0;
  max-width: 40rem;
  color: var(--on-dark-muted);
  font-size: 0.875rem;
  text-align: center;
}

.residence__note {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

.residence__actions {
  display: grid;
  gap: 0.6rem;
}

.residence__actions .btn {
  width: 100%;
}

.residence__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--dark-line);
}

.residence__nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.75rem;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: var(--on-dark);
  font: 400 0.8125rem/1.2 var(--font);
  cursor: pointer;
}

.residence__nav-btn:hover {
  color: var(--gold);
}

.residence__nav-btn .icon {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.residence__nav-count {
  color: var(--on-dark-muted);
  font-size: 0.75rem;
}

.residence__backdrop {
  display: none;
}

/* ── Liste des logements et légende ────────────────────────────────────── */

.residence__lots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.residence:not(.is-in) .residence__lots li {
  opacity: 0;
}

.residence.is-in .residence__lots li {
  animation: fade-up 0.6s var(--ease-out) calc(0.4s + var(--i, 0) * 0.04s) both;
}

.residence__lot {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0 1rem 0 0.4rem;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--on-dark);
  font: 400 0.875rem/1 var(--font);
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}

.residence__lot-num {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.8125rem;
}

.residence__lot.is-on {
  border-color: var(--gold);
  background: rgba(193, 158, 96, 0.12);
}

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

.residence__dot,
.residence__legend-item::before {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
}

.residence__lot[data-statut="sous_compromis"] .residence__dot,
.residence__lot[data-statut="reserve"] .residence__dot { background: var(--terracotta); }
.residence__lot[data-statut="bientot_disponible"] .residence__dot { background: transparent; border: 1px dashed var(--gold); }
.residence__lot[data-statut="vendu"] .residence__dot,
.residence__lot[data-statut="loue"] .residence__dot { background: var(--on-dark-muted); }
.residence__lot[data-statut="vendu"],
.residence__lot[data-statut="loue"] { color: var(--on-dark-muted); }

.residence__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.25rem;
  margin-top: 1.25rem;
  color: var(--on-dark-muted);
  font-size: 0.75rem;
}

.residence__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.residence__legend-item::before {
  content: "";
}

.residence__legend-item--sous_compromis::before { background: var(--terracotta); }
.residence__legend-item--vendu::before { background: var(--on-dark-muted); }
.residence__legend-item--bientot_disponible::before { background: transparent; border: 1px dashed var(--gold); }

.residence__ami {
  margin-top: 1rem;
  color: var(--on-dark-muted);
  text-align: center;
}

/* ── Tablette et mobile : feuille en bas d'écran, pas d'infobulle ──────── */

@media (max-width: 960px) {
  .residence__tip {
    display: none;
  }

  .residence__panel,
  .residence__panel.is-left {
    position: fixed;
    z-index: 60;
    inset: auto 0 0 0;
    width: auto;
    max-height: 82vh;
    max-height: 82dvh;
    overflow: auto;
    border-width: 1px 0 0;
    border-radius: 1rem 1rem 0 0;
    background: rgba(19, 19, 19, 0.94);
    filter: none;
    transform: translateY(100%);
    transition: transform 0.45s var(--ease-out), opacity 0.3s;
  }

  .residence__panel.is-open {
    transform: translateY(0);
  }

  .residence__handle {
    display: block;
    position: sticky;
    z-index: 3;
    top: 0;
    width: 2.5rem;
    height: 4px;
    margin: 0.6rem auto -1rem;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.35);
  }

  .residence__backdrop {
    display: block;
    position: fixed;
    z-index: 59;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.3s;
  }

  .residence__backdrop.is-open {
    opacity: 1;
  }

  html.residence-sheet-open {
    overflow: hidden;
  }

}

/* ── Petit écran : cadre défilant, image à 180 % ───────────────────────── */

@media (max-width: 640px) {
  .residence__frame {
    padding-inline: 0;
  }

  .residence__stage {
    aspect-ratio: auto;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 0;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

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

  .residence__canvas {
    width: 180%;
    scroll-snap-align: center;
  }

  .residence__hint {
    position: absolute;
    z-index: 2;
    top: 0.75rem;
    left: 50%;
    display: block;
    margin: 0;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(19, 19, 19, 0.7);
    color: var(--on-dark);
    font-size: 0.75rem;
    white-space: nowrap;
    transform: translateX(-50%);
    transition: opacity 0.4s;
    pointer-events: none;
  }

  .residence__hint.is-hidden {
    opacity: 0;
  }


  .residence__error {
    width: calc(100% - 2rem);
  }

  .residence__lots {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0.25rem var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

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

  .residence__lots li {
    flex: none;
    scroll-snap-align: start;
  }
}

/* ── Mouvement réduit : simples fondus, contours affichés sans être dessinés ── */

@media (prefers-reduced-motion: reduce) {
  .residence .residence__img,
  .residence .residence__line,
  .residence .residence__intro,
  .residence .residence__lots li,
  .residence .residence__pin,
  .residence .residence__pin::before,
  .residence .residence__panel-item,
  .residence .residence__photo img {
    animation: none !important;
  }

  .residence .residence__line,
  .residence .residence__intro,
  .residence .residence__lots li {
    opacity: 1 !important;
  }

  .residence .residence__pin {
    transform: translate(-50%, -50%) !important;
  }

  .residence .residence__zone {
    stroke-dasharray: none !important;
    stroke-opacity: 0;
  }

  .residence .residence__zone.is-on {
    stroke-opacity: 1;
  }

  .residence__veil,
  .residence__zone,
  .residence__tip,
  .residence__panel,
  .residence__panel-body,
  .residence__backdrop {
    transition: opacity 0.15s linear, stroke-opacity 0.15s linear !important;
  }

  .residence__panel,
  .residence__panel.is-left,
  .residence__tip {
    transform: none !important;
    filter: none !important;
  }
}

/* ==========================================================================
   Affiche JRodeia sur la photo du héro (d'après l'affiche « L'Algarve, des
   opportunités pour votre avenir ») : panneau sombre à gauche avec la marque
   (logo JR, Oswald), « L'Algarve » (Playfair Display), métiers, contacts et
   promesse en écriture (Moon Dance) ; accroche sur le ciel à droite.
   Tailles et positions en cqw (% de la largeur de la photo) : la composition
   reste la même à toutes les largeurs ; sous 960 px, le panneau passe sous la photo.
   ========================================================================== */

.hero__media {
  container-type: inline-size;
  overflow-x: clip;
}

/* photo entière, comme l'affiche */
.hero__frame {
  max-height: none;
}

.hero__side {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 27cqw;
  padding: 1.6cqw 2cqw 0;
  /* le panneau de la photo est déjà sombre : voile léger pour le texte */
  background: linear-gradient(90deg, rgba(8, 8, 8, 0.55) 0%, rgba(8, 8, 8, 0.4) 80%, rgba(8, 8, 8, 0) 100%);
  color: #efe7da;
  text-align: center;
  animation: fade-up 1.2s var(--ease-out) 0.5s both;
}

.hero__brand {
  display: grid;
  justify-items: center;
  width: 100%;
}

.hero__brand-mark {
  width: 12.4cqw;
  height: auto;
}

.hero__brand-name {
  margin: 0.3cqw 0 0;
  background: linear-gradient(100deg, #f3dc9f 0%, #d7ae63 55%, #b98d48 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #d7ae63;
  -webkit-text-fill-color: transparent;
  font-family: "Oswald", "Lato", sans-serif;
  font-size: 2.45cqw;
  font-weight: 400;
  line-height: 1.2;
}

.hero__brand-activity {
  width: 100%;
  margin: 0.5cqw 0 0;
  padding-top: 0.75cqw;
  border-top: 1px solid rgba(230, 201, 131, 0.65);
  color: #efe7da;
  font-size: max(0.5rem, 0.86cqw);
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero__rule {
  display: block;
  flex: none;
  width: 6.5cqw;
  height: 2px;
  margin: 1.4cqw 0;
  background: linear-gradient(90deg, #f3dc9f, #c19e60);
}

.hero__title-gold {
  margin: 0;
  padding-bottom: 0.06em;
  background: linear-gradient(100deg, #f3dc9f 0%, #d7ae63 50%, #a87b3c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #d7ae63;
  -webkit-text-fill-color: transparent;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 4.9cqw;
  font-weight: 500;
  line-height: 1.05;
}

.hero__promise,
.hero__metiers {
  display: grid;
  margin: 0;
  text-transform: uppercase;
}

.hero__promise {
  gap: 0.5cqw;
  margin-top: 1cqw;
  font-size: max(0.55rem, 1.32cqw);
  letter-spacing: 0.3em;
}

.hero__metiers {
  gap: 0.7cqw;
  font-size: max(0.5rem, 0.95cqw);
  letter-spacing: 0.26em;
  white-space: nowrap;
}

.hero__contacts {
  display: grid;
  gap: 0.75cqw;
  width: 100%;
  margin: 2.2cqw 0 0;
  padding: 0 0 1.9cqw;
  border-bottom: 1px solid rgba(230, 201, 131, 0.55);
  list-style: none;
  text-align: left;
}

.hero__contact {
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  color: inherit;
}

.hero__ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.7cqw;
  height: 3.7cqw;
  border: 1.5px solid #d7ae63;
  border-radius: 50%;
  color: #e6c983;
}

.hero__ic svg {
  width: 52%;
  height: 52%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__contact-label,
.hero__contact-value {
  display: block;
  line-height: 1.35;
}

.hero__contact-label {
  color: #e6c983;
  font-size: max(0.6rem, 1.2cqw);
}

.hero__contact-value {
  color: #fbf7f0;
  font-size: max(0.65rem, 1.25cqw);
  white-space: nowrap;
}

a.hero__contact:hover .hero__contact-value {
  color: #f3dc9f;
}

/* « Ici, vos projets prennent vie » : écriture pinceau fine et inclinée, en bas du panneau */
.hero__panel-script {
  display: block;
  align-self: flex-start;
  width: max-content;
  margin: 1.9cqw 0 0 2.5cqw;
  color: #dcb46a;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
  font-family: "Moon Dance", var(--script);
  font-size: 3.3cqw;
  font-weight: 400;
  line-height: 1;
  text-align: left;
  transform: rotate(-12deg);
  transform-origin: 0 100%;
}

.hero__script-l3 {
  display: block;
  padding-left: 1.7em;
}

.hero__script-swash {
  display: block;
  width: 5.2em;
  height: auto;
  margin: 0.15em 0 0 1.6em;
  overflow: visible;
  fill: #d2a95f;
}

/* « Algarve, naturellement exceptionnel » sur le ciel, à droite */
.hero__sky {
  position: absolute;
  z-index: 3;
  top: 7.4cqw;
  left: 61cqw;
  width: 25cqw;
  color: #1f1d1a;
  text-align: center;
  animation: fade-up 1.2s var(--ease-out) 0.8s both;
}

.hero__sky-title {
  display: grid;
  gap: 0.9cqw;
  margin: 0;
  padding-left: 0.6em;
  font-size: max(0.55rem, 1.1cqw);
  letter-spacing: 0.55em;
  text-transform: uppercase;
}

.hero__sky-rule {
  display: block;
  width: 6.2cqw;
  height: 2px;
  margin: 1.6cqw auto 1.9cqw;
  background: linear-gradient(90deg, #d7ae63, #a87b3c);
}

.hero__sky-words {
  margin: 0;
  font-size: max(0.5rem, 0.95cqw);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  word-spacing: 0.3em;
}

@media (max-width: 960px) {
  /* même photo ; l'accroche reste sur le ciel, le panneau passe juste dessous */
  .hero {
    min-height: 0;
  }

  .hero__media {
    flex: none;
  }

  .hero__frame {
    flex: none;
    aspect-ratio: 1536 / 1024;
    min-height: 0;
  }

  .hero__side {
    position: static;
    width: auto;
    padding: 1.75rem var(--gutter) 2rem;
    background: var(--dark);
    animation: none;
  }

  .hero__brand-mark {
    width: 6.5rem;
  }

  .hero__brand-name {
    font-size: 1.6rem;
  }

  .hero__brand-activity {
    width: auto;
    margin-top: 0.5rem;
    padding-top: 0.55rem;
    font-size: 0.72rem;
  }

  .hero__rule {
    width: 4rem;
    margin: 1.1rem 0;
  }

  .hero__title-gold {
    font-size: clamp(2.4rem, 10vw, 3.4rem);
  }

  .hero__promise {
    gap: 0.25rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
  }

  .hero__metiers {
    gap: 0.35rem;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    white-space: normal;
  }

  .hero__contacts {
    gap: 0.9rem;
    width: auto;
    margin-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .hero__contact {
    gap: 0.85rem;
  }

  .hero__ic {
    width: 2.6rem;
    height: 2.6rem;
  }

  .hero__contact-label {
    font-size: 0.85rem;
  }

  .hero__contact-value {
    font-size: 0.95rem;
    white-space: normal;
  }

  .hero__panel-script {
    align-self: center;
    margin: 1.5rem 0 0;
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .hero__sky {
    top: 4cqw;
    left: 50cqw;
    width: 48cqw;
  }

  .hero__sky-title {
    gap: 0.4rem;
    font-size: max(0.55rem, 2cqw);
    letter-spacing: 0.4em;
  }

  .hero__sky-rule {
    width: 10cqw;
    margin: 2cqw auto;
  }

  .hero__sky-words {
    font-size: max(0.4rem, 1.5cqw);
    letter-spacing: 0.06em;
    word-spacing: 0;
  }
}

/* ==========================================================================
   Biens vendus : vignettes au format des affiches « VENDIDO » de Patricia
   ========================================================================== */

.vendus {
  --sold-gold: #f0a63a;
  overflow: hidden;
}

.vendus__viewport {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-inline: var(--gutter);
}

/* peu de biens vendus : vignettes centrées, sans mouvement */
.vendus__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

/* assez de biens pour remplir l'écran : bande qui défile en boucle, pause au survol */
.vendus__viewport.is-scrolling {
  padding-inline: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.is-scrolling .vendus__track {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0;
  width: max-content;
  animation: vendus-defile var(--vendus-duree, 40s) linear infinite;
}
.is-scrolling .vendus__track:hover,
.is-scrolling .vendus__track:focus-within { animation-play-state: paused; }
.is-scrolling .sold-card { margin-right: 1.5rem; }
.vendus__clone { display: contents; }

@keyframes vendus-defile {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .vendus__track {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
  }
  .sold-card { scroll-snap-align: start; }
}

.sold-card {
  flex: 0 0 auto;
  width: min(23rem, 84vw);
  padding: 0.85rem 0.85rem 0.75rem;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: "Alegreya", Georgia, serif;
  text-align: center;
}

.sold-card__region {
  margin: 0;
  color: var(--sold-gold);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sold-card__ami {
  margin: 0.15rem 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sold-card__media {
  position: relative;
  aspect-ratio: 860 / 560;
  overflow: hidden;
  background: #222;
}
.sold-card__media img,
.sold-card__media .no-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.sold-card__stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 57%;
  padding: 0.55em 1em;
  background: var(--sold-gold);
  color: #111;
  font-size: clamp(1.35rem, 6.2vw, 1.9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sold-card__foot {
  display: grid;
  grid-template-columns: 1fr 38%;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 0.1rem;
}

.sold-card__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.55rem 0.45rem 0.4rem;
  border-left: 1px solid rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
  text-align: left;
}

.sold-card__title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-family: inherit;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.sold-card__line {
  margin: 0;
  overflow: hidden;
  font-size: 0.7rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.sold-card__line span {
  color: var(--sold-gold);
  font-weight: 700;
  text-transform: uppercase;
}

.sold-card__poster {
  width: 100%;
  height: 100%;
  min-height: 5.5rem;
  object-fit: cover;
  object-position: left center;
}

/* ==========================================================================
   PC : photos des biens en entier (non rognées), bandes neutres si le format diffère du cadre (fond du cadre)
   ========================================================================== */

@media (min-width: 961px) {
  .card__media img,
  .feature__media img,
  .feature__thumbs img,
  .gallery__stage img,
  .gallery__thumb img,
  .residence__photo img,
  .sold-card__media img {
    object-fit: contain;
  }

  .residence__photo {
    background: var(--dark-2);
  }

  /* le zoom au survol ne doit pas ré-rogner l'image */
  .card:hover .card__media img,
  .feature__media:hover img {
    transform: none;
  }
}

/* Petite carte de l'emplacement (fiche d'un bien) */
.fiche__map {
  position: relative;
  aspect-ratio: 16 / 7;
  min-height: 12rem;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.fiche__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.fiche__map-note {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Accès directs depuis la carte d'un bien (photos, vidéo, plan, carte) */
.card__medias {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.card__media-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 0.55rem;
  border-radius: 2px;
  background: rgba(19, 19, 19, 0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  transition: background 0.2s;
}

.card__media-btn.is-ask {
  background: rgba(19, 19, 19, 0.5);
  color: rgba(255, 255, 255, 0.72);
}

.card__media-btn:hover,
.card__media-btn:focus-visible {
  background: var(--gold);
  color: #131313;
}

.card__media-btn svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Fiche : vidéo et plans */
.fiche__video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}

.fiche__video iframe,
.fiche__video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.fiche__video + .fiche__video-label {
  margin-top: 1.25rem;
}

.fiche__video-label {
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.fiche__plan-demande p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.fiche__plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.75rem;
}

.fiche__plan {
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.fiche__plan img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 22rem;
  object-fit: contain;
}
