:root {
  --ink: #18222e; --muted: #667281; --line: #e4e8ee; --bg: #f7f8fa; --white: #fff;
  --brand: #1f3a5f; --brand-2: #2d5a8f; --on-brand: #fff; --brand-ink: #1f3a5f; --accent: #e8a33d; --ok: #1f8a4c; --warn: #a86500; --err: #c0392b;
  --r: 12px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand-ink); }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
h1 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; margin: 18px 0 6px; }
h2 { font-size: 19px; margin: 32px 0 12px; }
.small { font-size: 13px; color: var(--muted); } .center { text-align: center; }
[hidden] { display: none !important; }

.top { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-weight: 800; font-size: 20px; color: var(--brand-ink); text-decoration: none; display: flex; align-items: center; }
.logo img { max-height: 44px; max-width: 220px; display: block; }
.top nav { display: flex; gap: 20px; align-items: center; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--brand-ink); }
.top .phone { background: var(--brand); color: var(--on-brand) !important; padding: 7px 14px; border-radius: 99px; }

.hero { padding: 28px 0 8px; }
.search { display: grid; grid-template-columns: 1.1fr 1fr 1.4fr 1fr 1fr auto; gap: 8px; background: var(--white); padding: 10px; border-radius: var(--r); border: 1px solid var(--line); box-shadow: 0 4px 18px rgba(20,40,70,.06); margin-top: 16px; }
input, select, textarea { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid #cfd6df; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 35%, #fff); border-color: var(--brand); }
.search button, .cta { background: var(--brand); color: var(--on-brand); border: 0; border-radius: 8px; padding: 11px 20px; font: inherit; font-weight: 700; cursor: pointer; }
.search button:hover, .cta:hover { background: var(--brand-2); }
.cta { width: 100%; margin-top: 8px; font-size: 16px; display: block; text-align: center; text-decoration: none; }
.cta.inline { display: inline-block; width: auto; margin-right: 12px; }
button.link { background: none; border: 0; color: var(--err); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }
.count { color: var(--muted); margin: 18px 0 10px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--white); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(20,40,70,.12); }
.ph { position: relative; aspect-ratio: 4/3; background: #e9edf2; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.noph { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: 14px; background: linear-gradient(135deg, #eef2f6, #dde4ec); }
.noph.big { aspect-ratio: 16/9; border-radius: var(--r); }
.tag { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.95); color: var(--brand-ink); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.tag + .tag { left: auto; right: 10px; }
.tag.amber { background: #fdf1dc; color: var(--warn); } .tag.inline { position: static; }
.body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; }
.price { font-size: 22px; font-weight: 800; color: var(--brand-ink); }
.price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.title { font-weight: 600; }
.facts, .where { color: var(--muted); font-size: 14px; }
.where { display: flex; justify-content: space-between; align-items: center; }
.energy { color: #fff; font-weight: 800; font-size: 12px; border-radius: 4px; padding: 1px 7px; }
.eA { background: #009c6d; } .eB { background: #52b153; } .eC { background: #a5cc74; } .eD { background: #f4e70f; color: #333 !important; }
.eE { background: #f0b40f; } .eF { background: #eb8235; } .eG { background: #d7221f; }
.empty { grid-column: 1 / -1; background: var(--white); border: 1px dashed var(--line); border-radius: var(--r); padding: 40px; text-align: center; color: var(--muted); }
.pager { display: flex; justify-content: center; gap: 24px; margin: 28px 0; }

.back { display: inline-block; margin-top: 18px; text-decoration: none; font-size: 14px; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; margin-bottom: 48px; }
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r); margin-top: 12px; }
.gallery img { flex: 0 0 100%; aspect-ratio: 16/10; object-fit: cover; scroll-snap-align: start; border-radius: var(--r); }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.loc { color: var(--muted); margin: 0; }
.keyfacts { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.keyfacts li { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; display: flex; flex-direction: column; min-width: 100px; }
.keyfacts b { font-size: 18px; } .keyfacts span { font-size: 13px; color: var(--muted); }
.desc { white-space: pre-wrap; }
.dpe { display: flex; gap: 28px; flex-wrap: wrap; }
.dpe .label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 4px; }
.scale { display: flex; gap: 3px; align-items: flex-end; }
.scale span { width: 30px; height: 26px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 13px; border-radius: 4px; opacity: .3; }
.scale span.on { opacity: 1; height: 38px; width: 40px; font-size: 18px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.fin { display: grid; grid-template-columns: 220px 1fr; gap: 8px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; }
.fin dt { color: var(--muted); } .fin dd { margin: 0; }
.fin.narrow { max-width: 560px; margin: 20px auto; text-align: left; }

.side { position: sticky; top: 84px; }
.pricebox { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: 0 6px 24px rgba(20,40,70,.07); }
.panel-title { margin: 0 0 12px; font-size: 18px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #eef1f5; border-radius: 9px; padding: 3px; margin-bottom: 14px; }
.tabs button { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; padding: 8px; border-radius: 7px; cursor: pointer; color: var(--muted); }
.tabs button.on { background: var(--white); color: var(--brand-ink); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.step { font-weight: 700; font-size: 14px; margin: 6px 0 8px; }
.days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.day { flex: 0 0 62px; border: 1px solid var(--line); background: var(--white); border-radius: 9px; padding: 6px 0; display: flex; flex-direction: column; align-items: center; cursor: pointer; font: inherit; font-size: 12px; color: var(--muted); }
.day b { font-size: 18px; color: var(--ink); }
.day.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, #fff); } .day.on b { color: var(--brand-ink); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 14px; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot span { display: block; text-align: center; border: 1px solid #cfd6df; border-radius: 7px; padding: 7px 0; font-size: 14px; font-weight: 600; cursor: pointer; }
.slot span:hover { border-color: var(--brand); }
.slot input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.slot input:focus-visible + span { outline: 2px solid var(--accent); }
.field { display: flex; flex-direction: column; gap: 3px; margin-bottom: 9px; font-size: 13px; font-weight: 600; color: #46525f; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--muted); margin: 4px 0 6px; }
.consent input { width: auto; margin-top: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { background: #fbe5e2; color: var(--err); border: 1px solid #f2c4bd; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }

.confirm { max-width: 680px; margin: 40px auto 60px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 36px 28px; text-align: center; }
.check { width: 60px; height: 60px; border-radius: 50%; background: #e3f4ea; color: var(--ok); font-size: 30px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.check.grey { background: #eef1f4; color: var(--muted); }
.when { font-size: 20px; font-weight: 700; color: var(--brand-ink); }

.foot { background: #18222e; color: #b9c3cf; padding: 26px 0; font-size: 14px; margin-top: 40px; }
.foot a { color: #fff; } .foot b { color: #fff; }
.legal { font-size: 12px; opacity: .75; margin-top: 6px; }

@media (max-width: 960px) {
  .detail { grid-template-columns: 1fr; }
  .side { position: static; }
  .search { grid-template-columns: 1fr 1fr; }
  .search input[name=city], .search button { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .top nav a:not(.phone) { display: none; }
  .fin { grid-template-columns: 1fr; gap: 2px 0; } .fin dd { margin-bottom: 8px; }
  .slots { grid-template-columns: repeat(3, 1fr); }
}
.side, .panel, .pane { min-width: 0; }
.gallery .noph { flex: 0 0 100%; }
.slot { position: relative; }
.slot small { display: block; font-size: 11px; font-weight: 600; opacity: .8; margin-top: 1px; }
.slot input:checked + span small { opacity: 1; }

.legal-note { font-size: 12px; color: var(--muted); margin: 0 0 6px; line-height: 1.45; }
.legal a { color: inherit; }

/* Pages affichées dans le site de l'agence (widget) */
body.embed { background: transparent; }
.embed .wrap { padding: 0 12px; }
.embed .hero { padding-top: 4px; }
.embed .search { margin-top: 0; }
.embed .detail { margin-bottom: 16px; }
.embed .side { position: static; }
.embed .confirm { margin: 16px auto; }
.foot.mini { background: none; color: var(--muted); padding: 10px 0 16px; margin: 0; font-size: 12px; text-align: center; }
.foot.mini a { color: var(--muted); }
.embed-modal .wrap { padding: 0 14px; }
.embed-modal .detail { display: flex; flex-direction: column; gap: 14px; }
.embed-modal .side { order: -1; width: 100%; }
.embed-modal .panel { box-shadow: none; }
.embed-modal .confirm { border: 0; padding: 24px 6px; }
.summary { display: flex; gap: 12px; align-items: center; padding: 14px 48px 12px 0; }
.summary img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; flex: none; }
.summary .title { line-height: 1.3; }
details.more { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--brand-ink); }
details.more .gallery img { aspect-ratio: 4/3; }
.unavailable { max-width: 560px; }
.privacy { max-width: 760px; margin: 24px auto 48px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.privacy h1 { margin-top: 0; }
.privacy h2 { font-size: 17px; margin: 22px 0 6px; }
.privacy table { border-collapse: collapse; width: 100%; font-size: 14px; }
.privacy td, .privacy th { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
