/* ====== Le Génie du Cadeau : design commun (accueil, génie, Secret Santa) ====== */

@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400 700; font-display: swap; src: url("fonts/nunito-sans.woff2") format("woff2"); }

:root {
  --ink: #1f1b3a;
  --muted: #6b6786;
  --line: #e4e1ef;
  --line-strong: #cfcbe0;
  --paper: #ffffff;
  --mist: #f6f5fb;
  --violet: #5b3fd0;
  --violet-deep: #3d2a9c;
  --violet-soft: #eeeafc;
  --red: #d33a4f;
  --red-deep: #a8273a;
  --red-soft: #fcebee;
  --band-santa: #fbe8eb;
  --band-genie: #ebe7fb;
  --pine: #1d7a64;
  --pine-soft: #e3f4ee;
  --gold: #f0b13a;
  --gold-soft: #fdf3dc;
  --gold-deep: #8a5d00;
  --blue: #2a6fb0;
  --wa: #1fa855;
  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow-card: 0 12px 40px rgba(40, 30, 90, .10), 0 2px 6px rgba(40, 30, 90, .05);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0; text-wrap: balance; color: var(--ink); }
p { margin: 0; }
a { color: var(--red-deep); }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

svg.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

/* ---------- En-tête / pied ---------- */
.hdr { border-bottom: 1px solid var(--line); background: var(--paper); }
.hdr-in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: .6rem 1.6rem; flex-wrap: wrap; padding: .85rem max(16px, env(safe-area-inset-left, 0px)) .85rem max(16px, env(safe-area-inset-right, 0px)); }
.logo { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; padding-block: .2rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); font-weight: 700; border-bottom-color: var(--violet); }
.nav a.on.santa { border-bottom-color: var(--red); }
.hdr-right { margin-left: auto; color: var(--muted); font-size: .9rem; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.hdr-right:hover { color: var(--ink); }
.menu { display: flex; align-items: center; gap: .6rem 1.6rem; flex: 1; flex-wrap: wrap; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.hdr.open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hdr.open .burger span:nth-child(2) { opacity: 0; }
.hdr.open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
  .hdr-in { gap: .5rem 1rem; padding-block: .6rem; }
  .burger { display: block; }
  .menu { display: none; flex: 0 0 100%; flex-direction: column; align-items: stretch; gap: 0; padding: .4rem 0 .6rem; border-top: 1px solid var(--line); }
  .hdr.open .menu { display: flex; }
  .nav { flex-direction: column; gap: 0; }
  .nav a { font-size: 1.05rem; padding: .8rem .3rem; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav a.on { border-bottom-color: var(--line); box-shadow: inset 4px 0 0 var(--violet); padding-left: .9rem; }
  .nav a.on.santa { box-shadow: inset 4px 0 0 var(--red); }
  .nav a.on.liste { box-shadow: inset 4px 0 0 var(--pine); }
  .hdr-right { margin-left: 0; padding: .8rem .3rem; font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) { .burger span { transition: none; } }

.ftr { border-top: 1px solid var(--line); background: var(--mist); margin-top: 3rem; }
.ftr-in { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; padding: 2rem max(16px, env(safe-area-inset-left, 0px)) 2.4rem max(16px, env(safe-area-inset-right, 0px)); font-size: .9rem; color: var(--muted); }
.ftr-in > div { max-width: 46ch; display: grid; gap: .6rem; }
.ftr nav { display: grid; gap: .35rem; }
.ftr nav a { color: var(--muted); text-decoration: none; }
.ftr nav a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 999px; padding: .85rem 1.6rem; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; transition: transform .12s, box-shadow .12s, background-color .12s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(40, 30, 90, .15); }
.btn:active { transform: none; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.full { display: flex; width: 100%; }
.btn.red { background: var(--red); color: #fff; }
.btn.red:hover { background: var(--red-deep); }
.btn.violet { background: var(--violet); color: #fff; }
.btn.violet:hover { background: var(--violet-deep); }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.line { background: var(--paper); color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn.line:hover { border-color: var(--ink); }
.btn.sm { padding: .5rem 1rem; font-size: .85rem; }
.btn.wa { background: var(--wa); color: #fff; }
.btn.danger { background: var(--paper); color: var(--red-deep); border: 1.5px solid #efc3ca; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--red-deep); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.linkbtn.muted { color: var(--muted); font-weight: 600; }

/* ---------- Formulaires ---------- */
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field > label, .label { font-size: .88rem; font-weight: 700; }
.field .opt, .help { font-weight: 400; font-size: .82rem; color: var(--muted); }
.input, .field input[type=text], .field input[type=email], .field input[type=date], .field input[type=number], .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: .7rem .85rem;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); min-height: 2.9rem;
}
.field textarea { min-height: 5.5rem; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.choice-line { display: flex; gap: .65rem; align-items: flex-start; font-size: .97rem; margin-bottom: .55rem; cursor: pointer; }
.choice-line input { width: 18px; height: 18px; margin: .2rem 0 0; accent-color: var(--red); flex: none; }
.seg { display: flex; flex-wrap: wrap; gap: .45rem; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-block; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: .45rem 1rem; font-size: .93rem; cursor: pointer; background: var(--paper); }
.seg input:checked + span { border-color: var(--red); background: var(--red-soft); color: var(--red-deep); font-weight: 700; }
.seg input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
.hp { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Bande illustrée + carte (Secret Santa) ---------- */
.band { position: relative; height: 170px; background: var(--band-santa); overflow: hidden; }
.band.genie { background: var(--band-genie); }
.band.short { height: 140px; }
.band .flake { position: absolute; color: #fff; }
.band .pile { position: absolute; bottom: -4px; }
.band .pile.l { left: 4%; }
.band .pile.r { right: 4%; }
.stage { position: relative; margin-top: -120px; padding: 0 max(16px, env(safe-area-inset-left, 0px)) 1rem max(16px, env(safe-area-inset-right, 0px)); }
.band.short + .stage { margin-top: -100px; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 2rem 2.2rem; max-width: 600px; margin: 0 auto; }
.card.wide { max-width: 900px; }
.card > h1, .card > h2.title { font-size: 1.7rem; text-align: center; }
.card .lead { text-align: center; color: var(--muted); margin: .55rem auto 1.3rem; max-width: 46ch; }
@media (max-width: 640px) {
  .card { padding: 1.5rem 1.15rem; }
  .card > h1, .card > h2.title { font-size: 1.45rem; }
  .band .pile.r { display: none; }
  .band .pile.l { left: -10px; transform: scale(.8); transform-origin: bottom left; }
}

.promise { display: grid; gap: .45rem; background: var(--mist); border-radius: 14px; padding: .85rem 1rem; margin: 0 0 1.4rem; font-size: .9rem; }
.promise div { display: flex; gap: .55rem; align-items: flex-start; }
.promise svg { color: var(--pine); margin-top: .1rem; }
.promise b { font-weight: 700; }

.progress { display: grid; gap: .45rem; margin-bottom: 1.4rem; }
.progress .top { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.progress .top b { color: var(--ink); }
.progress .bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--red); border-radius: 3px; transition: width .3s; }

.q { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--red-deep); margin: 1.4rem 0 .75rem; }
.q:first-child { margin-top: 0; }
.under { text-align: center; font-size: .85rem; color: var(--muted); margin-top: .7rem; }
.back { display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; margin-top: .9rem; font-size: .92rem; }
.divider { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .85rem; margin: 1.4rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.aside { display: flex; gap: .9rem; align-items: flex-start; background: var(--mist); border-radius: 14px; padding: 1rem 1.1rem; margin-top: 1.4rem; font-size: .92rem; }
.aside svg.ill { width: 44px; height: 44px; flex: none; }
.aside b { display: block; font-family: var(--font-display); font-weight: 600; font-size: .98rem; margin-bottom: .15rem; }

.alert { border-radius: 12px; padding: .75rem 1rem; font-size: .92rem; margin-bottom: 1rem; display: flex; gap: .55rem; align-items: flex-start; }
.alert svg { margin-top: .15rem; }
.alert.err { background: var(--red-soft); color: var(--red-deep); }
.alert.ok { background: var(--pine-soft); color: var(--pine); }
.alert.info { background: var(--gold-soft); color: var(--gold-deep); }

/* ---------- Contenu SEO sous le formulaire ---------- */
.content { max-width: 760px; margin: 3rem auto 0; padding: 0 max(16px, env(safe-area-inset-left, 0px)) 0 max(16px, env(safe-area-inset-right, 0px)); display: grid; gap: 2.4rem; }
.content h2 { font-size: 1.45rem; margin-bottom: .8rem; }
.content p + p { margin-top: .7rem; }
.content p, .content li { color: #3b3656; }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps3 li { background: var(--mist); border-radius: 16px; padding: 1.1rem; counter-increment: s; }
.steps3 li::before { content: counter(s); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 600; margin-bottom: .6rem; }
.steps3 b { display: block; font-family: var(--font-display); font-weight: 600; color: var(--ink); margin-bottom: .2rem; }
@media (max-width: 700px) { .steps3 { grid-template-columns: minmax(0, 1fr); } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; }
.ticks svg { color: var(--pine); margin-top: .2rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: .95rem .2rem; cursor: pointer; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.35rem; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 .2rem 1rem; }

/* ---------- Accueil ---------- */
.home { background: linear-gradient(var(--mist), var(--paper) 70%); padding: 2.6rem max(16px, env(safe-area-inset-left, 0px)) 1rem max(16px, env(safe-area-inset-right, 0px)); }
.home-title { text-align: center; max-width: 720px; margin: 0 auto; }
.home-title h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
.home-title p { color: var(--muted); margin: .7rem auto 0; max-width: 50ch; font-size: 1.05rem; }
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; max-width: 1120px; margin: 2.2rem auto 0; }
.door.liste .art { background: var(--band-liste, #e3f4ee); }
.door { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.door .art { height: 160px; background: var(--band-genie); display: grid; place-items: center; position: relative; overflow: hidden; }
.door.santa .art { background: var(--band-santa); }
.door .art svg.big { width: 120px; height: 120px; }
.door .art .flake { position: absolute; color: #fff; }
.door .body { padding: 1.5rem 1.6rem 1.7rem; display: grid; gap: .75rem; align-content: start; }
.door h2 { font-size: 1.35rem; }
.door p { color: var(--muted); }
.door ul { list-style: none; margin: .1rem 0 .5rem; padding: 0; display: grid; gap: .4rem; font-size: .95rem; }
.door li { display: flex; gap: .55rem; align-items: flex-start; }
.door li svg { color: var(--pine); margin-top: .2rem; }
.door .note { font-size: .82rem; color: var(--muted); text-align: center; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 2rem; padding: 2rem 0 0; font-size: .92rem; color: var(--muted); }
.trust span { display: flex; gap: .45rem; align-items: center; }
.trust svg { color: var(--violet); }
@media (max-width: 980px) { .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } .doors .door.liste { grid-column: 1 / -1; } }
@media (max-width: 720px) { .doors { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Participants ---------- */
.people { display: grid; gap: .55rem; }
.person { display: grid; grid-template-columns: 2.3rem minmax(0, 1fr) minmax(0, 1.5fr) 2rem; gap: .55rem; align-items: center; }
.person input { width: 100%; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: .5rem .7rem; font: inherit; font-size: .95rem; color: var(--ink); min-height: 2.6rem; background: var(--paper); }
.person input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.person input.bad { border-color: var(--red); }
.person .tag { font-size: .72rem; color: var(--muted); text-align: center; }
.av { width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: .85rem; background: var(--violet-soft); color: var(--violet-deep); flex: none; }
.av.c1 { background: var(--red-soft); color: var(--red-deep); }
.av.c2 { background: var(--pine-soft); color: var(--pine); }
.av.c3 { background: var(--gold-soft); color: var(--gold-deep); }
.av.c4 { background: #e3eefa; color: var(--blue); }
.av.new { background: var(--mist); color: var(--muted); }
.av.sm { width: 1.9rem; height: 1.9rem; font-size: .75rem; }
.iconbtn { width: 2rem; height: 2rem; border-radius: 50%; border: 0; background: none; color: #a8a4bd; display: grid; place-items: center; cursor: pointer; padding: 0; }
.iconbtn:hover { background: var(--red-soft); color: var(--red-deep); }
.meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .88rem; color: var(--muted); margin: 1rem 0 1.2rem; }
.meta b { color: var(--ink); }
.share { display: grid; gap: .75rem; background: var(--mist); border-radius: 14px; padding: 1.1rem; }
.share .title { font-family: var(--font-display); font-weight: 600; }
.share .linkbox { display: flex; gap: .5rem; flex-wrap: wrap; }
.share .linkbox input { flex: 1 1 14rem; min-width: 0; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: .55rem .75rem; font: inherit; font-size: .88rem; background: var(--paper); color: var(--ink); }
.paste { display: grid; gap: .6rem; margin-top: .8rem; }
.paste textarea { width: 100%; min-height: 7rem; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: .7rem; font: inherit; font-size: .92rem; }
@media (max-width: 560px) {
  .person { grid-template-columns: 2.3rem minmax(0, 1fr) 2rem; }
  .person .email { grid-column: 2 / 3; }
  .person .av { grid-row: span 2; }
  .person .rm { grid-row: span 2; }
}

/* ---------- Exclusions ---------- */
.rule { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; border: 1.5px solid var(--line); border-radius: 12px; padding: .55rem .85rem; font-size: .95rem; margin-bottom: .5rem; }
.rule .who { display: flex; align-items: center; gap: .45rem; font-weight: 700; }
.rule .sym { color: var(--red); display: flex; }
.rule .tag { font-size: .78rem; color: var(--muted); margin-left: auto; }
.adder { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: .5rem; align-items: center; margin-top: .9rem; font-size: .88rem; color: var(--muted); }
.adder select { width: 100%; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: .55rem .7rem; font: inherit; font-size: .95rem; min-height: 2.7rem; background: var(--paper); color: var(--ink); }
@media (max-width: 560px) { .adder { grid-template-columns: minmax(0, 1fr); } }
.empty { color: var(--muted); font-size: .92rem; text-align: center; padding: .8rem; border: 1.5px dashed var(--line); border-radius: 12px; }

/* ---------- Récap ---------- */
.sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: 1.3rem; overflow: hidden; }
.sum div { padding: .75rem 1rem; display: flex; gap: .65rem; align-items: center; font-size: .93rem; min-width: 0; }
.sum div:nth-child(odd) { border-right: 1.5px solid var(--line); }
.sum div:nth-child(-n+2) { border-bottom: 1.5px solid var(--line); }
.sum svg { color: var(--red); }
.sum small { display: block; font-size: .76rem; color: var(--muted); line-height: 1.2; }
.sum b { overflow-wrap: anywhere; }
.mode { border: 1.5px solid var(--line-strong); border-radius: 14px; padding: .85rem 1rem; display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--muted); margin-bottom: .55rem; cursor: pointer; }
.mode input { accent-color: var(--red); width: 18px; height: 18px; margin: .15rem 0 0; flex: none; }
.mode b { color: var(--ink); display: block; font-size: .98rem; }
.mode:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.editbox { border: 1.5px solid var(--line); border-radius: 14px; padding: 1.1rem 1.1rem .2rem; margin-bottom: 1.2rem; }

/* ---------- Suivi organisateur ---------- */
.done { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.4rem; }
.done svg.ill { width: 64px; height: 64px; flex: none; }
.done h1 { font-size: 1.4rem; }
.done p { margin-top: .2rem; color: var(--muted); font-size: .93rem; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1.4rem; }
.kpi { background: var(--mist); border-radius: 14px; padding: .9rem 1rem; }
.kpi strong { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; font-variant-numeric: tabular-nums; display: block; line-height: 1.15; }
.kpi span { font-size: .85rem; color: var(--muted); }
.kpi .bar { height: 5px; border-radius: 3px; background: var(--line); margin-top: .5rem; overflow: hidden; }
.kpi .bar i { display: block; height: 100%; background: var(--pine); }
@media (max-width: 640px) { .kpis { grid-template-columns: minmax(0, 1fr); } }
.tw { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 620px; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: .5rem .6rem; border-bottom: 1.5px solid var(--line); }
.table td { padding: .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table td.p { font-weight: 700; }
.table td.p span.in { display: flex; align-items: center; gap: .5rem; }
.table td.act { text-align: right; white-space: nowrap; }
.dot { display: inline-flex; align-items: center; gap: .4rem; font-size: .86rem; white-space: nowrap; }
.dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dot.ok { color: var(--pine); }
.dot.mid { color: var(--blue); }
.dot.warn { color: var(--gold-deep); }
.dot.err { color: var(--red-deep); }
.dot.none { color: #a8a4bd; }
.tools { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.3rem; }
.panel { border: 1.5px solid var(--line); border-radius: 14px; padding: 1.1rem; margin-top: 1rem; }
.panel h2 { font-size: 1.05rem; margin-bottom: .7rem; }
.confirm { background: var(--red-soft); border-radius: 14px; padding: 1rem 1.1rem; margin-top: 1rem; display: grid; gap: .7rem; }
.confirm p { color: var(--red-deep); font-weight: 600; }
.confirm .btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.pairs { display: grid; gap: .4rem; }
.pairs div { display: flex; gap: .5rem; align-items: center; font-size: .93rem; }
.pairs svg { color: var(--red); }

/* ---------- Page participant ---------- */
.reveal { text-align: center; display: grid; justify-items: center; gap: .4rem; padding: .6rem 0 .2rem; }
.reveal svg.big { width: 140px; height: 140px; }
.reveal .to { color: var(--muted); }
.reveal .name { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 7vw, 3rem); color: var(--red); line-height: 1.1; overflow-wrap: anywhere; }
.reveal p { color: var(--muted); max-width: 36ch; }
.facts { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-top: .4rem; }
.facts span { display: inline-flex; gap: .4rem; align-items: center; background: var(--mist); border-radius: 999px; padding: .3rem .8rem; font-size: .88rem; }
.msg { border-left: 3px solid var(--red); padding: .15rem 0 .15rem .9rem; color: var(--muted); margin-top: 1rem; text-align: left; white-space: pre-line; }
.msg em { display: block; font-style: normal; font-weight: 700; color: var(--ink); margin-top: .2rem; }
.blocks { max-width: 600px; margin: 1.2rem auto 0; display: grid; gap: 1.2rem; }
.block { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 1.4rem 1.5rem; display: grid; gap: .8rem; }
.block h2 { font-size: 1.15rem; }
.wish { display: flex; gap: .65rem; align-items: flex-start; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.wish:last-child { border-bottom: 0; }
.wish > svg { color: var(--red); margin-top: .2rem; }
.wish .txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.addline { display: flex; gap: .5rem; }
.addline input { flex: 1; min-width: 0; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: .6rem .8rem; font: inherit; font-size: .95rem; background: var(--paper); color: var(--ink); }
.addline input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.qa { background: var(--mist); border-radius: 12px; padding: .75rem .9rem; font-size: .93rem; display: grid; gap: .3rem; }
.qa .a { color: var(--pine); font-weight: 600; }
.qa .wait { color: var(--muted); font-style: italic; }
.genie { background: var(--violet); color: #fff; border-radius: var(--radius); padding: 1.4rem 1.5rem; display: grid; gap: .8rem; }
.genie h2 { color: #fff; font-size: 1.15rem; display: flex; gap: .6rem; align-items: center; }
.genie h2 svg { width: 30px; height: 30px; flex: none; }
.genie p { opacity: .9; font-size: .95rem; }
.prods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.prod { background: #fff; border-radius: 12px; overflow: hidden; color: var(--ink); text-decoration: none; font-size: .8rem; line-height: 1.3; display: grid; grid-template-rows: auto 1fr; transition: transform .12s; }
.prod:hover { transform: translateY(-2px); }
.prod img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--mist); }
.prod div { padding: .45rem .55rem .6rem; }
.prod .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod b { color: var(--violet); display: block; margin-top: .15rem; }
.small-note { font-size: .78rem; opacity: .85; }
@media (max-width: 420px) { .prods { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prods .prod:nth-child(3) { display: none; } }

@media (prefers-reduced-motion: no-preference) {
  .wiggle { animation: wiggle 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
  @keyframes wiggle { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-6deg); } 84% { transform: rotate(6deg); } 92% { transform: rotate(-3deg); } }
  .pop { animation: pop .5s ease-out; }
  @keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------- Petit message flottant ---------- */
.toast { position: fixed; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: 999px; font-size: .92rem; z-index: 40; box-shadow: var(--shadow-card); max-width: calc(100% - 32px); }

/* ---------- Pages texte (confidentialité) ---------- */
.prose { max-width: 720px; margin: 2.5rem auto 0; padding: 0 max(16px, env(safe-area-inset-left, 0px)) 0 max(16px, env(safe-area-inset-right, 0px)); }
.prose h1 { font-size: 1.9rem; margin-bottom: 1.2rem; }
.prose h2 { font-size: 1.2rem; margin: 1.8rem 0 .6rem; }
.prose p, .prose li { color: #3b3656; }
.prose p + p { margin-top: .7rem; }
.busy { cursor: progress; }
.table td.act > * { display: inline-flex; vertical-align: middle; }
.table td.act .iconbtn { margin-left: .2rem; }

/* Vérification anti-robot */
.cap { display: flex; justify-content: center; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted); margin-top: .6rem; }
.cap.ok { color: var(--pine); }
.cap.err { color: var(--red-deep); }

/* ====================== Blog ====================== */
.b-wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.b-hero { background: linear-gradient(var(--band-genie), var(--paper)); padding-block: 3rem 1.5rem; text-align: center; }
.b-eyebrow { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--violet); }
.b-hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: .4rem auto 0; max-width: 22ch; }
.b-lead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin: .8rem auto 0; }
.b-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.b-card { background: var(--paper); border-radius: 18px; box-shadow: var(--shadow-card); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.b-card-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; max-width: 100%; }
.b-card-body { padding: 1.1rem 1.3rem 1.3rem; display: grid; gap: .55rem; align-content: start; }
.b-card h2, .b-card h3 { font-size: 1.15rem; }
.b-card h2 a, .b-card h3 a { color: var(--ink); text-decoration: none; }
.b-card h2 a:hover, .b-card h3 a:hover { color: var(--violet); }
.b-card p { color: var(--muted); font-size: .93rem; }
.b-meta { font-size: .82rem; color: var(--muted); }
.b-more { font-weight: 700; color: var(--violet); text-decoration: none; display: inline-flex; gap: .3rem; align-items: center; }
.b-cta { display: flex; gap: .9rem; align-items: center; background: var(--band-santa); border-radius: 16px; padding: 1rem 1.2rem; margin: 2.5rem 0 0; font-size: .97rem; }
.b-cta .ill { width: 44px; height: 44px; flex: none; }

.b-head { padding-block: 2rem 1.2rem; max-width: 820px; }
.b-crumb { font-size: .85rem; color: var(--muted); margin-bottom: .9rem; }
.b-crumb a { color: var(--muted); }
.b-head h1 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); }
.b-head .b-lead { margin: .9rem 0 0; max-width: none; }
.b-head .b-meta { margin-top: .8rem; }
.b-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2.5rem; margin-top: 1.5rem; align-items: start; }
.b-toc { position: sticky; top: 1rem; font-size: .9rem; background: var(--mist); border-radius: 14px; padding: 1rem 1.1rem; }
.b-toc ol { margin: .5rem 0 0; padding-left: 1.1rem; display: grid; gap: .4rem; }
.b-toc a { color: var(--ink); text-decoration: none; }
.b-toc a:hover { color: var(--violet); text-decoration: underline; }
@media (max-width: 900px) { .b-layout { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; } .b-toc { position: static; } }

.b-content { max-width: 720px; font-size: 1.04rem; line-height: 1.7; color: #2f2a48; min-width: 0; }
.b-content > * + * { margin-top: 1rem; }
.b-content h2 { font-size: 1.55rem; margin-top: 2.6rem; scroll-margin-top: 1rem; }
.b-content h3 { font-size: 1.18rem; margin-top: 1.8rem; }
.b-content ul, .b-content ol { padding-left: 1.3rem; }
.b-content li + li { margin-top: .45rem; }
.b-content a { color: var(--violet); font-weight: 600; }
.b-steps { counter-reset: st; list-style: none; padding-left: 0 !important; }
.b-steps li { counter-increment: st; position: relative; padding-left: 2.8rem; min-height: 2rem; }
.b-steps li::before { content: counter(st); position: absolute; left: 0; top: .1rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 600; display: grid; place-items: center; font-size: .95rem; }
.b-table { overflow-x: auto; }
.b-table table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 420px; }
.b-table th, .b-table td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.b-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 2px solid var(--line); }
.b-table tbody th { color: var(--ink); width: 34%; }
.b-fig { margin: 1.8rem 0 0; }
.b-fig img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: 16px; max-width: 100%; }
.b-fig.wide img { max-height: 480px; aspect-ratio: 16 / 8; }
.b-fig figcaption { font-size: .83rem; color: var(--muted); margin-top: .45rem; }
.b-fig .credit a { color: var(--muted); font-weight: 400; }
.b-note { background: var(--gold-soft); border-radius: 14px; padding: 1rem 1.2rem; font-size: .97rem; }
.b-note b { display: block; font-family: var(--font-display); font-weight: 600; margin-bottom: .2rem; }
.b-story { background: var(--mist); border-radius: 16px; padding: 1.3rem 1.5rem; font-size: 1.07rem; }
.b-story p + p { margin-top: .8rem; }
.b-story b { color: var(--red-deep); letter-spacing: .03em; }
.b-faq { margin-top: 2.6rem; }
.b-related { margin-top: 3rem; }
.b-related h2 { font-size: 1.4rem; }

/* ====================== Minuteur ====================== */
.timer { background: var(--ink); color: #fff; border-radius: 22px; padding: 1.4rem 1.4rem 1.2rem; margin-top: 1.6rem; scroll-margin-top: 1rem; }
.timer h3 { color: #fff; margin: 0; font-size: 1.15rem; }
.timer-head p { color: #c9c4e0; font-size: .92rem; margin-top: .3rem; }
.timer-ui { display: grid; gap: .9rem; margin-top: 1rem; }
.t-modes { display: flex; gap: .4rem; background: rgba(255,255,255,.08); border-radius: 999px; padding: .25rem; width: fit-content; max-width: 100%; flex-wrap: wrap; }
.t-modes button { border: 0; background: none; color: #c9c4e0; font: inherit; font-weight: 700; font-size: .88rem; padding: .45rem .9rem; border-radius: 999px; cursor: pointer; }
.t-modes button[aria-selected="true"] { background: #fff; color: var(--ink); }
.t-screen { background: rgba(255,255,255,.06); border-radius: 16px; padding: 1.2rem 1rem 1rem; text-align: center; }
.t-time { font-family: var(--font-display); font-weight: 700; font-size: clamp(3.2rem, 14vw, 5.5rem); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.t-status { min-height: 1.4em; margin-top: .4rem; color: #f6d38a; font-weight: 700; }
.t-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); margin-top: .7rem; overflow: hidden; }
.t-bar i { display: block; height: 100%; width: 0; background: var(--gold); }
.timer.urgent .t-time { color: #ff9aa8; }
.timer.ring .t-screen { animation: ring .5s ease-in-out 3; }
@keyframes ring { 50% { background: rgba(211,58,79,.45); } }
.t-presets { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; }
.t-presets .help { color: #c9c4e0; }
.chip { border: 1.5px solid rgba(255,255,255,.25); background: none; color: #fff; border-radius: 999px; padding: .4rem .85rem; font: inherit; font-size: .88rem; cursor: pointer; }
.chip.on { background: #fff; color: var(--ink); border-color: #fff; font-weight: 700; }
.t-main { display: flex; justify-content: center; align-items: center; gap: .6rem; flex-wrap: wrap; }
.t-main .t-go { min-width: 10rem; font-size: 1.1rem; }
.timer .btn.line { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.t-extra { display: flex; justify-content: center; align-items: center; gap: .5rem 1.3rem; flex-wrap: wrap; font-size: .9rem; color: #c9c4e0; }
.timer .linkbtn { color: #f6d38a; }
.timer .linkbtn.muted { color: #c9c4e0; }
.t-round b { color: #fff; font-size: 1.05rem; }
.t-sound { display: inline-flex; gap: .35rem; align-items: center; cursor: pointer; }
.t-dice { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; }
.t-face { width: 3.4rem; height: 3.4rem; border-radius: 12px; background: #fff; color: var(--red); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; }
.t-rule { flex: 1 1 14rem; color: #fff; font-weight: 600; margin: 0; }
.timer:fullscreen { display: grid; align-content: center; border-radius: 0; padding: 2rem; }
.timer:fullscreen .t-time { font-size: 22vmin; }

/* ====================== Page 404 : le paquet vide ====================== */
.nf { max-width: 980px; margin: 0 auto; padding: 2.5rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px)); text-align: center; }
.nf-stage { position: relative; width: 260px; max-width: 100%; height: 300px; margin: 0 auto; }
.nf-gift { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 220px; max-width: 100%; background: none; border: 0; padding: 0; cursor: pointer; }
.nf-gift svg { display: block; width: 100%; height: auto; overflow: visible; }
.nf-shadow { fill: rgba(31, 27, 58, .12); }
.nf-lid { transform-box: fill-box; transform-origin: 15% 100%; transition: transform .6s cubic-bezier(.3, 1.6, .5, 1); }
.nf-box { transform-box: fill-box; transform-origin: 50% 100%; }
.nf-stage.shake .nf-gift svg { animation: nf-shake 1.3s ease-in-out; transform-origin: 50% 95%; }
@keyframes nf-shake {
  0%, 100% { transform: rotate(0); }
  10%, 30%, 50%, 70% { transform: rotate(-7deg) translateY(-4px); }
  20%, 40%, 60%, 80% { transform: rotate(7deg) translateY(-4px); }
  90% { transform: scale(1.06, .94); }
}
.nf-stage.open .nf-lid { transform: translate(-118px, 62px) rotate(-78deg); }
.nf-stage.closed .nf-lid { transform: none; transition-duration: .35s; }
.nf-digits { position: absolute; left: 0; right: 0; top: 40px; display: flex; justify-content: center; gap: .3rem; pointer-events: none; }
.nf-digits span { font-family: var(--font-display); font-weight: 700; font-size: 5rem; line-height: 1; color: var(--violet); opacity: 0; transform: translateY(110px) scale(.4); transition: transform .55s cubic-bezier(.2, 1.5, .4, 1), opacity .3s; text-shadow: 0 6px 0 rgba(61, 42, 156, .15); }
.nf-digits span:nth-child(2) { color: var(--red); }
.nf-digits span:nth-child(3) { color: var(--pine); }
.nf-stage.open .nf-digits span { opacity: 1; transform: none; }
.nf-stage.open .nf-digits span:nth-child(1) { transition-delay: .15s; transform: rotate(-8deg); }
.nf-stage.open .nf-digits span:nth-child(2) { transition-delay: .25s; transform: translateY(-14px); }
.nf-stage.open .nf-digits span:nth-child(3) { transition-delay: .35s; transform: rotate(8deg); }
.nf-stage.closed .nf-digits span { transition-delay: 0s; }
.nf-confetti { position: absolute; left: 50%; top: 62%; width: 0; height: 0; pointer-events: none; }
.nf-confetti i { position: absolute; width: 9px; height: 14px; border-radius: 2px; animation: nf-fly 1.9s cubic-bezier(.15, .7, .4, 1) forwards; }
@keyframes nf-fly {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  60% { opacity: 1; }
  100% { transform: translate(var(--x), calc(var(--y) + 260px)) rotate(var(--r)); opacity: 0; }
}
.nf-text { margin-top: 1.4rem; display: grid; gap: .8rem; justify-items: center; }
.nf-text h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
.nf-text p { color: var(--muted); max-width: 48ch; }
.nf-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.4rem; text-align: left; }
.nf-opt { background: var(--paper); border-radius: 18px; box-shadow: var(--shadow-card); padding: 1.2rem 1.3rem; display: grid; gap: .35rem; text-decoration: none; color: var(--ink); border-top: 5px solid var(--violet); transition: transform .15s; }
.nf-opt:hover { transform: translateY(-3px); }
.nf-opt.santa { border-top-color: var(--red); }
.nf-opt.blog { border-top-color: var(--pine); }
.nf-opt .ill { width: 40px; height: 40px; }
.nf-opt b { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.nf-opt span { color: var(--muted); font-size: .92rem; }
@media (max-width: 720px) { .nf-options { grid-template-columns: minmax(0, 1fr); } .nf-digits span { font-size: 4rem; } }
@media (prefers-reduced-motion: reduce) { .nf-lid, .nf-digits span { transition: none !important; } }

/* Histoire gauche-droite réglable */
.story-ctrl { display: grid; gap: .5rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px dashed var(--line-strong); }
.story-n { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.story-n input { width: 5rem; text-align: center; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: .45rem; font: inherit; font-size: 1.1rem; font-weight: 700; background: var(--paper); color: var(--ink); }
.story-info { font-size: .9rem; color: var(--pine); margin: 0; }
.story-title { margin: 0 0 .6rem; font-size: 1.15rem; }
.b-story b.g { color: var(--violet); }
.b-story b.d { color: var(--red-deep); }

/* ====================== Listes de cadeaux (accent vert sapin) ====================== */
:root { --pine-deep: #14594a; --band-liste: #e3f4ee; }
.nav a.on.liste { border-bottom-color: var(--pine); }
.btn.pine { background: var(--pine); color: #fff; }
.btn.pine:hover { background: var(--pine-deep); }
.band.liste { background: var(--band-liste); }
.progress .bar i.pine { background: var(--pine); }
.q.pine { color: var(--pine-deep); }
.seg.pine input:checked + span { border-color: var(--pine); background: var(--pine-soft); color: var(--pine-deep); }
.pine-form input:focus, .pine-form textarea:focus, .pine-form select:focus { border-color: var(--pine) !important; box-shadow: 0 0 0 3px var(--pine-soft) !important; }
.pine-form .choice-line input { accent-color: var(--pine); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 .8rem; }
@media (max-width: 560px) { .row3 { grid-template-columns: minmax(0, 1fr); } }
.btns { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.noimg { display: block; width: 100%; height: 100%; min-height: 60px; background: repeating-linear-gradient(45deg, #e7f2ee 0 6px, #f3f9f6 6px 12px); }

/* Accueil des listes */
.l-hero { background: linear-gradient(var(--band-liste), var(--paper)); padding-block: 2.6rem 1.6rem; }
.l-hero-in { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 2rem; align-items: center; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.l-hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); }
.l-hero p { color: var(--muted); margin: .8rem 0 1.2rem; max-width: 52ch; font-size: 1.05rem; }
.l-hero .cta { display: flex; gap: .6rem; flex-wrap: wrap; }
.l-search { display: flex; gap: .5rem; margin-top: 1.2rem; max-width: 480px; }
.l-search input { flex: 1; min-width: 0; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: .6rem 1rem; font: inherit; background: var(--paper); color: var(--ink); }
.l-search input:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px var(--pine-soft); }
.l-art { position: relative; height: 220px; display: grid; place-items: center; }
.l-art svg.big { width: 170px; height: 170px; }
@media (max-width: 760px) { .l-hero-in { grid-template-columns: minmax(0, 1fr); } .l-art { display: none; } }
.l-results { margin-top: 1.5rem; }
.l-results h2 { font-size: 1.3rem; margin-bottom: .8rem; }
.l-res-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.l-res-list a { display: grid; gap: .1rem; border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem 1rem; text-decoration: none; color: var(--ink); }
.l-res-list a:hover { border-color: var(--pine); }
.l-res-list span { color: var(--muted); font-size: .88rem; }
.l-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.l-type { background: var(--paper); border-radius: 16px; box-shadow: var(--shadow-card); padding: 1.1rem 1.2rem; display: grid; gap: .35rem; border-top: 4px solid var(--pine); text-decoration: none; color: var(--ink); transition: transform .15s; }
.l-type:hover { transform: translateY(-2px); }
.l-type b { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; display: flex; gap: .45rem; align-items: center; }
.l-type span { color: var(--muted); font-size: .9rem; }
.l-type .go { color: var(--pine); font-weight: 700; display: inline-flex; gap: .3rem; align-items: center; }
.l-type.t-mariage { border-top-color: var(--gold); }
.l-type.t-naissance { border-top-color: #7fb6e6; }
.l-type.t-anniversaire { border-top-color: var(--red); }
.l-type.t-cremaillere { border-top-color: var(--violet); }
.l-type.t-autre { border-top-color: var(--muted); }
@media (max-width: 760px) { .l-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .l-types { grid-template-columns: minmax(0, 1fr); } }
.l-why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.l-why div { display: grid; gap: .3rem; font-size: .9rem; color: var(--muted); }
.l-why b { color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.l-why svg { color: var(--pine); width: 1.6em; height: 1.6em; }
@media (max-width: 760px) { .l-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Pages par occasion */
.l-seo-hero { background: linear-gradient(var(--band, var(--band-liste)), var(--paper)); padding-block: 2rem 1.8rem; text-align: center; }
.l-seo-hero .b-crumb { text-align: left; }
.l-seo-hero .b-eyebrow { display: inline-flex; gap: .4rem; align-items: center; color: var(--pine-deep); }
.l-seo-hero h1 { font-size: clamp(1.7rem, 4.2vw, 2.4rem); max-width: 24ch; margin: .4rem auto 0; }
.l-seo-hero .b-lead { margin: .8rem auto 1.3rem; }
.l-seo-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2.5rem; margin-top: 2rem; align-items: start; }
.l-side { position: sticky; top: 1rem; background: var(--mist); border-radius: 16px; padding: 1.1rem 1.2rem; display: grid; gap: .55rem; font-size: .92rem; }
.l-side b { font-family: var(--font-display); font-weight: 600; }
.l-side span svg { color: var(--pine); }
.l-side .help a { color: var(--pine-deep); }
@media (max-width: 900px) { .l-seo-body { grid-template-columns: minmax(0, 1fr); } .l-side { position: static; } }

/* Gestion */
.l-h2 { font-size: 1.15rem; margin: 1.8rem 0 .8rem; }
.l-cover-mini { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; }
.l-share { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; background: var(--pine-soft); border-radius: 16px; padding: 1.1rem 1.2rem; margin-bottom: 1.2rem; }
.l-share .title { font-family: var(--font-display); font-weight: 600; }
.l-share .linkbox { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.l-share .linkbox input { flex: 1 1 14rem; min-width: 0; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: .55rem .75rem; font: inherit; font-size: .88rem; background: var(--paper); color: var(--ink); }
.l-qr { display: grid; justify-items: center; gap: .3rem; }
.l-qr canvas { border-radius: 10px; background: #fff; }
@media (max-width: 640px) { .l-share { grid-template-columns: minmax(0, 1fr); } }
.l-add { border: 1.5px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; display: grid; gap: .8rem; }
.l-tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.l-tabs button { display: inline-flex; gap: .35rem; align-items: center; padding: .45rem .95rem; border-radius: 999px; font: inherit; font-size: .88rem; border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--ink); cursor: pointer; }
.l-tabs button[aria-selected="true"] { background: var(--pine); color: #fff; border-color: var(--pine); font-weight: 700; }
.l-linkrow { display: flex; gap: .5rem; flex-wrap: wrap; }
.l-linkrow input { flex: 1 1 18rem; min-width: 0; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: .65rem .85rem; font: inherit; background: var(--paper); color: var(--ink); }
.l-linkrow input:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px var(--pine-soft); }
.l-form { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1rem; background: var(--mist); border-radius: 14px; padding: 1rem; }
.l-form[data-mode="manual"], .l-form[data-mode="edit"] { grid-template-columns: minmax(0, 1fr); }
.l-form[data-mode="edit"] .l-form-img { display: none; }
.l-form-img { width: 120px; height: 120px; border-radius: 12px; overflow: hidden; background: var(--paper); }
.l-form-img img { width: 100%; height: 100%; object-fit: cover; }
.l-form .field { margin-bottom: .7rem; }
.l-form .field input, .l-form .field select { min-height: 2.5rem; padding: .45rem .7rem; font-size: .95rem; }
@media (max-width: 560px) { .l-form { grid-template-columns: minmax(0, 1fr); } }
.l-ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem; }
.l-idea { border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; grid-template-rows: 120px 1fr auto; font-size: .82rem; }
.l-idea img, .l-idea .noimg { width: 100%; height: 120px; object-fit: cover; }
.l-idea div { padding: .5rem .6rem 0; display: grid; gap: .2rem; }
.l-idea b { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.l-idea span { color: var(--pine-deep); font-weight: 700; }
.l-idea .btn { margin: .5rem .6rem .6rem; }
.l-items { display: grid; gap: .5rem; }
.l-cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-top: .8rem; }
.l-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: .8rem; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: .5rem .7rem; }
.l-row.editing { grid-template-columns: minmax(0, 1fr); border-color: var(--pine); }
.l-row .thumb { width: 56px; height: 56px; border-radius: 9px; overflow: hidden; }
.l-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.l-row .txt { min-width: 0; display: grid; gap: .15rem; }
.l-row .txt b { overflow-wrap: anywhere; }
.l-row small { color: var(--muted); font-size: .8rem; }
.l-row .heart { color: var(--red); }
.l-row .acts { display: flex; gap: .1rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.l-row .acts .iconbtn { font-size: 1rem; font-weight: 700; }
.l-confirm { font-size: .85rem; margin-right: .4rem; }
@media (max-width: 560px) { .l-row { grid-template-columns: 56px minmax(0, 1fr); } .l-row .acts { grid-column: 1 / -1; } }
.l-surprise { display: flex; gap: .5rem; align-items: flex-start; background: var(--mist); border-radius: 12px; padding: .8rem 1rem; }

/* Page des invités */
.g-cover { height: 240px; background: linear-gradient(135deg, #f6e7c8 0%, #f0d9a8 40%, #e3f4ee 100%) center / cover no-repeat; }
.g-head { text-align: center; margin-top: -54px; position: relative; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.g-badge { width: 100px; height: 100px; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow-card); display: grid; place-items: center; margin: 0 auto .7rem; }
.g-badge svg { width: 60px; height: 60px; }
.g-head h1 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); margin-top: .2rem; }
.g-head .date { color: var(--muted); margin-top: .35rem; }
.g-head .msg { max-width: 56ch; margin: .9rem auto 0; color: #3b3656; }
.g-bar { display: grid; gap: .5rem; margin: 1.8rem 0 1.2rem; }
.g-filters { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; }
.chip-l { border: 1.5px solid var(--line-strong); border-radius: 999px; padding: .4rem .9rem; font: inherit; font-size: .88rem; background: var(--paper); color: var(--ink); cursor: pointer; }
.chip-l.on { border-color: var(--pine); background: var(--pine-soft); color: var(--pine-deep); font-weight: 700; }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.l-item { background: var(--paper); border-radius: 18px; box-shadow: var(--shadow-card); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.l-item .pic { position: relative; aspect-ratio: 1; max-width: 100%; background: var(--mist); }
.l-item .pic img, .l-item .pic .noimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.l-item .fav { position: absolute; left: .6rem; top: .6rem; background: var(--paper); color: var(--red); font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .2rem .55rem; }
.l-item .body { padding: .9rem 1rem 1.1rem; display: grid; gap: .4rem; align-content: start; }
.l-item .title { font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.3; }
.l-item .shop { color: var(--muted); font-size: .8rem; }
.l-item .price { font-family: var(--font-display); font-weight: 600; color: var(--pine-deep); }
.l-item .need { font-size: .82rem; color: var(--muted); display: inline-flex; gap: .3rem; align-items: center; }
.l-item .need.ok { color: var(--pine); font-weight: 700; }
.l-item .note { font-size: .82rem; background: var(--mist); border-radius: 8px; padding: .3rem .55rem; }
.l-item .bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.l-item .bar i { display: block; height: 100%; background: var(--pine); }
.l-item.done { opacity: .55; }
.g-foot { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 2rem; }
.l-modal { position: fixed; inset: 0; background: rgba(31, 27, 58, .5); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); z-index: 30; overflow-y: auto; }
.l-modal-in { background: var(--paper); border-radius: 20px; width: 100%; max-width: 480px; padding: 1.4rem; display: grid; gap: .7rem; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.l-modal-in h3 { font-size: 1.15rem; display: flex; gap: .45rem; align-items: center; }
.l-modal-in h3 svg { color: var(--pine); }
.l-modal-in .field { margin-bottom: .3rem; }
.l-modal-in .alert { margin: 0; }
@media (max-width: 560px) {
  .g-grid { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .l-item { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: none; }
  .l-item .pic { aspect-ratio: auto; height: 100%; min-height: 112px; }
  .l-item .body { padding: .7rem .8rem .8rem; }
  .l-item .fav { font-size: .68rem; left: .35rem; top: .35rem; }
  .g-cover { height: 170px; }
}
/* Accueil : boutons des trois blocs alignés */
.door .body { display: flex; flex-direction: column; }
.door .body ul { flex: 1; }
