/* ===== Secret Santa — thème ===== */
:root {
  --bg: #f4eee2;
  --paper: #fffdf8;
  --ink: #1f2b25;
  --ink-soft: #5a5f58;
  --line: #e7dcc7;
  --green: #1d4d3a;
  --green-dark: #143829;
  --red: #b3262d;
  --red-dark: #921d23;
  --gold: #c9a24a;
  --cream: #f6efe0;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(31, 43, 37, .05), 0 8px 24px -12px rgba(31, 43, 37, .18);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--green); margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); letter-spacing: -.01em; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.08rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }
code { background: var(--cream); padding: .1em .35em; border-radius: 6px; font-size: .9em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-soft); }
.small { font-size: .85rem; font-weight: 400; font-family: var(--sans); }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px; }
.main { flex: 1; padding-top: 28px; padding-bottom: 40px; position: relative; z-index: 1; }

/* Neige */
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

/* En-tête */
.site-header {
  background: var(--green);
  color: #f6e7b8;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 0 var(--gold);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { color: #f6e7b8; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.brand:hover { color: #fff; }
.brand-mark { display: inline-block; color: var(--gold); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: #e9f0eb; text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .95rem; font-weight: 500;
}
.nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav a.is-active { background: rgba(255, 255, 255, .16); color: #fff; }
.nav a.nav-muted { opacity: .75; }

.site-footer { padding: 24px 20px 32px; text-align: center; color: var(--ink-soft); font-size: .85rem; position: relative; z-index: 1; }
.site-footer a { color: inherit; }

/* Hero */
.hero { text-align: center; padding: 28px 0 32px; }
.hero-compact { text-align: left; padding: 8px 0 20px; position: relative; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--red); margin-bottom: .5em; }
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 60ch; }
.hero .lead { margin: 0 auto 1em; }
.hero-compact .lead { margin-left: 0; }
.countdown { display: inline-block; background: var(--paper); border: 1px solid var(--line); padding: 8px 18px; border-radius: 999px; }
.countdown strong { color: var(--red); font-family: var(--serif); font-size: 1.3em; }

.facts { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.fact { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; display: flex; flex-direction: column; min-width: 140px; }
.fact-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.fact-value { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--green); }
.organizer-note { background: var(--cream); border-left: 4px solid var(--gold); border-radius: 10px; padding: 12px 16px; max-width: 70ch; }

/* Cartes */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}
.card > :last-child { margin-bottom: 0; }
.card.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.card-accent { border-top: 4px solid var(--red); }
.card-danger { border-color: #ecc9c9; }
.card-waiting { text-align: center; padding: 36px 24px; }
.big-emoji { font-size: 3rem; line-height: 1; margin-bottom: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 0; }
.grid-2 > .card { margin-bottom: 20px; }
.grid-wish { grid-template-columns: 3fr 2fr; }
@media (max-width: 760px) { .grid-wish { grid-template-columns: 1fr; } }
.empty { color: var(--ink-soft); font-style: italic; }

/* Formulaires */
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack > .btn { align-self: flex-start; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .95rem; }
input, textarea, select {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #d9ccb2; border-radius: 10px; padding: 10px 12px; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(201, 162, 74, .35); border-color: var(--gold); }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; margin-bottom: 8px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }
.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.check input { width: auto; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline-form input[type="email"], .inline-form input:not([type]) { flex: 1 1 220px; width: auto; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .08s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-secondary { background: var(--green); color: #fff; }
.btn-secondary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--line); }
.btn-ghost:hover { background: var(--cream); color: var(--green); }
.btn-danger-text { color: var(--red); }
.btn-small { padding: 6px 12px; font-size: .85rem; }
.btn-big { padding: 14px 28px; font-size: 1.1rem; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.actions .check { margin-right: auto; }
.wrap-actions form { margin: 0; }
.badge { display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--gold); color: var(--green-dark); font-size: .75rem; font-weight: 700; text-align: center; }

/* Messages flash */
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; border: 1px solid; }
.flash-success { background: #e8f3ec; border-color: #b9dcc6; color: #154a30; }
.flash-error { background: #fbeaea; border-color: #eec1c1; color: #7d1a1f; }
.flash-info { background: #fdf6e3; border-color: #ecdcae; color: #5c4812; }

/* Révélation */
.card-reveal { text-align: center; padding: 40px 24px; background: linear-gradient(180deg, var(--paper), var(--cream)); }
.reveal-form { display: flex; flex-direction: column; align-items: center; }
.gift-box { position: relative; width: 120px; height: 120px; border: 0; background: none; cursor: pointer; margin-bottom: 20px; animation: wiggle 2.4s ease-in-out infinite; }
.gift-body { position: absolute; left: 10px; right: 10px; bottom: 0; height: 78px; background: var(--red); border-radius: 8px; }
.gift-lid { position: absolute; left: 2px; right: 2px; top: 22px; height: 26px; background: var(--red-dark); border-radius: 6px; z-index: 2; transition: transform .4s ease; }
.gift-ribbon { position: absolute; left: 50%; top: 22px; bottom: 0; width: 18px; margin-left: -9px; background: var(--gold); z-index: 3; }
.gift-ribbon::before, .gift-ribbon::after { content: ""; position: absolute; top: -20px; width: 28px; height: 22px; border: 6px solid var(--gold); border-radius: 50% 50% 0 50%; }
.gift-ribbon::before { right: 8px; transform: rotate(-10deg); }
.gift-ribbon::after { left: 8px; border-radius: 50% 50% 50% 0; transform: rotate(10deg); }
.gift-box:hover .gift-lid, .gift-box.is-opening .gift-lid { transform: translateY(-14px) rotate(-8deg); }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-6deg); } 90% { transform: rotate(6deg); } 95% { transform: rotate(-3deg); } }

.card-giftee { border-top: 4px solid var(--gold); }
.giftee-name { font-size: clamp(2.2rem, 7vw, 3.4rem); color: var(--red); margin-bottom: .1em; }
.just-revealed .giftee-name { animation: pop .8s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.about-box { background: var(--cream); border-radius: 12px; padding: 4px 16px 12px; margin-top: 16px; }
.about-box h3 { margin-top: 12px; }
.about-box p { margin: 0; }

/* Liste de souhaits */
.wish-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.wish { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; border-left: 4px solid var(--line); }
.wish.prio-1 { border-left-color: var(--red); }
.wish.prio-2 { border-left-color: var(--gold); }
.wish.prio-3 { border-left-color: #9db8a8; }
.wish.is-editing { outline: 3px solid rgba(201, 162, 74, .4); }
.wish-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wish-prio { color: var(--gold); font-size: .85rem; letter-spacing: 1px; }
.wish-price { margin-left: auto; color: var(--ink-soft); font-size: .9rem; background: var(--cream); padding: 1px 10px; border-radius: 999px; }
.wish-notes { margin: 6px 0 0; color: var(--ink-soft); font-size: .95rem; }
.wish-link { display: inline-block; margin-top: 6px; font-size: .9rem; font-weight: 500; }
.wish-actions { display: flex; gap: 6px; margin-top: 10px; }
.wish-actions form { margin: 0; }

.status-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { flex-direction: row; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 500; background: #fff; }
.chip input { width: auto; accent-color: var(--red); }
.chip:has(input:checked) { background: var(--green); color: #fff; border-color: var(--green); }

/* Participants */
.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.people li { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.people li.is-me { border-color: var(--gold); background: #fffaf0; }
.avatar { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #f6e7b8; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; }
.people li:nth-child(3n+2) .avatar { background: var(--red); color: #fff; }
.people li:nth-child(3n+3) .avatar { background: var(--gold); color: var(--green-dark); }
.person-name { font-weight: 600; }
.person-meta { font-size: .82rem; }

.pairs { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.pairs li { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 8px 14px; background: var(--cream); border-radius: 10px; }
.pairs li span:last-child { text-align: right; font-weight: 600; }
.pairs .arrow { font-size: .9rem; }

/* Messagerie */
.chat-thread { display: flex; flex-direction: column; gap: 12px; max-height: 60vh; overflow-y: auto; padding: 4px 4px 12px; }
.bubble { max-width: 80%; padding: 10px 14px; border-radius: 16px; }
.bubble-mine { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 4px; }
.bubble-mine a { color: #f6e7b8; }
.bubble-theirs { align-self: flex-start; background: var(--cream); border-bottom-left-radius: 4px; }
.bubble-author { font-size: .75rem; opacity: .75; margin-bottom: 2px; }
.chat-form { display: flex; gap: 10px; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }
.chat-form textarea { flex: 1; }
@media (max-width: 520px) { .chat-form { flex-direction: column; align-items: stretch; } .bubble { max-width: 92%; } }

/* Admin */
.admin-logout { position: absolute; top: 8px; right: 0; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 20px; }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--ink-soft); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a:hover { color: var(--green); }
.tabs a.is-active { color: var(--green); border-bottom-color: var(--red); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; }
.stat-value { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--green); line-height: 1.1; }
.stat-label { font-size: .85rem; color: var(--ink-soft); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.admin-people { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.admin-people li { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; }
.admin-person-form { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; align-items: center; }
@media (max-width: 640px) { .admin-person-form { grid-template-columns: 1fr; } }
.admin-person-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.admin-person-actions form { margin: 0; }
.link-details summary { cursor: pointer; font-size: .85rem; color: var(--ink-soft); padding: 6px 8px; }
.link-details input { font-size: .8rem; margin-top: 4px; }
.link-details p { margin: 4px 0; }
.history-block { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.history-block summary { cursor: pointer; }
.history-block .pairs { margin-top: 12px; }

.matrix { border-collapse: collapse; margin: 8px 0; }
.matrix th, .matrix td { border: 1px solid var(--line); text-align: center; padding: 6px; }
.matrix td { width: 40px; height: 40px; }
.matrix input { width: 20px; height: 20px; accent-color: var(--red); cursor: pointer; }
.matrix .row-head { text-align: right; padding-right: 10px; white-space: nowrap; font-weight: 600; background: var(--cream); }
.matrix .col-head { height: 110px; vertical-align: bottom; background: var(--cream); }
.matrix .col-head span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-weight: 600; }
.matrix .corner { font-size: .75rem; color: var(--ink-soft); font-weight: 400; background: transparent; border: 0; }
.matrix .self { color: #c8bfae; }
.matrix tr:hover td, .matrix tr:hover .row-head { background: #fff6e2; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Sécurité / divers */
.input-short { max-width: 120px; }
.inline-form input[type="password"] { flex: 1 1 220px; width: auto; }
.checklist { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.checklist li { padding: 8px 12px; border-radius: 10px; background: var(--cream); }
.checklist li.is-ko { background: #fdf6e3; }

/* Onglet Tirage */
.draw-table td { vertical-align: middle; }
.draw-table tr.has-issue td { background: #fdf3f3; }
.draw-table .issue { color: var(--red); font-size: .82rem; font-weight: 600; }
.swap-form { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.swap-form select { width: auto; min-width: 120px; padding: 6px 8px; }
.swap-form .check { font-size: .82rem; }

/* Rôles et comptes admin */
.admin-who { margin: -6px 0 0; }
.role-badge { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .03em; vertical-align: middle; }
.role-super { background: var(--red); color: #fff; }
.role-admin { background: var(--green); color: #fff; }
.role-off { background: #d8d2c4; color: var(--ink); }
.admin-accounts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.admin-accounts > li { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.admin-accounts > li.is-inactive { opacity: .7; background: #faf7f0; }
.account-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.account-head .muted { margin-left: auto; }
.account-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.account-tools form { margin: 0; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px 16px; }
.perm-grid .check { font-size: .92rem; align-items: flex-start; }
.perm-grid .check input { margin-top: 4px; }

/* ===== Accueil festif ===== */

/* Guirlande lumineuse */
.garland {
  position: relative; display: flex; justify-content: space-between; overflow: hidden;
  height: 44px; margin: -28px 0 6px; padding: 0 6px;
}
.garland::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: #3d4a40; }
.garland span {
  --c: #e0454c; --drop: 12px;
  position: relative; flex: 0 0 auto; width: 12px; height: 18px; margin-top: var(--drop);
  border-radius: 50% 50% 50% 50% / 60% 60% 42% 42%;
  background: var(--c); box-shadow: 0 0 10px 2px var(--c);
  animation: twinkle 2.4s ease-in-out infinite;
}
.garland span::before { content: ""; position: absolute; top: -5px; left: 3px; width: 6px; height: 6px; border-radius: 2px; background: #3d4a40; }
.garland span::after { content: ""; position: absolute; bottom: calc(100% + 5px); left: 50%; width: 1.5px; height: calc(var(--drop) - 5px); background: #3d4a40; }
.garland span:nth-child(4n+1) { --c: #e0454c; }
.garland span:nth-child(4n+2) { --c: #f2c94c; animation-delay: .6s; }
.garland span:nth-child(4n+3) { --c: #3fae6e; animation-delay: 1.2s; }
.garland span:nth-child(4n+4) { --c: #4d9bd1; animation-delay: 1.8s; }
.garland span:nth-child(3n+2) { --drop: 18px; }
.garland span:nth-child(3n) { --drop: 8px; }
.garland span:nth-child(n+15) { display: none; }
@media (min-width: 560px) { .garland span:nth-child(n+15) { display: block; } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; box-shadow: 0 0 2px 0 var(--c); } }

/* Bandeau principal */
.hero-festive {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; align-items: center;
  padding: 36px 36px 28px; margin-bottom: 28px; border-radius: 24px;
  color: #f3efe2;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .5) 0 1.5px, transparent 2px),
    radial-gradient(circle at 46% 9%, rgba(255, 255, 255, .45) 0 1.5px, transparent 2px),
    radial-gradient(circle at 58% 86%, rgba(255, 255, 255, .35) 0 1.5px, transparent 2px),
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, .3) 0 1px, transparent 1.5px),
    radial-gradient(ellipse at 80% 40%, #2a6b4d 0%, transparent 60%),
    linear-gradient(160deg, #1d4d3a 0%, #143829 100%);
  box-shadow: 0 18px 40px -22px rgba(20, 56, 41, .7), inset 0 0 0 1px rgba(242, 201, 76, .25);
}
.hero-festive .eyebrow { color: #f2c94c; }
.hero-festive h1 { color: #f6e7b8; font-size: clamp(2rem, 5.5vw, 3.2rem); margin-bottom: .4em; }
.hero-festive .lead { color: rgba(243, 239, 226, .88); margin: 0 0 1.4em; }
.hero-tree { width: 100%; max-width: 330px; height: auto; justify-self: center; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .25)); }
.tree-star { transform-box: fill-box; transform-origin: center; animation: star-glow 3s ease-in-out infinite; }
@keyframes star-glow { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.12) rotate(8deg); } }
.bauble { animation: twinkle-soft 3s ease-in-out infinite; }
.bauble:nth-child(2n) { animation-delay: 1s; }
.bauble:nth-child(3n) { animation-delay: 2s; }
@keyframes twinkle-soft { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.sky-star { animation: twinkle-soft 2.2s ease-in-out infinite; }
.sky-star:nth-child(2n) { animation-delay: 1.1s; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-fact {
  display: flex; flex-direction: column; justify-content: center; min-width: 120px;
  padding: 10px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
}
.hero-fact-label { font-size: .78rem; color: rgba(243, 239, 226, .75); }
.hero-fact-value { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: #fff; }
.hero-fact-count { background: var(--red); border-color: rgba(255, 255, 255, .25); flex-direction: row; align-items: center; gap: 10px; }
.hero-fact-big { font-family: var(--serif); font-weight: 700; font-size: 2.2rem; line-height: 1; color: #fff; }
.hero-fact-count .hero-fact-label { color: #fff; font-weight: 600; max-width: 9em; line-height: 1.25; }

@media (max-width: 760px) {
  .hero-festive { grid-template-columns: 1fr; padding: 28px 22px 22px; text-align: center; }
  .hero-festive .lead { margin-left: auto; margin-right: auto; }
  .hero-facts { justify-content: center; }
  .hero-tree { order: -1; max-width: 210px; margin-bottom: -6px; }
}

/* Comment ça marche */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.step {
  position: relative; text-align: center; padding: 26px 18px 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.step:hover { transform: translateY(-3px) rotate(-.5deg); }
.step h3 { margin: 0 0 .4em; font-size: 1.05rem; }
.step p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.step-icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 12px;
  border-radius: 50%; font-size: 1.9rem; background: var(--cream); box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--line);
}
.step-num {
  position: absolute; top: 12px; left: 12px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: #fff; background: var(--red);
}
.step:nth-child(2n) .step-num { background: var(--green); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) {
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .step { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; text-align: left; padding: 14px 16px; align-items: center; }
  .step-icon { grid-row: span 2; width: 52px; height: 52px; font-size: 1.5rem; margin: 0; }
  .step-num { top: 8px; left: 8px; width: 20px; height: 20px; font-size: .7rem; }
  .step h3 { margin: 0; }
}

/* Carte sucre d'orge */
.card-candy { position: relative; overflow: hidden; padding-top: 34px; }
.card-candy::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 12px, #fff 12px 24px);
}

/* Vignettes des idées */
.wish.has-image { display: grid; grid-template-columns: 80px 1fr; column-gap: 14px; align-items: start; }
.wish.has-image > :not(.wish-thumb) { grid-column: 2; }
.wish-thumb {
  grid-column: 1; grid-row: 1 / span 8; display: grid; place-items: center;
  width: 80px; height: 80px; border-radius: 10px; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
}
.wish-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wish-thumb-pending { font-size: 1.6rem; color: var(--ink-soft); background: var(--cream); animation: twinkle-soft 1.4s ease-in-out infinite; }
.wish-noimage { margin: 6px 0 0; }
.field-hint { display: block; font-size: .8rem; font-weight: 400; color: var(--ink-soft); margin-top: 4px; }
.image-source { border: 1px dashed var(--line); border-radius: 10px; padding: 8px 12px; }
.image-source summary { cursor: pointer; font-size: .9rem; color: var(--ink-soft); }
.image-source[open] summary { margin-bottom: 8px; }
@media (max-width: 460px) {
  .wish.has-image { grid-template-columns: 60px 1fr; column-gap: 10px; }
  .wish-thumb { width: 60px; height: 60px; }
}

/* ---------- Multi-groupes / organisateur ---------- */
.role-orga { background: #f2c94c; color: var(--ink); }
.verify-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
form.inline { display: inline-flex; margin: 0; }
.groups-table td { vertical-align: middle; }
.groups-table tr.is-current td { background: var(--cream); }
.groups-table .muted.small { white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.home-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.home-cta .btn-light { background: #fffdf8; color: var(--red); }
.home-cta .btn-light:hover { background: #fff; }
.btn-ghost-light { background: transparent; color: #fffdf8; border: 1.5px solid rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.home-create { text-align: center; }
