/* Wax Séjour · pages du service (accueil, calculateur, création, panel) : identité Wax Studio (Design system) */
:root {
  --bg: #14110f; --bg2: #1c1814; --card: #221d18; --line: #3a322a; --ink: #f4ede4; --muted: #b9ad9f;
  --wax: #d9622e; --wax-h: #e8743f; --gold: #e3a13b; --ok: #7fc48a; --bad: #ff9b85;
  --title: "Bricolage Grotesque", system-ui, sans-serif; --body: "Nunito Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); overflow-x: hidden; }
a { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--title); line-height: 1.08; margin: 0; font-weight: 700; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
svg.i { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.17em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 14px; }
.brand { font: 700 1.2rem var(--title); color: var(--ink); text-decoration: none; display: flex; gap: 10px; align-items: center; min-height: 44px; }
.brand b { color: var(--wax); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; padding: 10px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: var(--card); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 0; cursor: pointer; font: 700 1rem var(--body); text-decoration: none; background: var(--wax); color: #fff; transition: background .2s, transform .2s; }
.btn:hover { background: var(--wax-h); transform: translateY(-1px); }
.btn[disabled] { opacity: .55; cursor: wait; transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--card); }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: .92rem; }
.btn-ok { background: #2f6b3a; } .btn-ok:hover { background: #3a7f47; }
.btn-bad { background: transparent; color: var(--bad); border: 1px solid #6b3a30; } .btn-bad:hover { background: #2a1814; }

section { padding: clamp(56px, 8vw, 96px) 0; }
.kicker { color: var(--gold); letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; font-weight: 800; margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 60ch; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 > *, .grid3 > * { min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: .82rem; font-weight: 700; background: #2b241d; color: var(--muted); }
.pill.nouvelle { background: #3a2a12; color: var(--gold); }
.pill.acceptee { background: #17301c; color: var(--ok); }
.pill.refusee, .pill.annulee { background: #2e1915; color: var(--bad); }

/* Formulaires */
label { display: grid; gap: 6px; font-size: .92rem; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; min-height: 46px; padding: 10px 12px; width: 100%; }
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 0 0 18px; min-width: 0; }
legend { font: 700 1.05rem var(--title); color: var(--ink); padding: 0 8px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 14px; }
.row > * { min-width: 0; }
.unit { border: 1px dashed var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.unit-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.help { font-size: .85rem; color: var(--muted); margin: 4px 0 0; }
.check { grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.check input { width: 22px; height: 22px; min-height: 22px; accent-color: var(--wax); }
.err { color: var(--bad); }
.okmsg { color: var(--ok); }
.copy { display: flex; gap: 8px; }
.copy input { font-size: .85rem; }

table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 700; font-size: .85rem; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }

footer.site { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: flex; gap: 12px 24px; flex-wrap: wrap; justify-content: space-between; }

@media (max-width: 860px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  table.stack thead { display: none; }
  table.stack tr { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; margin-bottom: 12px; }
  table.stack td { display: block; border: 0; padding: 6px 0; }
  table.stack td::before { content: attr(data-l); display: block; color: var(--muted); font-size: .8rem; font-weight: 700; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } html { scroll-behavior: auto; } }
