:root { color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
.guest-body {
  --guest-accent: #1e4e45;
  min-height: 100vh;
  background: #f7f2e9;
  color: #252c29;
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.guest-shell { min-height: 100vh; }
.guest-preview-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 9px 16px;
  background: #fff4cf;
  color: #654e09;
  border-bottom: 1px solid rgba(101,78,9,.12);
  font-size: 12px;
}
.guest-preview-banner span { opacity: .8; }
.guest-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.03em;
}
.guest-logo img { width: 31px; height: 31px; }
.guest-language { display: flex; align-items: center; gap: 4px; }
.guest-language a {
  min-width: 32px;
  padding: 6px 7px;
  border-radius: 9px;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
}
.guest-language a.active,
.guest-language a:hover { background: rgba(255,255,255,.16); color: #fff; }
.guest-richtext {
  color: #59635f;
  line-height: 1.75;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.guest-richtext p:first-child { margin-top: 0; }
.guest-richtext p:last-child { margin-bottom: 0; }
.guest-richtext strong { color: #252c29; }
.guest-richtext ul,
.guest-richtext ol { padding-left: 22px; }
.guest-richtext li + li { margin-top: .35em; }

/* ------------------------------------------------------------
   TL · document continu et imprimable
   ------------------------------------------------------------ */
.guest-view-tl { background: #e9e6df; }
.guest-document-toolbar {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 10px clamp(16px, 4vw, 52px);
  background: color-mix(in srgb, var(--guest-accent) 95%, #000);
  color: #fff;
  box-shadow: 0 8px 24px rgba(20,37,32,.18);
}
.guest-view-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.guest-view-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 12px;
  color: rgba(255,255,255,.74);
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
}
.guest-view-links a.active,
.guest-view-links a:hover { background: rgba(255,255,255,.15); color: #fff; }
.guest-toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.guest-print-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 12px;
  background: #fff;
  color: var(--guest-accent);
  cursor: pointer;
  font: 800 11px/1 Manrope, sans-serif;
}
.guest-print-button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,.12); }
.guest-print-document {
  width: min(210mm, calc(100% - 28px));
  min-height: 297mm;
  margin: 30px auto 54px;
  padding: 18mm 17mm 15mm;
  background: #fff;
  box-shadow: 0 26px 70px -38px rgba(28,45,39,.58);
}
.guest-print-cover {
  position: relative;
  overflow: hidden;
  min-height: 86mm;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 17mm 15mm 13mm;
  color: #fff;
  background: var(--guest-accent);
  page-break-after: avoid;
}
.guest-print-cover::before {
  content: "";
  position: absolute;
  width: 105mm;
  height: 105mm;
  right: -32mm;
  top: -49mm;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 43% 57% 59% 41% / 55% 42% 58% 45%;
  transform: rotate(21deg);
}
.guest-print-brand {
  position: absolute;
  left: 15mm;
  top: 12mm;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}
.guest-print-brand img { width: 29px; height: 29px; filter: brightness(0) invert(1); }
.guest-print-kicker {
  position: relative;
  z-index: 1;
  margin-bottom: 4mm;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 9px;
  font-weight: 800;
  opacity: .72;
}
.guest-print-cover h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 145mm;
  font: 650 42pt/.92 Fraunces, Georgia, serif;
  letter-spacing: -.04em;
}
.guest-print-cover > p {
  position: relative;
  z-index: 1;
  margin: 4mm 0 0;
  font-size: 14px;
  color: rgba(255,255,255,.82);
}
.guest-print-facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4mm;
  margin-top: 9mm;
  padding-top: 5mm;
  border-top: 1px solid rgba(255,255,255,.24);
}
.guest-print-facts span { display: flex; flex-direction: column; gap: 1mm; font-size: 10px; color: rgba(255,255,255,.85); }
.guest-print-facts strong { text-transform: uppercase; letter-spacing: .08em; font-size: 7px; color: rgba(255,255,255,.58); }
.guest-print-toc {
  display: grid;
  grid-template-columns: 35mm 1fr;
  gap: 6mm;
  margin: 10mm 0 7mm;
  padding: 6mm 0;
  border-top: 1px solid #e2e5e2;
  border-bottom: 1px solid #e2e5e2;
}
.guest-print-toc > strong { font: 650 19px/1.1 Fraunces, Georgia, serif; color: var(--guest-accent); }
.guest-print-toc ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2mm 8mm; counter-reset: toc; list-style: none; }
.guest-print-toc li { position: relative; padding-left: 8mm; font-size: 10px; color: #53605b; counter-increment: toc; }
.guest-print-toc li::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 0; color: var(--guest-accent); font-weight: 800; }
.guest-print-sections { display: block; }
.guest-print-section {
  padding: 8mm 0 7mm;
  border-bottom: 1px solid #e4e7e5;
  break-inside: avoid-page;
  page-break-inside: avoid;
}
.guest-print-section > header {
  display: grid;
  grid-template-columns: 10mm 10mm 1fr;
  align-items: center;
  gap: 3mm;
  margin-bottom: 4mm;
}
.guest-print-section > header > span { color: #9aa5a0; font: 700 9px/1 Manrope, sans-serif; }
.guest-print-section > header > i {
  width: 9mm;
  height: 9mm;
  display: grid;
  place-items: center;
  border-radius: 3mm;
  background: color-mix(in srgb, var(--guest-accent) 10%, #fff);
  color: var(--guest-accent);
  font-size: 14px;
}
.guest-print-section h2 { margin: 0; font: 650 23px/1.05 Fraunces, Georgia, serif; letter-spacing: -.02em; color: #24302c; }
.guest-print-section .guest-richtext { margin-left: 23mm; font-size: 11px; line-height: 1.68; }
.guest-print-footer {
  display: flex;
  justify-content: space-between;
  gap: 10mm;
  margin-top: 10mm;
  padding-top: 5mm;
  border-top: 1px solid #dfe4e1;
  color: #818b87;
  font-size: 8px;
}
.guest-print-footer strong { color: var(--guest-accent); }

/* ------------------------------------------------------------
   TS · mini-site responsive
   ------------------------------------------------------------ */
.guest-site-shell { background: #f7f2e9; }
.guest-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 66px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 0 clamp(18px, 4vw, 58px);
  background: color-mix(in srgb, var(--guest-accent) 96%, #000);
  color: #fff;
  box-shadow: 0 8px 24px rgba(20,37,32,.14);
}
.guest-topbar-actions { display: flex; align-items: center; gap: 12px; }
.guest-topbar-booklet {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
}
.guest-topbar-booklet:hover { background: rgba(255,255,255,.12); }
.guest-cover {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  padding: clamp(54px, 9vw, 112px) clamp(20px, 7vw, 110px) 56px;
  color: #fff;
  background: var(--guest-accent);
}
.guest-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 20%, rgba(255,255,255,.20), transparent 34%), linear-gradient(145deg, transparent 20%, rgba(0,0,0,.18));
}
.guest-cover-shape {
  position: absolute;
  width: min(52vw, 660px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 47% 53% 38% 62% / 50% 37% 63% 50%;
  right: -12vw;
  top: -45%;
  transform: rotate(18deg);
}
.guest-cover-content { position: relative; z-index: 2; max-width: 900px; }
.guest-kicker { text-transform: uppercase; letter-spacing: .15em; font-size: 10px; font-weight: 800; opacity: .72; }
.guest-cover h1 { margin: 10px 0 4px; font: 650 clamp(44px, 8vw, 92px)/.94 Fraunces, Georgia, serif; letter-spacing: -.04em; }
.guest-cover p { margin: 12px 0 0; font-size: clamp(16px, 2vw, 22px); color: rgba(255,255,255,.82); }
.guest-stay-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.guest-stay-facts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 11px;
  font-weight: 700;
}
.guest-site-mobile-nav {
  display: none;
  width: 100%;
  overflow-x: auto;
  gap: 7px;
  padding: 12px 14px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(35,45,41,.08);
  scrollbar-width: none;
}
.guest-site-mobile-nav::-webkit-scrollbar { display: none; }
.guest-site-mobile-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f3eee5;
  color: #4e5c57;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
}
.guest-layout {
  width: min(1280px, calc(100% - 32px));
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.guest-section-nav {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid rgba(35,45,41,.10);
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 22px 54px -48px rgba(29,48,42,.48);
  backdrop-filter: blur(16px);
}
.guest-section-nav > strong { padding: 5px 8px 10px; font: 600 18px/1.1 Fraunces, Georgia, serif; }
.guest-section-nav a {
  display: grid;
  grid-template-columns: 24px 1fr 20px;
  align-items: center;
  gap: 7px;
  padding: 9px 8px;
  border-radius: 10px;
  color: #68716d;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}
.guest-section-nav a:hover { color: var(--guest-accent); background: #f5f0e7; }
.guest-section-nav small { opacity: .45; text-align: right; }
.guest-content { display: grid; gap: 18px; min-width: 0; }
.guest-content.is-site { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guest-section {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid rgba(35,45,41,.10);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 54px -46px rgba(29,48,42,.5);
  scroll-margin-top: 90px;
}
.guest-content.is-site .guest-section:first-child,
.guest-content.is-site .guest-section:nth-child(4n) { grid-column: span 2; }
.guest-section-number {
  position: absolute;
  right: 22px;
  top: 15px;
  color: color-mix(in srgb, var(--guest-accent) 13%, transparent);
  font: 700 56px/1 Fraunces, Georgia, serif;
}
.guest-section-title { position: relative; display: flex; align-items: center; gap: 13px; padding-right: 48px; }
.guest-section-title > span {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: color-mix(in srgb, var(--guest-accent) 11%, #fff);
  color: var(--guest-accent);
}
.guest-section-title h2 { margin: 0; font: 650 clamp(25px, 3vw, 36px)/1.05 Fraunces, Georgia, serif; letter-spacing: -.02em; }
.guest-section .guest-richtext { position: relative; margin-top: 22px; }
.guest-footer {
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 28px 0 36px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(35,45,41,.12);
  color: #7b827f;
  font-size: 11px;
}
.guest-footer strong { color: var(--guest-accent); }

/* Accès indisponible */
.guest-app { min-height: 100vh; }
.guest-unavailable .guest-hero { padding: 48px 22px 44px; background: var(--guest-accent, #1e4e45); color: #fbf6ee; border-radius: 0 0 34px 34px; }
.guest-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; margin-bottom: 28px; }
.guest-brand img { height: 34px; }
.guest-title { font: 650 42px/1 Fraunces, Georgia, serif; margin: 8px 0; }
.guest-sub { margin: 0; color: rgba(251,246,238,.82); max-width: 620px; }
.guest-main { width: min(720px, calc(100% - 28px)); margin: 18px auto; }
.guest-card { background: #fff; border: 1px solid rgba(42,37,33,.1); border-radius: 24px; padding: 22px; }
.guest-card h2 { font: 650 25px/1.1 Fraunces, Georgia, serif; margin: 0 0 10px; }
.guest-card p { color: #71675f; line-height: 1.5; }

@media (max-width: 960px) {
  .guest-document-toolbar { grid-template-columns: auto 1fr; }
  .guest-view-links { justify-content: flex-start; }
  .guest-toolbar-actions { grid-column: 1 / -1; justify-content: space-between; padding-top: 2px; border-top: 1px solid rgba(255,255,255,.10); }
  .guest-layout { grid-template-columns: 1fr; margin-top: 0; width: min(100% - 24px, 1280px); }
  .guest-section-nav { display: none; }
  .guest-site-mobile-nav { display: flex; position: sticky; z-index: 20; top: 66px; }
  .guest-content.is-site { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .guest-topbar-booklet span { display: none; }
}
@media (max-width: 720px) {
  .guest-document-toolbar { position: relative; grid-template-columns: 1fr; gap: 9px; }
  .guest-document-toolbar .guest-logo { justify-self: center; }
  .guest-view-links { justify-content: center; }
  .guest-toolbar-actions { width: 100%; }
  .guest-print-document { width: 100%; min-height: 0; margin: 0; padding: 18px 16px 28px; box-shadow: none; }
  .guest-print-cover { min-height: 310px; padding: 44px 25px 28px; }
  .guest-print-brand { left: 25px; top: 24px; }
  .guest-print-cover h1 { font-size: clamp(42px, 13vw, 64px); }
  .guest-print-facts { grid-template-columns: 1fr; gap: 8px; }
  .guest-print-facts span { padding-top: 7px; border-top: 1px solid rgba(255,255,255,.14); }
  .guest-print-toc { grid-template-columns: 1fr; }
  .guest-print-toc ol { grid-template-columns: 1fr; }
  .guest-print-section .guest-richtext { margin-left: 0; }
  .guest-print-section > header { grid-template-columns: 28px 38px 1fr; }
  .guest-print-footer { flex-direction: column; }

  .guest-topbar { min-height: 62px; padding: 0 14px; }
  .guest-topbar-actions { gap: 5px; }
  .guest-topbar-booklet { min-width: 38px; padding: 0 10px; }
  .guest-site-mobile-nav { top: 62px; }
  .guest-cover { min-height: 300px; padding: 52px 18px 42px; }
  .guest-cover h1 { font-size: clamp(43px, 15vw, 62px); }
  .guest-layout { width: min(100% - 18px, 1280px); }
  .guest-content.is-site { grid-template-columns: 1fr; }
  .guest-content.is-site .guest-section:first-child,
  .guest-content.is-site .guest-section:nth-child(4n) { grid-column: auto; }
  .guest-section { padding: 23px 18px; border-radius: 20px; scroll-margin-top: 118px; }
  .guest-section-title h2 { font-size: 28px; }
  .guest-footer { width: calc(100% - 24px); flex-direction: column; }
  .guest-language a { min-width: 28px; padding: 5px; }
}

@page { size: A4 portrait; margin: 12mm 14mm 14mm; }
@media print {
  html, body { width: auto; min-height: 0; background: #fff !important; }
  .guest-document-toolbar,
  .guest-preview-banner,
  .guest-topbar,
  .guest-site-mobile-nav,
  .guest-section-nav,
  .guest-footer { display: none !important; }
  .guest-print-document {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    box-shadow: none;
    background: #fff;
  }
  .guest-print-cover {
    min-height: 80mm;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .guest-print-section { break-inside: avoid-page; page-break-inside: avoid; }
  .guest-print-section .guest-richtext { color: #303a36; }
  .guest-print-footer { display: flex; }

  /* Un mini-site imprimé bascule aussi vers une lecture linéaire propre. */
  .guest-site-shell { background: #fff; }
  .guest-cover {
    min-height: 65mm;
    padding: 16mm 12mm 10mm;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .guest-layout { display: block; width: auto; margin: 8mm 0 0; }
  .guest-content.is-site { display: block; }
  .guest-section { break-inside: avoid-page; page-break-inside: avoid; margin: 0 0 6mm; padding: 6mm; box-shadow: none; border-radius: 0; }
}
