/* Calendrier de l'Avent — partage de la carte bonus, tours de roue, roue des cadeaux, page du visiteur (lot F2).
   Rouge profond et or ; l'or ne sert jamais de couleur de texte (filets, anneaux, étoiles seulement).
   Palette unique : les valeurs vivent dans css/avent.css (--noel-*) ; les noms --roue-* n'en sont que des alias (replis pour c.html, qui ne charge pas avent.css). */
:root {
  --roue-red: var(--noel-red, #B3121F); --roue-red-hi: var(--noel-bright, #D01F2E); --roue-deep: var(--noel-deep, #8C0E19); --roue-night: var(--noel-dark, #5E0811);
  --roue-gold: var(--noel-gold, #E8B84A); --roue-gold-hi: var(--noel-gold-hi, #F6D88A); --roue-gold-lo: var(--noel-gold-lo, #B8892A); --roue-cream: var(--noel-cream, #FFF8EC); --roue-ink: var(--noel-ink, #5E0811);
}

/* Boutons : .btn.avent-btn, .btn.avent-cta, .btn.ghost.avent-ghost-light (css/avent.css, lot F1). */
.noel-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; font-family: var(--font-title); font-weight: 800; font-size: .95rem; letter-spacing: .02em; color: var(--roue-deep); }
.noel-eyebrow::before { content: "★"; color: var(--roue-gold-lo); font-size: 1.05rem; }

/* Ruban rouge et or (haut des blocs) */
.ruban { height: 14px; margin: -18px -18px 16px; border-radius: var(--radius) var(--radius) 0 0;
  background: repeating-linear-gradient(-45deg, var(--roue-red) 0 14px, var(--roue-deep) 14px 18px, var(--roue-gold) 18px 22px, var(--roue-deep) 22px 26px); }

/* --- Bloc « Faire passer la carte bonus » (écran de fin) --- */
.share-card { position: relative; background: var(--roue-cream); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; box-shadow: 0 10px 28px rgba(126, 13, 22, .16), inset 0 0 0 2px rgba(232, 184, 74, .55); overflow: hidden; animation: roue-rise .6s cubic-bezier(.2, .8, .2, 1) .2s both; }
.share-card h2 { color: var(--roue-ink); font-size: 1.35rem; }
.share-card p { color: var(--roue-ink); }
.share-dots { display: flex; gap: 10px; align-items: center; margin: 4px 0 10px; }
.share-dots i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 1.15rem; background: #fff; color: var(--roue-deep); box-shadow: inset 0 0 0 2px rgba(126, 13, 22, .35); }
.share-dots i.on { background: var(--roue-red); color: #fff; box-shadow: inset 0 0 0 3px var(--roue-gold); animation: roue-pop .5s cubic-bezier(.2, 1.5, .3, 1) both; }
.share-dots span { margin-left: 4px; font-weight: 700; color: var(--roue-ink); }
.share-status { font-weight: 600; min-height: 1.4em; }
.share-note { margin: 12px 0 0; font-size: .95rem; color: #5A2A2E !important; }
.share-note b { color: var(--roue-deep); }
.share-dialog textarea { width: 100%; min-height: 150px; padding: 12px; border: 2px solid var(--line); border-radius: 14px; font: inherit; font-size: 1rem; color: var(--ink); resize: vertical; margin: 6px 0 12px; }
.share-dialog .btn + .btn { margin-top: 10px; }
:root[data-contrast="high"] .share-card { box-shadow: none; border: 2px solid #000; }

/* --- Carte d'accueil « Vos tours de roue » --- */
.spins-card { position: relative; overflow: hidden; color: #fff; border-radius: var(--radius-lg); padding: 20px 130px 20px 20px; margin: 0 0 16px; min-height: 170px;
  background: radial-gradient(120% 140% at 100% 0, var(--roue-red-hi) 0, var(--roue-red) 40%, var(--roue-deep) 100%);
  box-shadow: inset 0 0 0 3px var(--roue-gold), inset 0 0 0 6px var(--roue-deep), inset 0 0 0 7px rgba(232, 184, 74, .6), 0 18px 34px rgba(126, 13, 22, .3); animation: roue-rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.spins-card .eyebrow { margin: 0 0 4px; font-family: var(--font-title); font-weight: 800; font-size: .95rem; color: #FFE9EA; }
.spins-card .eyebrow::before { content: "★ "; color: var(--roue-gold); }
.spins-card h2 { color: #fff; font-size: 1.45rem; margin: 0 0 6px; }
.spins-card p { margin: 0 0 14px; color: #FFF1F1; }
.spins-card .btn { min-height: 56px; margin-top: 0; }
.spins-mini { position: absolute; right: -34px; top: 50%; width: 150px; height: 150px; margin-top: -75px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--roue-red) 0 15%, var(--roue-gold) 15% 19%, transparent 19%), repeating-conic-gradient(var(--roue-cream) 0 30deg, var(--roue-red-hi) 30deg 60deg);
  box-shadow: 0 0 0 6px var(--roue-gold), 0 0 0 9px var(--roue-deep), 0 10px 24px rgba(0, 0, 0, .35); animation: roue-turn 14s linear infinite; }
:root[data-contrast="high"] .spins-card { background: var(--roue-deep); box-shadow: inset 0 0 0 3px #000; }

/* --- Écran de la roue --- */
.roue-head { text-align: center; margin: 6px 2px 10px; }
.roue-head h1 { color: var(--roue-ink); margin-bottom: 4px; }
.roue-head .noel-eyebrow { justify-content: center; }
.roue-head p.muted { margin: 0 auto; max-width: 30em; }
.roue-stage { position: relative; border-radius: var(--radius-lg); padding: 30px 12px 26px; margin-bottom: 14px; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #A3121D 0, var(--roue-deep) 52%, var(--roue-night) 100%);
  box-shadow: inset 0 0 0 3px var(--roue-gold), inset 0 0 0 7px var(--roue-night), inset 0 0 0 8px rgba(232, 184, 74, .55), 0 18px 34px rgba(74, 7, 13, .35); }
.roue-stage::before, .roue-stage::after { position: absolute; color: var(--roue-gold); opacity: .55; font-size: 1.1rem; pointer-events: none; letter-spacing: 2.2em; white-space: nowrap; }
.roue-stage::before { content: "✦ ★ ✦"; top: 12px; left: 18px; }
.roue-stage::after { content: "✦ ★ ✦"; bottom: 10px; right: -10px; }
.roue-wrap { --size: min(80vw, 400px); position: relative; width: var(--size); height: var(--size); margin: 0 auto; border-radius: 50%; touch-action: manipulation;
  background: radial-gradient(circle, transparent 0 calc(50% - 7.6%), var(--roue-gold-lo) calc(50% - 7.6%) calc(50% - 6.6%), transparent calc(50% - 6.6%)),
    conic-gradient(from 20deg, var(--roue-gold-hi), var(--roue-gold), var(--roue-gold-lo), var(--roue-gold), var(--roue-gold-hi), var(--roue-gold), var(--roue-gold-lo), var(--roue-gold), var(--roue-gold-hi));
  box-shadow: 0 0 0 3px var(--roue-night), 0 14px 30px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(255, 255, 255, .35); }
.roue-disc { position: absolute; inset: 6.5%; width: 87%; height: 87%; border-radius: 50%; will-change: transform; box-shadow: 0 0 0 2px var(--roue-gold-lo), 0 0 18px rgba(0, 0, 0, .35) inset; cursor: pointer; }
.roue-lights i { position: absolute; width: 3.4%; height: 3.4%; margin: -1.7% 0 0 -1.7%; border-radius: 50%; background: #FFF3C8; box-shadow: 0 0 0 1.5px var(--roue-gold-lo), 0 0 8px 2px rgba(255, 230, 150, .85); animation: roue-blink 2.4s ease-in-out infinite; animation-delay: calc(var(--k) * -.2s); }
.roue-wrap.spinning .roue-lights i { animation: roue-chase .36s steps(1) infinite; animation-delay: calc(var(--k) * -.06s); }
.roue-wrap.won .roue-lights i { animation: roue-chase .22s steps(1) infinite; animation-delay: calc(var(--k) * -.11s); }
.roue-pointer { position: absolute; left: 50%; top: -4%; width: 13%; height: 16%; margin-left: -6.5%; z-index: 3; transform-origin: 50% 22%; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .45)); pointer-events: none; }
.roue-pointer::before, .roue-pointer::after { content: ""; position: absolute; clip-path: polygon(0 0, 100% 0, 100% 38%, 50% 100%, 0 38%); }
.roue-pointer::before { inset: 0; background: linear-gradient(180deg, var(--roue-gold-hi), var(--roue-gold) 50%, var(--roue-gold-lo)); }
.roue-pointer::after { inset: 13% 18% 22%; background: linear-gradient(180deg, var(--roue-red-hi), var(--roue-red)); }
.roue-hub { position: absolute; left: 50%; top: 50%; width: 27%; height: 27%; min-width: 72px; min-height: 72px; transform: translate(-50%, -50%); z-index: 2; border: 0; border-radius: 50%; cursor: pointer; padding: 0;
  font-family: var(--font-title); font-weight: 900; font-size: clamp(.95rem, 4vw, 1.25rem); color: #fff; letter-spacing: .01em;
  background: radial-gradient(circle at 35% 30%, var(--roue-red-hi), var(--roue-red) 55%, var(--roue-deep));
  box-shadow: 0 0 0 5px var(--roue-gold), 0 0 0 8px var(--roue-deep), 0 8px 16px rgba(0, 0, 0, .45), inset 0 3px 0 rgba(255, 255, 255, .25); transition: transform .12s ease; }
.roue-hub:not(:disabled):hover { transform: translate(-50%, -50%) scale(1.04); }
.roue-hub:active:not(:disabled) { transform: translate(-50%, -50%) scale(.95); }
.roue-hub:disabled { cursor: default; }
.roue-hub:not(:disabled) span { animation: roue-breathe 2.2s ease-in-out infinite; display: inline-block; }
.roue-hub:focus-visible { outline: 4px solid #fff; outline-offset: 6px; }
.roue-wrap.won { animation: roue-bump .6s cubic-bezier(.2, 1.4, .3, 1); }

.roue-live:empty { display: none; }
.roue-result { background: var(--roue-cream); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; box-shadow: inset 0 0 0 2px rgba(232, 184, 74, .7), 0 10px 24px rgba(126, 13, 22, .15); animation: roue-rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.roue-result h2 { color: var(--roue-ink); margin: 0 0 4px; font-size: 1.3rem; }
.roue-result p { margin: 0; color: var(--roue-ink); }
.roue-medal { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-title); font-weight: 900; font-size: 1.7rem; color: #fff; background: radial-gradient(circle at 35% 30%, var(--roue-red-hi), var(--roue-red) 60%, var(--roue-deep)); box-shadow: 0 0 0 4px var(--roue-gold), 0 0 0 6px var(--roue-deep); animation: roue-pop .6s cubic-bezier(.2, 1.5, .3, 1) .1s both; }
.roue-ctrl { margin-bottom: 14px; }
.roue-count { text-align: center; font-size: 1.1rem; margin: 0 0 10px; color: var(--roue-ink); }
.roue-count b { font-family: var(--font-title); font-size: 1.6rem; color: var(--roue-red); }
.roue-none { background: var(--paper); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.roue-none p:first-child { font-family: var(--font-title); font-weight: 800; font-size: 1.15rem; color: var(--roue-ink); }
.roue-mention { text-align: center; font-size: 1rem; color: var(--ink); margin: 0 0 14px; }
.roue-mention b { color: var(--roue-deep); }
.roue-reg { background: var(--roue-cream); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; box-shadow: inset 0 0 0 2px rgba(232, 184, 74, .7); }
.roue-reg p:first-child { font-family: var(--font-title); font-weight: 800; font-size: 1.1rem; color: var(--roue-ink); }
.roue-hist summary { cursor: pointer; font-family: var(--font-title); font-weight: 800; color: var(--roue-ink); min-height: 44px; display: flex; align-items: center; }
.roue-hist ul { list-style: none; margin: 8px 0 0; padding: 0; }
.roue-hist li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.roue-hist time { color: var(--muted); white-space: nowrap; font-size: .95rem; }

/* Lot gagné (fenêtre superposée) */
.roue-win { margin: -26px -22px 0; max-height: calc(100dvh - 66px); overflow-y: auto; overscroll-behavior: contain; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.overlay .box .roue-win img { max-height: 120px; }
.roue-win-band { margin: 0 0 12px; height: 18px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: repeating-linear-gradient(-45deg, var(--roue-red) 0 14px, var(--roue-deep) 14px 18px, var(--roue-gold) 18px 22px, var(--roue-deep) 22px 26px); }
.roue-win-body { padding: 0 22px 4px; }
.roue-win .noel-eyebrow { justify-content: center; }
.roue-win h2 { color: var(--roue-red); font-size: 1.8rem; margin-bottom: 6px; }
.roue-prize { font-family: var(--font-title); font-weight: 800; font-size: 1.3rem; color: var(--roue-ink); background: var(--roue-cream); border-radius: 16px; padding: 12px 14px; box-shadow: inset 0 0 0 2px var(--roue-gold); margin: 0 0 10px; }
.roue-reveal { color: var(--roue-ink); }
.roue-pickup { text-align: left; color: var(--ink); margin: 10px 0 12px; }
.roue-steps { text-align: left; margin: 10px 0 12px; padding: 0; list-style: none; counter-reset: s; }
.roue-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; margin-bottom: 10px; color: var(--ink); }
.roue-steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--roue-red); color: #fff; font-family: var(--font-title); font-weight: 900; box-shadow: 0 0 0 2px var(--roue-gold); }
.roue-win .row { justify-content: center; margin-bottom: 12px; }
.roue-win .btn.ghost.small { color: var(--roue-deep); box-shadow: inset 0 0 0 2px var(--roue-red); }

/* --- Page du visiteur (c.html) --- */
.guest .top { background: rgba(255, 246, 230, .9); }
.guest .brand small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .78rem; color: var(--muted); }
.guest-from { text-align: center; margin: 4px 0 14px; }
.guest-from .tag { display: inline-block; position: relative; background: var(--roue-red); color: #fff; font-family: var(--font-title); font-weight: 800; font-size: 1.05rem; padding: 10px 18px 10px 30px; border-radius: 10px 999px 999px 10px; box-shadow: inset 0 0 0 2px var(--roue-gold), 0 6px 14px rgba(126, 13, 22, .25); }
.guest-from .tag::before { content: ""; position: absolute; left: 11px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--roue-cream); box-shadow: 0 0 0 2px var(--roue-gold); }
.guest-from h1 { color: var(--roue-ink); margin: 14px 0 4px; }
.gcard { position: relative; background: var(--paper); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 14px; box-shadow: 0 0 0 3px var(--roue-gold), 0 0 0 6px var(--roue-red), 0 18px 34px rgba(126, 13, 22, .22); animation: roue-rise .7s cubic-bezier(.2, .8, .2, 1) .1s both; }
.gcard .ribbon { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.gcard .ribbon b { font-family: var(--font-title); color: var(--roue-deep); font-size: .95rem; }
.gcard .ribbon b::before { content: "★ "; color: var(--roue-gold-lo); }
.gcard .q { margin-top: 0; }
.guest-solution { scroll-margin-top: 96px; }
.guest-verdict { text-align: center; margin: 16px 0 4px; }
.guest-verdict .g-label { font-family: var(--font-title); font-weight: 900; font-size: 1.5rem; color: var(--ok); }
.guest-verdict .g-label.ko { color: var(--roue-red); }
.guest-invite { background: var(--roue-cream); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; text-align: center; box-shadow: inset 0 0 0 2px rgba(232, 184, 74, .7), 0 10px 24px rgba(126, 13, 22, .14); animation: roue-rise .6s ease .2s both; }
.guest-invite h2 { color: var(--roue-ink); }
.guest-invite p { color: var(--roue-ink); }
.guest-invite .mascotte { height: 140px; margin-bottom: 6px; }
.guest-trust { background: var(--paper); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.guest-trust p { margin: 0 0 8px; } .guest-trust p:last-child { margin: 0; }
.guest-trust .addr { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-title); font-weight: 800; font-size: 1.05rem; color: var(--deep); background: var(--tint); border-radius: 999px; padding: 6px 14px; box-shadow: inset 0 0 0 2px var(--line); }
.guest-trust .addr::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); }
.guest-trust .safe { font-weight: 800; color: var(--ink); }
.guest-trust .safe::before { content: "✓ "; color: var(--ok); font-weight: 900; }
:root[data-contrast="high"] .gcard, :root[data-contrast="high"] .guest-invite, :root[data-contrast="high"] .guest-trust { box-shadow: none; border: 2px solid #000; }

@keyframes roue-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes roue-pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes roue-turn { to { transform: rotate(360deg); } }
@keyframes roue-breathe { 50% { transform: scale(1.08); } }
@keyframes roue-bump { 40% { transform: scale(1.04); } }
@keyframes roue-blink { 50% { background: #FFD76A; box-shadow: 0 0 0 1.5px var(--roue-gold-lo), 0 0 3px 0 rgba(255, 230, 150, .4); } }
@keyframes roue-chase { 0% { background: #FFFDF2; box-shadow: 0 0 0 1.5px var(--roue-gold-lo), 0 0 12px 4px rgba(255, 236, 170, 1); } 50% { background: #C98F2C; box-shadow: 0 0 0 1.5px var(--roue-gold-lo); } }

@media (max-width: 380px) { .spins-card { padding-right: 104px; } .spins-mini { width: 128px; height: 128px; margin-top: -64px; right: -40px; } .spins-card h2 { font-size: 1.3rem; } }
@media (min-width: 700px) { .roue-stage { padding: 40px 20px 34px; } }
@media (prefers-reduced-motion: reduce) { .spins-mini, .roue-lights i, .roue-hub span { animation: none !important; } }
.spins-card .spins-track { margin: -4px 0 14px; padding: 8px 12px; border-radius: 12px; background: rgba(74, 7, 13, .35); color: #FFF1F1; font-size: .95rem; }
.spins-card.fete { animation: roue-rise .6s cubic-bezier(.2, .8, .2, 1) both, roue-bump .7s cubic-bezier(.2, 1.4, .3, 1) .5s; }
.roue-fly { position: fixed; z-index: 60; pointer-events: none; font-family: var(--font-title); font-weight: 900; font-size: 2.6rem; line-height: 1; color: #fff; text-shadow: 0 0 0 var(--roue-deep), 0 2px 0 var(--roue-deep), 0 0 14px rgba(232, 184, 74, .9); transform: translate(-50%, -50%); }
