@import url(fonts.css);

:root {
  --paper: #fbf8f3;
  --sand: #f2ece2;
  --white: #ffffff;
  --navy: #0f2f4a;
  --navy-2: #173f61;
  --sea: #1f6390;
  --rose: #c4786a;
  --rose-dark: #ad6253;
  --rose-soft: #f3e1da;
  --ink: #1b2532;
  --muted: #5b6672;
  --line: #e2d9cb;
  --ok: #2f7a55;
  --err: #b4412f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 47, 74, .10);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-top: 1.6em; }
h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.4em; }
p { margin: 0 0 1em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.container.wide { max-width: 1320px; }
.container.narrow { max-width: 820px; }
.kicker { font: 600 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--rose); margin-bottom: .8em; }
.kicker--light { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; background: var(--rose); color: #fff; border: 0; border-radius: 999px; padding: .9em 1.5em; font: 600 1rem/1.1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--rose-dark); }
.btn--small { padding: .65em 1.15em; font-size: .92rem; }
.btn--ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn[disabled], .btn.is-off { background: var(--line); color: var(--muted); cursor: default; pointer-events: none; }
.link { font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Barre du haut */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font: 400 1.25rem/1 var(--serif); color: var(--navy); text-decoration: none; margin: 0; }
.brand em { font-style: normal; color: var(--rose); }
.brand__mark { width: 26px; height: 26px; border-radius: 7px; background: url(../img/favicon.svg) center/cover; flex: none; }
.brand--light { color: #fff; }
@media (max-width: 420px) { .brand { font-size: 1.05rem; gap: 8px; } }
.menu { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); }
.menu a { white-space: nowrap; }
.menu a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.menu a:not(.btn):hover, .menu a[aria-current] { color: var(--rose); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.burger span:last-child, .burger span:last-child::before, .burger span:last-child::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--navy); content: ''; transition: transform .2s; }
.burger span:last-child { top: 21px; }
.burger span:last-child::before { left: 0; top: -7px; }
.burger span:last-child::after { left: 0; top: 7px; }
@media (max-width: 1140px) {
  .burger { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 18px; box-shadow: var(--shadow); }
  .menu.is-open { display: flex; }
  .menu a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .menu .btn { margin-top: 14px; }
}

/* Hero */
.hero { position: relative; min-height: clamp(340px, 52vh, 520px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.hero--home { min-height: clamp(460px, 74vh, 720px); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 30, 48, .05) 30%, rgba(10, 30, 48, .7) 100%); }
.hero__in { padding-bottom: clamp(32px, 6vw, 64px); padding-top: 60px; }
.hero h1 { color: #fff; max-width: 15em; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); margin: 0; }
.plain { padding-top: clamp(40px, 7vw, 80px); }

.crumbs { font-size: .88rem; color: var(--muted); padding-top: 20px; }
.crumbs a { color: var(--muted); }

/* Contenu éditorial */
.prose { padding-top: 12px; padding-bottom: clamp(48px, 8vw, 90px); }
.prose .lead, .home-main .lead { font: 400 clamp(1.15rem, 2.2vw, 1.35rem)/1.55 var(--serif); color: var(--navy-2); margin: 1.2em 0 1.4em; }
.prose ul, .home-main ul:not(.facts) { padding-left: 1.2em; }
.prose li, .home-main li { margin-bottom: .4em; }
figure { margin: 1.8em 0; }
figure img { border-radius: var(--radius); width: 100%; }
figure.wp-block-image, .prose figure { margin: 1.8em 0; }
.post-date { color: var(--muted); font-size: .9rem; margin-top: 1em; }
figcaption { font-size: .88rem; color: var(--muted); margin-top: .6em; }
.table { overflow-x: auto; margin: 1.4em 0 1.8em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { padding: .75em 1em; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--sand); font-weight: 600; color: var(--navy); }
tbody th { font-weight: 600; color: var(--navy); white-space: nowrap; }
tr:last-child th, tr:last-child td { border-bottom: 0; }

/* Accueil */
.home-main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter) clamp(48px, 8vw, 90px); }
.home-main > p:first-child { font: 400 clamp(1.15rem, 2.2vw, 1.4rem)/1.55 var(--serif); color: var(--navy-2); max-width: 760px; margin: clamp(28px, 5vw, 48px) auto 0; text-align: center; }
.home-main > h2, .home-main > p, .home-main > .table, .home-main > ul { max-width: 820px; margin-left: auto; margin-right: auto; }
.home-main > h2 { text-align: center; }

/* Moteur de dispo */
.dispo { background: var(--white); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); padding: clamp(16px, 3vw, 26px); margin: clamp(24px, 4vw, 36px) auto; max-width: 980px; scroll-margin-top: 90px; }
.dispo__fields { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
.dispo label { display: flex; flex-direction: column; gap: 6px; font: 600 .8rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dispo input, .dispo select { font: 400 1rem/1.2 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .75em .8em; min-height: 48px; width: 100%; text-transform: none; letter-spacing: 0; }
.dispo .btn { min-height: 48px; }
.dispo__result:not(:empty) { margin-top: 18px; }
.dispo__msg { margin: 0 0 12px; color: var(--muted); }
.dispo__msg--err { color: var(--err); }
.res { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.res__card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.res__card h3 { margin: 0; font-size: 1.15rem; }
.res__town { color: var(--muted); font-size: .9rem; margin: -4px 0 0; }
.res__state { font-weight: 600; margin: 0; }
.res__state--ok { color: var(--ok); }
.res__state--no { color: var(--err); }
.res__card .btn { align-self: flex-start; margin-top: auto; }
.res__both { grid-column: 1 / -1; background: var(--rose-soft); border-radius: var(--radius); padding: 14px 18px; margin: 0; }
@media (max-width: 760px) {
  .dispo__fields { grid-template-columns: 1fr 1fr; }
  .dispo__fields label:nth-child(3), .dispo__fields .btn { grid-column: 1 / -1; }
  .res { grid-template-columns: 1fr; }
}

/* Cartes maisons */
.houses { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); margin: 2em 0; }
.house { background: var(--white); border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.house__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.house__body { padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; flex: 1; }
.house h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 400; margin: 0 0 .2em; }
.house__rating { color: var(--muted); font-size: .92rem; margin-bottom: .8em; }
.house__rating span { color: var(--rose); }
.facts { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: .92rem; }
.facts li { padding-left: 18px; position: relative; margin: 0; }
.facts li::before { content: ''; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
.house__cta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.prose .houses { grid-template-columns: 1fr; }
@media (max-width: 760px) { .houses { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr; } }

/* Hôte */
.host { display: grid; grid-template-columns: 220px 1fr; gap: clamp(20px, 4vw, 40px); align-items: center; background: var(--sand); border-radius: calc(var(--radius) + 4px); padding: clamp(20px, 4vw, 40px); margin: clamp(40px, 7vw, 72px) auto; max-width: 980px; }
.host h2 { margin-top: 0; text-align: left; }
.host__img { width: 220px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.host__contact { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
@media (max-width: 680px) { .host { grid-template-columns: 1fr; text-align: center; } .host__img { width: 150px; margin: 0 auto; } .host h2 { text-align: center; } .host__contact { justify-content: center; } }

/* Guides */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1.5em 0; }
.guide { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; }
.guide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.guide:hover img { transform: scale(1.04); }
.guide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10, 30, 48, .78)); }
.guide__t { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; font: 400 1.2rem/1.2 var(--serif); }
@media (max-width: 900px) { .guides { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .guides { grid-template-columns: 1fr; } }
.more { padding-bottom: clamp(48px, 8vw, 90px); }
.more h2 { margin-top: 0; }

/* FAQ */
.faq { max-width: 820px; margin: 1em auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 14px 32px 14px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font: 400 1.5rem/1 var(--sans); color: var(--rose); }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 0 0 14px; color: var(--ink); }
.contact-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Pied de page */
.footer { background: var(--navy); color: #c9d6e2; padding: clamp(40px, 6vw, 64px) 0 24px; font-size: .95rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer__h { font-weight: 600; color: #fff; margin-bottom: .6em; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .45em; }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 32px; padding-top: 18px; font-size: .85rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* Carnet (blog) */
.carnet { padding-bottom: clamp(48px, 8vw, 90px); }
.guide--plain { background: var(--navy); min-height: 220px; }
.guide--plain::after { display: none; }
.plain .prose { padding: 0; }
