/* Aftermind, maquette du 17/11/2026, version 2 */
:root {
  --bg: #F4EFE4;        /* crème */
  --bg-alt: #ECE5D5;
  --ink: #14302A;       /* vert profond */
  --ink-soft: #4A5D56;
  --accent: #B8893A;    /* or chaud */
  --gold-light: #D9B76E;
  --line: #D9CFBA;
  --card: #FBF8F1;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; }
.measure { max-width: 60ch; }

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); letter-spacing: -0.01em; margin-bottom: 20px; }
h3 { font-size: 1.22rem; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.muted { color: var(--ink-soft); }

.eyebrow, .kicker {
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.78rem; font-weight: 600; color: var(--accent);
  margin-bottom: 16px;
}

/* En-tête */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244, 239, 228, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1.25rem "Fraunces", serif; }
.brand.small { font-size: 1.05rem; }
.clover { width: 26px; height: 26px; color: var(--accent); flex: none; }
.brand.small .clover { width: 20px; height: 20px; }
nav { display: flex; gap: 28px; }
nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; font-weight: 500; position: relative; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--accent); transition: right .25s ease; }
nav a:hover { color: var(--ink); }
nav a:hover::after { right: 0; }

/* Ouverture */
.hero { padding: 80px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); margin-top: 22px; max-width: 36ch; }
.next {
  display: inline-grid; gap: 2px;
  margin-top: 32px; padding: 18px 24px;
  background: var(--ink); color: var(--bg);
  border-radius: var(--radius); text-decoration: none;
  box-shadow: 0 12px 30px -14px rgba(20, 48, 42, .55);
  transition: transform .25s ease, box-shadow .25s ease;
}
.next:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(20, 48, 42, .6); }
.next-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold-light); font-weight: 600; }
.next-date { font: 600 1.3rem "Fraunces", serif; }
.next-note { font-size: 0.88rem; opacity: 0.75; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 200px 200px var(--radius) var(--radius);
  box-shadow: 0 30px 60px -30px rgba(20, 48, 42, .5);
}
.hero-photo figcaption {
  position: absolute; left: -18px; bottom: 28px;
  background: var(--bg); color: var(--ink);
  font: italic 400 1.05rem "Fraunces", serif;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
}

/* Chiffres */
.stats { background: var(--ink); color: var(--bg); padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { display: grid; gap: 4px; padding-left: 20px; border-left: 1px solid rgba(217, 183, 110, .35); }
.stat-num { font: 600 clamp(2.4rem, 5vw, 3.4rem)/1 "Fraunces", serif; color: var(--gold-light); }
.stat-label { font-size: 0.92rem; opacity: .8; }

/* Blocs */
.block { padding: 96px 0; }
.block.alt { background: var(--bg-alt); }
.two-col { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.sticky-head { position: sticky; top: 100px; }

/* Frise */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 36px 40px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.timeline li.now::before { background: var(--accent); box-shadow: 0 0 0 6px rgba(184, 137, 58, .18); }
.timeline .when { display: block; font-size: 0.82rem; font-weight: 600; color: var(--accent); letter-spacing: .04em; margin-bottom: 4px; }
.timeline p { color: var(--ink-soft); margin: 0; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 14px; margin-top: 12px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: 12px; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }

/* Formats */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 12px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgba(20, 48, 42, .35); }
.card p { color: var(--ink-soft); }
.num {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  font: 600 0.95rem "Fraunces", serif; margin-bottom: 18px;
}
.card ul { margin: 6px 0 0; padding: 0; list-style: none; }
.card li { padding: 8px 0 8px 20px; border-top: 1px solid var(--line); position: relative; font-size: 0.95rem; }
.card li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.appel {
  margin: auto 0 0; padding: 16px 18px;
  background: var(--ink); color: var(--bg);
  border-radius: 10px; font: 500 0.9rem/1.7 ui-monospace, "SF Mono", Menlo, monospace;
  white-space: pre-wrap;
}
.aside { margin-top: 24px; color: var(--ink-soft); font-size: 0.95rem; font-style: italic; }

/* Calendrier */
.calendar {
  margin-top: 28px; padding: 28px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center;
}
.calendar-head .kicker { margin-bottom: 6px; }
.calendar-head .muted { margin: 0; font-size: 0.95rem; }
.dates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dates li {
  display: grid; justify-items: center; gap: 2px; padding: 16px 8px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--bg);
}
.d-day { font: 600 2rem/1 "Fraunces", serif; }
.d-month { font-size: 0.85rem; color: var(--ink-soft); }
.d-tag { margin-top: 6px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-light); }
.dates li.is-next { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.dates li.is-next .d-month { color: rgba(244, 239, 228, .75); }

/* Citations */
.quotes-block { background: var(--ink); color: var(--bg); }
.quotes-block .kicker { color: var(--gold-light); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quotes blockquote {
  margin: 0; padding: 26px; border-radius: var(--radius);
  background: rgba(244, 239, 228, .06); border: 1px solid rgba(244, 239, 228, .12);
}
.quotes p { font: italic 400 1.2rem/1.4 "Fraunces", serif; margin-bottom: 12px; }
.quotes cite { font-style: normal; font-size: 0.82rem; color: var(--gold-light); letter-spacing: .04em; }
.quotes .q-big { grid-column: span 3; padding: 36px 40px; background: transparent; border: 0; border-left: 3px solid var(--accent); border-radius: 0; }
.quotes .q-big p { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.25; }

/* Membres */
.mosaic { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.mosaic li {
  padding: 8px 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 0.93rem; transition: background .2s ease, color .2s ease;
}
.mosaic li:nth-child(5n+1) { font-family: "Fraunces", serif; font-style: italic; font-size: 1.02rem; }
.mosaic li:hover { background: var(--ink); color: var(--bg); }
.fiches { margin-top: 44px; }
.fiches-note { font-size: 0.88rem; color: var(--accent); margin-bottom: 16px; }
.fiches-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.fiche {
  display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; align-items: center;
  padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line);
}
.fiche.sans-accord { border-style: dashed; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--gold-light); font: 600 0.95rem "Fraunces", serif;
  grid-row: span 2;
}
.fiche-txt { display: grid; gap: 2px; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.35; }
.fiche-txt strong { color: var(--ink); font-size: 0.98rem; }
.fiche-link { grid-column: 2; font-size: 0.8rem; color: var(--accent); font-weight: 600; text-decoration: none; }
.fiche-link:hover { text-decoration: underline; }

/* Règles */
.rules { list-style: none; counter-reset: r; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.rules li { counter-increment: r; padding: 26px 0 22px 56px; border-top: 1px solid var(--line); position: relative; }
.rules li::before {
  content: counter(r, decimal-leading-zero);
  position: absolute; left: 0; top: 26px;
  font: 600 1.25rem "Fraunces", serif; color: var(--accent);
}
.rules p { color: var(--ink-soft); margin: 0; }

/* Bibliothèque */
.books { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 12px; }
.book {
  display: grid; grid-template-columns: 110px 1fr; gap: 22px; align-items: center;
  padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
}
.book img, .book-cover { width: 110px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px 8px 8px 4px; box-shadow: 6px 8px 18px -8px rgba(20, 48, 42, .5); }
.book-cover { display: grid; place-items: center; background: var(--ink); color: var(--gold-light); font: italic 600 1.1rem "Fraunces", serif; }
.book .muted { margin: 0; font-size: 0.95rem; }
.todo { display: inline-block; padding: 2px 10px; border: 1px dashed var(--accent); border-radius: 8px; color: var(--accent); font-size: 0.95rem; font-family: "Inter", sans-serif; }

/* Invitation */
.invite { background: var(--ink); color: var(--bg); text-align: center; }
.invite .kicker { color: var(--gold-light); }
.invite p { color: rgba(244, 239, 228, 0.8); font-size: 1.1rem; }
.invite .narrow { margin: 0 auto; }
.clover.big { width: 56px; height: 56px; color: var(--gold-light); margin: 0 auto 20px; display: block; }

/* Questions */
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); margin: 12px 0 0; }

/* Pied de page */
.foot { border-top: 1px solid var(--line); padding: 32px 0; font-size: 0.9rem; color: var(--ink-soft); }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Apparition au défilement */
.anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.anim .reveal.is-in { opacity: 1; transform: none; }

/* Tablette */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo img { aspect-ratio: 16 / 11; border-radius: 120px 120px var(--radius) var(--radius); }
  .cards, .quotes { grid-template-columns: 1fr; }
  .quotes .q-big { grid-column: auto; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .sticky-head { position: static; }
  .rules, .books { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .calendar { grid-template-columns: 1fr; gap: 16px; }
}
/* Téléphone */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  nav { display: none; }
  .hero { padding: 48px 0 56px; }
  .block { padding: 64px 0; }
  .hero-photo figcaption { left: 12px; bottom: 12px; }
  .dates { grid-template-columns: repeat(2, 1fr); }
  .quotes .q-big { padding: 8px 0 8px 20px; }
  .book { grid-template-columns: 84px 1fr; gap: 16px; }
  .book img, .book-cover { width: 84px; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Version 3 : citations nommées, fiches avec photo, bibliothèque */
.quotes blockquote { display: flex; flex-direction: column; }
.quotes blockquote p { flex: 1; }
.quotes footer { display: flex; align-items: center; gap: 12px; }
.quotes footer strong { display: block; font-size: 0.95rem; color: var(--bg); }
.quotes footer cite { display: block; }
.q-av { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: rgba(217, 183, 110, .2); color: var(--gold-light); font: 600 0.9rem "Fraunces", serif; border: 2px solid rgba(217, 183, 110, .5); }
.q-av img { width: 100%; height: 100%; object-fit: cover; }
.quotes .q-big .q-av { width: 56px; height: 56px; }
img.avatar { object-fit: cover; padding: 0; }
.books { grid-template-columns: repeat(3, 1fr); }
.book { grid-template-columns: 96px 1fr; align-items: start; }
.book img, .book-cover { width: 96px; }
.book-cover { padding: 10px; text-align: center; font-size: 0.85rem; line-height: 1.25; }
.book h3 { font-size: 1.05rem; margin-bottom: 4px; }
.book-author { font-weight: 600; font-size: 0.9rem; margin: 0 0 6px; color: var(--accent); }
.book .muted { font-size: 0.9rem; }
.book-ed { font-size: 0.78rem; color: var(--ink-soft); opacity: .8; margin: 6px 0 0; }
@media (max-width: 900px) { .books { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .books { grid-template-columns: 1fr; } .book { grid-template-columns: 84px 1fr; } .book img, .book-cover { width: 84px; } }
@media (max-width: 640px) {
  .fiches-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fiche { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 14px 10px; }
  .avatar { grid-row: auto; width: 56px; height: 56px; }
  .fiche-link { grid-column: auto; }
}

/* Bibliothèque par thème */
.shelf-title { font-size: 1.15rem; margin: 40px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--ink); }
.shelf-title:first-of-type { margin-top: 24px; }
.book h4 { font: 600 1.05rem/1.2 "Fraunces", serif; margin: 0 0 4px; }
.soon { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.soon li { padding: 12px 16px; border: 1px dashed var(--accent); border-radius: 12px; color: var(--ink-soft); }
.soon strong { color: var(--ink); }

/* Mur de visages */
.faces { display: flex; flex-wrap: wrap; justify-content: center; margin: 32px 0 8px; padding: 0 12px; }
.faces img {
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--bg-alt); margin: -6px; position: relative;
  transition: transform .25s ease, z-index 0s; box-shadow: 0 6px 14px -8px rgba(20, 48, 42, .5);
}
.faces img:hover { transform: scale(1.35); z-index: 2; }
@media (max-width: 640px) { .faces img { width: 54px; height: 54px; margin: -4px; } }

/* Portraits plus visibles */
.fiche { grid-template-columns: 64px 1fr; gap: 4px 16px; padding: 16px; }
.avatar { width: 64px; height: 64px; }
.q-av { width: 52px; height: 52px; }
.quotes .q-big .q-av { width: 72px; height: 72px; }
@media (max-width: 640px) {
  .fiche { grid-template-columns: 1fr; }
  .avatar { width: 72px; height: 72px; }
}

/* Agenda */
.btn-cal { display: inline-block; margin-top: 12px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: transform .2s ease; }
.btn-cal:hover { transform: translateY(-2px); }

/* Déclics */
.wins { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wins li { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.win-n { display: block; font: 600 2.4rem/1 "Fraunces", serif; color: var(--accent); margin-bottom: 10px; }
.wins p { margin: 0; color: var(--ink-soft); }
@media (max-width: 900px) { .wins { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .wins { grid-template-columns: 1fr; } }

/* Ouverture : photo de Guiren en paysage */
.hero-grid { grid-template-columns: 0.9fr 1.25fr; gap: 48px; }
.hero-photo img { aspect-ratio: 4 / 3; object-position: center 60%; border-radius: 160px 160px var(--radius) var(--radius); }
@media (max-width: 900px) { .hero-photo img { aspect-ratio: 4 / 3; border-radius: 100px 100px var(--radius) var(--radius); } }
.hero-grid > * { min-width: 0; }

/* Ouverture v2 : texte puis grande photo panoramique */
.hero { padding: 72px 0 56px; }
.hero-grid { grid-template-columns: 1fr; gap: 40px; }
.hero-text { max-width: 760px; }
.hero h1 { max-width: 18ch; }
.hero-photo img { aspect-ratio: 16 / 8; object-position: center 55%; border-radius: 28px; }
.hero-photo figcaption { left: 24px; bottom: 24px; }
@media (max-width: 900px) { .hero-photo img { aspect-ratio: 4 / 3; border-radius: 20px; } }
@media (max-width: 640px) { .hero { padding: 40px 0 48px; } .hero-photo figcaption { left: 12px; bottom: 12px; font-size: 0.9rem; } }

/* Ouverture plein écran */
.hero-full { position: relative; min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); display: flex; align-items: flex-end; overflow: hidden; color: var(--bg); background: var(--ink); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; transform: scale(1.06); animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(10, 26, 22, .15) 0%, rgba(10, 26, 22, .25) 40%, rgba(10, 26, 22, .88) 100%),
  linear-gradient(90deg, rgba(10, 26, 22, .55) 0%, rgba(10, 26, 22, 0) 60%); }
.hero-content { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 72px; width: 100%; }
.hero-content h1 { color: #FBF8F1; max-width: 16ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero-content .eyebrow { color: var(--gold-light); }
.hero-content .lead { color: rgba(251, 248, 241, .88); max-width: 40ch; }
.hero-content .next { background: rgba(251, 248, 241, .12); border: 1px solid rgba(251, 248, 241, .25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: none; }
.hero-credit { position: absolute; right: 24px; bottom: 20px; z-index: 1; margin: 0; font: italic 400 0.9rem "Fraunces", serif; color: rgba(251, 248, 241, .7); }
.hero-scroll { position: absolute; left: 50%; bottom: 18px; z-index: 1; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(251, 248, 241, .6); border-radius: 14px; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-light); animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 640px) {
  .hero-full { min-height: calc(100svh - 64px); }
  .hero-bg { object-position: 40% 55%; }
  .hero-content { padding-bottom: 64px; }
  .hero-credit { right: 16px; bottom: 12px; font-size: 0.8rem; }
  .hero-scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-bg, .hero-scroll span { animation: none; transform: none; } }

/* Ligne des lieux */
.places { background: var(--ink); color: var(--bg); padding: 28px 0 32px; overflow: hidden; }
.places-title { text-align: center; margin: 0 0 16px; font-size: 0.75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); font-weight: 600; }
.marquee { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee-track { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee-track li { display: flex; align-items: baseline; gap: 10px; padding: 0 28px; white-space: nowrap; border-right: 1px solid rgba(217, 183, 110, .3); }
.marquee-track strong { font: italic 400 1.6rem "Fraunces", serif; }
.marquee-track span { font-size: 0.8rem; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; flex-wrap: wrap; width: auto; } .marquee-track[aria-hidden] { display: none; } }

/* Mot de l'hôte */
.host-inner { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: center; max-width: 920px; }
.host-photo { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 8px var(--bg-alt), 0 0 0 9px var(--accent); }
.host-quote { margin: 0; }
.host-quote p { font: italic 400 clamp(1.25rem, 2.4vw, 1.6rem)/1.45 "Fraunces", serif; color: var(--ink); margin: 0 0 14px; }
.host-sign { margin: 18px 0 0; font-weight: 600; }
.host-sign span { font-weight: 400; color: var(--ink-soft); }
@media (max-width: 760px) { .host-inner { grid-template-columns: 1fr; gap: 28px; text-align: center; } .host-photo { margin: 0 auto; width: 160px; height: 160px; } }

/* ===== Version 4 ===== */
/* Italiques sans lettres « wonky » */
* { font-variation-settings: "WONK" 0; }

/* Ouverture lisible : texte puis grande photo */
.hero-v3 { padding: 64px 0 40px; }
.hero-v3 h1 { max-width: 20ch; }
.hero-v3-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-top: 8px; }
.hero-v3-row .lead { margin: 0; }
.hero-v3-row .next { margin-top: 0; justify-self: end; }
.hero-v3-photo { position: relative; margin: 40px 0 0; }
.hero-v3-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 62%; border-radius: 24px; box-shadow: 0 40px 80px -40px rgba(20, 48, 42, .55); }
.hero-v3-photo figcaption { position: absolute; left: 20px; bottom: 18px; background: rgba(244, 239, 228, .92); color: var(--ink); font: italic 400 0.95rem "Fraunces", serif; padding: 8px 14px; border-radius: 999px; }
@media (max-width: 900px) { .hero-v3-row { grid-template-columns: 1fr; gap: 24px; } .hero-v3-row .next { justify-self: start; } .hero-v3-photo img { aspect-ratio: 4 / 3; } }
@media (max-width: 640px) { .hero-v3 { padding: 40px 0 24px; } .hero-v3-photo { margin-top: 28px; } .hero-v3-photo img { border-radius: 16px; } .hero-v3-photo figcaption { left: 10px; bottom: 10px; font-size: 0.8rem; } }

/* Citations : plus droites, plus lisibles */
.quotes p { font-style: normal; font-weight: 400; letter-spacing: -0.005em; }
.quotes .q-big p { font-size: clamp(1.5rem, 3vw, 2.2rem); max-width: 30ch; }

/* Histoire en diaporama */
.story-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 8px; }
.story-nav { display: flex; gap: 10px; }
.story-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 400 1.6rem/1 "Fraunces", serif; cursor: pointer; transition: background .2s ease, color .2s ease; }
.story-btn:hover { background: var(--ink); color: var(--bg); }
.story { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 32%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 16px 2px 24px; scrollbar-width: none; }
.story::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.slide-media { aspect-ratio: 4 / 3; background: var(--ink); }
.slide-media img { width: 100%; height: 100%; object-fit: cover; }
.slide-mark { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #1f4a40, var(--ink)); }
.slide-mark svg { width: 72px; height: 72px; color: var(--gold-light); }
.slide-body { padding: 20px 22px 24px; }
.slide-body .when { display: block; font-size: 0.8rem; font-weight: 600; color: var(--accent); letter-spacing: .04em; margin-bottom: 6px; }
.slide-body p { color: var(--ink-soft); margin: 0; }
.slide-now { border-color: var(--accent); }
.slide-now .slide-mark { background: radial-gradient(circle at 50% 40%, #3a5e3f, var(--ink)); }
.story-dots { display: flex; justify-content: center; gap: 8px; }
.story-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .2s ease, width .2s ease; }
.story-dots i.on { width: 22px; border-radius: 4px; background: var(--accent); }
@media (max-width: 640px) { .story { grid-auto-columns: 84%; } .story-btn { width: 40px; height: 40px; } }

/* Boîte à outils */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 12px; }
.tool { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.tool h3 { margin: 0; }
.tool p { margin: 0; color: var(--ink-soft); }
.tpl { margin: 4px 0 0; padding: 14px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font: 500 0.88rem/1.7 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre-wrap; }
.btn-copy { align-self: flex-start; margin-top: auto; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 600 0.88rem "Inter", sans-serif; cursor: pointer; transition: background .2s ease, color .2s ease; }
.btn-copy:hover, .btn-copy.done { background: var(--ink); color: var(--bg); }
.tool .btn-cal { align-self: flex-start; margin-top: auto; }
.tool-note { font-size: 0.85rem; }
@media (max-width: 900px) { .tools { grid-template-columns: 1fr; } }
.host-photo { object-position: center; }

/* ===== Version 5 ===== */
/* Titres intermédiaires en sans-serif, plus lisibles */
h3, .slide-body h3, .book h4 { font-family: "Inter", system-ui, sans-serif; font-weight: 600; letter-spacing: -0.01em; }

/* Ouverture : bannière */
.hero-v5 { padding: 56px 0 32px; }
.hero-v5 h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); max-width: 16ch; }
.hero-v5 .hero-v3-photo { margin-top: 32px; }
.hero-v5 .hero-v3-photo img { aspect-ratio: 21 / 8; object-position: center 60%; border-radius: 20px; }
@media (max-width: 900px) { .hero-v5 .hero-v3-photo img { aspect-ratio: 16 / 9; } }

/* Histoire plus compacte */
.story { grid-auto-columns: minmax(260px, 27%); align-items: start; }
.slide-media { aspect-ratio: 16 / 10; }
.slide-body { padding: 16px 18px 20px; }
.slide-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.slide-body p { font-size: 0.93rem; line-height: 1.5; }
.slide-mark svg { width: 56px; height: 56px; }
@media (max-width: 640px) { .story { grid-auto-columns: 80%; } }

/* Galerie : légendes */
.gallery figure { position: relative; }
.gallery figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(20, 48, 42, .75); color: #FBF8F1; font-size: 0.75rem; opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease; }
.gallery figure:hover figcaption { opacity: 1; transform: none; }
@media (hover: none) { .gallery figcaption { opacity: 1; transform: none; } }

/* Citations : grille 3 x 3 */
.quotes blockquote p { font-size: 1.12rem; }

/* Membres : recherche et filtres */
.finder { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.finder input { flex: 1 1 260px; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: 400 0.95rem "Inter", sans-serif; color: var(--ink); }
.finder input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 500 0.88rem "Inter", sans-serif; cursor: pointer; }
.chip.on, .chip:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.fiche.hide { display: none; }
.fiches-count { font-size: 0.85rem; color: var(--ink-soft); margin: 12px 0 0; }

/* ===== Version 6 ===== */
/* Ouverture chaleureuse : texte + deux tirages photo */
.hero-v6 { padding: 64px 0 72px; overflow: hidden; }
.hero-v6-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero-v6-grid > * { min-width: 0; }
.hero-v6 h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); max-width: 13ch; }
.hero-v6 .lead { max-width: 38ch; }
.motto { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; font: italic 400 1.1rem "Fraunces", serif; color: var(--accent); }
.motto .clover { width: 22px; height: 22px; }
.hero-v6-photos { position: relative; height: 460px; }
.print { position: absolute; margin: 0; padding: 10px 10px 34px; background: #FFFDF8; border-radius: 6px; box-shadow: 0 24px 50px -24px rgba(20, 48, 42, .45), 0 2px 6px rgba(20, 48, 42, .08); transition: transform .5s ease; }
.print img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.print figcaption { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font: italic 400 0.9rem "Fraunces", serif; color: var(--ink-soft); }
.print-back { width: 62%; right: 0; top: 0; transform: rotate(5deg); }
.print-front { width: 78%; left: 0; bottom: 0; transform: rotate(-3deg); }
.hero-v6-photos:hover .print-front { transform: rotate(-1deg) translateY(-6px); }
.hero-v6-photos:hover .print-back { transform: rotate(7deg) translateX(8px); }
@media (max-width: 900px) {
  .hero-v6-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-v6-photos { height: auto; aspect-ratio: 4 / 3.4; max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) { .hero-v6 { padding: 40px 0 56px; } }

/* Diaporama des soirées */
.reel { display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 760px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 8px max(24px, calc((100vw - 1120px) / 2 + 24px)) 12px; scroll-padding: 0 max(24px, calc((100vw - 1120px) / 2 + 24px)); scrollbar-width: none; }
.reel::-webkit-scrollbar { display: none; }
.reel-item { margin: 0; scroll-snap-align: start; position: relative; border-radius: 18px; overflow: hidden; background: var(--line); }
.reel-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; transition: transform .8s ease; }
.reel-item:hover img { transform: scale(1.03); }
.reel-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; background: linear-gradient(transparent, rgba(10, 26, 22, .75)); color: #FBF8F1; font: italic 400 1.05rem "Fraunces", serif; }
@media (max-width: 640px) { .reel { grid-auto-columns: 86vw; padding: 8px 16px 12px; scroll-padding: 0 16px; } }

/* Témoignages : deux en vedette, les autres défilent */
.quotes-v6 { grid-template-columns: 1fr 1fr; gap: 28px; }
.quotes-v6 .q-big { grid-column: auto; padding: 8px 0 8px 28px; }
.quotes-v6 .q-big p { font-size: clamp(1.3rem, 2.4vw, 1.75rem); max-width: none; }
.q-marquee { margin-top: 48px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.q-track { display: flex; gap: 18px; width: max-content; animation: marquee 70s linear infinite; }
.q-marquee:hover .q-track { animation-play-state: paused; }
.q-track blockquote { width: 340px; flex: none; margin: 0; padding: 22px; border-radius: var(--radius); background: rgba(244, 239, 228, .06); border: 1px solid rgba(244, 239, 228, .12); display: flex; flex-direction: column; gap: 14px; }
.q-track blockquote p { flex: 1; margin: 0; font: 400 1.05rem/1.45 "Fraunces", serif; color: var(--bg); }
@media (max-width: 900px) { .quotes-v6 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .q-track { animation: none; flex-wrap: wrap; width: auto; } .q-track [aria-hidden] { display: none; } }

/* Devise */
.motto-big { font: italic 400 clamp(1.4rem, 3vw, 2rem) "Fraunces", serif; color: var(--gold-light); margin: 0 0 18px; }
.q-track footer { display: flex; align-items: center; gap: 12px; }
.q-track footer strong { display: block; font-size: 0.95rem; color: var(--bg); }
.q-track footer cite { display: block; font-style: normal; font-size: 0.8rem; color: var(--gold-light); }

/* ===== Version 7 ===== */
/* Histoire : cartes de même hauteur, photos au même format */
.story { align-items: stretch; }
.slide-media { position: relative; height: 200px; aspect-ratio: auto; overflow: hidden; }
.slide-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-body { flex: 1; }
.slide-body h3 { min-height: 2.6em; display: flex; align-items: flex-end; }

/* La chance */
.motto { align-items: flex-start; line-height: 1.4; max-width: 40ch; }
.motto .clover { margin-top: 3px; }
.motto em { display: block; font-style: normal; font-family: "Inter", sans-serif; font-size: 0.95rem; color: var(--ink-soft); margin-top: 4px; }
.motto-big span { display: block; font-size: 0.6em; color: rgba(244, 239, 228, .75); margin-top: 6px; }

/* Témoignages : deuxième ligne en sens inverse */
.q-marquee + .q-marquee { margin-top: 18px; }
.q-reverse .q-track { animation-direction: reverse; animation-duration: 80s; }

/* Liens vers le site d'Onur */
.foot a, .host-sign a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.foot a:hover, .host-sign a:hover { color: var(--accent); }

/* ===== Page « Nos tables » ===== */
.tables-head { padding: 72px 0 24px; border-top: 0; }
.tables-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; }
.tables-head .lead { margin-top: 16px; }
.tables-wall { padding: 24px 0 96px; }
.tables-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 32px; }
.table-print { margin: 0; padding: 12px 12px 18px; background: #FFFDF8; border-radius: 6px; box-shadow: 0 24px 50px -28px rgba(20, 48, 42, .5), 0 2px 6px rgba(20, 48, 42, .08); transform: rotate(var(--r, 0deg)); transition: transform .4s ease, box-shadow .4s ease; }
.table-print:hover { transform: rotate(0deg) translateY(-6px) scale(1.02); box-shadow: 0 30px 60px -28px rgba(20, 48, 42, .6); z-index: 2; position: relative; }
.table-print img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; display: block; }
.table-print figcaption { padding: 12px 4px 0; display: grid; gap: 2px; }
.table-print strong { font: 600 1rem "Inter", sans-serif; color: var(--ink); }
.table-print span { font-size: 0.82rem; color: var(--accent); font-weight: 600; }
.table-print em { font: italic 400 0.98rem "Fraunces", serif; color: var(--ink-soft); }
.table-next-inner { aspect-ratio: 4 / 3; border-radius: 3px; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; background: radial-gradient(circle at 50% 40%, #1f4a40, var(--ink)); color: var(--bg); }
.table-next-inner .clover { width: 48px; height: 48px; color: var(--gold-light); }
.table-next-inner strong { color: var(--bg); font: 600 1.3rem "Fraunces", serif; }
.table-next-inner span { color: rgba(244, 239, 228, .8); font-weight: 400; }
.places-title a { color: var(--bg); text-decoration: underline; text-decoration-color: var(--gold-light); text-underline-offset: 3px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.reel-more { margin-top: 20px; }
.btn-tables { display: inline-block; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: transform .2s ease; }
.btn-tables:hover { transform: translateY(-2px); }
@media (max-width: 900px) { .tables-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; } }
@media (max-width: 640px) { .tables-grid { grid-template-columns: 1fr; } .tables-head { padding: 48px 0 16px; } }
.anim .table-print.reveal.is-in { transform: rotate(var(--r, 0deg)); transition: opacity .7s ease, transform .4s ease, box-shadow .4s ease; }
.anim .table-print.reveal.is-in:hover { transform: rotate(0deg) translateY(-6px) scale(1.02); }
