/* ============================================================
   Le Chaffard — design system photographique
   Palette alignée sur basduvillage.com : accent turquoise #3EBCB0,
   texte #1A1A1A, gris #6B7280, crème #F3E9D9, bordures #E5E7EB.
   ============================================================ */

:root {
  --white: #ffffff;
  --near-black: #1a1a1a;
  --gray: #6b7280;
  --border: #d1d5db;
  --hair: #e5e7eb;
  --surface-soft: #f3e9d9;
  --accent: #3ebcb0;
  --accent-dark: #2e9e92;
  --shadow-card: rgba(0,0,0,0.02) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 6px, rgba(0,0,0,0.1) 0px 4px 8px;
  --shadow-hover: rgba(0,0,0,0.08) 0px 4px 12px;
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--near-black);
  font-size: 16px; line-height: 1.43;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--hair);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: var(--logo-h, 46px); width: auto; }
.logo .brand { font-weight: 700; font-size: 18px; letter-spacing: -0.44px; }
nav.links { display: flex; align-items: center; gap: 26px; }
nav.links a { font-weight: 500; font-size: 15px; padding: 8px 4px; border-radius: 8px; }
nav.links a:hover { background: var(--surface-soft); }
nav.links a.cta {
  background: var(--near-black); color: #fff; padding: 12px 24px;
  border-radius: 8px; font-weight: 500;
}
nav.links a.cta:hover { background: var(--accent); }
.burger { display: none; background: none; border: none; font-size: 22px; padding: 8px; }

/* ---------- sélecteur de langue (drapeau, haut à droite) ---------- */
.lang-picker { position: relative; }
.lang-cur { display: flex; align-items: center; gap: 7px; background: none; border: 1px solid var(--hair);
  border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 600; color: var(--near-black); }
.lang-cur:hover { border-color: var(--near-black); background: var(--surface-soft); }
.lang-cur .flag { font-size: 17px; line-height: 1; }
.lang-dd { position: absolute; top: calc(100% + 8px); right: 0; min-width: 170px; background: var(--white);
  border: 1px solid var(--hair); border-radius: 14px; box-shadow: var(--shadow-hover); padding: 6px;
  display: none; z-index: 60; }
.lang-picker.open .lang-dd { display: block; }
.lang-dd .lang-opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: none; border: none; padding: 9px 10px; border-radius: 9px; font-size: 14px; color: var(--near-black); }
.lang-dd .lang-opt:hover { background: var(--surface-soft); }
.lang-dd .lang-opt.active { background: var(--accent); color: #fff; }
.lang-dd .lang-opt .flag { font-size: 17px; }

/* ---------- stats avec icônes (lit, chambre, bain…) ---------- */
.icon-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.icon-stats .stat-i { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--gray); }
.icon-stats .stat-i svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.icon-stats .stat-i b { color: var(--near-black); font-weight: 700; }
.spec .spec-i { display: inline-flex; align-items: center; gap: 8px; }
.spec .spec-i svg { width: 20px; height: 20px; color: var(--accent); }

/* ---------- hero de page compact ---------- */
.page-hero { position: relative; height: 26vh; min-height: 190px; max-height: 300px; overflow: hidden; background: var(--near-black); }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,
    rgba(var(--ov-rgb, 62,188,176), calc(var(--ov-a, .85) * 0.92)) 0%,
    rgba(var(--ov-rgb, 62,188,176), var(--ov-a, .85)) 60%,
    rgba(var(--ov-rgb, 62,188,176), calc(var(--ov-a, .85) * 1.05)) 100%); }
.page-hero .inner { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.3); }
.page-hero .kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.32px; color: #fff; opacity: .85; margin-bottom: 8px; }
.page-hero h1 { font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.44px; margin-bottom: 8px; }
.page-hero p { font-size: 14px; opacity: .92; max-width: 620px; padding: 0 20px; }
.hero-carousel { position: relative; height: var(--hero-h, 60vh); min-height: 340px; max-height: 620px; overflow: hidden; background: var(--near-black); }
.hero-carousel .slides { position: absolute; inset: 0; }
.hero-carousel::after { content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(var(--ov-rgb, 62,188,176), calc(var(--ov-a, .85) * 0.92)) 0%,
    rgba(var(--ov-rgb, 62,188,176), var(--ov-a, .85)) 60%,
    rgba(var(--ov-rgb, 62,188,176), calc(var(--ov-a, .85) * 1.05)) 100%); }
.hero-carousel .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero-carousel .slide.active { opacity: 1; }
.hero-carousel .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-carousel .slide.active img { animation: kenburns 9s ease-out; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-carousel .scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.04) 45%, rgba(0,0,0,.62) 100%),
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.18) 55%, rgba(0,0,0,0) 100%);
}
.hero-caption {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; color: #fff; max-width: 760px;
  text-align: center; text-shadow: 0 1px 10px rgba(0,0,0,.35);
}
.hero-caption .eyebrow {
  font-size: calc(11px * var(--hero-scale, 1)); font-weight: 700; text-transform: uppercase; letter-spacing: 0.32px;
  color: #fff; opacity: .85; margin-bottom: 10px;
}
.hero-caption h1 {
  font-size: clamp(24px, calc(2.8vw * var(--hero-scale, 1)), calc(38px * var(--hero-scale, 1))); font-weight: 700; letter-spacing: -0.44px;
  line-height: 1.18; margin-bottom: 10px;
}
.hero-caption .lead { font-size: calc(14px * var(--hero-scale, 1)); opacity: .92; margin-bottom: 14px; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-caption .cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-stats {
  position: absolute; right: 40px; bottom: 56px; z-index: 6; color: #fff;
  display: flex; gap: 16px; font-size: 12px; text-shadow: 0 1px 12px rgba(0,0,0,.5);
}
.hero-stats div { background: rgba(0,0,0,.28); border-radius: 14px; padding: 8px 12px; backdrop-filter: blur(8px); }
.hero-stats b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -0.44px; }
.hero-stats div span { opacity: .82; }

.carousel-ui { position: absolute; right: 40px; bottom: 20px; z-index: 7; display: flex; align-items: center; gap: 12px; }
.arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: none; font-size: 15px; color: var(--near-black);
  display: grid; place-items: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.arrow:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.arrow:active { transform: scale(.92); }
.dots { display: flex; gap: 8px; margin-left: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); padding: 0; }
.dot.active { background: #fff; }
.hero-count {
  position: absolute; left: 40px; top: 56px; z-index: 6;
  background: rgba(0,0,0,.35); color: #fff; border-radius: 14px; padding: 8px 14px;
  font-size: 13px; font-weight: 600;
}
.hero-count b { font-weight: 700; }

/* ---------- boutons ---------- */
.btn {
  display: inline-block; background: var(--near-black); color: #fff;
  padding: 12px 24px; border-radius: 8px; font-weight: 500; font-size: 16px;
  border: none; transition: background .2s ease, transform .15s ease;
}
.btn:hover { background: var(--accent); }
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--accent); }
.btn.primary:hover { background: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--near-black); box-shadow: inset 0 0 0 1px var(--near-black); }
.btn.ghost:hover { background: var(--surface-soft); }
.btn.ghost.on-dark { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.btn.ghost.on-dark:hover { background: rgba(255,255,255,.12); }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section.band { background: var(--near-black); color: #fff; }
section.band .btn.primary { margin-top: 24px; }
section.band h2 { letter-spacing: -0.44px; font-size: 28px; font-weight: 700; }
section.band p { color: rgba(255,255,255,.75); max-width: 620px; margin: 12px 0 0; }
section.band .section-head .side { color: rgba(255,255,255,.75); }
section.band .review p { color: var(--near-black); }
section.band .loc-grid .dist li { color: var(--near-black); }
section.band .loc-grid .map { border-color: #3a3a3a; }
section.alt { background: var(--surface-soft); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 36px; }
.kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.32px; color: var(--accent); margin-bottom: 10px; }
.section-head h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.44px; line-height: 1.43; max-width: 560px; }
.section-head .side { color: var(--gray); font-size: 15px; max-width: 420px; }

/* ---------- cartes maisons ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* filtres maisons */
.filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.filters .chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip-f {
  border: 1px solid var(--border); background: var(--white); border-radius: 999px;
  padding: 10px 18px; font-size: 14px; font-weight: 500; color: var(--gray);
  font-family: inherit; cursor: pointer; transition: all .2s ease;
}
.chip-f:hover { border-color: var(--near-black); color: var(--near-black); }
.chip-f.active { background: var(--near-black); border-color: var(--near-black); color: #fff; }
.sort-sel {
  border: 1px solid var(--border); background: var(--white); border-radius: 999px;
  padding: 10px 18px; font-size: 14px; font-family: inherit; color: var(--near-black); cursor: pointer;
}
.filter-count { font-size: 13px; color: var(--gray); margin-bottom: 22px; }
.no-results { text-align: center; color: var(--gray); font-size: 15px; padding: 48px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bento .cell, .homes-carousel .cell {
  background: var(--white); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.bento .cell:hover, .homes-carousel .cell:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.bento .cell .photo, .homes-carousel .cell .photo { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-soft); }
.bento .cell .photo img, .homes-carousel .cell .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.bento .cell:hover .photo img, .homes-carousel .cell:hover .photo img { transform: scale(1.04); }
.bento .cell .photo .price, .homes-carousel .cell .photo .price {
  position: absolute; left: 12px; bottom: 12px;
  background: var(--near-black); color: #fff; border-radius: 14px;
  padding: 6px 12px; font-size: 13px; font-weight: 600;
}
.bento .cell .body, .homes-carousel .cell .body { padding: 16px 18px 18px; }
.bento .cell .sub, .homes-carousel .cell .sub { font-size: 13px; color: var(--gray); margin-bottom: 4px; }
.bento .cell h3, .homes-carousel .cell h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.44px; margin-bottom: 10px; }
.bento .cell .stats, .homes-carousel .cell .stats {
  display: flex; gap: 14px; font-size: 13px; color: var(--gray);
  border-top: 1px solid var(--hair); padding-top: 12px;
}
.bento .cell .stats b, .homes-carousel .cell .stats b { color: var(--near-black); font-weight: 600; }
.bento .cell .link, .homes-carousel .cell .link { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--accent); }

/* ---------- atouts ---------- */
.atouts-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: stretch; }
.atouts-list { display: flex; flex-direction: column; }
.atouts-list .item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 0; border-bottom: 1px solid var(--hair);
}
.atouts-list .item:last-child { border-bottom: none; }
.atouts-list .item .num {
  flex: none; width: 38px; height: 38px; border-radius: 12px;
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 700; display: grid; place-items: center;
}
.atouts-list .item h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 6px; }
.atouts-list .item p { color: var(--gray); font-size: 14px; line-height: 1.55; }
.atouts-prox {
  background: var(--near-black); color: #fff; border-radius: 20px;
  padding: 32px 32px 32px; display: flex; flex-direction: column;
}
.atouts-prox h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.44px; margin-bottom: 20px; }
.atouts-prox ul { list-style: none; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.atouts-prox li {
  display: flex; align-items: center; gap: 14px;
  font-size: 15px; color: rgba(255,255,255,.88);
  padding: 10px 12px; border-radius: 12px;
  transition: background .2s ease;
}
.atouts-prox li:hover { background: rgba(255,255,255,.06); }
.atouts-prox li .p-ic {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: rgba(62,188,176,.16); color: var(--accent);
  display: grid; place-items: center;
}
.atouts-prox li .p-ic svg { width: 18px; height: 18px; }
.atouts-prox li .p-name { flex: 1; font-weight: 500; }
.atouts-prox li .p-time {
  flex: none; font-size: 13px; font-weight: 700; color: var(--accent);
  background: rgba(62,188,176,.12); border-radius: 999px; padding: 5px 11px;
}
.atouts-prox .addr {
  margin-top: auto; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.5;
}

/* ---------- avis ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.reviews-carousel { display: block; }
.reviews-carousel .viewport { overflow: hidden; }
.reviews-carousel .track { display: flex; gap: 24px; transition: transform .5s ease; will-change: transform; }
.reviews-carousel .track .review { flex: 0 0 calc((100% - 48px) / 3); }
.reviews-carousel .viewport:hover .track { animation-play-state: paused; }
.review { background: var(--white); border-radius: 20px; box-shadow: var(--shadow-card); padding: 26px; display: flex; flex-direction: column; }
.review .stars { color: var(--accent); font-size: 16px; letter-spacing: 2px; margin-bottom: 12px; }
.review p { font-size: 15px; margin-bottom: 14px; }
.review .who { font-size: 13px; font-weight: 600; color: var(--gray); margin-top: auto; }
.review .rdate { font-weight: 400; opacity: .75; text-transform: capitalize; }

/* ---------- résumé des avis ---------- */
.avis-summary {
  display: flex; align-items: center; justify-content: center; gap: 26px;
  background: var(--white); border: 1px solid var(--hair); border-radius: 20px;
  padding: 30px 36px; box-shadow: var(--shadow-card);
}
.sum-main { display: flex; align-items: center; gap: 22px; }
.sum-score {
  font-size: 46px; font-weight: 700; letter-spacing: -1px; color: var(--near-black);
  background: var(--accent-soft, #e7f5f2); border-radius: 18px; padding: 14px 22px; line-height: 1;
}
.stars-lg { color: var(--accent); font-size: 22px; letter-spacing: 3px; margin-bottom: 6px; }
.sum-n { font-size: 14px; font-weight: 600; color: var(--near-black); margin-bottom: 2px; }
.sum-lbl { font-size: 13px; color: var(--gray); }
.sum-cta { border-left: 1px solid var(--hair); padding-left: 36px; display: flex; flex-direction: column; }
.sum-cta h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.44px; margin-bottom: 8px; }
.sum-cta p { font-size: 14px; color: var(--gray); margin-bottom: 16px; }
.sum-cta .btn { align-self: flex-start; }
.loc-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: stretch; }
.loc-grid .map { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid #d9d9d9; min-height: 320px; }
.loc-grid .map iframe { width: 100%; height: 100%; border: 0; border-radius: 19px; filter: grayscale(.35) contrast(1.02); }
.loc-grid .dist {
  list-style: none; background: var(--white); border-radius: 20px; box-shadow: var(--shadow-card);
  padding: 26px; display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.loc-grid .dist li { font-size: 15px; padding-left: 20px; position: relative; }
.loc-grid .dist li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---------- fiche maison ---------- */
.house-hero { position: relative; height: 26vh; min-height: 190px; max-height: 300px; overflow: hidden; background: var(--near-black); }
.house-hero img { width: 100%; height: 100%; object-fit: cover; }
.house-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,
    rgba(var(--ov-rgb, 62,188,176), calc(var(--ov-a, .85) * 0.92)) 0%,
    rgba(var(--ov-rgb, 62,188,176), var(--ov-a, .85)) 55%,
    rgba(var(--ov-rgb, 62,188,176), calc(var(--ov-a, .85) * 1.05)) 100%); }
.house-hero .title { position: absolute; left: 40px; bottom: 24px; z-index: 2; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.45); background: linear-gradient(90deg, rgba(0,0,0,.42), rgba(0,0,0,0)); padding: 12px 24px 12px 16px; border-radius: 16px; }
.house-hero .title .sub { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.32px; opacity: .85; margin-bottom: 8px; }
.house-hero .title h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -0.44px; }
.specs { display: flex; gap: 14px; margin: 40px 0; flex-wrap: wrap; }
.specs .spec {
  flex: 1 1 150px; background: var(--white); border-radius: 20px; box-shadow: var(--shadow-card);
  padding: 20px 22px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--hair);
}
.specs .spec-ic {
  width: 44px; height: 44px; flex: none; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: rgba(62,188,176,.12);
}
.specs .spec-ic svg { width: 22px; height: 22px; color: var(--accent); }
.specs .spec-txt { display: flex; flex-direction: column; }
.specs .spec .label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.32px; color: var(--gray); margin-bottom: 4px; }
.specs .spec .value { font-size: 22px; font-weight: 700; letter-spacing: -0.44px; color: var(--near-black); }
.specs .spec .value small { font-size: 13px; font-weight: 500; color: var(--gray); }
.specs .spec-price { flex: 1 1 200px; }

/* ---------- calendrier date de fin (style Airbnb/Booking) ---------- */
.cal-wrap { position: relative; }
.cal-field { cursor: pointer; }
.cal-popup {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: 320px;
  background: var(--white); border: 1px solid var(--hair); border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,.14); padding: 18px; font-family: inherit;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head span { font-weight: 700; font-size: 15px; text-transform: capitalize; }
.cal-nav {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--white); cursor: pointer; font-size: 14px; color: var(--near-black);
}
.cal-nav:hover { border-color: var(--near-black); }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 6px; }
.cal-week span { text-align: center; font-size: 11px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: .3px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-pad { height: 34px; }
.cal-day {
  height: 34px; border-radius: 50%; border: 0; background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--near-black); font-family: inherit;
}
.cal-day:hover:not(:disabled) { background: rgba(62,188,176,.15); }
.cal-day.off { color: var(--border); cursor: not-allowed; background: transparent; }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal-day.sel { background: var(--near-black); color: #fff; }
.cal-day.sel:hover { background: var(--near-black); }
.cal-note { margin-top: 12px; font-size: 12px; color: var(--gray); text-align: center; }
@media (max-width: 480px) { .cal-popup { width: 290px; left: -10px; } }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 40px 0; }
.gallery img { border-radius: 14px; aspect-ratio: 4/3; object-fit: cover; cursor: zoom-in; transition: transform .25s ease; }
.gallery img:hover { transform: scale(1.02); }
.gallery img:first-child { grid-column: span 2; grid-row: span 2; }

.equip { margin-top: 24px; }
.equip-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 40px;
  background: var(--white); border: 1px solid var(--hair); border-radius: 20px;
  padding: 26px 30px; box-shadow: var(--shadow-card);
}
.equip-row {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 4px; border-bottom: 1px solid var(--hair);
  font-size: 14.5px; font-weight: 500; color: var(--near-black);
}
.equip-panel .equip-row:nth-last-child(-n+2) { border-bottom: none; }
.equip-ic { color: var(--accent); flex: none; display: grid; place-items: center; }
.equip-ic svg { width: 22px; height: 22px; }
@media (max-width: 760px) { .equip-panel { grid-template-columns: 1fr; padding: 14px 18px; } .equip-panel .equip-row:nth-last-child(-n+2) { border-bottom: 1px solid var(--hair); } .equip-panel .equip-row:last-child { border-bottom: none; } }

/* ---------- formulaires ---------- */
form.card {
  background: var(--white); border-radius: 20px; box-shadow: var(--shadow-card);
  padding: 32px; display: grid; gap: 18px;
}
form label { display: block; font-size: 14px; font-weight: 500; margin: 18px 0 6px; }
form input, form textarea, form select {
  width: 100%; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--white);
  font-family: inherit; font-size: 15px; color: var(--near-black);
}
form input:focus, form textarea:focus, form select:focus {
  outline: none; border-color: var(--near-black); box-shadow: 0 0 0 2px rgba(34,34,34,.12);
}
form input[type=checkbox] { width: auto; }
#quote-form input:not([type=checkbox]), #quote-form textarea { margin-bottom: 14px; }
.houses-check { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.houses-check label {
  display: flex; align-items: center; gap: 8px; margin: 0;
  background: var(--surface-soft); border-radius: 14px; padding: 10px 14px; font-size: 14px; font-weight: 500;
}
.houses-check input { width: auto; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- page devis ---------- */
.devis-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
#quote-form { background: var(--white); border: 1px solid var(--hair); border-radius: 20px; padding: 32px 34px; box-shadow: var(--shadow-card); }
#quote-form h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.44px; margin-bottom: 6px; }
#quote-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-card {
  background: var(--near-black); color: #fff; border-radius: 20px; padding: 32px 30px;
}
.contact-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.44px; margin-bottom: 14px; }
.contact-card a { color: rgba(255,255,255,.75); }
.trust { display: flex; gap: 28px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--near-black); }
.trust-ic {
  width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft, #e7f5f2);
  color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: 13px;
}
.form-ok { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--accent); }

/* ---------- footer ---------- */
footer.site { background: var(--near-black); color: #fff; padding: 56px 0 28px; }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
footer.site h4 { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: #fff; }
footer.site p, footer.site a { font-size: 14px; color: rgba(255,255,255,.62); }
footer.site a:hover { color: var(--accent); }
footer.site .fine {
  border-top: 1px solid rgba(255,255,255,.16); margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 20px; font-size: 13px; color: rgba(255,255,255,.5);
}
footer.site .fine a { color: rgba(255,255,255,.62); }
footer.site .fine a:hover { color: var(--accent); }

/* ---------- maisons carousel (3 en défilement) ---------- */
.homes-carousel { position: relative; }
.homes-carousel .viewport { overflow: hidden; }
.homes-carousel .track { display: flex; gap: 20px; transition: transform .45s ease; }
.homes-carousel .cell { flex: 0 0 calc((100% - 40px) / 3); min-width: 0; }
.homes-carousel .nav-ctrl { display: flex; align-items: center; gap: 12px; margin-top: 22px; justify-content: center; }
.homes-carousel .arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--white); font-size: 17px; display: grid; place-items: center;
  box-shadow: var(--shadow-card); transition: transform .15s, background .2s;
}
.homes-carousel .arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.homes-carousel .arrow:active { transform: scale(.92); }
.homes-carousel .arrow:disabled { opacity: .35; pointer-events: none; }
.homes-carousel .counter { font-size: 13px; color: var(--gray); font-weight: 500; min-width: 88px; text-align: center; }
.homes-carousel .counter b { color: var(--near-black); font-weight: 700; }
@media (max-width: 1024px) { .homes-carousel .cell { flex: 0 0 calc((100% - 20px) / 2); } }
@media (max-width: 640px) { .homes-carousel .cell { flex: 0 0 100%; } }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; z-index: 100; }
.lightbox.open { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 14px; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px;
  border-radius: 50%; border: none; background: rgba(255,255,255,.14); color: #fff;
  font-size: 30px; line-height: 1; cursor: pointer; transition: background .2s ease; z-index: 101; }
.lb-nav:hover { background: rgba(255,255,255,.3); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-close { position: fixed; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer; transition: background .2s ease; z-index: 101; }
.lb-close:hover { background: rgba(255,255,255,.3); }
.lb-counter { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.85); font-size: 14px; font-weight: 600; letter-spacing: .05em; }
@media (max-width: 640px) { .lb-nav { width: 42px; height: 42px; font-size: 24px; } .lb-prev { left: 10px; } .lb-next { right: 10px; } }

/* ---------- animations ---------- */
.reveal { opacity: 1; }
.reveal.js { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.js.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; animation: none !important; }
  .hero-carousel .slide.active img { animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .devis-grid { grid-template-columns: 1fr; gap: 28px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .atouts-layout { grid-template-columns: 1fr; }
  .reviews, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .avis-summary { grid-template-columns: 1fr; gap: 24px; padding: 26px 24px; }
  .sum-cta { border-left: none; padding-left: 0; border-top: 1px solid var(--hair); padding-top: 24px; }
  .reviews-carousel .track .review { flex: 0 0 calc((100% - 24px) / 2); }
  .equip { grid-template-columns: repeat(2, 1fr); }
  .loc-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .hero-stats { display: none; }
}
@media (max-width: 720px) {
  .nav { height: 64px; }
  .burger { display: block; }
  nav.links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); flex-direction: column; gap: 0; padding: 8px 24px 16px;
    border-bottom: 1px solid var(--hair); box-shadow: var(--shadow-card);
  }
  nav.links.open { display: flex; }
  nav.links a { padding: 12px 4px; }
  .bento, .reviews, .grid-3 { grid-template-columns: 1fr; }
  .reviews-carousel .track .review { flex: 0 0 100%; }
  .equip { grid-template-columns: 1fr; }
  .atouts-prox { padding: 26px 24px 30px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery img:first-child { grid-column: span 2; grid-row: span 1; }
  .hero-caption { left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .hero-caption .lead { display: none; }
  .carousel-ui { right: 24px; }
  .hero-count { left: 24px; top: 24px; }
  .house-hero .title { left: 24px; bottom: 24px; }
  section { padding: 56px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  footer.site .cols { grid-template-columns: 1fr; gap: 24px; }
  .row2 { grid-template-columns: 1fr; }
  /* formulaire devis: tout en colonne, pleine largeur */
  #quote-form { padding: 22px 18px; border-radius: 16px; }
  #quote-form .two { grid-template-columns: 1fr; gap: 0; }
  #quote-form input:not([type=checkbox]), #quote-form select, #quote-form textarea { font-size: 16px; } /* evite le zoom iOS */
  #quote-form button[type=submit], #quote-form .btn { width: 100%; }
  .contact-card { padding: 24px 20px; }
  .trust { gap: 14px; }
}
