/* =====================================================================
   Kyriad Montargis – Amilly · Livret d'accueil
   Design system aligned with the renewed Kyriad identity (2024+):
   deep slate blue (#374C5C) + white serif wordmark, warm brass, terracotta
   and sage accents borrowed from the brand's interior universe, cream
   backgrounds, editorial serif headings. "Toujours une découverte".
   ===================================================================== */

:root {
  /* brand */
  --ky-blue: #374c5c;        /* Kyriad blue (logo / favicon) */
  --ky-blue-deep: #26363f;   /* darker shade for footers / overlays */
  --ky-blue-soft: #e5ebee;   /* 10% tint for backgrounds */
  --brass: #b8955a;          /* brass / laiton */
  --brass-light: #d9c08f;
  --terracotta: #c4663f;
  --sage: #7d8c72;
  --cream: #f5f1ea;          /* page background */
  --paper: #fbf9f5;          /* cards */
  --ink: #1f2a33;
  --ink-soft: #5b6670;
  --line: #e2dbd0;
  --ok-bg: #e8eee3; --ok: #4f6440;
  --warn-bg: #f7e8dc; --warn: #9a4a26;

  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(38, 54, 63, 0.10);
  --topbar-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ky-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--ky-blue); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: 1.22rem; color: var(--ky-blue-deep); }
p { margin: 0 0 1em; }
ul { padding-left: 1.15em; margin: 0 0 1em; }
li { margin-bottom: .4em; }
li::marker { color: var(--brass); }
strong { color: var(--ky-blue-deep); }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
sup { font-size: .7em; }

.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }

/* icons (inline SVG sprite) */
.ico { width: 22px; height: 22px; stroke: var(--brass); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
svg.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 245, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 14px; min-height: var(--topbar-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ky-blue); flex-shrink: 0; margin-right: 10px; }
.brand .logo { width: 44px; height: 44px; border-radius: 4px; object-fit: cover; }
.brand .brand-sub { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.brand .brand-sub small { display: block; font-family: var(--font-body); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); line-height: 1.2; }
.topbar nav { margin-left: auto; display: flex; gap: 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.topbar nav::-webkit-scrollbar { display: none; }
.topbar nav a { color: var(--ky-blue); text-decoration: none; font-size: .8rem; font-weight: 600; letter-spacing: .01em; padding: 8px 8px; border-radius: 4px; white-space: nowrap; }
.topbar nav a:hover { background: var(--ky-blue-soft); color: var(--ky-blue-deep); }
.lang { display: flex; border: 1px solid var(--ky-blue); border-radius: 4px; overflow: hidden; font-size: .78rem; font-weight: 700; letter-spacing: .08em; flex-shrink: 0; }
.lang a, .lang span { padding: 6px 10px; color: var(--ky-blue); text-decoration: none; }
.lang a:hover { background: var(--ky-blue-soft); color: var(--ky-blue-deep); }
.lang .on { background: var(--ky-blue); color: #fff; }
.btn-print {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: #fff; color: var(--ky-blue);
  border-radius: 4px; padding: 7px 12px; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn-print .ico { width: 16px; height: 16px; stroke: currentColor; }
.btn-print:hover { background: var(--ky-blue); color: #fff; border-color: var(--ky-blue); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 600px; display: grid; align-items: end;
  background: var(--ky-blue-deep) url("assets/facade.jpg") center 62% / cover no-repeat;
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(55,76,92,.25) 0%, rgba(55,76,92,.55) 45%, rgba(38,54,63,.94) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding: 150px 0 60px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; font-weight: 700; color: var(--brass-light); margin-bottom: 18px; }
.hero .eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--brass-light); }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); margin-bottom: .25em; color: #fff; font-weight: 500; letter-spacing: -.02em; }
.hero h1 span { font-style: italic; font-weight: 400; color: #fff; }
.hero .stars { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: #e6e1d6; margin-bottom: 18px; flex-wrap: wrap; }
.hero .stars b { color: var(--brass-light); letter-spacing: 3px; font-weight: 400; }
.hero p.lead { font-size: clamp(1.02rem, 1.6vw, 1.22rem); max-width: 58ch; color: #eee9df; line-height: 1.65; }
.hero .tagline { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--brass-light); margin: 0 0 22px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 10px; font-size: .95rem; color: #e6e1d6; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .ico { width: 18px; height: 18px; stroke: var(--brass-light); }
.hero-meta a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.hero-meta a:hover { border-color: var(--brass-light); color: #fff; }

/* ---------- essentials strip ---------- */
.essentials { margin-top: -54px; position: relative; z-index: 2; }
.essentials .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.ess { background: var(--paper); padding: 24px 22px 22px; }
.ess .ico { width: 26px; height: 26px; margin-bottom: 12px; }
.ess h3 { font-family: var(--font-body); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-soft); margin-bottom: 6px; }
.ess .big { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--ky-blue); margin: 0 0 4px; line-height: 1.2; }
.ess p { margin: 0; font-size: .9rem; color: var(--ink-soft); }

/* ---------- sections ---------- */
section.block { padding: 84px 0 30px; }
section.block + section.block { border-top: 1px solid var(--line); }
section.block:nth-of-type(even) { background: var(--paper); }
.section-head { display: grid; grid-template-columns: auto 1fr; gap: 14px 18px; align-items: baseline; margin-bottom: 28px; }
.section-head .num { font-family: var(--font-display); font-style: italic; color: var(--brass); font-size: 1.05rem; letter-spacing: .04em; }
.section-head h2 { margin: 0; }
.section-head::after { content: ""; grid-column: 2; height: 1px; background: linear-gradient(90deg, var(--brass) 0, var(--brass) 56px, var(--line) 56px, var(--line) 100%); }
.intro { max-width: 68ch; font-size: 1.1rem; color: #3a4650; margin-bottom: 1.6em; }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; align-items: start; }
.cols.tight { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; position: relative;
}
.card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: .7em; }
.card ul { margin-bottom: 0; }
.card.photo { padding: 0; overflow: hidden; }
.card.photo img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.card.photo .inner { padding: 22px 26px 26px; }
.figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.figure figcaption { font-family: var(--font-display); font-style: italic; font-size: .95rem; color: var(--ink-soft); padding: 12px 16px; }

.badge { display: inline-block; font-family: var(--font-body); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 3px; vertical-align: middle; }
.badge.confirm { background: var(--warn-bg); color: var(--warn); }
.badge.free { background: var(--ok-bg); color: var(--ok); }

.timetable { width: 100%; border-collapse: collapse; margin: 4px 0 14px; font-size: .97rem; }
.timetable th, .timetable td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.timetable th { color: var(--ink-soft); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; }
.timetable td:first-child { font-weight: 600; color: var(--ky-blue-deep); white-space: nowrap; }
.timetable tr:last-child td { border-bottom: 0; }

.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 6px 0 24px; }
.room { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brass); border-radius: var(--radius); padding: 16px 18px; }
.room b { display: block; font-family: var(--font-display); font-weight: 600; color: var(--ky-blue); font-size: 1.12rem; margin-bottom: 2px; }
.room span { color: var(--ink-soft); font-size: .9rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; padding: 0; list-style: none; }
.chips li { background: var(--cream); border: 1px solid var(--line); border-radius: 3px; padding: 5px 11px; font-size: .86rem; font-weight: 600; color: var(--ky-blue-deep); margin: 0; }

.note { background: var(--warn-bg); border-left: 3px solid var(--terracotta); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; font-size: .95rem; margin: 22px 0 0; }
.tip { background: var(--ky-blue-soft); border-left: 3px solid var(--ky-blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; font-size: .95rem; margin: 22px 0 0; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { padding: 10px 14px; font-family: var(--font-display); font-style: italic; font-size: .95rem; color: var(--ink-soft); }

/* ---------- discover ---------- */
.places { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.place { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.place .dist { float: right; font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--brass); border: 1px solid var(--brass-light); padding: 2px 8px; border-radius: 3px; margin: 2px 0 6px 10px; }
.place h3 { font-size: 1.12rem; margin-bottom: .35em; }
.place p { margin: 0; font-size: .94rem; color: #3a4650; }

/* ---------- numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.num-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.num-card.urgent { background: var(--ky-blue); color: #fff; border-color: var(--ky-blue); }
.num-card .label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); }
.num-card.urgent .label { color: var(--brass-light); }
.num-card .tel { font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; display: block; text-decoration: none; margin: 4px 0 2px; color: var(--ky-blue); }
.num-card.urgent .tel { color: #fff; }
.num-card .tel:hover { color: var(--terracotta); }
.num-card.urgent .tel:hover { color: var(--brass-light); }
.num-card .sub { font-size: .88rem; color: var(--ink-soft); }
.num-card.urgent .sub { color: #dfe4e8; }

/* ---------- contact / map ---------- */
.map { border: 0; width: 100%; height: 380px; border-radius: var(--radius); border: 1px solid var(--line); }
.contact-card address { font-style: normal; font-size: 1.05rem; line-height: 1.8; }
.contact-card address span { display: flex; align-items: center; gap: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { display: inline-block; text-decoration: none; padding: 11px 20px; border-radius: 4px; font-weight: 700; font-size: .88rem; letter-spacing: .04em; }
.btn.primary { background: var(--ky-blue); color: #fff; }
.btn.primary:hover { background: var(--ky-blue-deep); color: #fff; }
.btn.ghost { border: 1px solid var(--ky-blue); color: var(--ky-blue); }
.btn.ghost:hover { background: var(--ky-blue-soft); color: var(--ky-blue-deep); }

/* ---------- footer ---------- */
footer { background: var(--ky-blue-deep); color: #c5ccd2; padding: 48px 0 36px; margin-top: 70px; font-size: .9rem; }
footer a { color: var(--brass-light); }
footer a:hover { color: #fff; }
footer .wrap { display: grid; gap: 12px; }
footer .foot-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
footer .foot-brand img { width: 52px; height: 52px; border-radius: 4px; }
footer .foot-brand .t { font-family: var(--font-display); font-size: 1.2rem; color: #fff; }
footer .foot-brand .t small { display: block; font-family: var(--font-body); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-light); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .topbar nav a { font-size: .76rem; padding: 8px 6px; }
  .brand .brand-sub { font-size: 1rem; }
}
@media (max-width: 980px) {
  .topbar nav { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: min(1140px, 100% - 32px); }
  .hero { min-height: 520px; }
  .hero .wrap { padding-top: 110px; }
  .topbar nav { display: none; }
  .lang { margin-left: auto; }
  .brand .brand-sub { font-size: 1rem; }
  .essentials { margin-top: -30px; }
  .essentials .grid { grid-template-columns: 1fr 1fr; }
  section.block { padding: 56px 0 20px; }
  .map { height: 300px; }
}
@media (max-width: 420px) {
  .essentials .grid { grid-template-columns: 1fr; }
  .btn-print span { display: none; }
}

/* ---------- print ---------- */
@media print {
  :root { --cream: #fff; --paper: #fff; }
  body { font-size: 10.5pt; color: #000; background: #fff; }
  .topbar, .btn-print, .lang, .actions, .map { display: none !important; }
  .hero { min-height: auto; background: #fff; color: #000; border-bottom: 2px solid var(--ky-blue); margin-bottom: 14pt; }
  .hero::after { display: none; }
  .hero .wrap { padding: 20pt 0 10pt; }
  .hero h1, .hero h1 span { color: var(--ky-blue); }
  .hero .eyebrow, .hero .tagline { color: var(--brass); }
  .hero p.lead, .hero-meta, .hero .stars { color: #222; }
  .hero-meta a { color: #000; border: 0; }
  .essentials { margin-top: 0; }
  .essentials .grid { box-shadow: none; }
  .ess, .card, .place, .num-card, .room, .gallery figure, .figure { border: 1px solid #bbb; break-inside: avoid; }
  .num-card.urgent { background: #fff; color: #000; border: 2px solid var(--ky-blue); }
  .num-card.urgent .tel, .num-card.urgent .sub, .num-card.urgent .label { color: #000; }
  section.block { padding: 16pt 0 6pt; background: #fff !important; }
  .section-head { break-after: avoid; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  a { text-decoration: none; color: #000; }
  footer { background: #fff; color: #333; border-top: 1px solid #bbb; margin-top: 20pt; }
  footer a, footer .foot-brand .t { color: #333; }
}
