/* Site vitrine : même livre de contes que le jeu. Le décor du salon ouvre la page. */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Liens dans le texte : or de bougie, soulignement discret qui s'affirme au survol */
.site main a:not([class]) {
  color: var(--bougie); text-decoration: underline; text-decoration-color: rgba(232, 176, 75, .4);
  text-underline-offset: 3px; text-decoration-thickness: 1.5px;
}
.site main a:not([class]):hover { text-decoration-color: var(--bougie); }
.site main .crumbs a { color: var(--brume); text-decoration: none; }
.site main .crumbs a:hover { color: var(--bougie); }
.site a:focus-visible, .site summary:focus-visible, .site input:focus-visible { outline: 3px solid var(--bougie); outline-offset: 3px; border-radius: 6px; }

/* ── Accueil : le décor du salon, le loup qui rôde ── */
.hero {
  text-align: center; padding: 28px 0 210px; position: relative;
  background: var(--nuit) url('/img/bg/salon.webp') center 35% / cover no-repeat;
}
@media (min-width: 1000px) and (min-resolution: 2dppx), (min-width: 2001px) {
  .hero { background-image: url('/img/bg/salon-4k.webp'); }
}
.hero::before { /* voile sombre derrière le texte, pour la lisibilité sur le décor */
  content: ''; position: absolute; left: 50%; top: 0; width: 900px; max-width: 100%; height: 78%; transform: translateX(-50%); z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(13, 15, 34, .62) 0%, rgba(13, 15, 34, 0) 68%);
}
.hero::after { z-index: 1;
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; pointer-events: none;
  background: linear-gradient(180deg, rgba(22, 26, 54, 0), var(--nuit));
}
.hero .wrap { position: relative; z-index: 2; }
.hero .prowl, .hero .prowl-fg { z-index: 1; }
.hero-logo { width: min(400px, 74%); height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 6px 0 rgba(13, 15, 34, .6)); }
.hero-h1 {
  font-size: clamp(30px, 5.2vw, 56px); line-height: 1.04; margin: 10px auto 0; max-width: 15em;
  text-shadow: 0 3px 0 var(--encre), 0 0 24px rgba(13, 15, 34, .9); text-wrap: balance;
}
.lead {
  font-size: clamp(17px, 2.2vw, 20px); max-width: 34em; margin: 14px auto 24px; line-height: 1.55;
  text-shadow: 0 2px 0 var(--encre), 0 0 18px rgba(13, 15, 34, .9);
}
.cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; }
.cta > * { margin: 8px; }
.cta a.btn-paper { text-decoration: none; font-size: 19px; padding: 16px 26px; display: inline-block; }
.join { display: flex; align-items: center; }
.join input {
  font: inherit; font-family: 'Fraunces', serif; font-weight: 800; font-size: 20px; width: 128px; padding: 13px; border-radius: 14px; text-align: center;
  letter-spacing: 6px; text-transform: uppercase; border: 3px solid var(--encre); background: var(--papier); color: var(--encre); margin-right: 10px;
}
.join input::placeholder { color: #8d846f; letter-spacing: 3px; }
.join .btn-paper { font-size: 18px; padding: 14px 20px; }
.facts { margin-top: 16px; color: var(--papier-2); font-size: 15px; text-shadow: 0 2px 0 var(--encre); }

main > section { padding: 72px 0; }
main > section h2 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 16px; text-wrap: balance; }
.sub { font-size: 18px; line-height: 1.65; max-width: 40em; color: var(--papier-2); margin-bottom: 30px; }
.more { margin-top: 26px; font-size: 17px; }
.more a + a { margin-left: 22px; }

/* La soirée : le vrai jeu, TV et téléphone, à côté des trois gestes */
.how-grid { display: grid; grid-template-columns: 1.15fr 1fr; grid-gap: 56px; align-items: center; }
.devices { position: relative; margin: 0 0 40px; }
.dev-tv {
  width: 100%; height: auto; display: block; border-radius: 10px;
  border: 10px solid #07080f; border-bottom-width: 14px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
}
.dev-phone {
  position: absolute; right: -14px; bottom: -44px; width: 31%; height: auto;
  border-radius: 22px; border: 6px solid #07080f; box-shadow: 0 24px 40px -12px rgba(0, 0, 0, .8);
}
.steps { list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding: 0 0 22px 64px; font-size: 17px; line-height: 1.55; color: var(--papier-2);
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -6px; width: 44px; text-align: center;
  font-family: 'Fraunces', serif; font-weight: 800; font-size: 40px; line-height: 1; color: var(--bougie);
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144;
}
.steps li b { display: block; color: var(--papier); font-family: 'Fraunces', serif; font-size: 21px; margin-bottom: 2px; }

/* Le casting : une distribution de conte, pas une grille de cartes */
.home-how { padding-top: 24px; }
.home-cast { background: linear-gradient(180deg, rgba(13, 15, 34, 0), rgba(13, 15, 34, .55) 30%, rgba(13, 15, 34, .55) 70%, rgba(13, 15, 34, 0)); }
.cast { list-style: none; display: grid; grid-template-columns: 1fr 1fr; grid-column-gap: 48px; }
.cast li { border-top: 1px solid rgba(239, 227, 200, .12); }
.cast a { display: flex; align-items: center; padding: 16px 0; text-decoration: none; color: inherit; }
.cast img { width: 64px; height: 64px; flex: none; margin-right: 18px; transition: transform .2s var(--rebond); }
.cast a:hover img { transform: rotate(-6deg) scale(1.06); }
.cast b { font-family: 'Fraunces', serif; font-size: 21px; color: var(--papier); }
.cast small { margin-left: 10px; font-size: 14px; color: var(--bougie); }
.cast em { display: block; font-style: normal; font-size: 15.5px; color: var(--brume); line-height: 1.45; margin-top: 2px; }
.cast a:hover b { color: var(--bougie); }

/* Les packs : leurs illustrations */
.packs { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); grid-gap: 16px; }
.packs a { display: block; position: relative; text-decoration: none; color: inherit; }
.packs img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% center; display: block; border-radius: 14px; margin-bottom: 12px; transition: transform .25s var(--rebond); }
.packs a:hover img { transform: translateY(-4px); }
.packs b { display: block; font-family: 'Fraunces', serif; font-size: 19px; color: var(--papier); }
.packs span { display: block; font-size: 14.5px; line-height: 1.45; color: var(--brume); margin-top: 3px; }
.packs i { position: absolute; top: 10px; left: 10px; font-style: normal; font-weight: 700; font-size: 13px; background: var(--papier); color: var(--encre); padding: 4px 10px; border-radius: 8px; }

.why { list-style: none; display: grid; grid-template-columns: 1fr 1fr; grid-gap: 22px 48px; font-size: 17px; line-height: 1.55; }
.why li { padding-left: 38px; position: relative; color: var(--papier-2); }
.why li::before { content: ''; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; background: url('/img/griffe.svg') center / contain no-repeat; }
.why li b { color: var(--papier); }

/* FAQ : questions à déplier, marqueur maison */
.home-faq .wrap { max-width: 820px; }
details { border-top: 1px solid rgba(239, 227, 200, .12); }
details:last-of-type { border-bottom: 1px solid rgba(239, 227, 200, .12); }
summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 20px 44px 20px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2.5px solid var(--bougie); border-bottom: 2.5px solid var(--bougie); transform: rotate(45deg); transition: transform .2s;
}
details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
details p { padding: 0 0 22px; color: var(--brume); line-height: 1.6; font-size: 16.5px; max-width: 42em; }

.home-end { text-align: center; }
.home-end h2 { margin-bottom: 6px; }
.home-end p { color: var(--papier-2); font-size: 19px; margin-bottom: 28px; }
.home-end .btn-paper { text-decoration: none; display: inline-block; font-size: 19px; }

@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; grid-gap: 40px; }
  .packs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 680px) {
  main > section { padding: 52px 0; }
  .cast, .why { grid-template-columns: 1fr; }
  .cast small { display: block; margin: 0; }
  .hero { padding-bottom: 170px; }
  .dev-phone { right: -6px; }
}
footer { padding: 30px 16px 44px; color: var(--brume); font-size: 14px; }

/* ── Pages du site (règles, rôles, compositions…) ── */
.topnav { position: relative; z-index: 5; background: rgba(13, 15, 34, .92); border-bottom: 1px solid rgba(239, 227, 200, .12); }
.topnav .wrap { display: flex; flex-wrap: wrap; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.topnav a { color: var(--papier); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 10px; }
.topnav a:hover { color: var(--bougie); }
.topnav .brand { margin-right: auto; padding: 0; }
.topnav .brand img { width: 92px; height: auto; display: block; }
.topnav .play { background: var(--chaperon); border-radius: 10px; margin-left: 6px; box-shadow: 0 3px 0 var(--encre); }

.page { padding-top: 26px; padding-bottom: 50px; max-width: 900px; }
.page h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; margin: 8px 0 14px; }
.page h2 { font-size: clamp(22px, 3.2vw, 30px); margin: 34px 0 12px; }
.page p, .page li { font-size: 17px; line-height: 1.65; color: var(--papier-2); }
.page p { margin-bottom: 14px; max-width: 720px; }
.page a { color: var(--bougie); }
.page .intro { font-size: 19px; color: var(--papier); }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; font-size: 14px; color: var(--brume); }
.crumbs li + li::before { content: '›'; margin: 0 8px; }
.crumbs a { color: var(--brume); }
.plain { padding-left: 20px; margin-bottom: 14px; }
.plain li { margin-bottom: 8px; }
.flow { padding-left: 22px; }
.flow li { margin-bottom: 10px; }
.page .roles { margin: 10px 0 14px; }
a.role { text-decoration: none; display: block; transition: transform .15s; }
a.role:hover { transform: translateY(-3px); }
.rolehead { display: flex; align-items: center; background: var(--nuit-2); border-radius: 20px; padding: 20px; margin: 8px 0 10px; }
.rolehead img { width: 120px; height: 120px; flex: none; margin-right: 22px; }
.rolehead .rolename { font-family: 'Fraunces', serif; font-weight: 800; font-size: 26px; color: var(--papier); margin: 0; }
.rolehead .pitch { font-style: italic; color: var(--bougie); margin: 4px 0 8px; }
.facts-list { list-style: none; display: flex; flex-wrap: wrap; }
.facts-list li { font-size: 15px; margin-right: 18px; }
.compo { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); grid-gap: 10px; margin: 8px 0 16px; }
.compo li { display: flex; align-items: center; background: var(--nuit-2); border-radius: 14px; padding: 10px 12px; }
.compo img { width: 44px; height: 44px; margin-right: 12px; flex: none; }
.compo b { display: block; color: var(--papier); font-size: 16px; }
.compo small { display: block; color: var(--brume); font-size: 13px; }
.ctable { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 15px; }
.ctable th, .ctable td { text-align: left; padding: 9px 10px; border-bottom: 1px solid rgba(239, 227, 200, .12); color: var(--papier-2); vertical-align: top; }
.ctable th { color: var(--papier); }
.nav-n { display: flex; justify-content: space-between; }
.packcard { background: var(--nuit-2); border-radius: 20px; overflow: hidden; margin: 24px 0; }
.packcard img { width: 100%; height: auto; display: block; }
.packcard h2, .packcard p { padding: 0 20px; }
.packcard h2 { margin-top: 18px; }
.packcard .pitch { font-style: italic; color: var(--bougie); }
.facts-line { font-size: 15px !important; padding-bottom: 18px !important; }
.cta-line { margin: 30px 0 0; }
.cta-line .btn-paper { text-decoration: none; display: inline-block; font-size: 18px; padding: 15px 24px; color: var(--encre); }
.sitefoot { background: rgba(13, 15, 34, .7); margin-top: 30px; padding: 30px 0 40px; }
.sitefoot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); grid-gap: 18px; margin-bottom: 20px; }
.sitefoot b { display: block; color: var(--papier); margin-bottom: 8px; }
.sitefoot a { display: block; color: var(--brume); text-decoration: none; font-size: 14px; padding: 3px 0; }
.sitefoot a:hover { color: var(--bougie); }
.sitefoot p { color: var(--brume); font-size: 13px; line-height: 1.5; }
.sitefoot p a { display: inline; }
@media (max-width: 600px) {
  .topnav a { font-size: 14px; padding: 6px 7px; }
  .topnav .brand { width: 100%; margin-bottom: 4px; }
  .rolehead { flex-direction: column; text-align: center; }
  .rolehead img { margin: 0 0 12px; }
  .facts-list { justify-content: center; }
}
