/* chiche! — vitrine. Charte : nuit aubergine, crème, corail ; Bricolage Grotesque + DM Sans. */

@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage.woff") format("woff"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dmsans.woff") format("woff"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Grenze Gotisch"; src: url("fonts/grenze.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Uncial Antiqua"; src: url("fonts/uncial.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bagel Fat One"; src: url("fonts/bagel.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Limelight"; src: url("fonts/limelight.woff") format("woff"); font-weight: 400; font-display: swap; }

:root {
  --nuit: #1E1633;
  --nuit-raised: #2A2145;
  --nuit-alt: #251B3D;
  --nuit-line: #3A3057;
  --creme: #FBF5EC;
  --creme-raised: #FFFDF8;
  --sable: #F3E9DA;
  --creme-line: #E8DCCB;
  --corail: #FF6B4A;
  --corail-texte: #C8321A;
  --soleil: #FFC93C;
  --lilas: #CFC6DD;
  --lilas-discret: #A99FBA;
  --encre-2: #4A4258;
  --encre-3: #6A6078;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --halo: 0 16px 40px rgba(15, 10, 30, 0.28);
  --pill: 999px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--creme);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--corail); outline-offset: 3px; border-radius: 6px; }
.jour :focus-visible { outline-color: var(--corail-texte); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--corail); color: var(--nuit); padding: 10px 18px; border-radius: var(--pill); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex; align-items: baseline;
  font-family: var(--display); font-weight: 800; letter-spacing: -0.03em;
  color: inherit; text-decoration: none; line-height: 1; white-space: nowrap;
}
.logo .bang { height: 0.72em; width: auto; margin-left: -0.008em; vertical-align: -0.01em; align-self: baseline; transform: translateY(0.01em); }
.bang-fill { fill: var(--corail); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--pill);
  font-family: var(--sans); font-weight: 700; font-size: 16px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-corail { background: var(--corail); color: var(--nuit); box-shadow: var(--halo); }
.btn-corail:hover { background: #ff8063; }
.btn-ghost { border-color: var(--nuit-line); color: var(--creme); }
.btn-ghost:hover { border-color: var(--lilas); }
.btn-nuit { background: var(--nuit); color: var(--creme); }
.btn-nuit:hover { background: #2c2248; }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(30, 22, 51, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--nuit-line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.site-header .logo { font-size: 30px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--lilas); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--creme); }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }

/* ---------- Héros ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 88px); line-height: 0.98; letter-spacing: -0.02em; max-width: 11ch; }
.hero .lead { margin-top: 28px; max-width: 34em; color: var(--lilas); font-size: clamp(17px, 1.6vw, 20px); }
.dare { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.dare-q { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 2.6vw, 30px); color: var(--soleil); letter-spacing: -0.01em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stage { position: relative; aspect-ratio: 1 / 1.05; width: 100%; max-width: 520px; justify-self: end; }
.disc { position: absolute; border-radius: 50%; }
.disc-lilas { width: 74%; aspect-ratio: 1; right: -4%; top: 10%; background: var(--nuit-alt); border: 1px solid var(--nuit-line); }
.disc-soleil { width: 13%; aspect-ratio: 1; left: 6%; top: 10%; background: var(--soleil); }
.disc-ring { width: 26%; aspect-ratio: 1; left: 2%; bottom: 6%; border: 2px solid var(--lilas); opacity: .5; }
.big-bang { position: absolute; height: 74%; left: 40%; top: 10%; overflow: visible; }
.big-bang .stroke-g { transform-box: view-box; transform-origin: 60px 150px; animation: lean 1.1s cubic-bezier(.34,1.56,.64,1) .25s both; }
.big-bang .dot { transform-box: fill-box; transform-origin: center bottom; animation: hop .9s ease-out 1.05s both; }
@keyframes lean { from { transform: rotate(-14deg); } to { transform: rotate(8deg); } }
@keyframes hop { 0% { transform: translateY(0); } 35% { transform: translateY(-26px); } 70% { transform: translateY(0); } 85% { transform: translateY(-6px); } 100% { transform: translateY(0); } }

.moment {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: var(--pill);
  background: var(--nuit-raised); border: 1px solid var(--nuit-line); box-shadow: var(--halo);
  font-size: 15px; font-weight: 600; color: var(--creme); white-space: nowrap;
  opacity: 0; animation: pop .5s cubic-bezier(.34,1.56,.64,1) both;
}
.moment { padding-left: 16px; }
.moment i { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.m1 { left: -6%; top: 24%; animation-delay: 1.5s; } .m1 i { background: #6fe3b5; }
.m2 { right: -4%; top: 44%; animation-delay: 1.85s; } .m2 i { background: #ff4f8b; }
.m3 { left: -2%; top: 64%; animation-delay: 2.2s; } .m3 i { background: #e5a23a; }
.m4 { right: 4%; bottom: 3%; animation-delay: 2.55s; } .m4 i { background: #c9a45c; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { justify-self: center; max-width: 420px; margin-top: 8px; }
  .hero h1 { max-width: 12ch; }
}
@media (max-width: 480px) {
  .moment { font-size: 13px; padding: 9px 14px 9px 12px; gap: 9px; }
  .moment i { width: 10px; height: 10px; }
  .m1 { left: -2%; } .m2 { right: -2%; } .m4 { right: 0; }
}

/* ---------- Bandeau Halloween ---------- */
.band { background: var(--corail); color: var(--nuit); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 18px; padding-bottom: 18px; }
.band p { font-weight: 600; font-size: 16px; }
.band strong { font-family: var(--display); font-weight: 800; font-size: 19px; margin-right: 6px; }
.band a { font-weight: 700; text-underline-offset: 3px; }
.band[hidden] { display: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.jour { background: var(--creme); color: var(--nuit); }
.sable { background: var(--sable); color: var(--nuit); }
.section-head { max-width: 40em; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.015em; }
.section-head p { margin-top: 18px; font-size: 18px; color: var(--lilas); }
.jour .section-head p, .sable .section-head p { color: var(--encre-2); }

/* ---------- Les jeux ---------- */
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
@media (max-width: 820px) { .games { grid-template-columns: 1fr; } }
.game { display: flex; flex-direction: column; background: var(--creme-raised); border: 1px solid var(--creme-line); border-radius: 24px; overflow: hidden; }
.poster { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(20px, 3vw, 28px); }
.poster svg.motif { position: absolute; pointer-events: none; }
.poster .p-title { position: relative; line-height: 1; font-weight: 400; }
.poster .p-hook { position: relative; margin-top: 10px; max-width: 26em; font-size: 15px; line-height: 1.45; }
.tag { position: absolute; top: 16px; left: 16px; z-index: 2; padding: 6px 12px; border-radius: var(--pill); font-size: 13px; font-weight: 700; }

.p-roue { background: #17111d; color: #f3e6cf; }
.p-roue .p-title { font-family: "Grenze Gotisch", serif; font-weight: 700; font-size: clamp(40px, 5vw, 56px); color: #e5a23a; }
.p-roue .motif { right: -10%; top: -30%; width: 50%; }
.p-roue .p-hook, .p-chasse .p-hook { max-width: 60%; }
.p-sort { background: #141233; color: #e6e1ff; }
.p-sort .p-title { font-family: "Uncial Antiqua", serif; font-size: clamp(36px, 4.6vw, 50px); color: #6fe3b5; }
.p-sort .motif { right: 4%; top: 6%; width: 46%; }
.p-chasse { background: #1d1411; color: #fff1e6; }
.p-chasse .p-title { font-family: "Bagel Fat One", sans-serif; font-size: clamp(34px, 4.4vw, 48px); color: #ff4f8b; letter-spacing: 0.01em; }
.p-chasse .motif { right: 0; top: 10%; width: 46%; }
.p-chasse .p-title, .p-roue .p-title { max-width: 62%; }
.p-enquete { background: #0d0d0f; color: #efe6d2; }
.p-enquete .p-title { font-family: "Limelight", serif; font-size: clamp(34px, 4.4vw, 48px); color: #c9a45c; }
.p-enquete .motif { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
.p-enquete .stamp { position: absolute; right: 9%; top: 18%; transform: rotate(-9deg); border: 3px solid #c4372c; color: #e0574b; padding: 6px 14px; font-family: "Limelight", serif; font-size: 18px; letter-spacing: .12em; border-radius: 6px; }

.game-body { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 3vw, 28px); flex: 1; }
.game-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.game h3 { font-size: 26px; letter-spacing: -0.015em; }
.price { white-space: nowrap; font-size: 15px; color: var(--encre-2); }
.price b { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--nuit); letter-spacing: -0.01em; margin-left: 4px; }
.game-desc { color: var(--encre-2); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 15px; }
.facts dt { color: var(--encre-3); }
.facts dd { margin: 0; color: var(--nuit); font-weight: 500; }
.game-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 4px; }
.btn-outline { border-color: var(--nuit); color: var(--nuit); background: transparent; }
.btn-outline:hover { background: var(--sable); }
.section-head p.demo-note { margin-top: 10px; font-size: 16px; color: var(--encre-3); }
.games-note { margin-top: 28px; color: var(--encre-2); font-size: 15px; max-width: 46em; }

/* ---------- Comment ça marche ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; position: relative; }
.steps::before { content: ""; position: absolute; left: 32px; right: calc(25% - 24px); top: 31px; border-top: 2px dashed var(--nuit-line); }
.step { position: relative; }
.step-n { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--corail); color: var(--nuit); font-family: var(--display); font-weight: 800; font-size: 28px; position: relative; }
.step:last-child .step-n { background: var(--soleil); }
.step h3 { margin-top: 22px; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; }
.step p { margin-top: 10px; color: var(--lilas); font-size: 16px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
  .steps::before { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Pour qui ---------- */
.audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--nuit); }
.audience { padding: 28px 28px 8px 0; }
.audience + .audience { padding-left: 28px; border-left: 1px solid #DCCBB3; }
.audience h3 { font-size: 26px; letter-spacing: -0.015em; }
.audience p { margin-top: 12px; color: var(--encre-2); }
.audience ul { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.audience li { padding: 6px 14px; border-radius: var(--pill); background: var(--creme-raised); border: 1px solid #DCCBB3; font-size: 14px; font-weight: 500; }
.audience .fits { margin-top: 18px; font-size: 15px; color: var(--nuit); }
.audience .fits b { font-weight: 700; }
@media (max-width: 860px) {
  .audiences { grid-template-columns: 1fr; }
  .audience, .audience + .audience { padding: 28px 0; border-left: 0; }
  .audience + .audience { border-top: 1px solid #DCCBB3; }
}

/* ---------- Manifeste ---------- */
.manifesto { position: relative; overflow: hidden; }
.manifesto .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 80px); align-items: end; }
.manifesto h2 { font-size: clamp(48px, 7.4vw, 104px); line-height: 0.96; letter-spacing: -0.02em; }
.manifesto h2 .bang { display: inline-block; height: 0.72em; width: auto; vertical-align: -0.01em; margin-left: 0.04em; }
.manifesto-text p + p { margin-top: 18px; }
.manifesto-text p { color: var(--lilas); font-size: 18px; }
.manifesto-text .signoff { color: var(--creme); font-weight: 600; }
@media (max-width: 900px) { .manifesto .wrap { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--creme-line); }
.faq details:first-of-type { border-top: 1px solid var(--creme-line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-family: var(--display); font-weight: 700; font-size: clamp(19px, 2vw, 22px); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--sable) no-repeat center / 14px 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%231E1633' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 56px 24px 0; color: var(--encre-2); }
.faq .answer p + p { margin-top: 10px; }

/* ---------- Formulaire ---------- */
.ask .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.ask-intro h2 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.015em; }
.nowrap { white-space: nowrap; }
.ask-intro p { margin-top: 20px; color: var(--lilas); font-size: 18px; max-width: 26em; }
.ask-intro .dare-q { display: block; margin-top: 32px; }
@media (max-width: 900px) { .ask .wrap { grid-template-columns: 1fr; } }

.form { background: var(--nuit-raised); border: 1px solid var(--nuit-line); border-radius: 24px; padding: clamp(22px, 3.5vw, 36px); box-shadow: var(--halo); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 15px; font-weight: 600; color: var(--creme); padding: 0; }
.field .hint { font-weight: 400; color: var(--lilas-discret); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px;
  background: var(--nuit); border: 1px solid var(--nuit-line); color: var(--creme);
  font: inherit; font-size: 16px;
}
.field textarea { min-height: 128px; resize: vertical; }
.field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23CFC6DD' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px; }
.field input::placeholder, .field textarea::placeholder { color: #8C82A0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--corail); outline-offset: 1px; border-color: var(--corail); }
.field input[type="date"] { color-scheme: dark; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; min-height: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--pill); border: 1px solid var(--nuit-line); background: var(--nuit); color: var(--lilas); font-size: 15px; font-weight: 500; }
.chip input:checked + span { background: var(--corail); border-color: var(--corail); color: var(--nuit); font-weight: 700; }
.chip input:focus-visible + span { outline: 2px solid var(--corail); outline-offset: 2px; }
.form-foot { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.form-foot .legal { flex: 1 1 240px; font-size: 13px; color: var(--lilas-discret); }
.form-foot .legal a { color: var(--lilas); }
.form-error { margin-top: 16px; color: #FF8A70; font-weight: 600; font-size: 15px; }
.form-error:empty { display: none; }
.hp { display: none; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--nuit-line); padding: 48px 0 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; }
.site-footer .logo { font-size: 40px; }
.site-footer .tagline { margin-top: 10px; color: var(--lilas); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; }
.footer-links a { color: var(--lilas); text-decoration: none; }
.footer-links a:hover { color: var(--creme); text-decoration: underline; text-underline-offset: 3px; }
.copyright { width: 100%; font-size: 13px; color: var(--lilas-discret); }

/* ---------- Pages simples (mentions, confidentialité, merci) ---------- */
.page { padding: clamp(48px, 8vw, 96px) 0; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.page h2 { font-size: 24px; margin-top: 40px; letter-spacing: -0.01em; }
.page p, .page li { color: var(--lilas); margin-top: 12px; }
.page ul { padding-left: 20px; }
.page a:not(.btn) { color: var(--corail); }
.todo { background: var(--soleil); color: var(--nuit); padding: 0 6px; border-radius: 4px; font-weight: 700; }
.thanks { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.thanks h1 { font-size: clamp(48px, 8vw, 96px); }
.thanks p { color: var(--lilas); margin: 20px auto 0; max-width: 30em; font-size: 18px; }
.thanks .btn { margin-top: 32px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .moment { opacity: 1; }
}
.form.tried .field input:invalid, .form.tried .field select:invalid { border-color: #FF8A70; }
.form.tried .chips:has(input:invalid) .chip span { border-color: #FF8A70; }

@media (max-width: 560px) {
  .poster { aspect-ratio: auto; min-height: 250px; padding-top: 104px; }
  .p-sort .motif { width: 34%; right: 4%; top: 6%; }
  .p-roue .motif { width: 42%; right: -8%; top: -14%; }
  .p-chasse .motif { width: 40%; right: 2%; top: 4%; }
  .p-roue .p-title, .p-chasse .p-title { max-width: none; }
  .p-roue .p-hook, .p-chasse .p-hook { max-width: none; }
  .p-enquete .stamp { font-size: 12px; padding: 4px 10px; top: 58px; right: 16px; }
  .game-top { flex-wrap: wrap; gap: 4px 16px; }
}
