/* Pinata — socle commun des 5 maquettes d'accueil. Blanc chaud, encre, magenta + jaune (deux couleurs vives par écran). */
:root { --paper: #FFF8EE; --card: #FFFFFF; --sand: #F6EAD7; --line: #E6D8C0; --ink: #1A1A1A; --soft: #5E574D; --magenta: #E6007E; --magenta-t: #C2006A; --yellow: #FFC400;
  --turq: #00B3A4; --turq-t: #00756B; --red: #C4162A; --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Bricolage Grotesque", "Segoe UI", sans-serif; --mono: "DM Mono", ui-monospace, Consolas, monospace; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink) var(--sand); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--display); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.035em; line-height: .98; text-wrap: balance; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
canvas { display: block; width: 100%; height: 100%; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.soft { color: var(--soft); }

/* en-tête */
.top { display: flex; align-items: center; gap: 28px; padding: 18px 0; position: relative; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -0.04em; text-decoration: none; }
.brand i { width: 22px; height: 22px; border-radius: 50%; background: repeating-linear-gradient(180deg, var(--magenta) 0 5px, var(--yellow) 5px 10px, var(--paper) 10px 12px); box-shadow: 0 0 0 2px var(--ink); }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 600; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
.xbtn { display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--ink); border-radius: 50%; }
.xbtn svg { width: 16px; height: 16px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; background: var(--magenta); color: #fff; font: 800 17px/1 var(--display); letter-spacing: -0.01em; text-decoration: none;
  box-shadow: 0 2px 0 rgba(26,26,26,.9), 0 14px 24px -12px rgba(230,0,126,.55); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 rgba(26,26,26,.9), 0 20px 28px -12px rgba(230,0,126,.6); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(26,26,26,.9); }
.btn.small { padding: 11px 20px; font-size: 15px; }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* statuts d'une tranche */
.st { display: inline-flex; align-items: center; gap: 7px; font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; border: 1.5px solid currentColor; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st.armed { color: var(--ink); } .st.delivered { color: var(--magenta-t); } .st.burned { color: var(--soft); } .st.cancelled { color: var(--red); }

/* guirlande de papel picado (dessinée par commun.js) */
.garland { height: 74px; overflow: hidden; pointer-events: none; }
.garland svg { display: block; width: 100%; height: 100%; }

/* FAQ en <details> */
.faq details { border-top: 1.5px solid var(--ink); }
.faq details:last-child { border-bottom: 1.5px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; margin: 6px 5px 0 0; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-4px, -4px); }
.faq details p { padding: 0 0 22px; max-width: 68ch; color: var(--soft); }

/* cartes de coin (galerie) */
.coin { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 14px 16px 14px 8px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 18px; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.coin:hover { transform: translateY(-3px); box-shadow: 0 16px 24px -18px rgba(26,26,26,.5); }
.coin .mini { width: 76px; height: 96px; }
.coin b { display: block; font-size: 20px; letter-spacing: -0.03em; }
.coin .mono { font-size: 12.5px; color: var(--soft); display: block; margin-top: 3px; }
.sim { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; margin-left: 8px; vertical-align: 3px; }

footer.end { margin-top: 110px; border-top: 1.5px solid var(--ink); padding: 28px 0 40px; font-size: 14px; color: var(--soft); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
footer.end .wm { flex-basis: 100%; font: 800 clamp(64px, 17vw, 240px)/.8 var(--display); letter-spacing: -0.06em; color: var(--ink); margin: 26px 0 0 -0.05em; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .top { gap: 14px; }
  .top nav a:not(.keep) { display: none; }
  .top nav { gap: 12px; align-items: center; }
  .faq summary { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---- pages du site (au-delà de l'accueil) ---- */
main { display: block; }
.page-head { padding: 40px 0 0; }
.page-head h1 { font-size: clamp(38px, 5.4vw, 76px); }
.page-head p { margin-top: 16px; max-width: 60ch; color: var(--soft); font-size: 19px; }
.note { font: 400 13px/1.5 var(--mono); color: var(--soft); }
.xbtn:not([href]) { opacity: 1; cursor: default; }
.top nav a[aria-current] { text-decoration: underline; }
.btn[disabled], button.btn:disabled { background: var(--sand); color: var(--soft); box-shadow: inset 0 0 0 1.5px var(--line); cursor: not-allowed; transform: none; }
button.btn { border: 0; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 13px/1 var(--mono); padding: 9px 13px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.empty { padding: 36px 0; color: var(--soft); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.kv { display: grid; grid-template-columns: 1fr auto; margin: 0; font-size: 15px; }
.kv dt, .kv dd { margin: 0; padding: 11px 0; border-top: 1px solid var(--line); }
.kv dd { font-family: var(--mono); font-size: 14px; text-align: right; padding-left: 16px; }
.tbl { width: 100%; border-collapse: collapse; font: 400 14px/1.2 var(--mono); }
.tbl td, .tbl th { padding: 12px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.tbl th { color: var(--soft); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; border-top: 1.5px solid var(--ink); }
.tbl td:last-child, .tbl th:last-child { text-align: right; }
.cut { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* formulaires (studio) */
fieldset { border: 0; border-top: 1.5px solid var(--ink); margin: 0 0 34px; padding: 22px 0 0; min-width: 0; }
legend { font: 800 24px/1 var(--display); letter-spacing: -0.03em; padding: 0 14px 0 0; }
.field { margin-bottom: 18px; min-width: 0; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 7px; }
.field input:not([type=range]):not([type=file]), .field textarea, .field select { width: 100%; font: 400 16px/1.3 var(--display); color: var(--ink); background: var(--card); border: 1.5px solid var(--ink); border-radius: 12px; padding: 13px 14px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input[type=file] { width: 100%; font: 400 14px var(--mono); }
.field input:disabled { background: var(--sand); color: var(--soft); border-color: var(--line); }
.field input[type=range] { width: 100%; accent-color: var(--magenta); height: 28px; }
.hint { font-size: 13.5px; color: var(--soft); margin-top: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
.row-range { display: flex; align-items: center; gap: 16px; } .row-range output { font: 500 17px var(--mono); min-width: 84px; text-align: right; }
.err { color: var(--red); font-weight: 600; min-height: 1.5em; margin: 0 0 12px; } .err .ok { color: var(--turq-t); }
.steps { list-style: none; padding: 0; margin: 20px 0 0; } .steps li { padding: 11px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.steps li span:last-child { font: 400 13px var(--mono); color: var(--soft); } .steps li.done span:last-child { color: var(--turq-t); } .steps li.bad span:last-child { color: var(--red); }
@media (max-width: 720px) { .grid2, .grid3 { grid-template-columns: 1fr; } .page-head { padding-top: 20px; } .page-head p { font-size: 17px; } }
