/* /assets/css/style.css */
/* Immocolucci — Design System Premium | Agadir, Maroc */
/* ============================================================ */

/* ============================================================
   TABLE DES MATIÈRES
   1.  Variables & Tokens
   2.  Reset & Base
   3.  Typographie
   4.  Layout & Grid
   5.  Header & Navigation
   6.  Hero
   7.  Sections communes
   8.  Cards Biens
   9.  Filtres biens
   10. Détail bien
   11. À propos
   12. Formulaire contact
   13. Footer
   14. Flash messages
   15. Composants UI (boutons, badges, icônes)
   16. Animations
   17. Dark mode
   18. Responsive
   19. Utilitaires
   20. Print
   ============================================================ */


/* ============================================================
   1. VARIABLES & TOKENS
   ============================================================ */

:root {
  /* Palette principale */
  --clr-black:       #0e0e0e;
  --clr-ink:         #1a1a1a;
  --clr-charcoal:    #2d2d2d;
  --clr-muted:       #6b6b6b;
  --clr-border:      #e2e0db;
  --clr-surface:     #f7f6f3;
  --clr-white:       #ffffff;

  /* Or — signature chromatique */
  --clr-gold:        #c9a84c;
  --clr-gold-light:  #e8d5a3;
  --clr-gold-dark:   #a07830;
  --clr-gold-subtle: rgba(201, 168, 76, 0.10);

  /* Sémantique */
  --clr-success:     #2d7a4f;
  --clr-error:       #b93030;
  --clr-warning:     #b87820;

  /* Surfaces (mode clair) */
  --bg-page:         var(--clr-white);
  --bg-surface:      var(--clr-surface);
  --bg-card:         var(--clr-white);
  --bg-header:       var(--clr-white);
  --bg-footer:       var(--clr-ink);

  /* Textes */
  --txt-primary:     var(--clr-ink);
  --txt-secondary:   var(--clr-muted);
  --txt-inverse:     var(--clr-white);
  --txt-gold:        var(--clr-gold);

  /* Bordures */
  --border-color:    var(--clr-border);
  --border-gold:     var(--clr-gold);

  /* Typographie */
  --font-display:    'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body:       'Jost', 'DM Sans', system-ui, sans-serif;
  --font-utility:    'Jost', system-ui, sans-serif;

  /* Échelle typographique */
  --fs-xs:    0.75rem;    /* 12px */
  --fs-sm:    0.875rem;   /* 14px */
  --fs-base:  1rem;       /* 16px */
  --fs-md:    1.125rem;   /* 18px */
  --fs-lg:    1.375rem;   /* 22px */
  --fs-xl:    1.75rem;    /* 28px */
  --fs-2xl:   2.25rem;    /* 36px */
  --fs-3xl:   3rem;       /* 48px */
  --fs-4xl:   4rem;       /* 64px */
  --fs-5xl:   5.5rem;     /* 88px */

  /* Espacements */
  --sp-1:   0.25rem;
  --sp-2:   0.5rem;
  --sp-3:   0.75rem;
  --sp-4:   1rem;
  --sp-5:   1.25rem;
  --sp-6:   1.5rem;
  --sp-8:   2rem;
  --sp-10:  2.5rem;
  --sp-12:  3rem;
  --sp-16:  4rem;
  --sp-20:  5rem;
  --sp-24:  6rem;
  --sp-32:  8rem;

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

  /* Ombres */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.12), 0 6px 16px rgba(0,0,0,.07);
  --shadow-gold: 0 4px 24px rgba(201,168,76,.20);

  /* Transitions */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:    cubic-bezier(0.64, 0, 0.78, 0);
  --dur-fast:   150ms;
  --dur-base:   280ms;
  --dur-slow:   500ms;

  /* Layout */
  --container-max:  1280px;
  --container-pad:  clamp(1.25rem, 5vw, 3rem);
  --header-h:       76px;

  /* Z-index */
  --z-base:    1;
  --z-card:    10;
  --z-header:  100;
  --z-overlay: 200;
  --z-modal:   300;
  --z-toast:   400;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--txt-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}

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

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

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

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

::selection {
  background-color: var(--clr-gold-light);
  color: var(--clr-ink);
}

/* Scrollbar personnalisée */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--clr-gold); border-radius: var(--radius-full); }


/* ============================================================
   3. TYPOGRAPHIE
   ============================================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--txt-primary);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(var(--fs-3xl), 6vw, var(--fs-5xl)); font-weight: 300; }
h2 { font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl)); font-weight: 300; }
h3 { font-size: clamp(var(--fs-xl),  3vw, var(--fs-3xl)); font-weight: 400; }
h4 { font-size: clamp(var(--fs-lg),  2vw, var(--fs-2xl)); font-weight: 400; }
h5 { font-size: var(--fs-lg); font-weight: 500; }
h6 { font-size: var(--fs-md); font-weight: 500; }

p { max-width: 68ch; }

.lead {
  font-size: var(--fs-md);
  font-weight: 300;
  color: var(--txt-secondary);
  line-height: 1.8;
}

.label {
  font-family: var(--font-utility);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-gold);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--clr-gold);
  flex-shrink: 0;
}

/* Filigrane décoratif (signature) */
.text-filigrane {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,168,76,.15);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  position: absolute;
  white-space: nowrap;
}


/* ============================================================
   4. LAYOUT & GRID
   ============================================================ */

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

.section {
  padding-block: clamp(var(--sp-16), 8vw, var(--sp-32));
}

.section--sm {
  padding-block: clamp(var(--sp-10), 5vw, var(--sp-20));
}

.section--dark {
  background-color: var(--clr-ink);
  color: var(--txt-inverse);
}

.section--surface {
  background-color: var(--bg-surface);
}

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

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

.grid--auto {
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
}

.flex { display: flex; }
.flex--center { align-items: center; justify-content: center; }
.flex--between { align-items: center; justify-content: space-between; }
.flex--gap { gap: var(--sp-4); }

.section__header {
  margin-bottom: clamp(var(--sp-10), 5vw, var(--sp-16));
}

.section__header--center {
  text-align: center;
}

.section__header--center p {
  margin-inline: auto;
}


/* ============================================================
   5. HEADER & NAVIGATION
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: var(--z-header);
  transition: background-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              backdrop-filter var(--dur-base) var(--ease-out);
}

.site-header--transparent {
  background-color: transparent;
}

.site-header--scrolled {
  background-color: var(--bg-header);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}

/* Logo */
.site-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.site-header__logo img {
  height: 42px;
  width: auto;
  transition: opacity var(--dur-base);
}

.logo--light { display: block; }
.logo--dark  { display: none; }

.site-header--scrolled .logo--light,
body:not(.hero-page) .logo--light { display: none; }
.site-header--scrolled .logo--dark,
body:not(.hero-page) .logo--dark  { display: block; }

/* Navigation principale */
.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.nav__link {
  font-family: var(--font-utility);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-white);
  padding-block: var(--sp-2);
  position: relative;
  transition: color var(--dur-fast);
}

.site-header--scrolled .nav__link {
  color: var(--txt-primary);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--clr-gold);
  transition: width var(--dur-base) var(--ease-out);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__link:hover,
.nav__link.active {
  color: var(--clr-gold);
}

/* Actions header */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

/* Toggle dark mode */
.btn-theme {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  background: rgba(255,255,255,.12);
  transition: background var(--dur-fast), color var(--dur-fast);
}

.site-header--scrolled .btn-theme {
  color: var(--txt-primary);
  background: var(--bg-surface);
}

.btn-theme:hover {
  background: var(--clr-gold-subtle);
  color: var(--clr-gold);
}

.btn-theme svg { width: 18px; height: 18px; }
.icon-sun  { display: none; }
.icon-moon { display: block; }

/* Menu burger mobile */
.btn-menu {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
  color: var(--clr-white);
}

.site-header--scrolled .btn-menu { color: var(--txt-primary); }

.btn-menu__bar {
  display: block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-base),
              width var(--dur-base) var(--ease-out);
  transform-origin: center;
}

.btn-menu.is-open .btn-menu__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.btn-menu.is-open .btn-menu__bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.btn-menu.is-open .btn-menu__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Drawer mobile */
.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: var(--bg-page);
  padding: var(--sp-8) var(--container-pad);
  z-index: calc(var(--z-header) - 1);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  overflow-y: auto;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.nav-drawer__link {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 300;
  color: var(--txt-primary);
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--dur-fast);
}

.nav-drawer__link:hover,
.nav-drawer__link.active {
  color: var(--clr-gold);
}

.nav-drawer__social {
  display: flex;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.nav-drawer__social a {
  color: var(--txt-secondary);
  font-size: var(--fs-sm);
  font-family: var(--font-utility);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--dur-fast);
}

.nav-drawer__social a:hover { color: var(--clr-gold); }


/* ============================================================
   6. HERO
   ============================================================ */

.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--clr-black);
}

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

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 8s var(--ease-out);
  will-change: transform;
}

.hero.is-loaded .hero__bg img {
  transform: scale(1);
}

/* Dégradé noir bas */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(14,14,14,.90) 0%,
    rgba(14,14,14,.40) 50%,
    rgba(14,14,14,.10) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(var(--sp-12), 8vw, var(--sp-24));
  width: 100%;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp var(--dur-slow) var(--ease-out) 0.2s forwards;
}

.hero__eyebrow::before {
  content: '';
  width: 2.5rem;
  height: 1px;
  background: var(--clr-gold);
}

.hero__label {
  font-family: var(--font-utility);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-gold);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, var(--fs-5xl));
  font-weight: 300;
  color: var(--clr-white);
  line-height: 1.05;
  margin-bottom: var(--sp-6);
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp var(--dur-slow) var(--ease-out) 0.4s forwards;
}

.hero__title em {
  font-style: italic;
  color: var(--clr-gold-light);
}

.hero__subtitle {
  font-size: var(--fs-md);
  font-weight: 300;
  color: rgba(255,255,255,.75);
  max-width: 50ch;
  margin-bottom: var(--sp-10);
  line-height: 1.7;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp var(--dur-slow) var(--ease-out) 0.6s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp var(--dur-slow) var(--ease-out) 0.8s forwards;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--sp-8);
  right: var(--sp-8);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(255,255,255,.5);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero__scroll::after {
  content: '';
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(201,168,76,.8), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* Stats hero */
.hero__stats {
  display: flex;
  gap: var(--sp-10);
  margin-top: var(--sp-10);
  padding-top: var(--sp-8);
  border-top: 1px solid rgba(255,255,255,.12);
  opacity: 0;
  animation: fadeUp var(--dur-slow) var(--ease-out) 1s forwards;
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 300;
  color: var(--clr-white);
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: var(--sp-1);
}


/* ============================================================
   7. SECTIONS COMMUNES
   ============================================================ */

/* Titre de section */
.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--txt-primary);
}

.section-title--inverse { color: var(--clr-white); }

/* Séparateur or */
.divider-gold {
  width: 3rem;
  height: 1px;
  background: linear-gradient(to right, var(--clr-gold), transparent);
  margin-block: var(--sp-6);
}

.divider-gold--center { margin-inline: auto; }

/* Bloc chiffres clés */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-1);
}

.stat-item {
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  border-right: 1px solid var(--border-color);
}

.stat-item:last-child { border-right: none; }

.stat-item__value {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-3xl), 5vw, var(--fs-4xl));
  font-weight: 300;
  color: var(--clr-gold);
  line-height: 1;
  display: block;
}

.stat-item__label {
  font-size: var(--fs-sm);
  color: var(--txt-secondary);
  margin-top: var(--sp-2);
}

/* Section CTA */
.cta-band {
  background: var(--clr-ink);
  padding-block: clamp(var(--sp-12), 6vw, var(--sp-20));
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-band__title {
  color: var(--clr-white);
  margin-bottom: var(--sp-6);
}

.cta-band__subtitle {
  color: rgba(255,255,255,.6);
  margin-bottom: var(--sp-8);
  margin-inline: auto;
}


/* ============================================================
   8. CARDS BIENS
   ============================================================ */

.biens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: var(--sp-6);
}

.card-bien {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
}

.card-bien:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Image */
.card-bien__img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-surface);
}

.card-bien__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.card-bien:hover .card-bien__img-wrap img {
  transform: scale(1.05);
}

/* Badges */
.card-bien__badges {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.badge {
  font-family: var(--font-utility);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.badge--premium {
  background: var(--clr-gold);
  color: var(--clr-ink);
}

.badge--new {
  background: var(--clr-ink);
  color: var(--clr-white);
}

.badge--vente  { background: rgba(14,14,14,.75); color: var(--clr-white); backdrop-filter: blur(4px); }
.badge--location { background: rgba(45,122,79,.85); color: var(--clr-white); }

/* Prix en overlay */
.card-bien__price-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--clr-gold);
  color: var(--clr-ink);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  padding: var(--sp-2) var(--sp-5);
  border-top-left-radius: var(--radius-md);
}

/* Contenu card */
.card-bien__body {
  padding: var(--sp-5) var(--sp-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-bien__location {
  font-size: var(--fs-xs);
  font-family: var(--font-utility);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: var(--sp-2);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.card-bien__location svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.card-bien__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--sp-4);
  color: var(--txt-primary);
  transition: color var(--dur-fast);
}

.card-bien:hover .card-bien__title { color: var(--clr-gold-dark); }

/* Specs */
.card-bien__specs {
  display: flex;
  gap: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--txt-secondary);
}

.spec-item svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--clr-gold); }
.spec-item span { font-weight: 500; color: var(--txt-primary); }

/* Footer card */
.card-bien__footer {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-bien__type {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--txt-secondary);
  font-family: var(--font-utility);
}

.card-bien__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-gold-dark);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  transition: gap var(--dur-fast);
  font-family: var(--font-utility);
}

.card-bien__link:hover { gap: var(--sp-3); }
.card-bien__link svg { width: 14px; height: 14px; }


/* ============================================================
   9. FILTRES BIENS
   ============================================================ */

.filtres-bar {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-6);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: flex-end;
  margin-bottom: var(--sp-10);
}

.filtre-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
  min-width: 160px;
}

.filtre-group label {
  font-size: var(--fs-xs);
  font-family: var(--font-utility);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--txt-secondary);
  font-weight: 600;
}

.filtre-group select,
.filtre-group input {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--txt-primary);
  background: var(--bg-page);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  appearance: none;
  -webkit-appearance: none;
}

.filtre-group select:focus,
.filtre-group input:focus {
  outline: none;
  border-color: var(--clr-gold);
  box-shadow: 0 0 0 3px var(--clr-gold-subtle);
}

/* Tabs filtres (page biens) */
.filter-tabs {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}

.filter-tab {
  font-size: var(--fs-sm);
  font-family: var(--font-utility);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  color: var(--txt-secondary);
  background: transparent;
  cursor: pointer;
  transition: all var(--dur-fast);
}

.filter-tab:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}

.filter-tab.active {
  background: var(--clr-gold);
  border-color: var(--clr-gold);
  color: var(--clr-ink);
}


/* ============================================================
   10. DÉTAIL BIEN
   ============================================================ */

.bien-hero {
  position: relative;
  height: 55vh;
  min-height: 400px;
  background: var(--clr-black);
  overflow: hidden;
}

.bien-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
}

.bien-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,14,14,.8) 0%, transparent 60%);
}

.bien-hero__info {
  position: absolute;
  bottom: var(--sp-10);
  left: 0;
  right: 0;
}

.bien-detail__layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--sp-10);
  align-items: start;
  padding-block: var(--sp-12);
}

.bien-detail__specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  margin-block: var(--sp-8);
}

.bien-spec {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.bien-spec__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--txt-secondary);
  font-family: var(--font-utility);
}

.bien-spec__value {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--txt-primary);
}

.bien-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.feature-tag {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--txt-secondary);
  background: var(--bg-surface);
}

.feature-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-gold);
  flex-shrink: 0;
}

/* Galerie bien */
.bien-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.bien-gallery__main img,
.bien-gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform var(--dur-base) var(--ease-out);
}

.bien-gallery__main img:hover,
.bien-gallery__thumbs img:hover { transform: scale(1.02); }

.bien-gallery__main { aspect-ratio: 16/10; overflow: hidden; }
.bien-gallery__thumbs {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--sp-3);
}
.bien-gallery__thumbs > * { overflow: hidden; }

/* Sidebar sticky */
.bien-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-6));
}

.contact-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.contact-card__price {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 300;
  color: var(--clr-gold);
  margin-bottom: var(--sp-6);
}

.contact-card__agent {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  border-block: 1px solid var(--border-color);
  margin-block: var(--sp-5);
}

.contact-card__agent-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-surface);
}

.contact-card__agent-name {
  font-weight: 500;
  font-size: var(--fs-md);
}

.contact-card__agent-role {
  font-size: var(--fs-xs);
  color: var(--txt-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--sp-1);
}


/* ============================================================
   11. À PROPOS
   ============================================================ */

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--sp-10), 6vw, var(--sp-20));
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-wrap__main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}

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

/* Encart accroche flottant */
.about-img-wrap__badge {
  position: absolute;
  bottom: -var(--sp-6);
  right: -var(--sp-6);
  background: var(--clr-gold);
  color: var(--clr-ink);
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  text-align: center;
  min-width: 140px;
  box-shadow: var(--shadow-gold);
}

.about-img-wrap__badge-value {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 300;
  line-height: 1;
  display: block;
}

.about-img-wrap__badge-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--sp-2);
}

.valeurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-10);
}

.valeur-item {
  padding: var(--sp-6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}

.valeur-item:hover {
  border-color: var(--clr-gold);
  box-shadow: var(--shadow-gold);
}

.valeur-item__icon {
  width: 40px;
  height: 40px;
  background: var(--clr-gold-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  color: var(--clr-gold);
}

.valeur-item__icon svg { width: 20px; height: 20px; }

.valeur-item__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 400;
  margin-bottom: var(--sp-2);
}

.valeur-item__text {
  font-size: var(--fs-sm);
  color: var(--txt-secondary);
  line-height: 1.6;
}

/* Équipe */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-6);
}

.team-card {
  text-align: center;
}

.team-card__img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-inline: auto;
  margin-bottom: var(--sp-4);
  border: 3px solid var(--clr-gold-light);
  background: var(--bg-surface);
}

.team-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 400;
}

.team-card__role {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-gold);
  margin-top: var(--sp-1);
}


/* ============================================================
   12. FORMULAIRE CONTACT
   ============================================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: clamp(var(--sp-10), 6vw, var(--sp-20));
  align-items: start;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-5);
  padding-block: var(--sp-6);
  border-bottom: 1px solid var(--border-color);
}

.contact-info__item:last-child { border-bottom: none; }

.contact-info__icon {
  width: 44px;
  height: 44px;
  background: var(--clr-gold-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--clr-gold);
}

.contact-info__icon svg { width: 20px; height: 20px; }

.contact-info__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--txt-secondary);
  margin-bottom: var(--sp-1);
  font-family: var(--font-utility);
}

.contact-info__value {
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--txt-primary);
}

/* Formulaire */
.form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.form-group:last-of-type { margin-bottom: 0; }

.form-label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--txt-primary);
  font-family: var(--font-utility);
}

.form-label .required {
  color: var(--clr-gold);
  margin-left: var(--sp-1);
}

.form-control {
  width: 100%;
  padding: var(--sp-4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  color: var(--txt-primary);
  background: var(--bg-page);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-base);
  line-height: 1.5;
}

.form-control:focus {
  outline: none;
  border-color: var(--clr-gold);
  box-shadow: 0 0 0 3px var(--clr-gold-subtle);
}

.form-control::placeholder { color: var(--clr-muted); }

.form-control--error {
  border-color: var(--clr-error);
  box-shadow: 0 0 0 3px rgba(185,48,48,.10);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-error {
  font-size: var(--fs-xs);
  color: var(--clr-error);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* Champ honeypot — invisible */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.form-footer {
  margin-top: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.form-note {
  font-size: var(--fs-xs);
  color: var(--txt-secondary);
  line-height: 1.5;
}


/* ============================================================
   13. FOOTER
   ============================================================ */

.site-footer {
  background: var(--bg-footer);
  color: rgba(255,255,255,.7);
  padding-top: clamp(var(--sp-16), 8vw, var(--sp-24));
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__brand-logo {
  height: 36px;
  width: auto;
  margin-bottom: var(--sp-6);
}

.footer__brand-desc {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: rgba(255,255,255,.5);
  max-width: 32ch;
}

.footer__social {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}

.footer__social-link:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
  background: var(--clr-gold-subtle);
}

.footer__social-link svg { width: 16px; height: 16px; }

.footer__col-title {
  font-family: var(--font-utility);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-white);
  margin-bottom: var(--sp-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__link {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.5);
  transition: color var(--dur-fast);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.footer__link:hover { color: var(--clr-gold); }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.5);
  margin-bottom: var(--sp-3);
}

.footer__contact-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--clr-gold);
}

.footer__bottom {
  padding-block: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer__copy {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.3);
}

.footer__legal {
  display: flex;
  gap: var(--sp-5);
}

.footer__legal a {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.3);
  transition: color var(--dur-fast);
}

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

/* Or accent footer */
.footer__gold-bar {
  height: 2px;
  background: linear-gradient(to right, transparent, var(--clr-gold), transparent);
  margin-bottom: var(--sp-1);
}


/* ============================================================
   14. FLASH MESSAGES
   ============================================================ */

.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 500;
  animation: slideDown var(--dur-base) var(--ease-out);
}

.flash--success {
  background: rgba(45,122,79,.10);
  border: 1px solid rgba(45,122,79,.30);
  color: var(--clr-success);
}

.flash--error {
  background: rgba(185,48,48,.10);
  border: 1px solid rgba(185,48,48,.30);
  color: var(--clr-error);
}

.flash--info {
  background: var(--clr-gold-subtle);
  border: 1px solid rgba(201,168,76,.30);
  color: var(--clr-gold-dark);
}

.flash__close {
  font-size: var(--fs-lg);
  line-height: 1;
  color: currentColor;
  opacity: .6;
  transition: opacity var(--dur-fast);
  flex-shrink: 0;
}

.flash__close:hover { opacity: 1; }


/* ============================================================
   15. COMPOSANTS UI
   ============================================================ */

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  font-family: var(--font-utility);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--sp-4) var(--sp-8);
  border-radius: var(--radius-sm);
  transition: all var(--dur-base) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Or — CTA principal */
.btn--gold {
  background: var(--clr-gold);
  color: var(--clr-ink);
  border: 1px solid var(--clr-gold);
}

.btn--gold:hover {
  background: var(--clr-gold-dark);
  border-color: var(--clr-gold-dark);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

/* Contour or */
.btn--outline-gold {
  background: transparent;
  color: var(--clr-gold);
  border: 1px solid var(--clr-gold);
}

.btn--outline-gold:hover {
  background: var(--clr-gold);
  color: var(--clr-ink);
}

/* Contour blanc (sur fond sombre) */
.btn--outline-white {
  background: transparent;
  color: var(--clr-white);
  border: 1px solid rgba(255,255,255,.5);
}

.btn--outline-white:hover {
  background: rgba(255,255,255,.10);
  border-color: var(--clr-white);
}

/* Plein blanc */
.btn--white {
  background: var(--clr-white);
  color: var(--clr-ink);
  border: 1px solid var(--clr-white);
}

.btn--white:hover {
  background: var(--clr-surface);
  box-shadow: var(--shadow-md);
}

/* Plein noir */
.btn--dark {
  background: var(--clr-ink);
  color: var(--clr-white);
  border: 1px solid var(--clr-ink);
}

.btn--dark:hover {
  background: var(--clr-charcoal);
}

/* Tailles */
.btn--sm { font-size: var(--fs-xs); padding: var(--sp-2) var(--sp-5); }
.btn--lg { font-size: var(--fs-base); padding: var(--sp-5) var(--sp-10); }
.btn--full { width: 100%; }

/* Lien avec flèche */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-utility);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-gold);
  transition: gap var(--dur-fast);
}

.link-arrow:hover { gap: var(--sp-4); }
.link-arrow svg { width: 14px; height: 14px; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-family: var(--font-utility);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--txt-secondary);
  padding-block: var(--sp-4);
}

.breadcrumb a { color: var(--txt-secondary); transition: color var(--dur-fast); }
.breadcrumb a:hover { color: var(--clr-gold); }
.breadcrumb__sep { color: var(--clr-gold); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-12);
}

.pagination__item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--txt-secondary);
  transition: all var(--dur-fast);
}

.pagination__item:hover { border-color: var(--clr-gold); color: var(--clr-gold); }
.pagination__item.active { background: var(--clr-gold); border-color: var(--clr-gold); color: var(--clr-ink); }

/* Back to top */
.btn-top {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  width: 44px;
  height: 44px;
  background: var(--clr-gold);
  color: var(--clr-ink);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  z-index: var(--z-card);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-base), transform var(--dur-base) var(--ease-out);
  pointer-events: none;
}

.btn-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn-top:hover { background: var(--clr-gold-dark); }
.btn-top svg { width: 18px; height: 18px; }

/* WhatsApp flottant */
.btn-whatsapp {
  position: fixed;
  bottom: var(--sp-6);
  left: var(--sp-6);
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-card);
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}

.btn-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,.50);
}

.btn-whatsapp svg { width: 28px; height: 28px; color: #fff; }

/* Page header interne */
.page-header {
  background: var(--clr-ink);
  padding-block: clamp(var(--sp-16), 8vw, var(--sp-24));
  padding-top: calc(var(--header-h) + clamp(var(--sp-12), 6vw, var(--sp-20)));
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 80%, rgba(201,168,76,.12) 0%, transparent 60%);
  pointer-events: none;
}

.page-header__eyebrow { color: rgba(255,255,255,.5); }
.page-header__eyebrow .label { color: var(--clr-gold); }

.page-header__title {
  color: var(--clr-white);
  margin-bottom: var(--sp-4);
}

.page-header__subtitle {
  color: rgba(255,255,255,.6);
  font-size: var(--fs-md);
  font-weight: 300;
}


/* ============================================================
   16. ANIMATIONS
   ============================================================ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(1); }
  50%       { opacity: 1; transform: scaleY(1.15); }
}

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

/* Reveal au scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--border-color) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}


/* ============================================================
   17. DARK MODE
   ============================================================ */

[data-theme="dark"] {
  --bg-page:      #111111;
  --bg-surface:   #1a1a1a;
  --bg-card:      #1e1e1e;
  --bg-header:    rgba(17,17,17,.92);
  --bg-footer:    #0a0a0a;

  --txt-primary:   #f0ede8;
  --txt-secondary: #8a8a8a;
  --txt-inverse:   #111111;

  --border-color:  #2e2e2e;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.30), 0 1px 2px rgba(0,0,0,.20);
  --shadow-md: 0 4px 16px rgba(0,0,0,.40), 0 2px 6px rgba(0,0,0,.25);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.60), 0 6px 16px rgba(0,0,0,.35);
}

[data-theme="dark"] .logo--light { display: block; }
[data-theme="dark"] .logo--dark  { display: none; }

[data-theme="dark"] .site-header--scrolled .logo--light { display: none; }
[data-theme="dark"] .site-header--scrolled .logo--dark  { display: block; }

[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

[data-theme="dark"] .filtre-group select,
[data-theme="dark"] .filtre-group input,
[data-theme="dark"] .form-control {
  background: var(--bg-surface);
  border-color: var(--border-color);
  color: var(--txt-primary);
}

[data-theme="dark"] .nav-drawer {
  background: var(--bg-page);
}

[data-theme="dark"] .section--surface {
  background: var(--bg-surface);
}

[data-theme="dark"] .card-bien,
[data-theme="dark"] .form-card,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .filtres-bar {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .valeur-item {
  border-color: var(--border-color);
}

[data-theme="dark"] .stat-item {
  border-color: var(--border-color);
}


/* ============================================================
   18. RESPONSIVE
   ============================================================ */

/* ─ Tablette large ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }

  .bien-detail__layout {
    grid-template-columns: 1fr;
  }

  .bien-sidebar {
    position: static;
  }
}

/* ─ Tablette ────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .nav__list { display: none; }
  .btn-menu  { display: flex; }
  .nav-drawer { display: block; }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-img-wrap__badge {
    right: var(--sp-4);
    bottom: var(--sp-4);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    gap: var(--sp-6);
  }

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

/* ─ Mobile ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-8); }

  .hero__stats { flex-wrap: wrap; gap: var(--sp-5); }

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

  .stat-item { border-right: none; border-bottom: 1px solid var(--border-color); }
  .stat-item:nth-child(even) { border-right: none; }

  .btn-whatsapp { bottom: calc(var(--sp-6) + 56px); }

  .bien-gallery { grid-template-columns: 1fr; }
  .bien-gallery__thumbs { grid-template-rows: auto; grid-template-columns: 1fr 1fr; }

  .filtres-bar { flex-direction: column; }
  .filtre-group { min-width: 100%; }

  .hero__scroll { display: none; }

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

  .cta-band__inner .btn { width: 100%; }
}


/* ============================================================
   19. UTILITAIRES
   ============================================================ */

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

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.text-gold   { color: var(--clr-gold); }
.text-muted  { color: var(--txt-secondary); }
.text-white  { color: var(--clr-white); }

.mt-auto { margin-top: auto; }
.mx-auto { margin-inline: auto; }
.mb-0    { margin-bottom: 0; }

.w-full  { width: 100%; }
.hidden  { display: none; }
.block   { display: block; }

.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* Aspect ratios */
.ratio-16-9  { aspect-ratio: 16/9; }
.ratio-4-3   { aspect-ratio: 4/3; }
.ratio-1-1   { aspect-ratio: 1/1; }

/* Objets */
.obj-cover  { object-fit: cover; width: 100%; height: 100%; }
.obj-center { object-position: center; }


/* ============================================================
   20. PRINT
   ============================================================ */

@media print {
  .site-header,
  .site-footer,
  .btn-top,
  .btn-whatsapp,
  .btn-menu,
  .nav-drawer { display: none !important; }

  body { font-size: 12pt; color: #000; background: #fff; }

  a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; }

  .card-bien { break-inside: avoid; }

  .hero {
    height: auto;
    min-height: 0;
    padding-block: 2cm;
  }
}

/* Respect préférence reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
