/* Guyane One — animations et nouveaux éléments (bandeau Flash, mascotte, nouveautés, compteurs, confettis, quiz) */

/* ---------- Bandeau Flash défilant */
.ticker { display: flex; align-items: stretch; height: 40px; border-radius: 20px; overflow: hidden; background: #fff; border: 1.5px solid var(--nuit); color: var(--nuit); text-decoration: none; }
.ticker-tag { flex-shrink: 0; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #C93F2A; color: #fff; font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.ticker-win { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 20px), transparent); }
.ticker-track { display: inline-flex; gap: 34px; white-space: nowrap; padding-left: 16px; font-weight: 700; font-size: 14px; animation: tickerRun 40s linear infinite; }
.ticker-track span::after { content: '•'; margin-left: 34px; color: #D9A73A; }
.ticker:hover .ticker-track, .ticker:focus-visible .ticker-track { animation-play-state: paused; }
@keyframes tickerRun { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[data-theme="dark"] .ticker { background: var(--surf); border-color: var(--trait); color: var(--nuit); }

/* ---------- Mascotte (le logo) et sa bulle */
.masc { position: relative; border: 0; background: none; padding: 0; cursor: pointer; width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; }
.masc img { width: 42px; height: 42px; object-fit: contain; display: block; animation: mascIdle 5s ease-in-out infinite; transform-origin: 50% 90%; }
.masc img.hop { animation: mascHop .6s cubic-bezier(.3,1.6,.5,1) both; }
.masc:focus-visible { outline: 3px solid #D9A73A; outline-offset: 3px; }
.masc-bubble { position: absolute; left: 0; top: 52px; z-index: 20; width: max-content; max-width: 250px; padding: 10px 13px; border-radius: 4px 16px 16px 16px; background: var(--nuit); color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.35; text-align: left; box-shadow: 0 10px 24px rgba(10,46,34,.25); opacity: 0; transform: translateY(-6px) scale(.9); transform-origin: 12px 0; pointer-events: none; transition: opacity .25s ease, transform .3s cubic-bezier(.3,1.5,.5,1); }
.masc-bubble.on { opacity: 1; transform: none; }
.masc-bubble:empty { display: none; }
html[data-theme="dark"] .masc-bubble { background: #D9A73A; color: #1B1405; }
@keyframes mascIdle { 0%, 82%, 100% { transform: rotate(0); } 86% { transform: rotate(-9deg) scale(1.05); } 90% { transform: rotate(7deg); } 94% { transform: rotate(-3deg); } }
@keyframes mascHop { 0% { transform: scale(1); } 30% { transform: scale(1.15, .85) translateY(3px); } 60% { transform: scale(.92, 1.1) translateY(-9px) rotate(-6deg); } 100% { transform: none; } }

/* ---------- La Guyane en direct (chiffres) */
.pulse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pulse-c { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 16px; background: #fff; color: var(--nuit); border-bottom: 3px solid var(--c); animation: fadeUp .45s ease both; }
.pulse-c:nth-child(2) { animation-delay: .06s; } .pulse-c:nth-child(3) { animation-delay: .12s; }
.pulse-c b { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.05; color: var(--c); font-variant-numeric: tabular-nums; }
.pulse-c span { font-size: 11.5px; line-height: 1.25; color: var(--gris); font-weight: 600; }
html[data-theme="dark"] .pulse-c { background: var(--surf); color: var(--nuit); }
html[data-theme="dark"] .pulse-c b { color: color-mix(in srgb, var(--c) 55%, #fff); }

/* ---------- Nouveautés */
.nv { gap: 8px; border: 2px solid #D9A73A; animation: fadeUp .5s ease both; }
.nv .h2 { display: flex; align-items: center; gap: 6px; }
.nv-item { display: flex; align-items: center; gap: 12px; padding: 6px 2px; color: inherit !important; border-radius: 12px; }
.nv-item .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nv-item b { font-size: 14.5px; }
.nv.bye { animation: nvBye .3s ease both; }
@keyframes nvBye { to { opacity: 0; transform: translateX(40px) rotate(2deg); } }

/* ---------- Apparence (Paramètres) */
.theme-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.theme-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px; border-radius: 18px; border: 2px solid var(--trait); background: #fff; cursor: pointer; text-align: left; color: var(--nuit); transition: border-color .2s ease, transform .15s ease; }
.theme-opt:active { transform: scale(.97); }
.theme-opt.on { border-color: var(--foret); box-shadow: 0 0 0 3px rgba(11,93,59,.15); }
.theme-opt b { display: flex; align-items: center; gap: 5px; font-size: 14px; }
.theme-prev { display: flex; flex-direction: column; gap: 4px; width: 100%; height: 54px; padding: 8px; border-radius: 12px; margin-bottom: 4px; }
.theme-prev i { display: block; height: 8px; border-radius: 4px; }
.theme-prev i:nth-child(2) { width: 70%; } .theme-prev i:nth-child(3) { width: 45%; }
.theme-prev.clair { background: #F3F5EF; } .theme-prev.clair i { background: #0B5D3B; } .theme-prev.clair i + i { background: #DCE3D7; }
.theme-prev.sombre { background: #0C1712; } .theme-prev.sombre i { background: #6FD39E; } .theme-prev.sombre i + i { background: #2A3E34; }
.theme-prev.auto { background: linear-gradient(135deg, #F3F5EF 50%, #0C1712 50%); } .theme-prev.auto i { background: #D9A73A; } .theme-prev.auto i + i { background: #8C9E94; }
html[data-theme="dark"] .theme-opt { background: var(--surf); color: var(--nuit); border-color: var(--trait); }
html[data-theme="dark"] .theme-opt.on { border-color: var(--lien); box-shadow: 0 0 0 3px rgba(111,211,158,.18); }

/* ---------- Confettis et mot qui saute */
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none !important; z-index: 60; }
.confetti i { position: absolute; top: -16px; border-radius: 2px; animation: confFall 1.4s cubic-bezier(.25,.6,.4,1) both; }
@keyframes confFall { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), 92vh) rotate(var(--r)); opacity: 0; } }
.confetti .burst { position: absolute; left: 50%; top: 38%; font-family: var(--display); font-weight: 800; font-size: 44px; color: #0B5D3B; text-shadow: 3px 3px 0 #D9A73A, -1px -1px 0 #fff; animation: burstUp 1.3s cubic-bezier(.2,1.4,.4,1) both; white-space: nowrap; }
@keyframes burstUp { 0% { transform: translate(-50%, 20px) scale(.3) rotate(-12deg); opacity: 0; } 25% { transform: translate(-50%, -10px) scale(1.15) rotate(4deg); opacity: 1; } 70% { transform: translate(-50%, -24px) scale(1) rotate(-2deg); opacity: 1; } 100% { transform: translate(-50%, -70px) scale(.9); opacity: 0; } }

/* ---------- Tampon */
.stamp { display: inline-block; align-self: center; padding: 6px 16px; border: 4px solid var(--s); border-radius: 10px; color: var(--s); font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: .12em; text-transform: uppercase; transform: rotate(-8deg); animation: stampSlam .45s cubic-bezier(.2,1.6,.4,1) both; background: color-mix(in srgb, var(--s) 8%, transparent); }
@keyframes stampSlam { 0% { transform: rotate(-25deg) scale(2.6); opacity: 0; } 100% { transform: rotate(-8deg) scale(1); opacity: 1; } }

/* ---------- Quiz Guyane */
.qhero { position: relative; overflow: hidden; border-radius: 24px; padding: 20px; background: linear-gradient(135deg, #0A2E22, #0B5D3B 60%, #1E8A57); color: #fff; display: flex; flex-direction: column; gap: 8px; }
.qhero h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; letter-spacing: -.02em; }
.qhero p { margin: 0; font-size: 14px; opacity: .88; line-height: 1.4; }
.qhero .qstar { position: absolute; right: -18px; top: -18px; width: 120px; height: 120px; opacity: .18; animation: qspin 18s linear infinite; }
@keyframes qspin { to { transform: rotate(360deg); } }
.qmodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.qmode { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 20px; border: 0; background: #fff; color: var(--nuit); text-align: left; cursor: pointer; animation: fadeUp .4s ease both; transition: transform .15s ease; min-height: 112px; }
.qmode:active { transform: scale(.97); }
.qmode .ico { width: 40px; height: 40px; border-radius: 13px; }
.qmode b { font-size: 15px; } .qmode span.small { color: var(--gris); }
.qmode .best { margin-top: auto; font-size: 12px; font-weight: 700; color: var(--c); }
.qmode.wide { grid-column: span 2; flex-direction: row; align-items: center; min-height: 0; }
html[data-theme="dark"] .qmode { background: var(--surf); color: var(--nuit); }
.qprog { display: flex; gap: 4px; }
.qprog i { flex: 1; height: 6px; border-radius: 3px; background: var(--trait); transition: background .3s ease; }
.qprog i.ok { background: #1E8A57; } .qprog i.ko { background: #C93F2A; } .qprog i.cur { background: #D9A73A; }
.qcard { background: #fff; border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 14px; animation: qIn .35s ease both; }
html[data-theme="dark"] .qcard { background: var(--surf); }
@keyframes qIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
.qcard .qq { margin: 0; font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.25; }
.qans { display: flex; flex-direction: column; gap: 8px; }
.qa { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 14px; border-radius: 16px; border: 2px solid var(--trait); background: var(--sable); color: var(--nuit); font-size: 15.5px; font-weight: 600; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, transform .12s; }
.qa:active { transform: scale(.98); }
.qa .k { flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px; background: #fff; border: 1.5px solid var(--trait); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
html[data-theme="dark"] .qa .k { background: var(--surf2); }
.qa.good { border-color: #1E8A57; background: color-mix(in srgb, #1E8A57 14%, var(--sable)); animation: qGood .5s ease; }
.qa.bad { border-color: #C93F2A; background: color-mix(in srgb, #C93F2A 12%, var(--sable)); animation: qShake .4s ease; }
.qa[disabled] { cursor: default; }
.qa.dim { opacity: .5; }
@keyframes qGood { 40% { transform: scale(1.03); } }
@keyframes qShake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.qexp { padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, #D9A73A 14%, var(--sable)); font-size: 14px; line-height: 1.45; animation: fadeUp .35s ease both; }
.qexp b { display: block; margin-bottom: 2px; }
.qtimer { height: 4px; border-radius: 2px; background: var(--trait); overflow: hidden; }
.qtimer i { display: block; height: 100%; background: #D9A73A; transform-origin: left; animation: qTime linear both; }
@keyframes qTime { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.qscore { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; text-align: center; color: #0B5D3B; }
html[data-theme="dark"] .qscore { color: var(--lien); }
.qbadges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.qbadge { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 16px; background: #fff; text-align: center; font-size: 12px; font-weight: 700; color: var(--nuit); }
.qbadge .md { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #F5D477, #D9A73A 60%, #A97A22); box-shadow: inset 0 0 0 3px rgba(255,255,255,.4); }
.qbadge.off { opacity: .45; } .qbadge.off .md { background: var(--trait); filter: grayscale(1); }
.qbadge.new .md { animation: medal 1s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes medal { 0% { transform: scale(0) rotate(-180deg); } 100% { transform: none; } }
html[data-theme="dark"] .qbadge { background: var(--surf); color: var(--nuit); }

/* Réduire les animations : bandeau figé (défilement manuel), pas de rebond */
body.calme .ticker-win { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: none; }
body.calme .masc img, body.calme .qhero .qstar { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; } .ticker-win { overflow-x: auto; }
  .masc img, .qhero .qstar { animation: none; }
}
.qcard.still { animation: none; }
.ticker-tag .live-dot { width: 8px; height: 8px; border-radius: 50%; animation: tickBlink 1.2s ease-in-out infinite; }
@keyframes tickBlink { 50% { opacity: .25; } }

/* ---------- Hors ligne et installation */
.offline { position: absolute; left: 12px; right: 12px; top: 10px; z-index: 70; padding: 10px 14px; border-radius: 14px; background: #3D4D45; color: #fff; font-size: 13.5px; font-weight: 700; text-align: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); animation: fadeUp .3s ease both; pointer-events: none !important; }
.offline.back { background: #0B5D3B; }
.install { border: 1.5px solid var(--trait); animation: fadeUp .45s ease both; }

/* ---------- Agenda */
.evc { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; background: #fff; color: var(--nuit) !important; animation: fadeUp .4s ease both; }
.evc .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.evd { flex-shrink: 0; width: 54px; height: 60px; border-radius: 16px; background: #C2410C; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 4px 10px rgba(194,65,12,.25); }
.evd b { font-family: var(--display); font-size: 24px; font-weight: 800; }
.evd span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }
.evimg { flex-shrink: 0; width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.ellipsis2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15.5px; line-height: 1.3; }
html[data-theme="dark"] .evc { background: var(--surf); }

/* ---------- Bouton « Me prévenir » */
.alert-cta { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 10px 14px; border-radius: 16px; border: 1.5px dashed #0B5D3B; background: transparent; color: #0B5D3B; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; }
.alert-cta[disabled] { border-style: solid; opacity: .7; cursor: default; }
html[data-theme="dark"] .alert-cta { border-color: var(--lien); color: var(--lien); }
html[data-theme="dark"] .alert-cta svg { stroke: var(--lien); }

/* ---------- Logement */
.lgprice { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: #EDE4FB; }
.lgprice b { font-family: var(--display); font-size: 26px; font-weight: 800; color: #5B21B6; }
.lgfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lgf { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; }
.lgf span { display: flex; flex-direction: column; min-width: 0; }
.lgf b { font-size: 15px; }
html[data-theme="dark"] .lgprice { background: #2A1F45; } html[data-theme="dark"] .lgprice b { color: #C4B5FD; }
html[data-theme="dark"] .lgf { background: var(--surf); }

/* ---------- Croissance : invitation, réputation, bons plans, prix du mois */
.invite { flex-direction: row !important; background: linear-gradient(135deg, #0A2E22, #0B5D3B) !important; color: #fff !important; animation: fadeUp .5s ease both; }
.invite .small { color: #D7E6DA; }
.rep .md { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--c); box-shadow: inset 0 0 0 3px rgba(255,255,255,.35); }
.rep .bar span { display: block; height: 100%; border-radius: 3px; transition: width .8s ease; }
.bpc { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 20px; background: #fff; color: var(--nuit) !important; animation: fadeUp .4s ease both; }
.bpc img, .bpc .bpimg { flex-shrink: 0; width: 76px; height: 76px; border-radius: 16px; object-fit: cover; }
.bpc .bpimg { display: grid; place-items: center; background: linear-gradient(135deg, #DB2777, #F59E0B); }
.bpc .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bpred { align-self: flex-start; padding: 2px 10px; border-radius: 8px; background: #DB2777; color: #fff; font-family: var(--display); font-weight: 800; font-size: 14px; transform: rotate(-2deg); }
.bpred.big { font-size: 22px; padding: 4px 14px; animation: stampSlam .45s cubic-bezier(.2,1.6,.4,1) both; }
.prixg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.prixg > div { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 12px; background: var(--sable); }
.prixg b { font-family: var(--display); font-size: 20px; }
html[data-theme="dark"] .bpc { background: var(--surf); }
html[data-theme="dark"] .prixg > div { background: var(--surf2); }
