/*
Theme Name: Cité-U Facile
Theme URI: https://cite-u-facile.local
Author: Institut Saint Jean – TechDays 2024
Description: Plateforme de logements étudiants autour de l'ISJ Yaoundé. Version 2 – Design moderne, couleurs vives, 100% responsive.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: cite-u-facile
*/

/* ============================================================
   DESIGN TOKENS v2 — Couleurs vives, modernes
   ============================================================ */
:root {
  /* Primaire Indigo Vif */
  --c-primary:        #5B21B6;
  --c-primary-dark:   #4C1D95;
  --c-primary-light:  #7C3AED;
  --c-primary-xlight: #EDE9FE;
  --c-primary-pale:   #F5F3FF;

  /* Accent Violet */
  --c-accent:         #8B5CF6;
  --c-accent-glow:    rgba(139,92,246,0.25);

  /* Secondaire Teal (pour les badges forage) */
  --c-teal:           #0D9488;
  --c-teal-light:     #CCFBF1;
  --c-teal-text:      #0F766E;

  /* Succès vert */
  --c-green:          #16A34A;
  --c-green-light:    #DCFCE7;

  /* Ambre (Eneo) */
  --c-amber:          #D97706;
  --c-amber-light:    #FEF3C7;

  /* Surfaces */
  --c-bg:             #FAFAFA;
  --c-surface:        #FFFFFF;
  --c-surface-alt:    #F4F3FF;
  --c-border:         #E5E7EB;
  --c-border-soft:    #EDE9FE;

  /* Textes */
  --c-text:           #111827;
  --c-text-muted:     #6B7280;
  --c-text-light:     #9CA3AF;

  /* Footer VIVID */
  --c-footer-bg:      #1E0A3C;
  --c-footer-accent:  #7C3AED;
  --c-footer-text:    #C4B5FD;
  --c-footer-muted:   #7C6FAD;

  /* Ombres */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:   0 4px 16px rgba(91,33,182,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:   0 8px 32px rgba(91,33,182,.15), 0 4px 12px rgba(0,0,0,.08);
  --shadow-card: 0 2px 8px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.04);
  --shadow-card-hover: 0 12px 32px rgba(91,33,182,.18), 0 2px 8px rgba(0,0,0,.08);

  /* Rayons */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Espacements */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  16px;
  --sp-lg:  24px;
  --sp-xl:  40px;
  --sp-2xl: 64px;
  --sp-3xl: 96px;

  /* Typographie */
  --font-display: 'Syne', 'Plus Jakarta Sans', sans-serif;
  --font-body:    'DM Sans', 'Plus Jakarta Sans', sans-serif;

  /* Layout */
  --max-w: 1200px;
  --col-gap: 24px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
main { flex: 1; }

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--col-gap);
}

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */
.t-display { font-family: var(--font-display); font-size: clamp(32px,5vw,52px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.t-h1      { font-family: var(--font-display); font-size: clamp(24px,4vw,40px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.t-h2      { font-family: var(--font-display); font-size: clamp(20px,3vw,32px); font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
.t-h3      { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.3; }
.t-body    { font-family: var(--font-body); font-size: 15px; line-height: 1.65; }
.t-small   { font-family: var(--font-body); font-size: 13px; line-height: 1.5; }
.t-label   { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* ============================================================
   NAV — Moderne, avec backdrop blur
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: var(--sp-lg);
}
.nav-logo {
  font-family: var(--font-display); font-size: 18px; font-weight: 800;
  color: var(--c-primary); letter-spacing: -0.03em; white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo::before {
  content: '';
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  display: block; flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: var(--sp-lg); }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--c-text-muted);
  transition: color .2s; padding: 4px 2px;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--c-primary); transform: scaleX(0);
  transition: transform .25s; border-radius: 2px;
}
.nav-links a:hover, .nav-links a.current { color: var(--c-primary); }
.nav-links a.current::after, .nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  color: #fff; padding: 9px 20px; border-radius: var(--r-full);
  font-size: 14px; font-weight: 600; border: none; cursor: pointer;
  transition: opacity .2s, transform .15s; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(91,33,182,.35);
}
.nav-cta:hover { opacity: .9; transform: translateY(-1px); }

.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; color: var(--c-text); border-radius: var(--r-sm);
  transition: background .2s;
}
.nav-hamburger:hover { background: var(--c-primary-xlight); }
.nav-hamburger svg { width: 22px; height: 22px; }

/* Mobile nav */
@media (max-width: 768px) {
  .nav-links, .nav-cta-wrap { display: none; }
  .nav-hamburger { display: flex; align-items: center; justify-content: center; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--c-surface); border-bottom: 1px solid var(--c-border);
    padding: var(--sp-lg); gap: var(--sp-md); z-index: 199;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
  }
  .nav-links.open a { font-size: 16px; }
  .nav-cta-wrap.open { display: block; padding: 0 var(--sp-lg) var(--sp-lg); background: var(--c-surface); }
}

/* ============================================================
   HERO — Layout 2 colonnes, image droite
   ============================================================ */
.hero {
  background: var(--c-surface);
  padding-block: var(--sp-3xl) var(--sp-2xl);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3xl); align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--c-primary-xlight); color: var(--c-primary);
  padding: 5px 12px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: var(--sp-md);
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(30px,4.5vw,48px);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  color: var(--c-text); margin-bottom: var(--sp-md);
}
.hero-title span { color: var(--c-primary); }
.hero-sub {
  font-size: 16px; color: var(--c-text-muted); line-height: 1.7;
  max-width: 480px; margin-bottom: var(--sp-xl);
}

/* Barre de recherche 2 champs */
.search-bar {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; overflow: hidden;
  max-width: 480px;
}
.search-field {
  flex: 1; display: flex; flex-direction: column;
  padding: 10px 16px; border-right: 1px solid var(--c-border);
  min-width: 0;
}
.search-field:last-of-type { border-right: none; }
.search-field label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--c-text-muted); margin-bottom: 2px;
}
.search-field input {
  border: none; outline: none; background: transparent;
  font-size: 14px; color: var(--c-text); width: 100%;
}
.search-field input::placeholder { color: var(--c-text-light); }
.search-btn {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  color: #fff; border: none; padding: 0 20px; height: 100%; cursor: pointer;
  display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px;
  white-space: nowrap; transition: opacity .2s;
  min-height: 56px;
}
.search-btn:hover { opacity: .9; }
.search-btn svg { width: 16px; height: 16px; }

/* Image hero */
.hero-image-wrap {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/3;
}
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-radius: var(--r-md); padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-md);
}
.hero-badge-icon {
  width: 36px; height: 36px; background: var(--c-primary-xlight);
  border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
  color: var(--c-primary);
}
.hero-badge-num { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--c-primary); }
.hero-badge-txt { font-size: 12px; color: var(--c-text-muted); line-height: 1.3; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--sp-2xl); }
  .hero-image-wrap { max-height: 300px; }
}
@media (max-width: 600px) {
  .hero { padding-block: var(--sp-2xl) var(--sp-xl); }
  .search-bar { flex-direction: column; max-width: 100%; border-radius: var(--r-md); }
  .search-field { border-right: none; border-bottom: 1px solid var(--c-border); }
  .search-btn { width: 100%; justify-content: center; min-height: 48px; border-radius: 0 0 var(--r-md) var(--r-md); }
}

/* ============================================================
   SECTION COMMUNE
   ============================================================ */
.section { padding-block: var(--sp-3xl); }
.section-alt { background: var(--c-primary-pale); }
.section-header { margin-bottom: var(--sp-2xl); }
.section-eyebrow {
  display: inline-block; color: var(--c-primary); font-size: 12px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: var(--sp-sm);
}
.section-title { font-family: var(--font-display); font-size: clamp(22px,3vw,32px); font-weight: 700; color: var(--c-text); }
.section-sub { font-size: 15px; color: var(--c-text-muted); margin-top: var(--sp-sm); max-width: 560px; }

/* ============================================================
   CARDS CHAMBRE
   ============================================================ */
.chambre-card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
  cursor: pointer;
  text-decoration: none;
}
.chambre-card > a[style="display:contents"] {
  display: flex !important;
  flex-direction: column;
  flex: 1;
}
.chambre-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--c-border-soft);
}
.card-img-wrap {
  position: relative; overflow: hidden;
  height: 200px; background: var(--c-surface-alt); flex-shrink: 0;
}
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.chambre-card:hover .card-img { transform: scale(1.06); }

.card-price-tag {
  position: absolute; bottom: 12px; left: 12px;
  background: var(--c-primary); color: #fff;
  padding: 5px 12px; border-radius: var(--r-full);
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(91,33,182,.4);
  letter-spacing: -0.01em;
}
.card-fav-btn {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--c-text-muted); transition: color .2s, transform .2s;
}
.card-fav-btn:hover { color: #EF4444; transform: scale(1.15); }
.card-fav-btn svg { width: 16px; height: 16px; }

.card-body { padding: var(--sp-md); flex: 1; display: flex; flex-direction: column; gap: var(--sp-sm); }

.card-verified {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  color: var(--c-primary); text-transform: uppercase;
}
.card-verified svg { width: 13px; height: 13px; }

.card-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--c-text); line-height: 1.3; }
.card-desc  { font-size: 13px; color: var(--c-text-muted); line-height: 1.5; }

.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--sp-sm); }
.card-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 600;
  background: var(--c-surface-alt); color: var(--c-text-muted);
  border: 1px solid var(--c-border);
}
.card-chip--forage { background: var(--c-teal-light); color: var(--c-teal-text); border-color: var(--c-teal-light); }
.card-chip--verifie { background: var(--c-primary-xlight); color: var(--c-primary); border-color: var(--c-border-soft); }
.card-chip--dispo   { background: var(--c-green-light); color: var(--c-green); border-color: var(--c-green-light); }
.card-chip--occupe  { background: #F3F4F6; color: var(--c-text-light); border-color: var(--c-border); }
.card-chip--eneo    { background: var(--c-amber-light); color: var(--c-amber); border-color: var(--c-amber-light); }
.card-chip svg { width: 12px; height: 12px; }

.card-cta {
  display: block; width: 100%; padding: 10px; margin-top: var(--sp-sm);
  background: var(--c-primary-xlight); color: var(--c-primary);
  border: 1.5px solid var(--c-border-soft); border-radius: var(--r-md);
  font-size: 13px; font-weight: 700; text-align: center;
  cursor: pointer; transition: background .2s, color .2s; text-decoration: none;
}
.card-cta:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* ============================================================
   GRILLE (Desktop 3 col / Tablet 2 col / Mobile 2 col)
   ============================================================ */
.chambres-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}
@media (max-width: 1024px) { .chambres-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .chambres-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-sm); } }

/* ============================================================
   PAGE CATALOGUE — FILTRES
   ============================================================ */

/* ---------- Barre filtres HORIZONTALE (desktop + tablet) ---------- */
.catalogue-filters-bar {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-lg) var(--sp-xl);
  margin-bottom: var(--sp-xl);
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-xl);
}
.filter-item { display: flex; flex-direction: column; gap: 6px; min-width: 180px; flex: 1; }
.filter-item label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--c-text-muted);
  display: flex; justify-content: space-between; align-items: center;
}
.filter-item label span { color: var(--c-primary); font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 700; }

/* Range slider custom */
input[type="range"].fancy-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; outline: none;
  background: linear-gradient(to right, var(--c-primary) var(--val, 60%), var(--c-border) var(--val, 60%));
  border-radius: var(--r-full); cursor: pointer;
}
input[type="range"].fancy-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--c-primary); border: 2.5px solid #fff;
  box-shadow: 0 0 0 3px rgba(91,33,182,.2), var(--shadow-sm);
  transition: box-shadow .2s, transform .15s;
  cursor: grab;
}
input[type="range"].fancy-range::-webkit-slider-thumb:hover,
input[type="range"].fancy-range:active::-webkit-slider-thumb {
  box-shadow: 0 0 0 5px rgba(91,33,182,.3), var(--shadow-sm);
  transform: scale(1.15); cursor: grabbing;
}

/* Checkboxes toggle pill */
.filter-toggles { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toggle-pill input { display: none; }
.toggle-pill label {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: var(--r-full);
  border: 1.5px solid var(--c-border); background: var(--c-surface);
  font-size: 12px; font-weight: 600; color: var(--c-text-muted);
  cursor: pointer; transition: all .2s; user-select: none;
}
.toggle-pill input:checked + label {
  background: var(--c-primary); color: #fff; border-color: var(--c-primary);
  box-shadow: 0 2px 8px rgba(91,33,182,.3);
}
.toggle-pill label:hover { border-color: var(--c-primary); color: var(--c-primary); }
.toggle-pill input:checked + label:hover { opacity: .9; }

/* Sélect tri */
.filter-select {
  padding: 8px 14px; border: 1.5px solid var(--c-border); border-radius: var(--r-md);
  background: var(--c-surface); color: var(--c-text); font-size: 13px; font-weight: 500;
  cursor: pointer; outline: none; transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  padding-right: 32px;
}
.filter-select:focus { border-color: var(--c-primary); }

/* Cats rapides */
.filter-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--sp-md); }
.cat-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: var(--r-full);
  border: 1.5px solid var(--c-border); background: var(--c-surface);
  font-size: 12px; font-weight: 600; color: var(--c-text-muted);
  cursor: pointer; transition: all .2s;
}
.cat-btn.active, .cat-btn:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-xlight); }
.cat-btn.active { box-shadow: 0 0 0 3px rgba(91,33,182,.12); }
.cat-btn svg { width: 14px; height: 14px; }

/* Résultats header */
.results-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--sp-lg); flex-wrap: wrap; gap: var(--sp-sm);
}
.results-count { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.results-sub   { font-size: 13px; color: var(--c-text-muted); margin-top: 2px; }

/* ---------- MOBILE : popup filter bouton FAB ---------- */
@media (max-width: 768px) {
  .catalogue-filters-bar {
    display: none; /* remplacé par popup mobile */
  }

  /* Barre filtres rapides catégories (toujours visible) */
  .filter-cats { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .filter-cats::-webkit-scrollbar { display: none; }

  /* FAB flottant */
  .fab-filter-btn {
    position: fixed; bottom: 24px; right: 24px; z-index: 300;
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
    color: #fff; border: none; cursor: pointer;
    box-shadow: 0 4px 20px rgba(91,33,182,.5);
    display: flex; align-items: center; justify-content: center;
    transition: transform .2s, box-shadow .2s;
  }
  .fab-filter-btn:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(91,33,182,.6); }
  .fab-filter-btn svg { width: 24px; height: 24px; }
  .fab-badge {
    position: absolute; top: -4px; right: -4px;
    width: 20px; height: 20px; background: #EF4444; color: #fff;
    border-radius: 50%; font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff; display: none;
  }
  .fab-badge.show { display: flex; }
}
@media (min-width: 769px) {
  .fab-filter-btn { display: none; }
}

/* ---------- Popup filtre mobile ---------- */
.filter-popup-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 400;
  backdrop-filter: blur(4px);
}
.filter-popup-overlay.open { display: block; }
.filter-popup {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 401;
  background: var(--c-surface); border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: var(--sp-lg) var(--sp-lg) calc(var(--sp-lg) + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.34,1.08,.64,1);
  max-height: 90vh; overflow-y: auto;
}
.filter-popup.open { transform: translateY(0); }
.filter-popup-handle {
  width: 40px; height: 4px; background: var(--c-border);
  border-radius: var(--r-full); margin: 0 auto var(--sp-lg);
}
.filter-popup-title {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  margin-bottom: var(--sp-lg); display: flex; justify-content: space-between; align-items: center;
}
.popup-close-btn {
  background: var(--c-surface-alt); border: none; cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--c-text-muted);
}
.popup-close-btn svg { width: 16px; height: 16px; }
.filter-popup .filter-item { min-width: 100%; }
.filter-popup .catalogue-filters-bar {
  display: flex !important; flex-direction: column;
  border: none; box-shadow: none; padding: 0; margin: 0; gap: var(--sp-lg);
}
.popup-apply-btn {
  width: 100%; padding: 14px; margin-top: var(--sp-md);
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  color: #fff; border: none; border-radius: var(--r-lg);
  font-size: 15px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 16px rgba(91,33,182,.4);
  transition: opacity .2s;
}
.popup-apply-btn:hover { opacity: .9; }
.popup-reset-btn {
  width: 100%; padding: 12px; margin-top: var(--sp-sm);
  background: transparent; color: var(--c-text-muted);
  border: 1.5px solid var(--c-border); border-radius: var(--r-lg);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.popup-reset-btn:hover { color: var(--c-primary); border-color: var(--c-primary); }

/* ============================================================
   NO RESULTS
   ============================================================ */
.no-results {
  grid-column: 1 / -1; text-align: center; padding: var(--sp-3xl);
  color: var(--c-text-muted);
}
.no-results svg { width: 48px; height: 48px; margin: 0 auto var(--sp-md); color: var(--c-border); }
.no-results h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: var(--sp-sm); }

/* ============================================================
   FEATURES CARDS
   ============================================================ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-lg); }
@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--c-surface); border-radius: var(--r-xl);
  border: 1px solid var(--c-border); padding: var(--sp-xl);
  box-shadow: var(--shadow-sm); text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: var(--c-border-soft);
}
.feature-icon {
  width: 56px; height: 56px; background: var(--c-primary-xlight);
  border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-md); color: var(--c-primary);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: var(--sp-sm); }
.feature-desc  { font-size: 14px; color: var(--c-text-muted); line-height: 1.65; }

/* ============================================================
   FOOTER VIVID (indigo foncé)
   ============================================================ */
.site-footer {
  background: var(--c-footer-bg);
  color: var(--c-footer-text);
  margin-top: auto;
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute; top: -80px; left: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.2) 0%, transparent 70%);
  pointer-events: none;
}
.site-footer::after {
  content: '';
  position: absolute; bottom: -40px; right: 60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.12) 0%, transparent 70%);
  pointer-events: none;
}
.footer-inner {
  position: relative; z-index: 1;
  padding-block: var(--sp-3xl);
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: var(--sp-2xl);
}
.footer-brand .footer-logo {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  color: #fff; letter-spacing: -0.03em; margin-bottom: var(--sp-md);
  display: flex; align-items: center; gap: 10px;
}
.footer-brand .footer-logo::before {
  content: '';
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--c-accent), var(--c-primary-light));
  display: block; flex-shrink: 0;
}
.footer-tagline { font-size: 14px; color: var(--c-footer-muted); line-height: 1.65; max-width: 260px; }
.footer-copy {
  font-size: 12px; color: var(--c-footer-muted); margin-top: var(--sp-xl);
  padding-top: var(--sp-md); border-top: 1px solid rgba(124,58,237,.2);
}
.footer-col-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--c-footer-text);
  margin-bottom: var(--sp-md);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px; color: var(--c-footer-muted);
  transition: color .2s; display: flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(124,58,237,.2);
  padding-block: var(--sp-lg);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--sp-md); position: relative; z-index: 1;
}
.footer-bottom p { font-size: 13px; color: var(--c-footer-muted); }
.footer-bottom-links { display: flex; gap: var(--sp-lg); }
.footer-bottom-links a { font-size: 13px; color: var(--c-footer-muted); transition: color .2s; }
.footer-bottom-links a:hover { color: #fff; }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: var(--sp-xl); }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   PAGE SINGLE CHAMBRE
   ============================================================ */
.single-layout {
  display: grid; grid-template-columns: 1fr 380px;
  gap: var(--sp-2xl); padding-block: var(--sp-2xl) var(--sp-3xl);
  align-items: start;
}
.breadcrumb {
  font-size: 13px; color: var(--c-text-muted);
  margin-bottom: var(--sp-lg); display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--c-primary); transition: opacity .2s; }
.breadcrumb a:hover { opacity: .75; }
.breadcrumb svg { width: 14px; height: 14px; color: var(--c-text-light); }

.gallery-main { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/3; background: var(--c-surface-alt); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: var(--sp-sm); margin-top: var(--sp-sm); }
.gallery-thumb  {
  width: 80px; height: 60px; object-fit: cover; border-radius: var(--r-sm);
  cursor: pointer; border: 2.5px solid transparent; transition: border-color .2s, opacity .2s;
  opacity: .7; flex-shrink: 0;
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--c-primary); opacity: 1; }

.price-card {
  background: var(--c-surface); border: 1.5px solid var(--c-border);
  border-radius: var(--r-xl); padding: var(--sp-xl);
  box-shadow: var(--shadow-md);
  position: sticky; top: 80px;
}
.price-amount {
  font-family: var(--font-display); font-size: 36px; font-weight: 800;
  color: var(--c-primary); letter-spacing: -0.03em;
}
.price-amount span { font-size: 16px; font-weight: 400; color: var(--c-text-muted); letter-spacing: 0; }
.price-sep { height: 1px; background: var(--c-border); margin-block: var(--sp-md); }
.price-row { display: flex; justify-content: space-between; align-items: center; padding-block: 6px; font-size: 14px; }
.price-row .label { color: var(--c-text-muted); }
.price-row .val   { font-weight: 600; color: var(--c-text); }
.price-caution-box {
  background: var(--c-primary-pale); border-radius: var(--r-md); padding: var(--sp-md);
  margin-top: var(--sp-md); border: 1px solid var(--c-border-soft);
}
.caution-label { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--c-text-muted); }
.caution-total { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--c-primary); margin-top: 2px; }
.btn-contact {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 14px; margin-top: var(--sp-lg);
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  color: #fff; border: none; border-radius: var(--r-lg);
  font-size: 15px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 16px rgba(91,33,182,.4); transition: opacity .2s, transform .15s;
  text-decoration: none;
}
.btn-contact:hover { opacity: .92; transform: translateY(-1px); }
.btn-contact svg { width: 18px; height: 18px; }
.btn-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 12px; margin-top: var(--sp-sm);
  background: #25D366; color: #fff;
  border: none; border-radius: var(--r-lg); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: opacity .2s; text-decoration: none;
}
.btn-whatsapp:hover { opacity: .9; }
.btn-whatsapp svg { width: 18px; height: 18px; }

.specs-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-sm); margin-top: var(--sp-md);
}
.spec-box {
  background: var(--c-surface-alt); border-radius: var(--r-md);
  padding: var(--sp-md); border: 1px solid var(--c-border);
}
.spec-label { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--c-text-light); margin-bottom: 4px; }
.spec-value { font-size: 15px; font-weight: 700; color: var(--c-text); display: flex; align-items: center; gap: 5px; }
.spec-value svg { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .single-layout { grid-template-columns: 1fr; }
  .price-card { position: static; }
}

/* ============================================================
   BUTTONS GLOBALS
   ============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  color: #fff; padding: 11px 24px; border-radius: var(--r-full);
  font-size: 14px; font-weight: 700; border: none; cursor: pointer;
  box-shadow: 0 2px 12px rgba(91,33,182,.35);
  transition: opacity .2s, transform .15s; text-decoration: none;
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-primary svg { width: 16px; height: 16px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--c-primary);
  padding: 11px 24px; border-radius: var(--r-full);
  font-size: 14px; font-weight: 700; border: 1.5px solid var(--c-primary);
  cursor: pointer; transition: background .2s, color .2s; text-decoration: none;
}
.btn-ghost:hover { background: var(--c-primary); color: #fff; }
.btn-ghost svg { width: 16px; height: 16px; }

/* ============================================================
   UTILITAIRES
   ============================================================ */
.text-center { text-align: center; }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mt-xl { margin-top: var(--sp-xl); }
.hidden { display: none !important; }
.view-all-wrap { text-align: center; margin-top: var(--sp-2xl); }

/* Loader skeleton */
@keyframes shimmer {
  from { background-position: -400px 0; }
  to   { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--c-surface-alt) 25%, #e8e8f0 50%, var(--c-surface-alt) 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-sm);
}
