/* Le Persiane — feuille de style */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --ink: #18212e;
  --ink-2: #3a4555;
  --muted: #677385;
  --line: #e2e7ee;
  --line-2: #cfd6e0;
  --navy: #0e2a47;
  --navy-2: #1b4470;
  --accent: #e07b39;
  --accent-soft: #fdf1e8;
  --green: #1f8a5b;
  --green-soft: #e6f5ee;
  --red: #c2412d;
  --red-soft: #fcebe8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px rgba(16, 24, 40, .06);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, .06), 0 18px 40px rgba(16, 24, 40, .12);
  --font: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--accent); }
[hidden] { display: none !important; }

h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { font-family: "Roboto Mono", Consolas, monospace; font-size: .95em; }

.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.kicker {
  display: inline-block; font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .7rem;
}
.kicker-light { color: #ffd2b0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--navy); color: #fff; border: 1px solid var(--navy);
  font: 500 .95rem/1 var(--font); padding: .95em 1.6em; border-radius: var(--radius-sm);
  cursor: pointer; transition: background .2s, border-color .2s, color .2s, box-shadow .2s; white-space: nowrap;
}
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn:disabled { background: #b7c1ce; border-color: #b7c1ce; cursor: not-allowed; }
.btn-sm { padding: .7em 1.2em; font-size: .9rem; }
.btn-lg { padding: 1.1em 2em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line-2); }
.btn-outline:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-text { background: none; border: 0; padding: 0; font: inherit; font-size: .9rem; color: var(--navy-2); text-decoration: underline; cursor: pointer; }
.btn-text.danger { color: var(--red); }
.link-more { display: inline-flex; align-items: center; gap: .4em; font-weight: 500; color: var(--navy-2); }
.link-more:hover .ico { transform: translateX(3px); }
.link-more .ico { transition: transform .2s; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: #fff; }
.brand-mark .ico { width: 22px; height: 22px; }
.brand-name { display: block; font-weight: 700; font-size: 1.2rem; line-height: 1.1; letter-spacing: -.01em; }
.brand-sub { display: block; font-size: .75rem; color: var(--muted); }
.brand-logo { display: block; height: 46px; width: auto; }
.brand-footer { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 10px; }
.brand-footer .brand-logo { height: 52px; }
@media (max-width: 640px) { .site-header .brand-logo { height: 38px; } }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) { color: var(--ink-2); font-weight: 500; font-size: .95rem; padding: 10px 14px; border-radius: var(--radius-sm); }
.site-nav a:not(.btn):hover { background: var(--bg-soft); color: var(--ink); }
.site-nav a.is-active { color: var(--navy); background: var(--bg-soft); }
.site-nav .btn { margin-left: 10px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(180deg, rgba(10, 25, 45, .55) 0%, rgba(10, 25, 45, .35) 45%, rgba(10, 25, 45, .7) 100%), var(--hero) center 40% / cover no-repeat;
  padding: clamp(80px, 13vw, 150px) 0 clamp(40px, 6vw, 64px);
}
.hero-inner { max-width: 820px; margin-left: auto; margin-right: auto; text-align: center; }
.hero-kicker { font-size: .85rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #ffd2b0; margin-bottom: 1rem; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.02em; }
.hero-lead { font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 300; color: rgba(255,255,255,.92); max-width: 640px; margin: 0 auto 2.6rem; }
.hero-search { max-width: 1060px; }

/* Barre de recherche */
.search-bar {
  display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1fr 1fr auto; align-items: stretch;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; color: var(--ink);
}
.page-head .search-bar { margin-top: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.sb-field { display: flex; flex-direction: column; justify-content: center; padding: 8px 16px; border-right: 1px solid var(--line); min-width: 0; }
.sb-label { display: flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.sb-label .ico { color: var(--accent); }
.sb-field select, .sb-field input {
  border: 0; padding: 4px 0 0; font: 500 1rem var(--font); color: var(--ink); background: transparent; width: 100%; outline: none; min-width: 0;
}
.sb-field:nth-child(5) { border-right: 0; }
.sb-btn { margin: 4px; padding: 0 28px; font-size: 1rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding-top: 24px; }
.section-grey { background: var(--bg-soft); }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); max-width: 680px; }
.section-head h2 { margin: 0; }
.section-head.center { text-align: center; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; max-width: none; flex-wrap: wrap; }

/* Destinations */
.dest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.dest { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; color: #fff; }
.dest img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.dest::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8, 20, 36, .8)); }
.dest:hover img { transform: scale(1.05); }
.dest:hover { color: #fff; }
.dest-label { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; }
.dest-label strong { display: block; font-size: 1.4rem; font-weight: 700; }
.dest-label span { font-size: .88rem; color: rgba(255,255,255,.88); }

/* Cartes appartements */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-img { position: relative; display: block; overflow: hidden; }
.card-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-city {
  position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.95); color: var(--ink); font-size: .8rem; font-weight: 500; padding: 5px 10px; border-radius: 999px;
}
.card-city .ico { color: var(--accent); }
.badge { position: absolute; right: 12px; top: 12px; font-size: .75rem; font-weight: 500; padding: 5px 10px; border-radius: 999px; }
.badge-ok { background: var(--green); color: #fff; }
.badge-busy { background: #fff; color: var(--red); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-area { font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--navy-2); }
.card-text { font-size: .92rem; color: var(--ink-2); }
.card-meta { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: var(--muted); }
.card-meta li { display: inline-flex; align-items: center; gap: 5px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.card-price { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.3; }
.card-price strong { font-size: 1.2rem; color: var(--ink); }

/* Atouts */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.section-grey .feature { border-color: transparent; box-shadow: var(--shadow); }
.feature-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.feature-ico .ico { width: 24px; height: 24px; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: s; position: relative; }
.steps li { background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 18px; }
.steps p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Bandeau CTA */
.cta-band {
  background: linear-gradient(rgba(10, 25, 45, .72), rgba(10, 25, 45, .72)), var(--bg) center / cover no-repeat;
  color: #fff; padding: clamp(64px, 9vw, 110px) 0; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta-simple { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-simple h2 { margin-bottom: .3em; }
.cta-simple p { margin: 0; }

/* ---------- En-têtes de page ---------- */
.page-head { background: var(--bg-soft); padding: clamp(40px, 6vw, 64px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: .3em; }
.page-head .muted { font-size: 1.05rem; max-width: 640px; margin: 0; }
.page-hero {
  background: linear-gradient(180deg, rgba(10, 25, 45, .35), rgba(10, 25, 45, .75)), var(--bg) center / cover no-repeat;
  padding: clamp(110px, 16vw, 200px) 0 clamp(40px, 5vw, 60px); color: #fff;
}
.page-hero h1 { color: #fff; max-width: 760px; margin: 0; }

/* À propos */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.about-text p { color: var(--ink-2); font-size: 1.05rem; }
.about-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-media img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.about-media img:last-child { margin-top: 48px; }
.stats-band { background: var(--navy); color: #fff; padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center; }
.stats-grid strong { display: block; font-size: 2.4rem; font-weight: 700; line-height: 1.1; }
.stats-grid span { color: rgba(255,255,255,.75); font-size: .92rem; }

/* Résultats */
.results-count { color: var(--muted); font-size: .95rem; margin-bottom: 20px; }
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); background: #fff; font-size: .92rem; text-decoration: none; }
.pagination a:hover { border-color: var(--navy); color: var(--navy); }
.pagination .is-current { border-color: var(--navy); background: var(--navy); color: #fff; font-weight: 600; }
.pagination .is-disabled { color: #a6afba; background: var(--bg-soft); }
.empty { text-align: center; padding: 48px 20px; background: var(--bg-soft); border-radius: var(--radius); }
.pay-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.pay-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pay-list li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); color: var(--muted); font-size: .94rem; }
.pay-list li > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex: none; }
.pay-list strong { display: block; color: var(--ink); font-weight: 500; }

/* ---------- Contact / panneaux ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.panel-flush { padding: 0; overflow: hidden; }
.panel-title { font-size: 1.3rem; margin-bottom: 20px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.info-card { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: .95rem; }
.info-card strong { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.info-card small { display: block; color: var(--muted); }
.info-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--bg-soft); color: var(--navy); flex: none; }
.success { text-align: center; padding: 24px 0; }
.success-ico, .confirm-ico { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--green-soft); color: var(--green); margin-bottom: 16px; }
.success-ico .ico, .confirm-ico .ico { width: 30px; height: 30px; }
.confirm-ico.is-warn { background: var(--accent-soft); color: var(--accent); }
.confirm-ico.is-grey { background: var(--bg-soft); color: var(--muted); }

/* ---------- Formulaires ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: .88rem; font-weight: 500; color: var(--ink-2); }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 12px 14px; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(27, 68, 112, .12); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: var(--ink-2); }
.check input { margin-top: 3px; accent-color: var(--navy); width: 18px; height: 18px; flex: none; }
.form .btn { align-self: flex-start; }
.form .btn-block { align-self: stretch; }
.hp { position: absolute; left: -9999px; }
.alert { background: var(--red-soft); color: #8b2a1b; border-radius: var(--radius-sm); padding: 12px 16px; font-size: .93rem; margin: 0 0 18px; }
.alert p { margin: 0; }
.alert p + p { margin-top: 4px; }
.notice-line { background: var(--green-soft); color: #145c3c; border-radius: var(--radius-sm); padding: 12px 16px; font-size: .93rem; }

/* ---------- Fiche appartement ---------- */
.apt-head { padding: 28px 0 24px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--navy-2); }
.crumbs span { margin: 0 6px; }
.apt-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.apt-title h1 { margin-bottom: .2em; }
.apt-loc { display: flex; align-items: center; gap: 6px; color: var(--muted); margin: 0; }
.apt-loc .ico { color: var(--accent); }
.apt-from { margin: 0; color: var(--muted); }
.apt-from strong { font-size: 1.5rem; color: var(--ink); }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; height: clamp(320px, 44vw, 520px); position: relative; }
.g-item { display: block; overflow: hidden; background: var(--bg-soft); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g-item:hover img { transform: scale(1.03); }
.g-0 { grid-row: 1 / 3; border-radius: var(--radius) 0 0 var(--radius); }
.g-2 { border-top-right-radius: var(--radius); }
.g-4 { border-bottom-right-radius: var(--radius); }
.gallery .g-item:nth-child(n+6) { display: none; } /* au-delà de 5 photos : visibles seulement dans la visionneuse */
.g-count {
  position: absolute; right: calc(var(--gutter) + 14px); bottom: 14px; pointer-events: none;
  background: #fff; color: var(--ink); font-size: .85rem; font-weight: 500; padding: 8px 14px; border-radius: var(--radius-sm); box-shadow: var(--shadow);
}

.apt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: clamp(32px, 5vw, 64px); padding-top: 40px; padding-bottom: 80px; }
.key-facts { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.key-facts li { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: .82rem; color: var(--muted); }
.key-facts .ico { width: 26px; height: 26px; color: var(--navy-2); }
.key-facts strong { display: block; color: var(--ink); font-size: 1.1rem; }
.block { padding: 32px 0; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; }
.block h2 { font-size: 1.4rem; margin-bottom: 16px; }
.block p { color: var(--ink-2); }
.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.amenities li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.amenities .ico { color: var(--green); }
.info-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.info-table th, .info-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { font-weight: 500; width: 40%; color: var(--muted); padding-right: 16px; }

/* Carte de réservation + calendrier */
.booking-card { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 24px; }
.booking-price { color: var(--muted); margin-bottom: 18px; }
.booking-price strong { font-size: 1.7rem; color: var(--ink); }
.date-boxes { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-radius: var(--radius-sm); margin-bottom: 16px; }
.date-boxes div { padding: 10px 14px; }
.date-boxes div + div { border-left: 1px solid var(--line-2); }
.date-boxes span { display: block; font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.date-boxes strong { font-weight: 500; font-size: .95rem; }

.calendar { user-select: none; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cal-nav strong { font-weight: 500; font-size: 1rem; text-transform: capitalize; }
.cal-nav button { background: #fff; border: 1px solid var(--line-2); border-radius: 50%; width: 34px; height: 34px; cursor: pointer; font-size: 1.1rem; color: var(--ink); line-height: 1; }
.cal-nav button:hover:not(:disabled) { border-color: var(--navy); }
.cal-nav button:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.cal-grid .dow { font-size: .72rem; font-weight: 500; text-transform: uppercase; color: var(--muted); text-align: center; padding: 6px 0; }
.cal-day {
  aspect-ratio: 1; border: 0; background: none; font: inherit; font-size: .9rem; cursor: pointer; color: var(--ink);
  display: flex; align-items: center; justify-content: center; position: relative; border-radius: 50%;
}
.cal-day:hover:not(:disabled) { background: var(--bg-soft); }
.cal-day:disabled { color: #b9c2cf; cursor: default; }
.cal-day.is-booked { color: #c9a9a2; text-decoration: line-through; background: repeating-linear-gradient(135deg, transparent 0 4px, #f6ecea 4px 6px); border-radius: 4px; }
.cal-day.in-range { background: #e7eef7; border-radius: 0; }
.cal-day.is-start, .cal-day.is-end { background: var(--navy); color: #fff; }
.cal-day.is-today { font-weight: 700; }
.cal-day.is-today::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .75rem; color: var(--muted); margin-top: 8px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.lg-busy { background: repeating-linear-gradient(135deg, #fff 0 3px, #e8c9c2 3px 5px); border: 1px solid #e8c9c2; }
.lg-sel { background: var(--navy); }
.cal-hint { font-size: .88rem; color: var(--muted); margin: 12px 0 16px; min-height: 1.4em; }
.cal-hint.is-error { color: var(--red); }
.booking-card .field { margin-bottom: 4px; }

.summary { margin: 18px 0; font-size: .94rem; }
.summary > div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.summary dt { color: var(--ink-2); }
.summary dd { margin: 0; text-align: right; white-space: nowrap; }
.summary .sep { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.summary-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px !important; font-weight: 700; font-size: 1.05rem; }
.summary-total dt { color: var(--ink); }
.summary-dep { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 10px 12px !important; margin-top: 6px; color: #9a4a17; font-weight: 500; }
.summary-dep dt { color: #9a4a17; }
.booking-note { display: flex; gap: 8px; font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.booking-note .ico { color: var(--green); margin-top: 2px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 14, 24, .94); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: calc(100vh - 150px); width: auto; border-radius: var(--radius-sm); }
.lightbox figcaption { color: #cfd6e0; margin-top: 12px; font-size: .9rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 1.6rem; line-height: 1; }
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 18px; right: 18px; font-size: 1.1rem !important; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }

/* ---------- Réservation / confirmation ---------- */
.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(32px, 5vw, 64px); padding-top: 40px; padding-bottom: 80px; }
.book-main > .muted { margin-bottom: 24px; }
.progress { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 28px; counter-reset: p; flex-wrap: wrap; }
.progress li { counter-increment: p; display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.progress li::before { content: counter(p); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--line-2); font-weight: 500; font-size: .8rem; }
.progress li + li::after { order: -1; content: ""; width: 28px; height: 1px; background: var(--line-2); }
.progress li.done::before { content: "✓"; background: var(--green); border-color: var(--green); color: #fff; }
.progress li.current { color: var(--ink); font-weight: 500; }
.progress li.current::before { background: var(--navy); border-color: var(--navy); color: #fff; }
.recap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: sticky; top: 92px; }
.recap img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.recap-body { padding: 20px 24px 24px; }
.recap h2 { font-size: 1.3rem; }

.confirm { padding-top: 40px; padding-bottom: 80px; }
.confirm .progress { justify-content: center; }
.confirm-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.confirm-head .muted { font-size: 1.05rem; }
.confirm-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.confirm-grid .recap { position: static; }
.bank-box { background: #fff; border: 2px solid var(--navy); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.bank-top { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.bank-top > span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--navy); color: #fff; flex: none; }
.bank-top > span .ico { width: 26px; height: 26px; }
.bank-label { margin: 0; color: var(--muted); font-size: .9rem; }
.bank-amount { margin: 0; font-size: 2.2rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.bank-data { margin: 0 0 18px; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 4px 16px; }
.bank-data > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.bank-data > div:last-child { border-bottom: 0; }
.bank-data dt { font-size: .82rem; color: var(--muted); }
.bank-data dd { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 500; }
.ref-row code { background: var(--accent-soft); color: #9a4a17; padding: 3px 8px; border-radius: 4px; }
.copy { font: 500 .75rem/1 var(--font); border: 1px solid var(--line-2); background: #fff; padding: 6px 10px; border-radius: 6px; cursor: pointer; color: var(--ink-2); }
.copy:hover { border-color: var(--navy); }
.copy.is-done { border-color: var(--green); color: var(--green); }
.bank-note { font-size: .85rem; color: var(--muted); margin: 0; }
.confirm-foot { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 36px; flex-wrap: wrap; }

.status { display: inline-block; font-size: .72rem; font-weight: 500; padding: 3px 9px; border-radius: 999px; white-space: nowrap; vertical-align: middle; margin-left: 6px; }
.status-pending { background: #fff3e0; color: #a35a00; }
.status-confirmed { background: #e6f0fb; color: var(--navy-2); }
.status-paid { background: var(--green-soft); color: var(--green); }
.status-cancelled, .status-expired { background: var(--bg-soft); color: var(--muted); }

/* ---------- Pages légales ---------- */
.legal h2 { font-size: 1.2rem; margin-top: 1.8em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-2); }

/* ---------- Pied de page ---------- */
.site-footer { background: #0b1f35; color: #b8c3d1; padding: 64px 0 0; font-size: .93rem; }
.site-footer a { color: #dfe6ef; }
.site-footer a:hover { color: #fff; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-mark { background: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer-text { margin-top: 16px; max-width: 280px; }
.footer-legal { margin-top: 12px; font-size: .84rem; line-height: 1.6; color: #8494a8; }
.footer-title { color: #fff; font-weight: 500; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ico { margin-top: 3px; color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid #1d3550; padding-top: 20px; padding-bottom: 20px; font-size: .84rem; color: #8494a8; }
.footer-bottom span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Administration ---------- */
.login { max-width: 440px; }
.admin { padding-top: 32px; padding-bottom: 80px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; }
.admin-head h1 { margin: 0; }
.admin-tabs { display: flex; gap: 4px; flex-wrap: wrap; background: var(--bg-soft); padding: 4px; border-radius: 10px; }
.admin-tabs a { color: var(--ink-2); font-weight: 500; font-size: .92rem; padding: 8px 14px; border-radius: 8px; }
.admin-tabs a.is-active { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.admin-tabs b { background: var(--accent); color: #fff; font-size: .72rem; padding: 1px 7px; border-radius: 999px; font-weight: 500; }
.stat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 28px; }
.stat-cards > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat-cards span { display: block; font-size: .85rem; color: var(--muted); }
.stat-cards strong { font-size: 1.8rem; font-weight: 700; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filters a { font-size: .88rem; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); }
.filters a.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th { text-align: left; font-weight: 500; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 12px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.admin-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tbody tr { cursor: pointer; }
.admin-table tbody tr:hover td { background: #f8fafc; }
.admin-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.admin-detail h2 { font-size: 1.5rem; }
.admin-actions { display: flex; flex-direction: column; gap: 18px; }
.admin-actions h3 { margin: 0; }
.link-back { font-size: .92rem; }
.msg-list { display: flex; flex-direction: column; gap: 12px; }
.msg.is-unread { border-left: 4px solid var(--accent); }
.msg header { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 10px; }
.msg header .muted { margin-left: auto; font-size: .85rem; }
.msg-actions { display: flex; gap: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .search-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sb-field { border-right: 0; border-bottom: 1px solid var(--line); }
  .sb-field:nth-child(odd) { border-right: 1px solid var(--line); }
  .sb-btn { grid-column: 1 / -1; padding: 16px; margin: 8px 4px 4px; }
  .features, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apt-layout, .book-layout { grid-template-columns: minmax(0, 1fr) 350px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .key-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px;
    background: none; border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; padding: 0 11px;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 2px; border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 18px; box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 13px 12px; }
  .site-nav .btn { margin: 8px 0 0; }

  .dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apt-layout, .book-layout, .confirm-grid, .contact-grid, .admin-detail, .about-grid, .pay-info { grid-template-columns: minmax(0, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid, .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; height: auto; }
  .gallery .g-item { aspect-ratio: 4 / 3; border-radius: 0; }
  .g-0 { grid-row: auto; grid-column: 1 / -1; border-radius: var(--radius) var(--radius) 0 0 !important; }
  .booking-card, .recap { position: static; }
  .book-aside { order: -1; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .header-inner { min-height: 64px; }
  .brand-sub { display: none; }
  .search-bar { grid-template-columns: minmax(0, 1fr); }
  .sb-field, .sb-field:nth-child(odd) { border-right: 0; }
  .features, .steps, .dest-grid, .card-grid-3, .form-row, .amenities, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .dest { aspect-ratio: 16 / 10; }
  .about-media img:last-child { margin-top: 24px; }
  .gallery .g-item:nth-child(n+4) { display: none; }
  .bank-data > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .bank-amount { font-size: 1.8rem; }
  .booking-card { padding: 18px; }
  .lightbox { padding: 60px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .cta-simple { flex-direction: column; align-items: flex-start; }
}

@media print {
  .site-header, .site-footer, .confirm-foot, .progress { display: none; }
  .confirm-grid { grid-template-columns: 1fr 1fr; }
  .recap img { display: none; }
  .bank-box, .recap { box-shadow: none; }
}

/* Formules de séjour (étudiant · courte durée · longue durée) */
.stay-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 8px 0 4px; padding: 0; }
.stay-tag { font-size: .72rem; font-weight: 500; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; background: #eef2f7; color: var(--navy); }
.stay-etudiant { background: #fdeee3; color: #a4480f; }
.stay-long { background: #e7f2ec; color: #1d6b43; }
.apt-from span, .booking-month { font-size: .9rem; color: var(--muted); font-weight: 400; }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.offer { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.offer:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.offer img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.offer-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.offer-body h3 { margin: 0; font-size: 1.25rem; }
.offer-body p { margin: 0; color: var(--muted); }
.offer-body ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: .93rem; }
.offer-more { margin-top: auto; padding-top: 10px; font-weight: 500; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 900px) { .offer-grid { grid-template-columns: minmax(0, 1fr); } }
.offer-body .stay-tags { padding: 0; margin: 0 0 2px; }


/* ---------- Catalogue (appartamenti.php) ---------- */
.catalog-bar { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 6px; }
.catalog-bar .filters { margin-bottom: 0; }
.catalog-sort { display: flex; gap: 12px; flex-wrap: wrap; }
.catalog-sort label { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.catalog-sort select { font: inherit; font-size: .92rem; color: var(--ink); padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 40px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius-sm); font-size: .93rem; }
.pagination a { border: 1px solid var(--line-2); color: var(--ink-2); background: #fff; }
.pagination a:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }
.pagination .is-current { background: var(--navy); color: #fff; font-weight: 500; }
.pagination .is-off { color: var(--line-2); border: 1px solid var(--line); }
.pagination .pg-gap { min-width: 20px; padding: 0; color: var(--muted); }
.pg-nums { display: inline-flex; gap: 6px; padding: 0 !important; min-width: 0 !important; }
@media (max-width: 560px) { .pg-prev, .pg-next { font-size: 0 !important; min-width: 40px; } .pg-prev::before { content: '‹'; font-size: 1.1rem; } .pg-next::before { content: '›'; font-size: 1.1rem; } }

/* Catalogue : deux logements par ligne, cartes horizontales (photo à gauche) */
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid-2 .card { flex-direction: row; }
.card-grid-2 .card-img { flex: 0 0 44%; }
.card-grid-2 .card-img img { height: 100%; aspect-ratio: auto; min-height: 260px; }
.card-grid-2 .card-body { min-width: 0; }
.card-grid-2 .card-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1080px) {
  .card-grid-2 .card { flex-direction: column; }
  .card-grid-2 .card-img { flex: none; }
  .card-grid-2 .card-img img { height: auto; aspect-ratio: 4 / 3; min-height: 0; }
}
@media (max-width: 700px) { .card-grid-2 { grid-template-columns: minmax(0, 1fr); } }
