/* ==========================================================================
   Visiter Montargis — la Venise du Gâtinais
   Ambiance : cosy, lumineuse, papier chaud. Mobile-first.
   ========================================================================== */

:root {
  --cream: #FAF6EF;
  --paper: #F2EBDF;
  --paper-2: #EAE1D0;
  --line: #E0D6C2;
  --ink: #2E2820;
  --ink-2: #56503F;
  --mut: #8A8270;
  --terra: #C1633C;
  --terra-deep: #A34E2C;
  --canal: #4E7D8C;
  --canal-deep: #3A616E;
  --honey: #D69A3C;
  --cream-txt: #FBF7F0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(46, 40, 32, .10);
  --shadow-soft: 0 4px 16px rgba(46, 40, 32, .07);
  --font-h: "Fraunces", Georgia, serif;
  --font-d: "Outfit", "Segoe UI", sans-serif;
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-d);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-h); color: var(--ink); line-height: 1.18; font-weight: 600; }

a { color: var(--terra); text-decoration: none; }
a:hover { color: var(--terra-deep); }

img, svg { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.kicker {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--terra);
  margin-bottom: 14px;
}
.kicker--canal { color: var(--canal); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 14px 0;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.site-header.is-solid {
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding: 10px 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { font-family: var(--font-h); font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -.01em; }
.brand .dot { color: var(--terra); }

.nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav a {
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: 8px;
}
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav .nav-cta {
  background: var(--terra);
  color: var(--cream-txt);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  margin-left: 6px;
  transition: transform .2s ease, filter .2s ease;
}
.nav .nav-cta:hover { transform: translateY(-1px); filter: brightness(1.07); color: var(--cream-txt); background: var(--terra); }

.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(250, 246, 239, .9);
    color: var(--ink);
    font-size: 20px;
    cursor: pointer;
  }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .nav-cta { margin-left: 0; text-align: center; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: linear-gradient(180deg, #FDF9F1 0%, #F8EEDC 46%, #EFE0C6 100%);
}
.hero-art { position: absolute; inset: auto 0 0 0; width: 100%; pointer-events: none; }
.hero-art svg { width: 100%; height: auto; display: block; }

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 130px 0 46vw;
  text-align: center;
}
@media (min-width: 760px) { .hero-inner { padding-bottom: 34vw; } }
@media (min-width: 1120px) { .hero-inner { padding-bottom: 350px; } }

.hero h1 {
  font-size: clamp(38px, 7vw, 74px);
  font-weight: 640;
  letter-spacing: -.015em;
  max-width: 17ch;
  margin: 0 auto 18px;
}
.hero h1 em { font-style: italic; color: var(--terra); }
.hero p.lede {
  font-size: clamp(16px, 2.2vw, 19.5px);
  max-width: 56ch;
  margin: 0 auto 30px;
  color: var(--ink-2);
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 15.5px;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform .2s ease, filter .2s ease, background .2s ease;
}
.btn-primary { background: var(--terra); color: var(--cream-txt); box-shadow: 0 6px 18px rgba(193, 99, 60, .3); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.07); color: var(--cream-txt); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: #fff; transform: translateY(-2px); color: var(--ink); }
.btn-canal { background: var(--canal); color: var(--cream-txt); }
.btn-canal:hover { filter: brightness(1.08); transform: translateY(-2px); color: var(--cream-txt); }

/* --------------------------------------------------------------------------
   Stats band
   -------------------------------------------------------------------------- */
.stats { background: var(--ink); color: var(--cream-txt); padding: 40px 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (min-width: 760px) { .stats .wrap { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--font-h); font-size: clamp(28px, 4vw, 40px); font-weight: 600; color: var(--honey); }
.stat span { font-size: 13.5px; opacity: .85; letter-spacing: .04em; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 84px 0; }
.section--paper { background: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 42px); margin-bottom: 14px; letter-spacing: -.01em; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Cards grid */
.cards { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .28s ease, box-shadow .28s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-visual { aspect-ratio: 16 / 9.5; display: flex; align-items: center; justify-content: center; }
.card-visual svg { width: 100%; height: 100%; }
.card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 21px; margin-bottom: 10px; }
.card-body p { font-size: 15px; flex: 1; }
.card-link { margin-top: 16px; font-weight: 600; font-size: 14.5px; }
.card-link::after { content: " →"; }

.card-tag {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--canal);
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   Split feature (Où dormir)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; gap: 64px; } }

.stay-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stay-visual { background: linear-gradient(160deg, #FBEFD9, #F3DFC0); }
.stay-body { padding: 26px 28px 30px; }
.stay-body .stars { color: var(--honey); font-size: 14px; letter-spacing: 2px; margin-bottom: 6px; }
.stay-body h3 { font-size: 24px; margin-bottom: 8px; }
.stay-body .stay-sub { font-size: 14px; color: var(--mut); margin-bottom: 16px; }

.amenities { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 18px 0 24px; }
.amenities li { font-size: 14.5px; display: flex; gap: 9px; align-items: baseline; }
.amenities li::before { content: "✓"; color: var(--terra); font-weight: 700; }

/* --------------------------------------------------------------------------
   Itinerary strip
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: 18px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-h);
  font-size: 15px;
  font-weight: 700;
  color: var(--terra);
  display: block;
  margin-bottom: 10px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; }

/* --------------------------------------------------------------------------
   Practical / info blocks
   -------------------------------------------------------------------------- */
.info-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}
.info h3 { font-size: 18px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.info p { font-size: 14.5px; }
.info .glyph { color: var(--canal); font-size: 20px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(251, 247, 240, .8); padding: 60px 0 34px; margin-top: 0; }
.site-footer .brand { color: var(--cream-txt); font-size: 22px; margin-bottom: 10px; display: inline-block; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1fr; margin-bottom: 40px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: var(--cream-txt); font-size: 15px; margin-bottom: 14px; font-family: var(--font-d); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(251, 247, 240, .8); font-size: 14.5px; }
.site-footer a:hover { color: var(--honey); }
.footer-note { border-top: 1px solid rgba(251, 247, 240, .15); padding-top: 22px; font-size: 13px; opacity: .65; }

/* --------------------------------------------------------------------------
   Article pages
   -------------------------------------------------------------------------- */
.article-hero {
  padding: 150px 0 70px;
  background: linear-gradient(180deg, #FDF9F1, var(--paper));
  border-bottom: 1px solid var(--line);
}
.article-hero h1 { font-size: clamp(32px, 5.4vw, 54px); max-width: 22ch; letter-spacing: -.015em; margin-bottom: 18px; }
.article-hero .lede { font-size: clamp(16px, 2vw, 19px); max-width: 62ch; }
.article-meta { font-size: 13px; color: var(--mut); letter-spacing: .1em; text-transform: uppercase; margin-top: 22px; }

.article-body { padding: 64px 0 40px; }
.article-body .wrap { max-width: 760px; }
.article-body h2 { font-size: clamp(25px, 3.4vw, 33px); margin: 52px 0 18px; letter-spacing: -.01em; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 20.5px; margin: 34px 0 12px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body li { margin-bottom: 9px; }
.article-body strong { color: var(--ink); }

.lead-p { font-size: 18px; color: var(--ink-2); }

blockquote {
  border-left: 3px solid var(--terra);
  background: var(--paper);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 28px 0;
  font-family: var(--font-h);
  font-style: italic;
  font-size: 18.5px;
  color: var(--ink);
}

.tip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 28px 0;
  box-shadow: var(--shadow-soft);
}
.tip .tip-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--canal);
  display: block;
  margin-bottom: 8px;
}
.tip p:last-child { margin-bottom: 0; }

.figure { margin: 34px 0; }
.figure svg { border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.figure figcaption { font-size: 13.5px; color: var(--mut); margin-top: 10px; text-align: center; }

/* CTA hébergement dans les articles */
.stay-cta {
  margin: 46px 0;
  background: linear-gradient(150deg, #FBF2E2, #F4E4C8);
  border: 1px solid #E8D5AF;
  border-radius: 20px;
  padding: 30px 30px 32px;
}
.stay-cta .kicker { margin-bottom: 8px; }
.stay-cta h3 { font-size: 23px; margin-bottom: 10px; }
.stay-cta p { font-size: 15px; margin-bottom: 18px; }

/* FAQ */
.faq { margin: 40px 0 10px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--ink);
  font-size: 15.5px;
  list-style: none;
  position: relative;
  padding-right: 46px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--terra);
}
.faq details[open] summary::after { content: "−"; }
.faq .faq-a { padding: 0 22px 18px; font-size: 15px; }

/* Reading nav between articles */
.article-next { padding: 30px 0 90px; }
.article-next .wrap { max-width: 760px; display: grid; gap: 16px; }
@media (min-width: 640px) { .article-next .wrap { grid-template-columns: 1fr 1fr; } }
.next-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: transform .25s ease;
  display: block;
}
.next-card:hover { transform: translateY(-3px); }
.next-card .next-label { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--mut); display: block; margin-bottom: 6px; }
.next-card .next-title { font-family: var(--font-h); font-size: 18.5px; font-weight: 600; color: var(--ink); }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .btn:hover, .next-card:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   Sélecteur de langue
   -------------------------------------------------------------------------- */
.lang-switch {
  display: flex;
  gap: 2px;
  margin-left: 8px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
}
.lang-switch a {
  display: inline-block;
  border: 0;
  background: transparent;
  font-family: var(--font-d);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mut);
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.lang-switch a:hover { color: var(--ink); background: transparent; }
.lang-switch a.is-active { background: var(--ink); color: var(--cream-txt); }
@media (max-width: 820px) {
  .lang-switch { margin: 8px auto 2px; justify-content: center; align-self: center; }
}

/* Avis « article en français » (affiché en EN/ZH) */
.lang-notice {
  margin-top: 16px;
  display: inline-block;
  font-size: 14px;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
}

/* --------------------------------------------------------------------------
   Photos de l'appartement
   -------------------------------------------------------------------------- */
.stay-photos { padding: 0; background: #fff; }
.stay-photo-main { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.stay-photo-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px;
  background: #fff;
}
.stay-photo-row img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }

.stay-cta { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 720px) {
  .stay-cta { grid-template-columns: 230px 1fr; align-items: center; }
}
.stay-cta-photo {
  width: 100%;
  height: 100%;
  min-height: 170px;
  max-height: 250px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}
.stay-cta-body p:last-of-type { margin-bottom: 18px; }

/* Water shimmer on hero (subtle) */
.shimmer { animation: shimmer 7s ease-in-out infinite alternate; transform-origin: center; }
@keyframes shimmer { from { opacity: .55; } to { opacity: .9; } }
.drift { animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(26px); } }
@media (prefers-reduced-motion: reduce) { .shimmer, .drift { animation: none; } }
