/* =========================================
   PRIX IMMOBILIER FRANCE — gospi.fr
   Design sobre, propre, professionnel
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Sora:wght@600;700;800&display=swap');

:root {
  --primary:       #0077B6;
  --primary-dark:  #005f92;
  --primary-light: #e0f2fe;
  --secondary:     #90E0EF;
  --accent:        #023E8A;
  --success:       #16a34a;
  --danger:        #dc2626;
  --warning:       #d97706;

  --text:          #0f172a;
  --text-2:        #334155;
  --text-3:        #64748b;
  --text-4:        #94a3b8;

  --bg:            #f8fafc;
  --bg-white:      #ffffff;
  --bg-subtle:     #f1f5f9;
  --bg-blue:       #eff6ff;

  --border:        #e2e8f0;
  --border-2:      #cbd5e1;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow:    0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.10);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.12);

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 24px;

  --font:    'Inter', system-ui, sans-serif;
  --font-h:  'Sora', system-ui, sans-serif;
  --ease:    0.22s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- TYPE ---- */
h1,h2,h3,h4,h5 { font-family: var(--font-h); line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-3); line-height: 1.75; }
a  { color: var(--primary); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--primary-dark); }
strong { font-weight: 600; color: var(--text-2); }
ul { list-style: none; }

/* ---- LAYOUT ---- */
.container    { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px;  margin: 0 auto; padding: 0 24px; }
.container-xs { max-width: 620px;  margin: 0 auto; padding: 0 24px; }

/* ============================
   HEADER
   ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 24px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}
.header-logo:hover { color: var(--primary); }
.header-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  flex-shrink: 0;
}
.header-logo .logo-sub {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-4);
  font-family: var(--font);
  margin-left: 2px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.header-nav a {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-3);
  transition: all var(--ease);
  white-space: nowrap;
}
.header-nav a:hover { background: var(--bg-subtle); color: var(--text); }
.header-nav a.active { background: var(--bg-blue); color: var(--primary); font-weight: 600; }

/* Header search mini */
.header-search-wrap { position: relative; flex-shrink: 0; }
.header-search-wrap input {
  width: 210px;
  height: 38px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0 14px 0 36px;
  font-size: 0.85rem;
  font-family: var(--font);
  outline: none;
  transition: all var(--ease);
  background: var(--bg-subtle);
  color: var(--text);
}
.header-search-wrap input:focus {
  width: 250px;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,119,182,0.10);
}
.header-search-wrap .search-icon {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-4);
  pointer-events: none;
}
.header-search-wrap .autocomplete-list {
  min-width: 280px;
  right: 0; left: auto;
}

/* ============================
   BREADCRUMB
   ============================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 0 10px;
  font-size: 0.8rem;
  color: var(--text-4);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb svg { color: var(--border-2); flex-shrink: 0; }

/* ============================
   HERO
   ============================ */
.hero {
  background: linear-gradient(135deg, #012355 0%, #023E8A 45%, #0077B6 100%);
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
  color: white;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/5798209/pexels-photo-5798209.jpeg?auto=compress&cs=tinysrgb&h=650&w=940');
  background-size: cover;
  background-position: center;
  opacity: 0.07;
}
.hero-wave {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 64px;
}
.hero-wave path { fill: var(--bg); }
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.90);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-eyebrow .dot-live {
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero p  { color: rgba(255,255,255,0.80); font-size: 1.05rem; margin-bottom: 36px; }

/* ============================
   SEARCH BAR
   ============================ */
.search-wrap { position: relative; max-width: 640px; margin: 0 auto; }
.search-bar {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.22);
  overflow: hidden;
}
.search-bar-icon {
  padding: 0 0 0 20px;
  color: var(--text-4);
  flex-shrink: 0;
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 18px 16px;
  font-size: 1rem;
  font-family: var(--font);
  color: var(--text);
  background: transparent;
}
.search-bar input::placeholder { color: var(--text-4); }
.search-bar button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 18px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--ease);
  font-family: var(--font);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-bar button:hover { background: var(--primary-dark); }

/* Autocomplete */
.autocomplete-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-xl);
  max-height: 340px;
  overflow-y: auto;
  z-index: 500;
  display: none;
}
.autocomplete-list.open { display: block; }
.autocomplete-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 1px solid var(--bg-subtle);
  transition: background var(--ease);
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: var(--bg-blue); }
.autocomplete-item .city-name { font-weight: 600; color: var(--text); font-size: 0.9rem; }
.autocomplete-item .city-info { font-size: 0.75rem; color: var(--text-4); margin-top: 2px; }
.autocomplete-item .city-zip {
  font-size: 0.72rem; font-weight: 700;
  background: var(--bg-blue); color: var(--primary);
  padding: 3px 10px; border-radius: 20px;
  flex-shrink: 0; margin-left: 10px;
}

/* ============================
   HERO STATS
   ============================ */
.hero-stats {
  display: flex;
  justify-content: center;
  margin-top: 52px;
  position: relative;
  z-index: 2;
  gap: 0;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
  padding: 0 36px;
  border-right: 1px solid rgba(255,255,255,0.18);
  color: white;
}
.hero-stat:last-child { border-right: none; }
.hero-stat .s-num {
  display: block;
  font-family: var(--font-h);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat .s-lbl { font-size: 0.75rem; opacity: 0.65; text-transform: uppercase; letter-spacing: 0.6px; }

/* ============================
   SECTIONS
   ============================ */
.section     { padding: 80px 0; }
.section-alt { background: var(--bg-white); }
.section-title { margin-bottom: 48px; }
.section-title.centered { text-align: center; }
.section-title.centered p { max-width: 560px; margin: 8px auto 0; }
.section-title p { margin-top: 8px; }
.label-tag {
  display: inline-block;
  background: var(--bg-blue);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

/* ============================
   CARDS
   ============================ */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: box-shadow var(--ease), transform var(--ease);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  background: var(--bg-blue);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 16px;
}

/* ============================
   GRANDE VILLE ITEM
   ============================ */
.ville-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-decoration: none;
  color: inherit;
  transition: all var(--ease);
}
.ville-item:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,119,182,0.08);
  transform: translateX(3px);
}
.ville-rank {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--bg-blue);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ville-rank.top3 { background: var(--primary); color: white; }
.ville-info { flex: 1; min-width: 0; }
.ville-info .v-name { font-weight: 600; color: var(--text); font-size: 0.92rem; }
.ville-info .v-dept { font-size: 0.75rem; color: var(--text-4); margin-top: 1px; }
.ville-prix-wrap { text-align: right; flex-shrink: 0; }
.v-prix { font-family: var(--font-h); font-size: 1.25rem; font-weight: 700; color: var(--primary); display: block; line-height: 1; }
.v-unit { font-size: 0.7rem; color: var(--text-4); }

/* ============================
   TREND BADGE
   ============================ */
.trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.trend.up   { background: #dcfce7; color: #15803d; }
.trend.down { background: #fee2e2; color: #dc2626; }
.trend.flat { background: var(--bg-subtle); color: var(--text-4); }

/* ============================
   REGION CARD
   ============================ */
.region-card {
  display: block;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: all var(--ease);
  position: relative;
  overflow: hidden;
}
.region-card::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--primary);
  opacity: 0;
  transition: opacity var(--ease);
}
.region-card:hover { box-shadow: var(--shadow); border-color: var(--primary); color: inherit; }
.region-card:hover::after { opacity: 1; }
.rc-name { font-family: var(--font-h); font-weight: 700; color: var(--text); margin-bottom: 4px; }
.rc-meta { font-size: 0.78rem; color: var(--text-4); }
.rc-arrow { color: var(--primary); margin-top: 14px; font-size: 0.82rem; font-weight: 600; display: flex; align-items: center; gap: 4px; }

/* ============================
   DEPT GRID
   ============================ */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.dept-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text-2);
  transition: all var(--ease);
}
.dept-item:hover { background: var(--bg-blue); border-color: var(--primary); color: var(--primary); }
.dept-code {
  font-size: 0.72rem;
  font-weight: 700;
  color: white;
  background: var(--primary);
  padding: 2px 7px;
  border-radius: 5px;
  flex-shrink: 0;
}
.dept-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================
   VILLE PAGE — HERO
   ============================ */
.ville-hero {
  background: linear-gradient(135deg, #012355, #0077B6);
  padding: 52px 0 80px;
  position: relative;
  overflow: hidden;
  color: white;
}
.ville-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/30753263/pexels-photo-30753263.jpeg?auto=compress&cs=tinysrgb&h=650&w=940');
  background-size: cover;
  background-position: center;
  opacity: 0.06;
}
.ville-hero-content { position: relative; z-index: 2; }
.ville-hero h1 { color: white; margin-bottom: 6px; }
.ville-hero .vh-sub { color: rgba(255,255,255,0.72); font-size: 1rem; margin-bottom: 20px; }
.vh-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.vh-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.92);
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* ============================
   PRIX CARDS (flottantes)
   ============================ */
.prix-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: -44px;
  position: relative;
  z-index: 10;
  margin-bottom: 48px;
}
.prix-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--ease);
}
.prix-card:hover { transform: translateY(-3px); }
.pc-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-4);
  margin-bottom: 8px;
}
.pc-icon { font-size: 1.5rem; margin-bottom: 8px; }
.pc-value {
  font-family: var(--font-h);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.pc-unit { font-size: 0.7rem; color: var(--text-4); margin-top: 4px; }
.pc-sub  { font-size: 0.72rem; color: var(--text-4); margin-top: 6px; }
.pc-accent { border-top: 3px solid var(--primary); }
.pc-secondary { border-top: 3px solid var(--secondary); }
.pc-success { border-top: 3px solid var(--success); }

/* ============================
   INFO SIDEBAR GRID
   ============================ */
.layout-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.sidebar-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-box h3 { margin-bottom: 16px; font-size: 0.95rem; }
.sb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-subtle);
  font-size: 0.875rem;
}
.sb-row:last-child { border-bottom: none; }
.sb-label { color: var(--text-3); }
.sb-value { font-weight: 600; color: var(--text); }

/* ============================
   SIMULATEUR
   ============================ */
.sim-box {
  background: linear-gradient(135deg, var(--bg-blue), #fff);
  border: 1px solid #bfdbfe;
  border-radius: var(--r-lg);
  padding: 28px;
}
.sim-box h3 { margin-bottom: 20px; font-size: 1rem; }
.sim-field { margin-bottom: 14px; }
.sim-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.sim-field input, .sim-field select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--ease);
  background: white;
  color: var(--text);
}
.sim-field input:focus, .sim-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,119,182,0.08);
}
.sim-result {
  margin-top: 18px;
  background: var(--primary);
  color: white;
  border-radius: var(--r);
  padding: 20px;
  text-align: center;
}
.sim-total { font-family: var(--font-h); font-size: 2rem; font-weight: 800; line-height: 1; }
.sim-label { font-size: 0.78rem; opacity: 0.80; margin-top: 6px; }

/* ============================
   TABLE
   ============================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--bg-white);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.data-table thead { background: var(--bg-subtle); }
.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-4);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bg-subtle);
  color: var(--text-2);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--bg-blue); }
.data-table td a { color: var(--primary); font-weight: 600; }
.data-table td a:hover { text-decoration: underline; }

/* ============================
   PAGINATION
   ============================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--ease);
}
.page-btn:hover   { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn.active  { background: var(--primary); color: white; border-color: var(--primary); font-weight: 700; }
.page-btn.dots    { border: none; background: none; pointer-events: none; color: var(--text-4); }

/* ============================
   FILTER BAR
   ============================ */
.filter-bar {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-xs);
}
.filter-input, .filter-select {
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 9px 14px;
  font-size: 0.875rem;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--ease);
  background: var(--bg-subtle);
  color: var(--text);
}
.filter-input { flex: 1; min-width: 180px; }
.filter-input:focus, .filter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,119,182,0.08);
  background: white;
}
.filter-count { font-size: 0.8rem; color: var(--text-4); white-space: nowrap; }

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease);
  border: 1.5px solid transparent;
  text-decoration: none;
  font-family: var(--font);
  line-height: 1;
}
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: white; box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-ghost { background: var(--bg-subtle); color: var(--text-2); border-color: transparent; }
.btn-ghost:hover { background: var(--border); color: var(--text); }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-lg { padding: 14px 30px; font-size: 1rem; }

/* ============================
   FAQ
   ============================ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 8px;
  background: var(--bg-white);
  overflow: hidden;
}
.faq-question {
  padding: 17px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  user-select: none;
  gap: 12px;
}
.faq-question:hover { background: var(--bg-subtle); }
.faq-chevron { flex-shrink: 0; color: var(--text-4); transition: transform var(--ease); }
.faq-chevron.rotated { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s;
  font-size: 0.9rem;
  color: var(--text-3);
  line-height: 1.75;
}
.faq-answer.open { max-height: 500px; padding: 4px 20px 20px; border-top: 1px solid var(--bg-subtle); }

/* ============================
   ADSENSE
   ============================ */
.adsense-slot {
  margin: 36px 0;
  text-align: center;
  min-height: 90px;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-2);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-4);
  font-size: 0.75rem;
}

/* ============================
   ALERT
   ============================ */
.alert {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}
.alert-info    { background: var(--bg-blue); border-left: 3px solid var(--primary); color: var(--text-2); }
.alert-warning { background: #fef3c7; border-left: 3px solid var(--warning); color: #92400e; }
.alert-success { background: #dcfce7; border-left: 3px solid var(--success); color: #166534; }

/* ============================
   LOADING
   ============================ */
.spinner-wrap { display: flex; align-items: center; gap: 12px; color: var(--text-4); font-size: 0.875rem; padding: 24px 0; }
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================
   VOISINES
   ============================ */
.voisines-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.voisine-item {
  padding: 10px 12px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all var(--ease);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.voisine-item:hover { background: var(--bg-blue); border-color: var(--primary); color: var(--primary); }

/* ============================
   REVEAL ON SCROLL
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================
   FOOTER
   ============================ */
.site-footer {
  background: #0a1628;
  color: rgba(255,255,255,0.65);
  padding: 56px 0 28px;
  margin-top: 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-brand-logo {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.footer-brand-name { font-family: var(--font-h); font-weight: 700; color: white; font-size: 1rem; }
.footer-desc { font-size: 0.84rem; line-height: 1.75; }
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 5px 12px;
  border-radius: 20px;
  color: rgba(255,255,255,0.60);
}
.footer-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; flex-shrink: 0; }
.footer-col h4 {
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--ease);
}
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,0.35);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .layout-sidebar { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero { padding: 60px 0 100px; }
  .hero-stats { gap: 0; flex-wrap: wrap; }
  .hero-stat { padding: 0 20px; }
  .hero-stat .s-num { font-size: 1.6rem; }
  .header-nav { display: none; }
  .header-search-wrap input { width: 160px; }
  .header-search-wrap input:focus { width: 190px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .prix-cards-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.6rem; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-stat { border-right: none; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .hero-stat:last-child { border-bottom: none; }
  .search-bar button { padding: 18px 20px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .prix-cards-row { grid-template-columns: 1fr 1fr; }
  .dept-grid { grid-template-columns: 1fr 1fr; }
  .voisines-grid { grid-template-columns: 1fr 1fr; }
}