/* ============================================
   BUILDING GROUP SÉNÉGAL — Charte graphique
   Rouge bordeaux #B00505 / Or bronze #8B6A2A
   ============================================ */
:root {
  --red: #a30505;
  --red-dark: #7d0404;
  --gold: #8b6a2a;
  --gold-light: #a9853f;
  --ink: #201c17;
  --grey: #6b6660;
  --grey-light: #8f8a83;
  --bg: #faf8f5;
  --bg-card: #ffffff;
  --border: #e8e3da;
  --success: #2e7d32;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(32, 28, 23, 0.08);
  --shadow-hover: 0 10px 30px rgba(163, 5, 5, 0.15);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--ink);
  color: #cfc9c0;
  font-size: 0.8rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 7px; }
.topbar-info svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
  color: var(--gold-light);
}
.topbar-social { display: flex; gap: 14px; }
.topbar-social a { color: #cfc9c0; transition: color .2s; }
.topbar-social a:hover { color: var(--gold-light); }

/* ---------- Header / Nav ---------- */
.header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo img { height: 46px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav > ul { display: flex; align-items: center; }
.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: color .2s;
}
.nav-link:hover { color: var(--red); }
.nav-item.has-sub:hover .submenu { display: block; }
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  box-shadow: var(--shadow);
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  border-top: 3px solid var(--red);
}
.submenu li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 500;
}
.submenu li a:hover { background: var(--bg); color: var(--red); }

.btn-contact-header {
  background: var(--red);
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background .2s, transform .2s;
}
.btn-contact-header:hover { background: var(--red-dark); transform: translateY(-1px); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.burger span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(32,28,23,0.82), rgba(163,5,5,0.55));
  z-index: 2;
}
.hero-slideshow { position: absolute; inset: 0; z-index: 1; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 20s infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 4s; }
.hero-slide:nth-child(3) { animation-delay: 8s; }
.hero-slide:nth-child(4) { animation-delay: 12s; }
.hero-slide:nth-child(5) { animation-delay: 16s; }
@keyframes heroFade {
  0% { opacity: 0; }
  4% { opacity: 1; }
  30% { opacity: 1; }
  36% { opacity: 0; }
  100% { opacity: 0; }
}
.hero-content { max-width: 640px; position: relative; z-index: 3; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero h1 span { color: var(--gold-light); }
.hero p {
  font-size: 1.05rem;
  color: #e9e5df;
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(163,5,5,0.35); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-light); }

/* ---------- Search bar ---------- */
.search-bar {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-top: -46px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 14px;
  align-items: end;
}
.search-field { display: flex; flex-direction: column; gap: 6px; }
.search-field label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--grey); }
.search-field select, .search-field input {
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--bg);
}
.search-bar .btn-primary { justify-content: center; height: 46px; }

/* ---------- Section titles ---------- */
.section { padding: 72px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-eyebrow {
  color: var(--red);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.section-head p.lead { color: var(--grey); max-width: 480px; margin-top: 8px; }
.section-link { font-weight: 700; color: var(--red); white-space: nowrap; }
.section-link:hover { text-decoration: underline; }

.section-alt { background: #fff; }

/* ---------- Property cards ---------- */
.grid-properties {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 26px;
}
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--border); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.06); }
.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}
.badge-location { background: var(--gold); }
.badge-vente { background: var(--red); }
.card-price {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(32,28,23,0.85);
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
}
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.card-location { color: var(--grey); font-size: 0.85rem; display: flex; align-items: center; gap: 6px; }
.card-features {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.feature { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--grey); font-weight: 600; }
.feature svg { width: 17px; height: 17px; stroke: var(--gold); flex-shrink: 0; }

/* ---------- Filters chips ---------- */
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--grey);
  transition: all .2s;
}
.chip.active, .chip:hover { border-color: var(--red); color: var(--red); background: rgba(163,5,5,0.06); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.service-card .icon-wrap {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--gold));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-card .icon-wrap svg { width: 26px; height: 26px; stroke: #fff; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.service-card p { color: var(--grey); font-size: 0.92rem; }

/* ---------- Stats ---------- */
.stats-band {
  background: var(--ink);
  color: #fff;
  padding: 46px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 20px; text-align: center; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--gold-light); }
.stat-label { color: #cfc9c0; font-size: 0.85rem; margin-top: 4px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--red), var(--red-dark));
  color: #fff;
  border-radius: 22px;
  padding: 50px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 1.7rem; margin-bottom: 8px; }
.cta-band p { color: #f3dcdc; }
.cta-illustration {
  height: 140px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,0.25));
}
@media (max-width: 860px) {
  .cta-illustration { display: none; }
}

/* ---------- Bannière secondaire (pages d'archives / contenu) ---------- */
.page-hero {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
  margin-bottom: 8px;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(32,28,23,0.85), rgba(163,5,5,0.6));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .section-eyebrow { color: var(--gold-light); }
.page-hero h1 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; margin-top: 6px; }
.page-hero p { color: #e9e5df; margin-top: 8px; max-width: 520px; }
@media (max-width: 600px) {
  .page-hero { min-height: 180px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cfc9c0; padding-top: 60px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer ul li { margin-bottom: 10px; font-size: 0.9rem; }
.footer ul li a:hover { color: var(--gold-light); }
.footer-logo {
  display: inline-block;
  background: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.footer-logo img { height: 34px; display: block; }
.footer-desc { font-size: 0.88rem; color: #a49e95; max-width: 300px; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.footer-social a:hover { background: var(--red); }
.footer-social svg { width: 18px; height: 18px; fill: #fff; }

.topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.topbar-social svg { width: 14px; height: 14px; fill: #ffffff; }
.topbar-social a:hover svg { fill: var(--gold-light); }
.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #8a8479;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: #a49e95; }
.footer-bottom-links { display: flex; align-items: center; gap: 16px; }
.admin-login-link { display: inline-flex; align-items: center; gap: 5px; }
.admin-login-link:hover { color: var(--gold-light); text-decoration: underline; }

/* ---------- Assistant IA (recherche guidée) ---------- */
.assistant-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px; height: 58px;
  background: linear-gradient(135deg, var(--red), var(--gold));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 200;
  transition: transform .2s;
}
.assistant-float:hover { transform: scale(1.08); }
.assistant-float svg { width: 27px; height: 27px; fill: #fff; }
.assistant-float .ping {
  position: absolute;
  top: -4px; right: -4px;
  width: 16px; height: 16px;
  background: var(--success);
  border: 2px solid #fff;
  border-radius: 50%;
}

.assistant-panel {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 340px;
  max-width: calc(100vw - 40px);
  max-height: min(560px, 75vh);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 210;
}
.assistant-panel.open { display: flex; }
.assistant-head {
  background: linear-gradient(120deg, var(--red), var(--red-dark));
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.assistant-head .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.assistant-head .avatar svg { width: 20px; height: 20px; fill: #fff; }
.assistant-head-text { flex: 1; }
.assistant-head-text strong { display: block; font-size: 0.95rem; }
.assistant-head-text span { font-size: 0.75rem; color: #f3dcdc; }
.assistant-close { color: #fff; font-size: 1.2rem; opacity: 0.8; padding: 4px 8px; }
.assistant-close:hover { opacity: 1; }

.assistant-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
}
.msg-bot, .msg-user {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.4;
}
.msg-bot { background: #fff; box-shadow: var(--shadow); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-user { background: var(--red); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }

.assistant-links-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: flex-start;
  max-width: 100%;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: 12px;
  padding: 10px 14px;
}
.assistant-link-item {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--red);
  padding: 4px 0;
}
.assistant-link-item:hover { color: var(--red-dark); text-decoration: underline; }

.quick-replies { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; max-width: 100%; }
.chip-reply {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--red);
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 600;
  background: #fff;
  transition: all .15s;
}
.chip-reply:hover { background: var(--red); color: #fff; }

.assistant-result-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  gap: 10px;
  align-self: stretch;
}
.assistant-result-card img { width: 78px; height: 78px; object-fit: cover; flex-shrink: 0; transition: transform .2s; }
.assistant-result-card a:hover img { transform: scale(1.05); }
.assistant-result-card .info { padding: 8px 10px 8px 0; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.assistant-result-card .info strong { font-size: 0.82rem; line-height: 1.3; }
.assistant-result-card .info span { font-size: 0.78rem; color: var(--grey); }
.assistant-result-card .info .price { color: var(--red); font-weight: 800; font-size: 0.82rem; }

/* ---------- Bulle teaser automatique ---------- */
.assistant-teaser {
  position: fixed;
  bottom: 92px;
  right: 24px;
  max-width: 240px;
  background: #fff;
  border-radius: 16px 16px 4px 16px;
  padding: 14px 34px 14px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  z-index: 205;
  cursor: pointer;
  animation: teaserIn .35s ease-out;
}
.assistant-teaser .teaser-close {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.9rem;
  color: var(--grey);
  padding: 4px;
}
@keyframes teaserIn {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 600px) {
  .assistant-teaser { right: 16px; bottom: 88px; max-width: 200px; }
}

/* ---------- Galerie cliquable (lightbox) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin: 28px 0 8px;
}
.gallery-thumb {
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--border);
  box-shadow: var(--shadow);
  position: relative;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-thumb:hover img { transform: scale(1.08); }
.gallery-thumb::after {
  content: "🔍";
  position: absolute;
  top: 10px; right: 10px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(32,28,23,0.55);
  color: #fff;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}
.gallery-thumb:hover::after { opacity: 1; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,8,6,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 40px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.24); }
.lightbox-close { top: 20px; right: 24px; width: 44px; height: 44px; font-size: 1.2rem; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 1.9rem; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.85rem;
  background: rgba(0,0,0,0.4);
  padding: 6px 14px;
  border-radius: 999px;
}
@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.4rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 10px; right: 12px; }
}

/* ---------- État "aucun résultat" avec CTA contact ---------- */
.no-results-card {
  grid-column: 1 / -1;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 32px;
  text-align: center;
  border-top: 4px solid var(--gold);
}
.no-results-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.no-results-card p { color: var(--grey); max-width: 480px; margin: 0 auto 22px; line-height: 1.7; }
.no-results-card .btn { margin: 0 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-bar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: flex; }
  .btn-contact-header { display: none; }
  .topbar-info span:nth-child(1) { display: none; }
  .hero { min-height: 460px; text-align: left; }

  .burger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

body.nav-locked { overflow: hidden; }

/* ---------- Menu mobile en offcanvas ----------
   Panneau + fond assombri injectés directement dans <body> par js/nav.js
   (et non dans .header) pour ne pas être piégés dans le contexte
   d'empilement du header (position:sticky + z-index) : sans ça, le
   panneau se retrouvait peint SOUS le fond sombre malgré un z-index
   plus élevé. */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,8,6,0.55);
  z-index: 390;
  opacity: 0;
  transition: opacity .3s ease;
}
.nav-backdrop.open { display: block; opacity: 1; }

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 300px;
  max-width: 85vw;
  background: #fff;
  box-shadow: -10px 0 40px rgba(0,0,0,0.25);
  z-index: 400;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.mobile-nav.open { transform: translateX(0); }

.mobile-nav-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-head img { height: 32px; }

.nav-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1;
  flex-shrink: 0;
}
.nav-close:hover { background: var(--border); }

.mobile-nav-search {
  flex-shrink: 0;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.mobile-nav-search button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.mobile-nav-links { flex: 1; overflow-y: auto; padding: 6px 0; }
.mobile-nav-links ul { display: flex; flex-direction: column; }
.mobile-nav-links .nav-item { width: 100%; }
.mobile-nav-links .nav-link {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--ink);
}
.mobile-nav-links .nav-item.has-sub > .nav-link::after { content: "+"; color: var(--red); font-weight: 700; }
.mobile-nav-links .nav-item.has-sub.sub-open > .nav-link::after { content: "\2212"; }
.mobile-nav-links .submenu {
  display: none;
  position: static;
  box-shadow: none;
  border-radius: 0;
  border-top: none;
  background: #fff;
}
.mobile-nav-links .nav-item.has-sub.sub-open .submenu { display: block; }
.mobile-nav-links .submenu li a { padding: 12px 32px; font-size: 0.88rem; }

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .search-bar { grid-template-columns: 1fr; margin-top: 20px; }
  .cta-band { flex-direction: column; text-align: center; }
  .section { padding: 48px 0; }
  .hero { min-height: 560px; }
}
