/* Re:Past — site vitrine. Mêmes couleurs que l'application. */
:root {
  --night: #15110D;
  --night-surface: #241C15;
  --night-line: #3A2E22;
  --on-night: #F3EAD8;
  --on-night-soft: #BFB39C;
  --parchment: #EFE2C6;
  --parchment-dark: #DCC9A3;
  --ink: #2B2118;
  --ink-soft: #6A5843;
  --orange: #E8892B;
  --gold: #D4A84B;
  --serif: Georgia, "Noto Serif", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--on-night);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* En-tête */
.site-header { border-bottom: 1px solid var(--night-line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-night); text-decoration: none; font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a { color: var(--on-night-soft); text-decoration: none; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--gold); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--orange); color: var(--ink);
  font-weight: 700; text-decoration: none;
  padding: 14px 22px; border-radius: 999px;
}
.btn:hover { filter: brightness(1.08); }
.btn svg { width: 22px; height: 22px; }
.btn-note { color: var(--on-night-soft); font-size: .9rem; margin-top: 10px; }

/* Accueil : bandeau */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--gold); font-style: italic; font-family: var(--serif); font-size: 1.1rem; margin: 0 0 10px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 18px; }
.hero p.lead { font-size: 1.15rem; color: var(--on-night-soft); margin: 0 0 28px; max-width: 34em; }
.phone {
  width: 100%; max-width: 300px; margin: 0 auto;
  border-radius: 32px; border: 6px solid var(--night-line);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
  overflow: hidden; background: var(--night-surface);
}

/* Sections */
section.block { padding: 48px 0; }
section.block.alt { background: var(--night-surface); }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 10px; }
.section-lead { color: var(--on-night-soft); margin: 0 0 32px; max-width: 40em; }

/* Fonctionnalités */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature { background: var(--night-surface); border: 1px solid var(--night-line); border-radius: 18px; padding: 22px; }
section.alt .feature { background: var(--night); }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(232, 137, 43, .15); color: var(--orange); display: grid; place-items: center; margin-bottom: 14px; }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--on-night-soft); }

/* Galerie de personnages */
/* minmax(0, 1fr) : colonnes égales même si un nom long (« Charlemagne ») ne peut pas se couper */
.portraits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.portrait { margin: 0; text-align: center; }
.portrait img { border-radius: 16px; aspect-ratio: 1; object-fit: cover; width: 100%; border: 2px solid var(--night-line); }
.portrait figcaption { margin-top: 8px; font-family: var(--serif); font-weight: 700; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
.portrait small { display: block; color: var(--gold); font-family: var(--sans); font-weight: 400; font-style: italic; font-size: .85rem; }

/* Captures */
.shots { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: 0 0 220px; scroll-snap-align: start; }
.shots img { border-radius: 20px; border: 4px solid var(--night-line); }
.shots figcaption { text-align: center; color: var(--on-night-soft); font-size: .9rem; margin-top: 8px; }

/* Offres */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.offer { background: var(--parchment); color: var(--ink); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; }
.offer.featured { outline: 3px solid var(--orange); }
.offer h3 { font-size: 1.35rem; }
.offer .price { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; margin: 6px 0 14px; }
.offer .price small { font-size: .95rem; font-weight: 400; color: var(--ink-soft); }
.offer ul { margin: 0; padding-left: 20px; }
.offer li { margin: 4px 0; }
.offer .tag { align-self: flex-start; background: var(--orange); color: var(--ink); font-size: .8rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
.packs { margin-top: 18px; color: var(--on-night-soft); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--night-line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--on-night-soft); margin: 10px 0 0; }

/* Appel final */
.cta { text-align: center; padding: 56px 0; }
.cta img { width: 96px; margin: 0 auto 16px; border-radius: 22px; }
.cta h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 18px; }

/* Pages de texte (légal) */
.page { max-width: 780px; margin: 0 auto; padding: 40px 16px 56px; }
.page h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); margin-bottom: 4px; }
.page .updated { color: var(--gold); margin: 0 0 24px; }
.page .intro { font-size: 1.1rem; color: var(--on-night-soft); }
.card { background: var(--parchment); color: var(--ink); border-radius: 16px; padding: 20px 22px; margin-bottom: 16px; }
.card h2 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }
.card ul, .card ol { margin: 0 0 10px; padding-left: 22px; }
.card li { margin: 4px 0; }
.card a { color: #B5601A; font-weight: 600; }
.muted { color: var(--ink-soft); font-size: .95rem; }
.todo { background: #F6D36B; padding: 0 4px; border-radius: 4px; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--night-line); padding: 28px 0 36px; color: var(--on-night-soft); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--on-night-soft); }
.site-footer a:hover { color: var(--gold); }

@media (max-width: 760px) {
  .hero { padding-top: 32px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .site-nav { display: none; }
  section.block { padding: 36px 0; }
}

@media (max-width: 900px) { .portraits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .portraits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .portrait figcaption { font-size: .9rem; }
  .portrait small { font-size: .72rem; line-height: 1.3; }
}
