/* ==========================================================================
   Duboux Surfaces : feuille de style principale
   Reprend le design de surfaces-ecublens.ch (v7) : #2D2D2D, rouge dominant,
   Poppins. Les valeurs modifiables dans l'admin (couleurs, police, arrondis,
   hauteurs) arrivent en variables CSS injectées par inc/setup.php ; celles
   déclarées ici ne sont que des valeurs de secours.
   ========================================================================== */

:root {
  --red: #E4032E;
  --red-hover: #C8022A;
  --dark: #2D2D2D;
  --dark-deep: #2D2D2D;
  --dark-3: #353535;
  --text: #2D2D2D;
  --bg: #FFFFFF;
  --white: #FFFFFF;
  --g50: #FAFAFA;
  --g100: #EDEDED;
  --g200: #D9D9D9;
  --g400: #8A8A8A;
  --g500: #6E6E6E;
  --g600: #505050;
  --font: "Poppins", system-ui, sans-serif;
  --radius: 12px;
  --radius-btn: 6px;
  --logo-h: 48px;
  --hero-h: 700px;
  --hero-light: 0.7;
  --map-h: 420px;
  --title: #444444;
  --header-h: 72px;
  --wrap: 1400px;
  --gutter: 40px;
  /* Teinte translucide de la couleur principale, quelle qu'elle soit. */
  --red-a08: color-mix(in srgb, var(--red) 8%, transparent);
  --red-a15: color-mix(in srgb, var(--red) 15%, transparent);
  --red-a30: color-mix(in srgb, var(--red) 30%, transparent);
  --red-a40: color-mix(in srgb, var(--red) 40%, transparent);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 72px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
/* Main sur tout ce qui est cliquable (certains navigateurs ou réinitialisations l'omettent). */
a[href], button:not(:disabled), summary, select, label[for], [role="option"], [data-typo-select] { cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.skip-link, .screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus {
  width: auto; height: auto; clip: auto; z-index: 1000;
  top: 8px; left: 8px; padding: 12px 20px;
  background: var(--red); color: var(--white); font-weight: 600;
}

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

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */
.header {
  position: relative; z-index: 100;
  background: var(--dark);
  height: var(--header-h);
  display: flex; align-items: center;
  padding: 0 var(--gutter);
  border-bottom: 3px solid var(--red);
}
.header--sticky { position: sticky; top: 0; }
/* Transparent : posé sur le bandeau photos, logo en blanc. */
.header--transparent {
  position: absolute; top: 0; left: 0; right: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.22), transparent); border-bottom: 0;
}
.admin-bar .header--transparent { top: 32px; }
.header--transparent { height: auto; padding-top: 20px; padding-bottom: 20px; }
/* Logo empilé (pictogramme au-dessus du nom) : plus haut que le logo horizontal. */
.header--transparent .header__logo { height: 84px; filter: drop-shadow(0 1px 6px rgba(0,0,0,0.25)); }
.admin-bar .header--sticky { top: 32px; }
.header__inner {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.header--nav .header__inner { justify-content: space-between; }
.header__logo { height: var(--logo-h); width: auto; }
.header__nav { display: flex; align-items: center; gap: 36px; }
.header__menu { display: flex; gap: 36px; list-style: none; padding: 0; }
.header__menu a {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--white); opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}
.header__menu a:hover, .header__menu .current-menu-item a { opacity: 1; color: var(--red); }
.header__nav-cta {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--white); background: var(--red);
  padding: 10px 24px; transition: background 0.2s;
}
.header__nav-cta:hover { background: var(--red-hover); }
.header__toggle {
  display: none; background: none; border: 0; color: var(--white);
  width: 40px; height: 40px; padding: 8px; cursor: pointer;
}

/* --------------------------------------------------------------------------
   Hero (diaporama)
   -------------------------------------------------------------------------- */
.hero { position: relative; height: 600px; overflow: hidden; background: var(--dark); }
.hero__slider { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.2s ease-in-out; z-index: 1;
}
.hero__slide.is-active { opacity: 1; z-index: 2; }
.hero__slide.is-active .hero__bg { transform: scale(1.12); }
.hero__bg {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: brightness(var(--hero-light)); transform: scale(1); transition: transform 12s ease-out;
}
.hero__nav { position: absolute; bottom: 32px; right: 40px; display: flex; gap: 8px; z-index: 10; }
.hero__dot {
  width: 40px; height: 4px; padding: 0; border: 0; background: var(--white);
  cursor: pointer; transition: background 0.3s, width 0.3s;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}
/* Zone cliquable plus haute que le trait visible. */
.hero__dot { background-clip: content-box; padding: 10px 0; height: 24px; }
.hero__dot:hover { background-color: var(--red-a40, rgba(228,3,46,0.5)); }
.hero__dot.is-active { background-color: var(--red); width: 56px; }
.hero__arrow {
  position: absolute; top: 50%; z-index: 10; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.92); color: var(--title);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18); transition: background 0.2s, color 0.2s, transform 0.2s;
}
.hero__arrow svg { width: 24px; height: 24px; }
.hero__arrow:hover { background: var(--red); color: var(--white); }
.hero__arrow:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.hero__arrow--prev { left: 32px; }
.hero__arrow--next { right: 32px; }
.hero__arrow--prev:hover { transform: translate(-2px, -50%); }
.hero__arrow--next:hover { transform: translate(2px, -50%); }
.hero__content {
  position: relative; z-index: 5; height: 100%;
  max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter) 56px;
  display: flex; align-items: flex-end;
}
.hero__block { background: var(--red); padding: 40px 48px; max-width: 680px; border-radius: var(--radius); }
.hero__label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--white); opacity: 0.85; margin-bottom: 12px;
}
.hero__label--red { color: var(--red); opacity: 1; }
.hero__title {
  font-size: 36px; font-weight: 700; color: var(--white);
  line-height: 1.15; letter-spacing: -0.01em;
}
.hero__location { font-size: 14px; color: var(--white); opacity: 0.8; margin-top: 12px; }

/* --------------------------------------------------------------------------
   Introduction
   -------------------------------------------------------------------------- */
.intro {
  background: var(--g50); padding: 72px var(--gutter);
  text-align: center; position: relative; overflow: hidden;
}
/* Même style que les autres titres de section. */
.intro__tagline {
  font-size: clamp(22px, 1.6vw + 14px, 30px); font-weight: 500; line-height: 1.25;
  letter-spacing: -0.01em; color: var(--title); margin-bottom: 20px;
}
.intro__text { font-size: 15px; color: var(--g600); max-width: 1040px; margin: 0 auto; line-height: 1.8; }
.intro__cta {
  display: inline-block; margin-top: 28px; border-radius: var(--radius-btn);
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--white); background: var(--red);
  border: 1px solid var(--red); padding: 14px 36px;
  transition: background 0.3s, border-color 0.3s;
}
.intro__cta:hover { background: var(--red-hover); border-color: var(--red-hover); }

/* --------------------------------------------------------------------------
   Chiffres clés
   -------------------------------------------------------------------------- */
.metrics { background: var(--white); border-top: 1px solid var(--g100); }
.metrics__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr);
}
.metrics__item { padding: 32px 32px 32px 0; text-align: center; }
.metrics__item + .metrics__item { border-left: 1px solid var(--g100); padding-left: 32px; }
.metrics__val { font-size: 26px; font-weight: 600; color: var(--title); line-height: 1.2; letter-spacing: -0.01em; }
@media (min-width: 1101px) { .metrics__val { white-space: nowrap; } }
.metrics__val em { font-style: normal; font-weight: 400; color: var(--g500); }
.metrics__lbl { font-size: 13px; color: var(--g500); margin-top: 6px; }

/* --------------------------------------------------------------------------
   Barre de filtres (sticky)
   Une liste déroulante par critère, sur une seule ligne à toutes les largeurs.
   Ordinateur : libellé à gauche de la liste. Mobile : libellé au-dessus.
   -------------------------------------------------------------------------- */
.filter-bar {
  background: rgba(255,255,255,0.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--g100); border-bottom: 1px solid var(--g100);
  position: sticky; top: var(--header-h); z-index: 90;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}
body:not(:has(.header--sticky)) .filter-bar { top: 0; }
:root:has(body:not(:has(.header:not(.header--transparent)))) { --header-h: 0px; }
.admin-bar .filter-bar { top: calc(var(--header-h) + 32px); }
.filter-bar__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gutter);
  display: grid; grid-template-columns: repeat(var(--filters, 3), minmax(0, 1fr)) auto;
  gap: 8px; align-items: end;
}
.filter-group { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.filter-group__label { font-size: 11px; font-weight: 500; color: var(--g500); white-space: nowrap; }
.filter-select { display: block; position: relative; min-width: 0; }
.filter-select::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; pointer-events: none;
  border-right: 1.5px solid var(--g500); border-bottom: 1.5px solid var(--g500);
  transform: translateY(-70%) rotate(45deg);
}
.filter-select select {
  width: 100%; appearance: none; -webkit-appearance: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--title);
  background: var(--white); border: 1px solid var(--g200); border-radius: var(--radius-btn);
  padding: 9px 32px 9px 12px; text-overflow: ellipsis; transition: border-color 0.2s;
}
.filter-select select:hover { border-color: var(--g400); }
.filter-select select:focus-visible { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-a08); }
/* Critère actif (autre que « Tous ») : liseré rouge. */
.filter-select select.is-set { border-color: var(--red); color: var(--red); }
/* Liste déroulante sur mesure (assets/js/main.js) : le <select> reste en place, masqué. */
.filter-select.is-enhanced::after { content: none; }
.filter-select.is-enhanced select {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none;
}
.dropdown__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--title); text-align: left; cursor: pointer;
  background: var(--white); border: 1px solid var(--g200); border-radius: var(--radius-btn);
  padding: 9px 12px; transition: border-color 0.2s, box-shadow 0.2s;
}
.dropdown__btn:hover { border-color: var(--g400); }
.dropdown__btn:focus-visible { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-a08); }
.dropdown__btn.is-set { border-color: var(--red); color: var(--red); }
.dropdown__value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown__chevron {
  flex-shrink: 0; width: 7px; height: 7px; margin-top: -4px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.2s, margin 0.2s; opacity: 0.7;
}
.is-open .dropdown__chevron { transform: rotate(-135deg); margin-top: 3px; }
.dropdown__list {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 20;
  min-width: max(100%, 220px); max-height: 320px; overflow-y: auto;
  list-style: none; margin: 0; padding: 6px;
  background: var(--white); border: 1px solid var(--g100); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12); outline: none;
  animation: dropdown-in 0.14s ease-out;
}
.dropdown__list[hidden] { display: none; }
@keyframes dropdown-in { from { opacity: 0; transform: translateY(-4px); } }
.filter-group:nth-last-child(2) .dropdown__list { left: auto; right: 0; }
.dropdown__option {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 9px 12px; border-radius: var(--radius-btn); cursor: pointer;
  font-size: 14px; color: var(--title); white-space: nowrap;
}
.dropdown__option.is-focused { background: var(--g50); }
.dropdown__option[aria-selected="true"] { color: var(--red); font-weight: 500; }
.dropdown__count {
  font-size: 11px; font-weight: 500; color: var(--g500);
  background: var(--g50); border-radius: 10px; padding: 2px 8px;
}
.dropdown__option.is-focused .dropdown__count { background: var(--white); }
.dropdown__option[aria-selected="true"] .dropdown__count { color: var(--red); background: var(--red-a08); }

.filter-bar__end { display: flex; align-items: center; gap: 16px; }
.filter-bar__count { display: none; font-size: 13px; color: var(--g500); white-space: nowrap; }
.filter-bar__reset-btn {
  display: none; align-items: center; gap: 6px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 500; color: var(--red);
  background: var(--white); border: 1px solid var(--red); border-radius: var(--radius-btn);
  padding: 9px; transition: background 0.2s, color 0.2s;
}
.filter-bar__reset-btn.is-visible { display: inline-flex; }
.filter-bar__reset-btn:hover { background: var(--red); color: var(--white); }
.filter-bar__reset-btn svg { width: 14px; height: 14px; }
.filter-bar__reset-btn span { display: none; }

@media (min-width: 1024px) {
  .filter-bar__inner { grid-template-columns: repeat(var(--filters, 3), minmax(0, 260px)) 1fr; gap: 24px; align-items: center; }
  .filter-group { flex-direction: row; align-items: center; gap: 10px; }
  .filter-group__label { font-size: 13px; }
  .filter-select { flex: 1; }
  .filter-bar__end { justify-self: end; }
  .filter-bar__count { display: block; }
  .filter-bar__reset-btn { padding: 8px 12px; }
  .filter-bar__reset-btn span { display: inline; }
}

/* --------------------------------------------------------------------------
   Liste des annonces
   -------------------------------------------------------------------------- */
.listings {
  max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter) 96px;
  /* Fond gris pleine largeur sans balisage supplémentaire (alternance blanc / gris des sections). */
  background: var(--g50); box-shadow: 0 0 0 100vmax var(--g50); clip-path: inset(0 -100vmax);
}
.listings__top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 28px;
}
/* Titres de section : sobres, sans filet, en 500 gris foncé. */
.section-title, .listings__title {
  font-size: clamp(22px, 1.6vw + 14px, 30px); font-weight: 500; line-height: 1.25;
  letter-spacing: -0.01em; color: var(--title);
}
.listings__count { white-space: nowrap; font-size: 12px; font-weight: 500; color: var(--red); }
.listings__grid { display: grid; gap: 24px; grid-template-columns: repeat(var(--cards-cols, 3), minmax(0, 1fr)); }
.listings__grid--grid-2 { --cards-cols: 2; }
.listings__grid--list { --cards-cols: 1; gap: 12px; }
.listings__empty { display: none; text-align: center; padding: 64px 20px; color: var(--g500); }
.listings__empty.is-visible { display: block; }
.listings__empty-icon { display: block; width: 48px; height: 48px; color: var(--red-a30); margin: 0 auto 20px; }
.listings__empty p { font-size: 14px; font-weight: 500; }
.listings__empty strong { display: block; font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 8px; }

/* --------------------------------------------------------------------------
   Carte d'annonce
   -------------------------------------------------------------------------- */
.card {
  display: grid; grid-template-columns: 1fr;
  background: var(--white); border: 1px solid var(--g100); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.03); position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card.is-hidden { display: none; }
.card:hover, .card:focus-within {
  border-color: var(--red-a30);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.card__visual { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--g100); }
.listings__grid--list .card__visual { aspect-ratio: auto; height: 240px; }
/* Piste du diaporama : défilement natif avec aimantation, barre masquée. */
.card__track {
  position: absolute; inset: 0; display: flex;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain;
}
.card__track::-webkit-scrollbar { display: none; }
.card__slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; overflow: hidden; }
.card__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card:hover .card__img { transform: scale(1.04); }
.card__visual::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.14), transparent 25%);
}
.card__arrow {
  position: absolute; top: 50%; z-index: 4; transform: translateY(-50%);
  width: 36px; height: 36px; padding: 9px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--text); cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  opacity: 0; transition: opacity 0.2s, background 0.2s, color 0.2s;
}
.card__arrow--prev { left: 12px; }
.card__arrow--next { right: 12px; }
.card__visual:hover .card__arrow, .card__arrow:focus-visible { opacity: 1; }
.card__arrow:hover { background: var(--red); color: var(--white); }
.card__arrow[disabled] { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .card__arrow { display: none; } }
.card__dots {
  position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2;
  display: flex; justify-content: center; gap: 5px; pointer-events: none;
}
.card__dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.55); transition: background 0.2s, transform 0.2s; }
.card__dot.is-active { background: var(--white); transform: scale(1.3); }
.card__tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--red); color: var(--white);
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 6px 14px; border-radius: min(4px, var(--radius-btn));
  box-shadow: 0 2px 10px var(--red-a30);
}
.card__body { position: relative; padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.card { grid-template-rows: auto 1fr; }
.listings__grid--list .card { grid-template-rows: none; }
/* En grille, le prix et le bouton s'empilent : la colonne est trop étroite pour les deux. */
.listings__grid:not(.listings__grid--list) .card__bottom { flex-direction: column; align-items: stretch; }
.listings__grid:not(.listings__grid--list) .card__btn { justify-content: center; }
.card__loc {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--g400); margin-bottom: 8px;
}
.card__name {
  font-size: 17px; font-weight: 600; color: var(--text);
  line-height: 1.35; letter-spacing: -0.01em; margin-bottom: 18px;
}
/* Lien étiré : tout le corps de la carte est cliquable (les photos sont des liens à part). */
.card__link::after { content: ''; position: absolute; inset: 0; z-index: 3; }
.card__link:focus-visible { outline: none; }
.card__link:focus-visible::after { outline: 2px solid var(--red); outline-offset: -2px; }
.card__feats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.feat {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; color: var(--g600);
  background: var(--g50); border: 1px solid var(--g100);
  padding: 8px 14px; border-radius: var(--radius-btn); white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}
.card:hover .feat { background: var(--white); border-color: var(--red-a15); }
.feat svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--red); }
.card__bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--g100);
}
.card__price { font-size: 19px; font-weight: 700; color: var(--text); line-height: 1.2; }
.card__price small { display: block; font-size: 11px; font-weight: 500; color: var(--g400); margin-top: 4px; letter-spacing: 0; }
.card__ref {
  display: inline-block; font-size: 10px; font-weight: 500; color: var(--g400);
  background: var(--g50); padding: 3px 8px; border-radius: 4px; margin-top: 8px;
}
.card__btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--white); background: var(--red); padding: 14px 24px;
  border-radius: var(--radius-btn); flex-shrink: 0;
  box-shadow: 0 4px 14px var(--red-a30); transition: all 0.3s ease;
}
.card__btn:hover, .card:hover .card__btn { background: var(--red-hover); }
a.card__btn:hover { transform: translateY(-2px); }
.card__btn svg { width: 16px; height: 16px; transition: transform 0.3s; }
.card:hover .card__btn svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Cartes de typologie
   -------------------------------------------------------------------------- */
.listings--typologies .listings__top--lots { margin-top: 72px; margin-bottom: 16px; }
.typos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
/* 4 colonnes sur grand écran (infos et prix tiennent sur une ligne), 2 sur tablette, 1 sur mobile : jamais de carte orpheline (3 + 1). */
@media (min-width: 1366px) { .typos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) { .typos { grid-template-columns: minmax(0, 1fr); } }
.typo {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--g100); border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, opacity 0.25s, transform 0.25s;
}
.typo:hover { border-color: var(--red-a30); box-shadow: 0 16px 48px rgba(0,0,0,0.08); transform: translateY(-4px); }
.typo.is-active { border-color: var(--red); box-shadow: 0 0 0 2px var(--red), 0 16px 48px rgba(0,0,0,0.08); }
.typo:hover .card__img { transform: scale(1.04); }
.typo.is-dimmed { opacity: 0.45; }
.typo.is-dimmed:hover { opacity: 1; }
.typo__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; border-radius: var(--radius-btn);
  background: var(--red); color: var(--white);
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 10px 16px;
}
.typo__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 0; }
.typo__title { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 16px; }
.typo__facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 24px; }
.typo__facts li { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--g600); white-space: nowrap; }
.typo__facts svg { width: 15px; height: 15px; color: var(--red); flex-shrink: 0; }
.typo__fact--hot { color: var(--red) !important; font-weight: 500; }
.typo__bottom { margin: auto -24px 0; border-top: 1px solid var(--g100); }
.typo__price { padding: 18px 24px; font-size: 20px; font-weight: 500; line-height: 1.15; white-space: nowrap; }
.typo__price small { display: block; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--g400); margin-bottom: 4px; }
.typo__price small + small { display: inline; margin: 0 0 0 4px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 11px; }
/* Très petits écrans : le prix peut passer sur deux lignes plutôt que de déborder. */
@media (max-width: 374px) { .typo__price { white-space: normal; } }
.typo__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 24px; background: var(--white); color: var(--title); border-top: 1px solid var(--g100);
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em;
  transition: background 0.2s, color 0.2s;
}
.typo__btn svg { width: 16px; height: 16px; color: var(--red); transition: transform 0.2s, color 0.2s; }
.typo__btn:hover, .typo.is-active .typo__btn { background: var(--red); color: var(--white); border-top-color: var(--red); }
.typo__btn:hover svg, .typo.is-active .typo__btn svg { color: var(--white); }
.typo__btn:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Tableau des lots
   -------------------------------------------------------------------------- */
.lots {
  background: var(--white); border: 1px solid var(--g100); border-radius: var(--radius); overflow: hidden;
  --lot-cols: 84px minmax(0, 1.2fr) minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr) 32px;
}
.lots__head, .lot {
  display: grid; grid-template-columns: var(--lot-cols); align-items: center; column-gap: 16px;
  padding: 0 24px;
}
.lots__head {
  padding-top: 14px; padding-bottom: 14px; background: var(--g50); border-bottom: 1px solid var(--g100);
  font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--g500);
}
.lot {
  position: relative; padding-top: 16px; padding-bottom: 16px;
  border-bottom: 1px solid var(--g100); font-size: 14px; color: var(--g600);
  transition: background 0.15s;
}
.lot:last-child { border-bottom: 0; }
.lot:hover { background: var(--g50); }
.lot.is-hidden { display: none; }
.lot__break { display: none; }
.lot__ref {
  justify-self: start; font-size: 12px; font-weight: 600; color: var(--red); font-variant-numeric: tabular-nums;
  background: var(--red-a08); border-radius: var(--radius-btn); padding: 4px 9px;
}
.lot__type { font-weight: 500; color: var(--title); }
.lot__price { font-weight: 600; color: var(--title); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lot__dispo {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: var(--g600);
  background: var(--g50); border-radius: 20px; padding: 4px 10px; white-space: nowrap;
}
.lot__dispo.is-now { color: var(--red); background: var(--red-a08); }
.lot__dispo.is-now::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.lot__go {
  display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border: 1px solid var(--g200); border-radius: 50%; color: var(--g500);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.lot__go svg { width: 14px; height: 14px; }
.lot:hover .lot__go { background: var(--red); border-color: var(--red); color: var(--white); }

/* --------------------------------------------------------------------------
   Sections optionnelles : galerie, atouts, carte, contact
   -------------------------------------------------------------------------- */
.section-title { margin-bottom: 28px; }
.map__inner .section-title { margin-bottom: 16px; }
.photos__inner { max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gutter); }
/* Mosaïque : première photo en grand (2 × 2), les autres en vignettes. */
.photos__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; grid-auto-flow: dense; }
.photos__item {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius); background: var(--g100);
}
.photos__item[hidden] { display: none; }
.photos__item:first-child { grid-column: span 2; }
.photos__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.photos__item:hover .photos__img { transform: scale(1.04); }
.photos__item:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.photos__actions { display: flex; justify-content: center; margin-top: 32px; }
.photos__more-btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--title); background: var(--white); border: 1px solid var(--g200); border-radius: var(--radius-btn);
  padding: 14px 24px; transition: border-color 0.2s, color 0.2s;
}
.photos__more-btn:hover { border-color: var(--red); color: var(--red); }
.photos__more-btn svg { width: 18px; height: 18px; color: var(--red); }
.photos__more-count { color: var(--g400); font-weight: 500; }
@media (min-width: 600px) {
  .photos__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .photos__item:first-child { grid-row: span 2; aspect-ratio: auto; }
}
@media (min-width: 1024px) {
  .photos__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .photos__inner { padding: 48px var(--gutter); }
}

.atouts { background: var(--g50); }
.atouts__inner { max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gutter); }
.atouts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.atouts__item {
  background: var(--white); border: 1px solid var(--g100); border-radius: var(--radius);
  padding: 28px;
}
.atouts__icon {
  display: inline-flex; width: 48px; height: 48px; padding: 12px; margin-bottom: 20px;
  color: var(--white); background: var(--red); border-radius: var(--radius-btn);
}
.atouts__icon svg { stroke-width: 1.6; }
.atouts__title { font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.atouts__text { font-size: 14px; color: var(--g600); }

.map { background: var(--g50); }
.map__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px;
}
.map__text { font-size: 15px; line-height: 1.7; color: var(--g600); margin-bottom: 24px; max-width: 520px; }
.map__address {
  display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 500;
  padding: 16px 0; border-top: 1px solid var(--g100); border-bottom: 1px solid var(--g100);
}
.map__address svg { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; }
.map__list { list-style: none; padding: 0; margin: 8px 0 28px; }
.map__item { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--g100); }
.map__icon {
  display: inline-flex; flex-shrink: 0; width: 40px; height: 40px; padding: 10px;
  color: var(--white); background: var(--red); border-radius: var(--radius-btn);
}
.map__icon svg { stroke-width: 1.6; }
.map__item-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.map__item-body strong { font-size: 15px; font-weight: 500; }
.map__item-body span { font-size: 13px; color: var(--g600); }
.map__route {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--white); background: var(--red); border-radius: var(--radius-btn); transition: background 0.2s;
}
.map__route:hover { background: var(--red-hover); }
.map__route svg { width: 14px; height: 14px; }
.map__visual { position: relative; border: 1px solid var(--g100); min-height: max(340px, min(var(--map-h), 70vw)); background: var(--g100); border-radius: var(--radius); overflow: hidden; }
.map__frame { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; filter: grayscale(0.35); }
@media (min-width: 1024px) {
  .map__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: stretch; }
  .map__visual { min-height: var(--map-h); }
}

.contact { background: var(--dark-deep); color: var(--white); }
.contact__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 64px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}
.contact__title { font-size: 24px; font-weight: 500; margin-bottom: 8px; }
.contact__text p { color: var(--g400); max-width: 620px; }

.contact-links { display: flex; flex-direction: column; gap: 10px; }
.contact-links__name { font-weight: 600; }
.contact-links__item {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; transition: color 0.2s;
}
.contact-links__item:hover { color: var(--red); }
.contact-links__item svg { width: 16px; height: 16px; color: var(--red); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Horaires
   -------------------------------------------------------------------------- */
.hours { background: var(--red); }
.hours__inner { max-width: var(--wrap); margin: 0 auto; padding: 40px var(--gutter); }
.hours__title {
  font-size: 13px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--white); margin-bottom: 24px;
}
.hours__grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.hours__label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--white); opacity: 0.7; margin-bottom: 4px;
}
.hours__val { font-size: 15px; font-weight: 600; color: var(--white); }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.footer { background: var(--white); border-top: 1px solid var(--g100); }
.footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.footer__top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 48px 0 40px; border-bottom: 1px solid var(--g100);
}
.footer__brand-logo { height: min(var(--logo-h), 44px); width: auto; }
.footer__brand-tagline { font-size: 12px; color: var(--g500); margin-top: 10px; }
.footer__social { display: flex; gap: 8px; }
.footer__social-link {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  background: var(--g50); border: 1px solid var(--g100); border-radius: 50%; color: var(--title);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.footer__social-link:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.footer__social-link svg { width: 16px; height: 16px; }
.footer__offices { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
.footer__office-title {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--red); margin-bottom: 12px;
}
.footer__office-body p { font-size: 13px; color: var(--g600); line-height: 1.7; }
.footer__office-body p + p { margin-top: 10px; }
.footer__office-body strong { color: var(--title); font-weight: 500; }
.footer__office-body a { color: var(--title); transition: color 0.2s; }
.footer__office-body a:hover { color: var(--red); }
.footer__mid { padding: 24px 0; border-top: 1px solid var(--g100); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 28px; list-style: none; padding: 0; }
.footer__nav a { font-size: 13px; font-weight: 500; color: var(--g600); transition: color 0.2s; }
.footer__nav a:hover { color: var(--red); }
.footer__tagline-bar {
  text-align: center; font-size: 16px; font-weight: 500; color: var(--red);
  padding: 24px 0; border-top: 1px solid var(--g100);
}
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 0; border-top: 1px solid var(--g100);
}
.footer__copy { font-size: 12px; color: var(--g500); }
.footer__top-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--title); transition: color 0.2s; }
.footer__top-link svg { width: 14px; height: 14px; }
.footer__top-link:hover { color: var(--red); }

/* --------------------------------------------------------------------------
   Contenu des pages simples et visionneuse photos
   -------------------------------------------------------------------------- */
.entry-content { font-size: 15px; line-height: 1.75; color: var(--g600); }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2, .entry-content h3 { color: var(--text); font-size: 18px; line-height: 1.4; }
.entry-content ul, .entry-content ol { padding-left: 1.25em; }
.entry-content li + li { margin-top: 0.35em; }
.entry-content li::marker { color: var(--red); }
.entry-content strong { color: var(--text); }
.entry-content a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(10,10,10,0.94);
  display: flex; align-items: center; justify-content: center; padding: 56px;
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button {
  position: absolute; width: 48px; height: 48px; padding: 12px;
  background: rgba(255,255,255,0.08); border: 0; border-radius: var(--radius-btn); color: var(--white); cursor: pointer;
  transition: background 0.2s;
}
.lightbox button:hover { background: var(--red); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em; color: rgba(255,255,255,0.7);
}

/* --------------------------------------------------------------------------
   Pages simples
   -------------------------------------------------------------------------- */
.page-content { max-width: 860px; margin: 0 auto; padding: 72px var(--gutter) 96px; }
.page-content--center { text-align: center; }
.page-content--center .card__btn { margin-top: 32px; }
.page-content__title {
  font-size: 32px; font-weight: 500; line-height: 1.2; margin-bottom: 32px;
  padding-bottom: 16px; border-bottom: 3px solid var(--red);
}
.post-summary + .post-summary { margin-top: 48px; }

/* --------------------------------------------------------------------------
   Page d'accès protégé
   -------------------------------------------------------------------------- */
.dsx-gate-body { background: var(--dark-deep); min-height: 100vh; }
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.gate__card {
  width: 100%; max-width: 440px; text-align: center;
  background: var(--dark); border-top: 4px solid var(--red); padding: 48px 40px;
}
.gate__logo { height: var(--logo-h); width: auto; margin: 0 auto 32px; }
.gate__icon { display: inline-flex; width: 44px; height: 44px; padding: 11px; background: var(--red); color: var(--white); margin-bottom: 20px; }
.gate__title { font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--white); margin-bottom: 12px; }
.gate__text { font-size: 14px; color: var(--g400); margin-bottom: 28px; }
.gate__form { display: flex; gap: 8px; }
.gate__input {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--white);
  background: var(--dark-deep); border: 1px solid rgba(255,255,255,0.12);
  padding: 14px 16px; border-radius: var(--radius-btn);
}
.gate__input:focus { outline: none; border-color: var(--red); }
.gate__input[aria-invalid="true"] { border-color: var(--red); }
.gate__btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--white); background: var(--red); border: 0; padding: 0 20px;
  border-radius: var(--radius-btn); cursor: pointer; transition: background 0.2s;
}
.gate__btn:hover { background: var(--red-hover); }
.gate__btn svg { width: 16px; height: 16px; }
.gate__error { margin-top: 16px; font-size: 13px; font-weight: 600; color: #FF6B81; }

/* --------------------------------------------------------------------------
   Adaptatif
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .hero__title { font-size: 42px; }
  .hours__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__offices { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .hero { height: var(--hero-h); }
  .listings__grid--list .card { grid-template-columns: 360px 1fr; }
  .listings__grid--list .card__visual { height: 100%; min-height: 240px; aspect-ratio: auto; }
}
@media (min-width: 1024px) {
  .footer__offices { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .hero__title { font-size: 48px; }
  .listings__grid--list .card { grid-template-columns: 420px 1fr; }
}

@media (max-width: 1100px) {
  .listings__grid--grid-3 { --cards-cols: 2; }
  /* Chiffres clés : 2 colonnes au-delà de 3 éléments, sinon une ligne. */
  .metrics__inner { grid-template-columns: repeat(min(var(--cols, 3), 3), 1fr); }
  .metrics__inner[style*="--cols: 4"] { grid-template-columns: repeat(2, 1fr); }
  .metrics__item, .metrics__item + .metrics__item { padding: 24px 8px; border-left: 0; }
  .metrics__inner[style*="--cols: 4"] .metrics__item:nth-child(even) { border-left: 1px solid var(--g100); }
  .metrics__inner[style*="--cols: 4"] .metrics__item:nth-child(n+3) { border-top: 1px solid var(--g100); }
  .metrics__inner:not([style*="--cols: 4"]) .metrics__item + .metrics__item { border-left: 1px solid var(--g100); }
}

@media (max-width: 700px) {
  .listings__grid--grid-3, .listings__grid--grid-2 { --cards-cols: 1; }
}

@media (max-width: 782px) {
  .admin-bar .header--sticky { top: 46px; }
  .admin-bar .filter-bar { top: calc(var(--header-h) + 46px); }
}

/* Lots en version compacte (tablette et mobile) : deux lignes par lot,
   « réf. + typologie … loyer » puis « étage · surface · disponibilité ». */
@media (max-width: 1023px) {
  .lots__head { display: none; }
  .lot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 14px 44px 14px 16px; font-size: 14px; }
  .lot__ref { order: 1; }
  .lot__type { order: 2; }
  .lot__price { order: 3; margin-left: auto; }
  .lot__break { order: 4; display: block; flex-basis: 100%; height: 0; }
  .lot__etage { order: 5; }
  .lot__surface { order: 6; }
  .lot__dispo { order: 7; }
  .lot__etage, .lot__surface { font-size: 12px; color: var(--g500); }
  .lot__dispo { padding: 2px 8px; font-size: 11px; }
  .lot__etage::after, .lot__surface::after { content: "·"; margin-left: 10px; color: var(--g200); }
  .lot__go { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; }

}

@media (max-width: 767px) {
  :root { --gutter: 20px; --header-h: 60px; }
  .header__logo { height: min(var(--logo-h), 34px); }
  .header--transparent { padding-top: 14px; padding-bottom: 14px; }
  .header--transparent .header__logo { height: 60px; }
  .footer__brand-logo { height: 36px; }
  .admin-bar .header--transparent { top: 46px; }

  .header__toggle { display: block; }
  .header__nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--dark); border-bottom: 3px solid var(--red); padding: 8px 20px 20px;
  }
  .header__nav.is-open { display: flex; }
  .header__menu { flex-direction: column; gap: 0; }
  .header__menu a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .header__nav-cta { margin-top: 16px; text-align: center; }

  .hero { height: 500px; }
  .hero__content { padding-bottom: 50px; }
  .hero__block { padding: 24px 20px; }
  /* Taille fluide : « Appartements neufs » tient sur une ligne dès 320 px. */
  .hero__title { font-size: clamp(19px, 6.2vw, 26px); line-height: 1.2; }
  .hero__nav { right: 50%; transform: translateX(50%); bottom: 16px; }
  .hero__dot { width: 28px; }
  .hero__dot.is-active { width: 40px; }
  .hero__arrow { top: 38%; width: 40px; height: 40px; }
  .hero__arrow svg { width: 20px; height: 20px; }
  .hero__arrow--prev { left: 12px; }
  .hero__arrow--next { right: 12px; }

  .intro { padding: 48px 20px; }
  .metrics__val { font-size: 19px; }
  .metrics__lbl { font-size: 12px; }



  .listings { padding: 32px 20px 64px; }
  .listings--typologies .listings__top--lots { margin-top: 48px; }

  .card__body { padding: 20px; }
  /* Les surfaces longues (« 1x 252m2 au rez… ») passent à la ligne au lieu d'élargir la page. */
  .feat { white-space: normal; }
  .card__bottom { flex-wrap: wrap; }
  .hours__inner { padding: 32px 20px; }
  .hours__val { font-size: 13px; }

  .lightbox { padding: 64px 8px; }
  .atouts__inner { padding: 48px var(--gutter); }
  .atouts__grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
  .atouts__item { padding: 18px; }
  .atouts__icon { width: 40px; height: 40px; padding: 10px; margin-bottom: 14px; }
  .atouts__title { font-size: 14px; }
  .atouts__text { font-size: 12px; }
  .map__inner { padding: 48px var(--gutter); }
  .contact__inner { padding: 48px var(--gutter); }
  .contact__title { font-size: 20px; }
  .typos { gap: 16px; }
  .footer__top { padding: 40px 0 32px; }
  .gate__card { padding: 40px 24px; }
  .gate__form { flex-direction: column; }
  .gate__btn { justify-content: center; padding: 14px 20px; }
}

/* ==========================================================================
   Bannière de consentement (inc/tracking.php, assets/js/tracking.js)
   ========================================================================== */
.consent {
  position: fixed; left: 16px; bottom: 16px; z-index: 1000;
  width: min(420px, calc(100vw - 32px)); padding: 20px 22px;
  background: var(--white); color: var(--text); border: 1px solid var(--g200); border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}
.consent[hidden] { display: none; }
.consent__text { margin: 0; font-size: 14px; line-height: 1.55; }
.consent__text a { color: var(--title); text-decoration: underline; text-underline-offset: 2px; }
.consent__text a:hover { color: var(--red); }
.consent__actions { display: flex; gap: 10px; margin-top: 16px; }
.consent__btn {
  flex: 1; min-height: 42px; padding: 0 16px; font: inherit; font-size: 14px; font-weight: 600;
  border-radius: var(--radius-btn); border: 1px solid transparent; cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.consent__btn--line { background: var(--white); color: var(--title); border-color: var(--g200); }
.consent__btn--line:hover { border-color: var(--title); }
.consent__btn--red { background: var(--red); color: var(--white); }
.consent__btn--red:hover { background: var(--red-hover); }
.footer__bottom .footer__consent { margin-left: auto; }
