/* ============================================================
   HOME BÂTIMENT — CSS principal
   ============================================================ */

:root {
  --hb-navy:     #1b3a5c;
  --hb-orange:   #f97316;
  --hb-blue:     #3b82f6;
  --hb-green:    #10b981;
  --hb-light:    #f0f6ff;
  --hb-light-bg: #f8fafc;
  --hb-border:   #e2e8f0;
  --hb-text:     #1e293b;
  --hb-subtext:  #64748b;
  --hb-radius:   14px;
  --hb-shadow:   0 4px 24px rgba(0,0,0,.08);
  --hb-font-h:   'Poppins', 'Segoe UI', sans-serif;
  --hb-font-b:   'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
body { font-family: var(--hb-font-b); color: var(--hb-text); }
img  { max-width: 100%; height: auto; }
a    { text-decoration: none; color: var(--hb-blue); }
a:hover { color: var(--hb-orange); }

/* ============================================================
   TOPBAR
   ============================================================ */
.hb-topbar {
  background: var(--hb-navy);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  padding: .45rem 1rem;
  position: sticky; top: 0; z-index: 1000;
}
.hb-topbar__inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.hb-topbar__phone {
  color: #fb923c; font-weight: 700; font-size: .85rem;
  transition: color .2s;
}
.hb-topbar__phone:hover { color: white; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.hb-nav {
  background: white;
  border-bottom: 1px solid var(--hb-border);
  position: sticky; top: 33px; z-index: 999;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.hb-nav__inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  height: 68px;
}
.hb-nav__logo { display: flex; align-items: center; margin-right: auto; }
.hb-nav__logo-text {
  font-family: var(--hb-font-h);
  font-size: 1.2rem; color: var(--hb-navy);
  display: flex; align-items: center; gap: .4rem;
}
.hb-nav__logo-text strong { color: var(--hb-orange); }
.hb-logo-icon { font-size: 1.4rem; }

.hb-nav__menu {
  list-style: none; padding: 0; margin: 0;
  display: flex; align-items: center; gap: .25rem;
}
.hb-nav__item { position: relative; }
.hb-nav__link {
  display: flex; align-items: center; gap: .3rem;
  padding: .5rem .75rem; border-radius: 8px;
  font-size: .875rem; font-weight: 600; color: var(--hb-navy);
  white-space: nowrap; transition: all .2s;
}
.hb-nav__link:hover, .hb-nav__item:hover > .hb-nav__link {
  background: var(--hb-light); color: var(--hb-orange);
}
.hb-arrow { font-size: .65rem; transition: transform .2s; }
.hb-nav__item:hover .hb-arrow { transform: rotate(180deg); }

/* Dropdowns */
.hb-dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: white; border-radius: 10px; min-width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12); border: 1px solid var(--hb-border);
  list-style: none; padding: .5rem 0; margin-top: .25rem; z-index: 100;
}
.hb-nav__item:hover .hb-dropdown { display: block; }
.hb-dropdown li a {
  display: block; padding: .5rem 1.1rem;
  font-size: .85rem; color: var(--hb-text); font-weight: 500;
  transition: all .15s;
}
.hb-dropdown li a:hover { background: var(--hb-light); color: var(--hb-orange); padding-left: 1.4rem; }
.hb-dropdown--zones { columns: 2; min-width: 300px; }

.hb-nav__cta { margin-left: .5rem; font-size: .82rem; padding: .5rem 1rem !important; }

/* Burger */
.hb-burger {
  display: none; background: none; border: none;
  cursor: pointer; padding: .5rem; flex-direction: column; gap: 5px;
}
.hb-burger span {
  display: block; width: 24px; height: 2px;
  background: var(--hb-navy); border-radius: 2px; transition: all .3s;
}

/* ============================================================
   BOUTONS
   ============================================================ */
.hb-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: 50px;
  font-family: var(--hb-font-h); font-weight: 700; font-size: .9rem;
  transition: all .25s; cursor: pointer; border: 2px solid transparent;
  white-space: nowrap;
}
.hb-btn--orange {
  background: var(--hb-orange); color: white;
  box-shadow: 0 4px 16px rgba(249,115,22,.35);
}
.hb-btn--orange:hover {
  background: #ea6c0a; color: white; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,.45);
}
.hb-btn--outline {
  border-color: var(--hb-navy); color: var(--hb-navy); background: transparent;
}
.hb-btn--outline:hover {
  background: var(--hb-navy); color: white; transform: translateY(-2px);
}
.hb-btn--lg { padding: 1rem 2rem; font-size: 1rem; }

/* ============================================================
   HERO
   ============================================================ */
.hb-hero {
  background: linear-gradient(135deg, #e8f0fe 0%, #f0f6ff 50%, #fef3ec 100%);
  padding: 5rem 1.5rem 4rem;
  position: relative; overflow: hidden;
}
.hb-hero::before {
  content: ''; position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(249,115,22,.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hb-hero__inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.hb-hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: white; border: 1px solid var(--hb-border);
  border-radius: 50px; padding: .4rem 1rem;
  font-size: .8rem; font-weight: 600; color: var(--hb-subtext);
  margin-bottom: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.hb-hero__badge .stars { color: #f59e0b; font-size: .85rem; }
.hb-hero__badge strong { color: var(--hb-text); }

.hb-hero h1 {
  font-family: var(--hb-font-h);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.15;
  color: var(--hb-navy); margin-bottom: 1.25rem;
}
.hb-hero h1 .hb-accent { color: var(--hb-orange); }

.hb-hero__sub {
  font-size: 1.05rem; color: var(--hb-subtext);
  line-height: 1.7; margin-bottom: 2rem; max-width: 500px;
}
.hb-hero__btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hb-hero__trust {
  display: flex; gap: 1.2rem; flex-wrap: wrap;
  font-size: .8rem; color: var(--hb-subtext);
}
.hb-hero__trust span { display: flex; align-items: center; gap: .3rem; }
.hb-hero__img {
  border-radius: var(--hb-radius);
  overflow: hidden; box-shadow: var(--hb-shadow);
  background: var(--hb-border);
  min-height: 350px; display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
}
.hb-hero__img img { width: 100%; height: 400px; object-fit: cover; }
.hb-hero__img-placeholder {
  width: 100%; min-height: 350px; display: flex; align-items: center;
  justify-content: center; font-size: 5rem;
  background: linear-gradient(135deg, #dbeafe, #fef3ec);
  border-radius: var(--hb-radius);
}

/* ============================================================
   STATS BAR
   ============================================================ */
.hb-stats {
  background: var(--hb-navy); padding: 1.75rem 1.5rem;
}
.hb-stats__inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.hb-stat-item {
  text-align: center;
  padding: .75rem;
  border-right: 1px solid rgba(255,255,255,.1);
}
.hb-stat-item:last-child { border-right: none; }
.hb-stat-item__num {
  font-family: var(--hb-font-h);
  font-size: 1.8rem; font-weight: 800; color: var(--hb-orange);
  display: block; line-height: 1;
}
.hb-stat-item__label {
  font-size: .75rem; color: rgba(255,255,255,.7);
  text-transform: uppercase; letter-spacing: 1px;
  margin-top: .35rem; display: block;
}

/* ============================================================
   SECTIONS SERVICES
   ============================================================ */
.hb-services { padding: 5rem 1.5rem; }
.hb-services--alt { background: var(--hb-light-bg); }

.hb-section__header {
  text-align: center; max-width: 700px; margin: 0 auto 3rem;
}
.hb-section__label {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--hb-orange);
  margin-bottom: .75rem;
}
.hb-section__title {
  font-family: var(--hb-font-h); font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800; color: var(--hb-navy); margin-bottom: .75rem;
}
.hb-section__title::after {
  content: ''; display: block; width: 50px; height: 3px;
  background: var(--hb-orange); border-radius: 2px;
  margin: .75rem auto 0;
}
.hb-section__sub {
  font-size: 1rem; color: var(--hb-subtext); line-height: 1.7;
}

/* Grille de cartes */
.hb-cards {
  max-width: 1100px; margin: 0 auto;
  display: grid; gap: 1.5rem;
}
.hb-cards--3 { grid-template-columns: repeat(3, 1fr); }
.hb-cards--2 { grid-template-columns: repeat(2, 1fr); }
.hb-cards--4 { grid-template-columns: repeat(4, 1fr); }

.hb-card {
  background: white; border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius); overflow: hidden;
  box-shadow: var(--hb-shadow); transition: all .3s;
}
.hb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  border-color: var(--hb-orange);
}
.hb-card__img {
  width: 100%; height: 180px; object-fit: cover;
  background: linear-gradient(135deg, #dbeafe, #fef3ec);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.hb-card__img img { width: 100%; height: 180px; object-fit: cover; }
.hb-card__body { padding: 1.25rem; }
.hb-card__title {
  font-family: var(--hb-font-h); font-size: 1rem; font-weight: 700;
  color: var(--hb-navy); margin-bottom: .5rem;
}
.hb-card__text { font-size: .875rem; color: var(--hb-subtext); line-height: 1.6; margin-bottom: 1rem; }
.hb-card__cta {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .8rem; font-weight: 700; color: var(--hb-orange);
  transition: gap .2s;
}
.hb-card__cta:hover { gap: .6rem; color: var(--hb-orange); }
.hb-card--accent { border-top: 3px solid var(--hb-orange); }

/* ============================================================
   POURQUOI NOUS CHOISIR
   ============================================================ */
.hb-why {
  padding: 5rem 1.5rem;
  background: var(--hb-light-bg);
}
.hb-why__inner { max-width: 1100px; margin: 0 auto; }

.hb-why__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 3rem;
}
.hb-why__item {
  background: white; border-radius: var(--hb-radius);
  padding: 2rem; border: 1px solid var(--hb-border);
  box-shadow: var(--hb-shadow); position: relative; overflow: hidden;
}
.hb-why__item::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
}
.hb-why__item:nth-child(1)::before { background: var(--hb-orange); }
.hb-why__item:nth-child(2)::before { background: var(--hb-blue); }
.hb-why__item:nth-child(3)::before { background: var(--hb-green); }

.hb-why__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.hb-why__title {
  font-family: var(--hb-font-h); font-size: 1.1rem; font-weight: 700;
  color: var(--hb-navy); margin-bottom: .5rem;
}
.hb-why__text { font-size: .9rem; color: var(--hb-subtext); line-height: 1.7; }

/* ============================================================
   CTA URGENCE
   ============================================================ */
.hb-cta-urgence {
  background: linear-gradient(135deg, var(--hb-navy) 0%, #0f2440 100%);
  padding: 4rem 1.5rem; text-align: center;
}
.hb-cta-urgence__inner { max-width: 700px; margin: 0 auto; }
.hb-cta-urgence h2 {
  font-family: var(--hb-font-h); font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; color: white; margin-bottom: 1rem;
}
.hb-cta-urgence p { color: rgba(255,255,255,.75); margin-bottom: 2rem; font-size: 1rem; line-height: 1.7; }
.hb-cta-urgence__links {
  display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap;
  margin-top: 1.25rem;
}
.hb-cta-urgence__links a {
  color: rgba(255,255,255,.6); font-size: .85rem; font-weight: 600;
  text-decoration: underline; transition: color .2s;
}
.hb-cta-urgence__links a:hover { color: white; }

/* ============================================================
   ZONES
   ============================================================ */
.hb-zones { padding: 4rem 1.5rem; }
.hb-zones__inner { max-width: 1100px; margin: 0 auto; }
.hb-zones__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: 2.5rem;
}
.hb-zone-card {
  background: var(--hb-light-bg); border: 1px solid var(--hb-border);
  border-radius: 10px; padding: 1.25rem;
  text-align: center; transition: all .2s;
}
.hb-zone-card:hover {
  background: var(--hb-navy); border-color: var(--hb-navy); transform: translateY(-2px);
}
.hb-zone-card:hover .hb-zone-card__num,
.hb-zone-card:hover .hb-zone-card__name { color: white; }
.hb-zone-card__num {
  font-family: var(--hb-font-h); font-size: 1.5rem; font-weight: 800;
  color: var(--hb-orange); display: block; margin-bottom: .25rem;
}
.hb-zone-card__name {
  font-size: .82rem; font-weight: 600; color: var(--hb-navy);
  display: block; margin-bottom: .5rem;
}
.hb-zone-card__count { font-size: .75rem; color: var(--hb-subtext); }

/* ============================================================
   BLOC SEO TEXTE
   ============================================================ */
.hb-seo-text {
  padding: 4rem 1.5rem; background: var(--hb-light-bg);
}
.hb-seo-text__inner { max-width: 860px; margin: 0 auto; }
.hb-seo-text h2 {
  font-family: var(--hb-font-h); font-size: 1.4rem; font-weight: 800;
  color: var(--hb-navy); margin-bottom: 1.5rem;
}
.hb-seo-text p {
  font-size: .95rem; color: #475569; line-height: 1.85;
  margin-bottom: 1.25rem;
}
.hb-seo-text strong { color: var(--hb-navy); }

/* ============================================================
   FOOTER
   ============================================================ */
.hb-footer {
  background: var(--hb-navy); color: rgba(255,255,255,.75);
  padding: 3.5rem 1.5rem 1.5rem;
}
.hb-footer__inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 2rem;
}
.hb-footer__brand { }
.hb-footer__logo {
  font-family: var(--hb-font-h); font-size: 1.2rem; font-weight: 800;
  color: white; margin-bottom: .75rem; display: block;
}
.hb-footer__logo span { color: var(--hb-orange); }
.hb-footer__desc { font-size: .85rem; line-height: 1.7; margin-bottom: 1rem; }
.hb-footer__contact p {
  font-size: .85rem; margin-bottom: .4rem;
}
.hb-footer__contact a { color: var(--hb-orange); font-weight: 600; }
.hb-footer__contact a:hover { color: white; }
.hb-footer__socials {
  display: flex; gap: .75rem; margin-top: 1rem;
}
.hb-footer__social {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: background .2s;
}
.hb-footer__social:hover { background: var(--hb-orange); }

.hb-footer__col h4 {
  font-family: var(--hb-font-h); font-size: .85rem; font-weight: 700;
  color: white; margin-bottom: 1rem;
  text-transform: uppercase; letter-spacing: 1px;
}
.hb-footer__col ul { list-style: none; padding: 0; }
.hb-footer__col ul li { margin-bottom: .4rem; }
.hb-footer__col ul li a {
  font-size: .82rem; color: rgba(255,255,255,.6);
  transition: color .2s;
}
.hb-footer__col ul li a:hover { color: var(--hb-orange); }

.hb-footer__bottom {
  max-width: 1100px; margin: 2rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: .78rem; color: rgba(255,255,255,.4);
}
.hb-footer__bottom a { color: rgba(255,255,255,.4); }
.hb-footer__bottom a:hover { color: white; }
.hb-footer__bottom-links { display: flex; gap: 1.5rem; }

/* ============================================================
   PAGE VILLE — styles spécifiques
   ============================================================ */
.hb-breadcrumb {
  background: var(--hb-light-bg); border-bottom: 1px solid var(--hb-border);
  padding: .6rem 1.5rem;
}
.hb-breadcrumb__inner {
  max-width: 1100px; margin: 0 auto;
  font-size: .8rem; color: var(--hb-subtext);
}
.hb-breadcrumb__inner a { color: var(--hb-subtext); }
.hb-breadcrumb__inner a:hover { color: var(--hb-orange); }
.hb-breadcrumb__sep { margin: 0 .4rem; }

.hb-ville-hero {
  background: linear-gradient(135deg, #e8f0fe 0%, #f0f6ff 100%);
  padding: 4rem 1.5rem;
}
.hb-ville-hero__inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center;
}

.hb-nearby {
  padding: 3rem 1.5rem; background: var(--hb-light-bg);
}
.hb-nearby__inner { max-width: 1100px; margin: 0 auto; }
.hb-nearby h3 {
  font-family: var(--hb-font-h); font-size: 1.1rem; font-weight: 700;
  color: var(--hb-navy); margin-bottom: 1rem;
}
.hb-nearby__list {
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.hb-nearby__link {
  display: inline-block; padding: .35rem .9rem;
  background: white; border: 1px solid var(--hb-border);
  border-radius: 20px; font-size: .8rem; font-weight: 600;
  color: var(--hb-navy); transition: all .2s;
}
.hb-nearby__link:hover {
  background: var(--hb-navy); color: white; border-color: var(--hb-navy);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hb-cards--3 { grid-template-columns: repeat(2, 1fr); }
  .hb-cards--4 { grid-template-columns: repeat(2, 1fr); }
  .hb-footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hb-zones__grid { grid-template-columns: repeat(2, 1fr); }
  .hb-why__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hb-topbar__text { display: none; }

  .hb-nav__menu,
  .hb-nav__cta { display: none; }
  .hb-burger { display: flex; }

  .hb-nav__menu.hb-menu--open {
    display: flex; flex-direction: column; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: white; z-index: 1001;
    padding: 2rem 1.5rem; overflow-y: auto;
    gap: 0;
  }
  .hb-nav__menu.hb-menu--open .hb-nav__link {
    padding: .85rem 0; border-bottom: 1px solid var(--hb-border);
    border-radius: 0; font-size: 1rem;
  }
  .hb-nav__menu.hb-menu--open .hb-dropdown {
    position: static; box-shadow: none; border: none;
    display: block; padding: 0 0 0 1rem;
  }
  .hb-nav__menu.hb-menu--open .hb-has-dropdown:hover > .hb-dropdown { display: block; }

  .hb-hero__inner { grid-template-columns: 1fr; }
  .hb-hero__img { display: none; }
  .hb-hero { padding: 3rem 1rem; }

  .hb-stats__inner { grid-template-columns: repeat(2, 1fr); }
  .hb-stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .hb-stat-item:nth-child(even) { border-left: 1px solid rgba(255,255,255,.1); }

  .hb-cards--3,
  .hb-cards--4 { grid-template-columns: 1fr; }
  .hb-cards--2 { grid-template-columns: 1fr; }

  .hb-why__grid { grid-template-columns: 1fr; }
  .hb-zones__grid { grid-template-columns: repeat(2, 1fr); }
  .hb-footer__inner { grid-template-columns: 1fr 1fr; }
  .hb-footer__brand { grid-column: 1 / -1; }

  .hb-ville-hero__inner { grid-template-columns: 1fr; }

  .hb-footer__bottom { flex-direction: column; gap: .75rem; text-align: center; }
}

@media (max-width: 480px) {
  .hb-zones__grid { grid-template-columns: repeat(2, 1fr); }
  .hb-hero h1 { font-size: 1.75rem; }
  .hb-hero__btns { flex-direction: column; }
  .hb-btn--lg { width: 100%; justify-content: center; }
}
