/* Tangle : fond blanc, texte noir, mini-rappels rouges. Un seul thème, voulu par le client. */
:root {
  color-scheme: light;
  --bg: #fff;
  --ink: #111;
  --muted: #5e5c5a;
  --line: #eceae8;
  --tray: #f6f5f4;
  --red: #e4002b;
  --spring: cubic-bezier(.32, .72, 0, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font), system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; letter-spacing: -.035em; line-height: 1.04; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.red { color: var(--red); }
.muted { color: var(--muted); }
[data-char] { display: block; }
[data-char] svg { display: block; width: 100%; height: auto; overflow: visible; }
[data-char] img { display: block; width: 100%; height: auto; }

/* Navigation en îlot */
.nav {
  position: fixed;
  z-index: 10;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 6px 6px 6px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, .06), 0 10px 30px -16px rgba(17, 17, 17, .22);
  white-space: nowrap;
}
.logo { font-weight: 650; letter-spacing: -.03em; font-size: 19px; text-decoration: none; }
.logo i { color: var(--red); font-style: normal; }
.nav-links { display: flex; gap: 20px; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .4s var(--spring); }
.nav-links a:hover { color: var(--ink); }

/* Bouton : pastille avec flèche imbriquée */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .5s var(--spring);
}
.btn b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red);
  font-weight: 400;
  transition: transform .5s var(--spring);
}
.btn:hover b { transform: translate(2px, -1px) scale(1.06); }
.btn:active { transform: scale(.98); }
.btn.small { font-size: 14px; padding: 4px 4px 4px 16px; }
.btn.small b { width: 28px; height: 28px; }

/* Carte à double bord */
.shell {
  padding: 7px;
  border-radius: 30px;
  background: var(--tray);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, .04);
}
.core {
  height: 100%;
  border-radius: 23px;
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 18px 40px -30px rgba(17, 17, 17, .25);
}

.tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}

/* Réservation et pied de page */
.book { padding-block: clamp(72px, 11vw, 140px); }
.book h2 { font-size: clamp(38px, 6vw, 72px); max-width: 15ch; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.book p { margin-top: 20px; color: var(--muted); max-width: 40ch; }
.slot {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
.slot strong { display: block; color: var(--ink); font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.foot {
  padding-block: 28px 96px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Barre d'aperçu : disparaît sur le vrai site */
.preview {
  position: fixed;
  z-index: 10;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100vw - 16px);
  overflow-x: auto;
  padding: 5px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  scrollbar-width: none;
}
.preview a { padding: 6px 12px; text-decoration: none; color: #fff; }
.preview-sep { width: 1px; height: 16px; background: rgba(255, 255, 255, .25); }
.preview button {
  appearance: none;
  border: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  font: inherit;
  cursor: pointer;
  transition: background .4s var(--spring), color .4s var(--spring);
}
.preview button[aria-pressed="true"] { background: #fff; color: var(--ink); }

/* Apparition au défilement, avec un fondu en dégradé de haut en bas */
[data-rise] {
  transition: opacity 1s var(--spring), transform 1.3s var(--spring), filter 1s var(--spring), mask-position 1.4s var(--spring), -webkit-mask-position 1.4s var(--spring);
  transition-delay: var(--d, 0ms);
}
.fx {
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 45%, transparent 100%);
  -webkit-mask-size: 100% 300%;
  mask-size: 100% 300%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
}
.rise {
  opacity: 0;
  transform: translateY(90px) scale(.95);
  filter: blur(6px);
  -webkit-mask-position: 0 100%;
  mask-position: 0 100%;
  transition-delay: 0ms;
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .book-grid { grid-template-columns: minmax(0, 1fr); }
  .preview { font-size: 12px; gap: 2px; }
  .preview a { padding: 6px 8px; }
  .preview a span { display: none; }
  .preview button { padding: 6px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
