/* Maison KANAM — feuille de style principale
   Palette et typographies : charte graphique Maison KANAM (sept. 2026) */

:root {
  --sable: #DFD4C2;
  --ivoire: #F4EFE5;
  --noir: #14120F;
  --vert: #1E3A33;
  --laiton: #B08D57;
  --laiton-clair: #D8C39C;
  --terre: #9C4E2E;
  --texte: #3F3A33;
  --muted: #6E665B;
  --blanc: #FFFFFF;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1200px;
  --gutter: 24px;
  --section: clamp(72px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivoire);
  color: var(--noir);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--terre); }
:focus-visible { outline: 2px solid var(--terre); outline-offset: 3px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 300; line-height: 1.1; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--noir); color: var(--ivoire); padding: 12px 18px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; color: var(--ivoire); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight-top { padding-top: 0; }
.bg-sable { background: var(--sable); }
.bg-vert { background: var(--vert); color: var(--ivoire); }
.bg-noir { background: var(--noir); color: var(--ivoire); }

/* ---------- Typographie ---------- */
.eyebrow { font-family: var(--sans); font-size: 12px; letter-spacing: 0.32em; font-weight: 400; text-transform: uppercase; color: var(--terre); margin-bottom: 22px; }
.bg-vert .eyebrow, .bg-noir .eyebrow { color: var(--laiton-clair); }
.display { font-size: clamp(40px, 6vw, 68px); line-height: 1.08; }
.h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.12; }
.h2--sm { font-size: clamp(30px, 3.6vw, 44px); }
.h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.2; margin-bottom: 8px; }
.lead { font-size: 18px; color: var(--texte); }
.muted { color: var(--texte); }
.bg-vert .muted, .bg-noir .muted { color: rgba(244, 239, 229, 0.84); }
.italic { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.35; }
.num { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--terre); margin-bottom: 16px; }
.bg-vert .num { color: var(--laiton-clair); }
.center { text-align: center; }
.rule { width: 48px; height: 1px; background: var(--laiton); margin: 36px auto; border: 0; }
.stack > * + * { margin-top: 16px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 30px;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.22em; font-weight: 400; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--vert); color: var(--ivoire); }
.btn--primary:hover { background: var(--noir); color: var(--ivoire); }
.btn--outline { border-color: var(--noir); color: var(--noir); background: transparent; }
.btn--outline:hover { background: var(--noir); color: var(--ivoire); }
.btn--laiton { border-color: var(--laiton); color: var(--ivoire); background: transparent; }
.btn--laiton:hover { background: var(--laiton); color: var(--noir); }
.btn--block { display: flex; width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.center .btns { justify-content: center; }
.link-line { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--laiton); font-size: 12px; letter-spacing: 0.22em; font-weight: 400; text-transform: uppercase; }

/* ---------- En-tête ---------- */
.site-header { border-bottom: 1px solid var(--sable); background: var(--ivoire); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; padding-bottom: 20px; }
.logo { display: inline-flex; flex-direction: column; line-height: 1; color: var(--noir); }
.logo:hover { color: var(--noir); }
.logo__small { font-size: 10px; letter-spacing: 0.55em; font-weight: 400; }
.logo__big { font-family: var(--serif); font-size: 30px; letter-spacing: 0.28em; font-weight: 400; margin-top: 4px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 28px; font-size: 12px; letter-spacing: 0.2em; font-weight: 400; text-transform: uppercase; }
.nav a { padding: 12px 0; }
.nav a[aria-current="page"] { color: var(--terre); }
.nav .nav__lang { padding-left: 22px; border-left: 1px solid var(--sable); color: var(--muted); }
.nav .nav__lang:hover { color: var(--terre); }
@media (max-width: 1080px) { .nav .nav__lang { padding-left: 0; border-left: 0; } }
.nav-toggle { display: none; min-height: 44px; padding: 0 18px; background: transparent; border: 1px solid var(--noir); font-family: var(--sans); font-size: 12px; letter-spacing: 0.22em; font-weight: 400; text-transform: uppercase; color: var(--noir); cursor: pointer; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ivoire); border-bottom: 1px solid var(--sable); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--sable); }
  .nav.is-open { display: flex; }
}

.subnav { background: var(--sable); }
.subnav .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 30px; font-size: 11px; letter-spacing: 0.22em; font-weight: 400; text-transform: uppercase; }
.subnav span { color: var(--terre); padding: 12px 0; }
.subnav a { padding: 12px 0; }

/* ---------- Ouverture ---------- */
.hero { padding: clamp(56px, 8vw, 88px) 0 0; }
.hero__text { max-width: 900px; margin: 0 auto; text-align: center; }
.hero__text .lead { max-width: 640px; margin: 28px auto 0; }
.hero__img { margin-top: 64px; }
.hero__img img { width: 100%; height: clamp(280px, 44vw, 580px); object-fit: cover; border: 1px solid var(--laiton); }
.frame { border: 1px solid var(--laiton); }

/* Barre de recherche Hostaway */
.search-panel { position: relative; max-width: 1000px; margin: -48px auto 0; background: var(--ivoire); border: 1px solid var(--laiton); padding: 22px 26px; }
.search-panel__label { font-size: 11px; letter-spacing: 0.24em; font-weight: 400; text-transform: uppercase; color: var(--terre); margin-bottom: 10px; }
.search-fallback { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.search-fallback p { color: var(--texte); max-width: 520px; }
.search-fallback .btns { margin-top: 0; }
[hidden] { display: none !important; }
@media (max-width: 640px) { .search-panel { margin: 16px 0 0; } }

/* ---------- Grilles ---------- */
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 64px; margin-bottom: 52px; }
.head-row > p { max-width: 440px; }
.grid { display: grid; gap: 48px 56px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 88px; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split--top { align-items: flex-start; }
.ruled { border-top: 1px solid var(--laiton); padding-top: 22px; }
.bg-vert .ruled { border-top-color: rgba(176, 141, 87, 0.6); }

/* Liste numérotée en lignes */
.rows { border-top: 1px solid var(--laiton); }
.rows__item { display: flex; gap: 24px; padding: 22px 0; border-bottom: 1px solid rgba(20, 18, 15, 0.14); }
.rows__num { flex: 0 0 34px; font-family: var(--serif); font-size: 24px; line-height: 1.3; color: var(--terre); }
.rows__key { flex: 0 0 160px; font-size: 12px; letter-spacing: 0.2em; font-weight: 400; text-transform: uppercase; color: var(--terre); padding-top: 4px; }
.rows__item p { color: var(--texte); }
@media (max-width: 560px) { .rows__item { flex-direction: column; gap: 6px; } .rows__key { flex: none; } }

/* Services à 6 */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 64px; border-top: 1px solid var(--laiton); }
.services > div { padding: 34px 0; border-bottom: 1px solid rgba(20, 18, 15, 0.14); }
.services .h3 span { color: var(--terre); margin-right: 12px; }

/* Cartes */
.card { background: var(--blanc); border: 1px solid var(--laiton); padding: 30px 26px; }
.card svg { width: 28px; height: 28px; margin-bottom: 14px; }
.card p { font-size: 16px; color: var(--texte); }
.card--plain { background: transparent; }
.card--tall { padding: 40px 36px; display: flex; flex-direction: column; gap: 10px; color: var(--noir); }
.card--tall:hover { background: var(--blanc); color: var(--noir); }

/* Logements */
.listing { display: flex; flex-direction: column; gap: 18px; color: var(--noir); }
.listing:hover { color: var(--noir); }
.listing:hover h3 { color: var(--terre); }
.listing img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--laiton); }
.listing__where { font-size: 11px; letter-spacing: 0.24em; font-weight: 400; text-transform: uppercase; color: var(--terre); }
.listing h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; margin: 6px 0 4px; transition: color .2s; }
.listing__meta { font-size: 15px; color: var(--texte); }
.listing__price { font-size: 15px; margin-top: 12px; }
.listing__price span { font-family: var(--serif); font-size: 22px; }
.listing--soon { background: var(--sable); padding: 36px 32px; justify-content: center; }
.listing--soon h3 { margin-top: 0; }

/* Bandeau */
.band { border-top: 1px solid var(--laiton); border-bottom: 1px solid var(--laiton); padding: 44px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 64px; }
.band__text { flex: 1 1 520px; min-width: 0; font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); line-height: 1.2; }

/* Panneau image + texte */
.panel { display: flex; flex-wrap: wrap; }
.panel > img { flex: 1 1 440px; min-width: 0; min-height: 380px; object-fit: cover; }
.panel__body { flex: 1 1 420px; min-width: 0; padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px); }

/* Duo d'images */
.duo { display: flex; gap: 16px; }
.duo img { width: 50%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--laiton); }
.duo img + img { margin-top: 56px; }
.duo--square img { aspect-ratio: 1 / 1; }

/* Tableau d'offre (propriétaires) */
.offer { margin: 0; border-top: 1px solid rgba(176, 141, 87, 0.55); }
.offer > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid rgba(244, 239, 229, 0.16); }
.offer dt { font-weight: 300; }
.offer dd { margin: 0; font-family: var(--serif); font-size: 22px; }
.offer .offer__head { display: block; padding-top: 30px; }
.offer .offer__head p:first-child { font-family: var(--serif); font-size: 24px; }
.offer .offer__head p + p { font-size: 15px; color: rgba(244, 239, 229, 0.74); margin-top: 6px; }
.offer .offer__note { color: rgba(244, 239, 229, 0.74); font-family: var(--sans); font-size: 15px; }

/* Fiche chiffres (entreprises) */
.facts { margin: 0; border-top: 1px solid var(--laiton); }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--sable); }
.facts dt { color: var(--texte); }
.facts dd { margin: 0; font-family: var(--serif); font-size: 22px; text-align: right; }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 40px 48px; }
.steps li { border-top: 1px solid rgba(176, 141, 87, 0.6); padding-top: 20px; }
.steps .num { font-size: 34px; margin-bottom: 8px; }
.steps p { color: rgba(244, 239, 229, 0.86); }

/* Citation */
.quote { max-width: 900px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 4vw, 46px); line-height: 1.25; }
.quote figcaption { margin-top: 32px; font-size: 12px; letter-spacing: 0.32em; font-weight: 400; color: var(--laiton-clair); }

/* ---------- Fiche logement ---------- */
.crumbs { font-size: 13px; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 10px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 15vw, 210px); gap: 12px; margin-top: 36px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery img:first-child { grid-column: span 2; grid-row: span 2; border: 1px solid var(--laiton); }
@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 140px; }
  .gallery img:first-child { grid-row: span 2; }
}
.listing-body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px 80px; }
.listing-body__main { flex: 999 1 520px; min-width: 0; }
.listing-body__side { flex: 1 1 360px; min-width: 0; }
.subhead { margin: 48px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--laiton); font-family: var(--sans); font-size: 12px; letter-spacing: 0.24em; font-weight: 400; text-transform: uppercase; color: var(--terre); }
.ticks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 40px; list-style: none; margin: 0; padding: 0; }
.ticks li { padding: 14px 0; border-bottom: 1px solid var(--sable); }
.info { border-bottom: 1px solid var(--sable); padding: 16px 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.info dt { flex: 0 0 180px; font-weight: 400; }
.info dd { flex: 1 1 240px; margin: 0; color: var(--texte); }
.info-list { margin: 0; }

.book { background: var(--blanc); border: 1px solid var(--laiton); padding: 32px 28px; position: sticky; top: 24px; }
.book__from { font-size: 15px; color: var(--texte); }
.book__price { font-family: var(--serif); font-size: 40px; line-height: 1.1; margin: 0 0 4px; }
.book__price span { font-family: var(--sans); font-size: 15px; color: var(--texte); }
.book__note { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.book__fallback p { color: var(--texte); margin-bottom: 18px; }
.book__fallback .btn + .btn { margin-top: 10px; }
.book__foot { font-size: 13px; color: var(--muted); text-align: center; margin-top: 18px; }
#hostaway-calendar-widget { min-height: 0; }

/* ---------- Formulaires ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11px; letter-spacing: 0.2em; font-weight: 400; text-transform: uppercase; color: var(--terre); }
.field input, .field select, .field textarea {
  min-height: 46px; border: 0; border-bottom: 1px solid var(--noir); border-radius: 0; background: transparent;
  font-family: var(--sans); font-size: 16px; font-weight: 300; color: var(--noir); padding: 6px 0; width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--noir) 50%), linear-gradient(135deg, var(--noir) 50%, transparent 50%); background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.bg-noir .field label { color: var(--laiton-clair); }
.bg-noir .field input, .bg-noir .field select, .bg-noir .field textarea { color: var(--ivoire); border-bottom-color: rgba(244, 239, 229, 0.5); }
.bg-noir .field select { background-image: linear-gradient(45deg, transparent 50%, var(--ivoire) 50%), linear-gradient(135deg, var(--ivoire) 50%, transparent 50%); }
.bg-noir .field select option { color: var(--noir); }
.hp { position: absolute; left: -9999px; }
.form__note { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ---------- Contacts ---------- */
.contacts { display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.contacts a { padding: 4px 0; }
.contacts span { opacity: .62; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--noir); color: var(--ivoire); padding: 72px 0 40px; }
.site-footer a { color: var(--ivoire); }
.site-footer .muted { color: rgba(244, 239, 229, 0.72); }
.site-footer a:hover { color: var(--laiton-clair); }
.footer-cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px 64px; padding-bottom: 56px; border-bottom: 1px solid rgba(176, 141, 87, 0.45); }
.footer-cols > div { flex: 1 1 240px; min-width: 0; }
.footer-label { font-size: 11px; letter-spacing: 0.24em; font-weight: 400; text-transform: uppercase; color: var(--laiton-clair); margin-bottom: 10px; }
.footer-tag { font-size: 11px; letter-spacing: 0.28em; font-weight: 400; color: var(--laiton-clair); margin-top: 14px; }
.site-footer .logo, .site-footer .logo:hover { color: var(--ivoire); }
.site-footer .logo__big { font-size: 26px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 28px; font-size: 13px; color: rgba(244, 239, 229, 0.55); }
.footer-legal a { color: rgba(244, 239, 229, 0.7); }

/* ---------- Pages simples ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; font-weight: 400; margin: 44px 0 12px; }
.prose p, .prose li { color: var(--texte); }
.prose p + p { margin-top: 12px; }
