/* Feuille de rembobinage */
.chargeur { display: inline-flex; align-items: center; gap: 3px; height: 22px; vertical-align: middle; margin-left: 8px; }
.chargeur i { width: 5px; height: 5px; border-radius: 3px; background: currentColor; animation: chargeur 300ms linear infinite alternate; }
.chargeur i:nth-child(1) { animation-delay: -500ms; } .chargeur i:nth-child(2) { animation-delay: -400ms; } .chargeur i:nth-child(3) { animation-delay: -300ms; }
.chargeur i:nth-child(4) { animation-delay: -200ms; } .chargeur i:nth-child(5) { animation-delay: -100ms; }
@keyframes chargeur { to { height: 20px; } }
.chargeur.grand { height: 44px; gap: 5px; margin: 18px 0 0; color: var(--ember); }
.chargeur.grand i { width: 9px; height: 9px; border-radius: 5px; animation-name: chargeur-grand; }
@keyframes chargeur-grand { to { height: 40px; } }
@media (prefers-reduced-motion: reduce) { .chargeur i { animation-duration: 900ms; } }
.coince { margin-bottom: 10px; padding: 14px 16px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); }
.coince p { margin: 4px 0 0; }
.simu-faussee { margin-top: 14px; box-shadow: none; border: 1.5px solid #F0B429; background: rgba(240,180,41,.12); }
.simu-faussee .label { color: #B07A00; }
.sheet-wrap { position: fixed; inset: 0; background: rgba(10, 20, 22, .45); display: none; align-items: flex-end; justify-content: center; z-index: 20; }
.sheet-wrap.show { display: flex; }
.sheet { width: 100%; max-width: 480px; background: var(--surface); border-radius: 26px 26px 0 0; padding: 22px 18px calc(54px + max(22px, env(safe-area-inset-bottom))); max-height: 88dvh; overflow-y: auto; animation: rise .3s ease-out; }
.quote { border-left: 4px solid var(--ember); padding: 4px 0 4px 14px; font-size: 17px; font-style: italic; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 600; }
.chip.ember-chip { background: rgba(240,138,36,.16); color: var(--ember-ink); }
.kb { font-size: 14px; color: var(--muted); background: var(--surface-2); border-radius: 14px; padding: 12px 14px; }

/* Fin d'appel */
.ending { position: fixed; inset: 0; z-index: 15; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: var(--bg); text-align: center; padding: 24px; }
.ending.show { display: flex; }
.ending .orb { width: 150px; height: 150px; }
.ending h1 { font-size: 46px; }

/* Débrief */
.score-head { display: flex; align-items: flex-end; gap: 14px; margin: 18px 0 6px; }
.score-big { font-family: var(--display); font-weight: 800; font-size: 92px; line-height: .85; letter-spacing: -0.04em; }
.ressenti { margin-top: 14px; }
.ressenti h3 { margin: 0 0 4px; }
.ressenti .val { font-family: var(--display); font-weight: 800; font-size: 22px; text-align: center; margin: 10px 0 2px; min-height: 30px; transition: color .2s; }
.ressenti .val.vide { color: var(--muted); font-family: inherit; font-weight: 500; font-size: 15px; }
.slider { position: relative; height: 56px; margin: 0 14px; touch-action: none; cursor: pointer; outline: none; }
.slider .rail { position: absolute; left: 0; right: 0; top: 26px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #62D394, #B5E655 25%, #FFFFFF 50%, #FFB627 75%, #F25F5C); box-shadow: 0 0 0 1px rgba(20,38,42,.08); }
/* Crans : petits traits verticaux (environ 60 % du diamètre du curseur), dans la couleur de la jauge à leur position. */
.slider .pt { position: absolute; top: 21px; width: 2px; height: 13px; margin-left: -1px; border-radius: 1px; transition: transform .15s; }
.slider .pt.on { transform: scaleY(1.25); }
.slider .thumb { position: absolute; top: 17px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--surface); border: 3px solid #FFFFFF; box-shadow: 0 0 0 1px rgba(20,38,42,.18), 0 3px 10px rgba(20,38,42,.25); transition: left .22s cubic-bezier(.3,1.6,.5,1), transform .15s ease; }
.slider.drag .thumb, .slider.anim .thumb { transition: transform .15s ease; }
.slider.drag .thumb { transform: scale(1.25); }
.slider:focus-visible .thumb { outline: 3px solid var(--ember); outline-offset: 2px; }
.ressenti .bouts { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 0 2px 12px; }
.who-row { display: flex; align-items: flex-end; gap: 14px; }
.ress { font-size: 11px; font-weight: 600; line-height: 1.2; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); margin-bottom: 2px; }
.ressenti .merci { margin: 0; color: var(--muted); font-size: 14px; }
#deb-body { transition: opacity .3s; }
#deb-body.attente { opacity: .38; pointer-events: none; user-select: none; }
#deb-body.cache { display: none; }
#deb-body.devoile { animation: rise .35s ease-out; }
.ressenti-aide { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.pending-dots { display: inline-flex; gap: 10px; height: 74px; align-items: center; }
.pending-dots i { width: 18px; height: 18px; border-radius: 50%; background: var(--ember); animation: blink 1.2s infinite; }
.pending-dots i:nth-child(2) { animation-delay: .2s; } .pending-dots i:nth-child(3) { animation-delay: .4s; }
.score-big small { font-size: 28px; color: var(--muted); letter-spacing: 0; }
.score-big .indispo { font-size: 22px; letter-spacing: 0; color: var(--muted); }
.score-big #deb-relancer { font-family: var(--body, inherit); font-size: 16px; font-weight: 600; letter-spacing: 0; vertical-align: middle; }
/* Note en étoiles (sur 5, par demi-étoiles). Animation inspirée de « Animated Star Rating » de Jon Kantner (CodePen) :
   anneau qui éclate, remplissage avec rebond, contour qui s'efface, rayons ; les étoiles partent l'une après l'autre. */
.etoiles { display: flex; gap: 8px; padding: 14px 6px; margin: -14px -6px; }
.etoiles[hidden] { display: none !important; }
.etoile { width: 46px; height: 46px; overflow: visible; display: block; }
.etoile .anneau { fill: none; stroke: #F4A825; stroke-width: 12; transform-origin: 16px 16px; transform: scale(0); opacity: 0; }
.etoile .contour { fill: none; stroke: #C7CAD1; stroke-width: 2; stroke-linejoin: round; transform-origin: 16px 16px; }
.etoile .rempli { fill: #F4A825; stroke: #F4A825; stroke-width: 2; stroke-linejoin: round; transform-origin: 16px 16px; transform: scale(0); }
.etoile .rayon { fill: none; stroke: #F4A825; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 23; stroke-dashoffset: 1; opacity: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .etoile .contour { stroke: #454954; } }
:root[data-theme="dark"] .etoile .contour { stroke: #454954; }
.etoile.on .anneau { animation: et-anneau 1s forwards; }
.etoile.on .rempli { animation: et-rempli 1s forwards; }
.etoile.on .rayon { animation: et-rayon 1s forwards; }
.etoile.on.pleine .contour { animation: et-contour 1s forwards; }
@keyframes et-anneau { 0% { transform: scale(0); opacity: 0; stroke-width: 12; animation-timing-function: ease-in; } 20% { transform: scale(.6); opacity: 1; animation-timing-function: ease-out; } 35% { transform: scale(1); opacity: .5; stroke-width: 12; } 50%, 100% { transform: scale(1.6); opacity: 0; stroke-width: 0; } }
@keyframes et-rempli { 0%, 40% { transform: scale(0); animation-timing-function: ease-out; } 60% { transform: scale(1.2); animation-timing-function: ease-in-out; } 80% { transform: scale(.9); } 100% { transform: scale(1); } }
@keyframes et-contour { 0% { transform: scale(1); } 20%, 100% { transform: scale(0); } }
@keyframes et-rayon { 0%, 40% { stroke-dasharray: 1 23; stroke-dashoffset: 1; opacity: 0; animation-timing-function: ease-out; } 41% { opacity: 1; } 60% { stroke-dasharray: 12 13; stroke-dashoffset: -13; opacity: 1; } 61%, 100% { opacity: 0; } }
.fam-etoiles { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.fam-etoiles i { font-style: normal; color: #F4A825; }
.issue { display: inline-flex; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--surface); box-shadow: var(--shadow); }
.issue.ok { color: var(--moss); }
.issue.ko { color: var(--rose); }
.reveal { background: var(--ink); color: var(--bg); border-radius: 22px; padding: 18px; }
.reveal .label { color: inherit; opacity: .7; }
.reveal h3 { margin: 2px 0 8px; font-size: 20px; }
.axis-d { padding: 12px 0; border-bottom: 1px solid var(--line); }
.axis-d:last-child { border-bottom: 0; }
.axis-d .row { display: grid; grid-template-columns: 1fr 44px; gap: 10px; align-items: center; margin-bottom: 6px; }
.axis-d .row b { font-size: 15px; }
.axis-d .row em { font-style: normal; font-family: var(--display); font-weight: 700; text-align: right; }
.axis-d p { font-size: 14px; color: var(--muted); margin-top: 6px; }
ul.points { margin: 0; padding-left: 20px; }
ul.points li + li { margin-top: 6px; }
.better { background: var(--surface-2); border-radius: 16px; padding: 14px; }
.better .was { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(180,54,90,.5); font-size: 15px; }
.better .now { font-weight: 600; margin-top: 8px; font-size: 17px; }
details summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.transcript p { font-size: 14px; margin: 6px 0; }
.transcript b { font-weight: 600; }
.toast { pointer-events: none; position: fixed; left: 50%; bottom: 174px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: 15px; z-index: 40; max-width: calc(100% - 32px); display: none; box-shadow: var(--shadow); }
.toast.show { display: block; animation: rise .25s ease-out; }
.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; flex: 1; text-align: center; }
.loading .ember { width: 72px; height: 72px; animation: breathe 1.6s ease-in-out infinite; }
.invite { word-break: break-all; font-size: 14px; background: var(--surface-2); padding: 12px; border-radius: 12px; }

@keyframes breathe { 0%,100% { transform: scale(.95); } 50% { transform: scale(1); } }
@keyframes speak { 0%,100% { transform: scale(1); } 30% { transform: scale(1.07); } 60% { transform: scale(.98); } }
@keyframes bloom { 0% { transform: scale(1); } 40% { transform: scale(1.35); box-shadow: 0 0 80px rgba(255,193,94,.9), 0 0 200px rgba(240,138,36,.6); } 100% { transform: scale(1.12); box-shadow: 0 0 60px rgba(255,193,94,.7), 0 0 160px rgba(240,138,36,.4); } }
@keyframes blink { 0%,80%,100% { opacity: .2; } 40% { opacity: .9; } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
@media (min-width: 520px) { .screen { padding-top: 36px; } }

/* ---------- Annonce Hardcore : panneau plein écran quand le Mode Hardcore se débloque dans une famille (voir annoncerHardcore dans js/parcours.js) ---------- */
/* Règle courte sous « Les cas » : combien de cas restent à réussir pour débloquer le Hardcore dans cette famille. */
.note-hard { margin: -4px 0 12px; font-size: 13px; color: var(--muted); }
.annonce { position: fixed; inset: 0; z-index: 200; overflow: hidden; color: #EAF1EF; background: radial-gradient(120% 90% at 50% var(--rayons-y, 36%), #3B525A 0%, #1E2F34 42%, #0B1417 100%); animation: an-fond .35s ease-out backwards; }
@keyframes an-fond { from { opacity: 0; } }
/* Éclair de lumière à l'ouverture, puis rayons dorés qui tournent très lentement derrière la flamme. */
.an-flash { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% var(--rayons-y, 36%), rgba(255, 244, 214, .95), rgba(255, 205, 130, .45) 28%, rgba(255, 205, 130, 0) 62%); animation: an-flash 1s ease-out .05s both; }
@keyframes an-flash { 0% { opacity: 0; } 14% { opacity: 1; } 100% { opacity: 0; } }
.an-rayons { position: absolute; left: 50%; top: var(--rayons-y, 36%); width: 240vmax; height: 240vmax; margin: -120vmax 0 0 -120vmax; pointer-events: none; will-change: transform;
  background: repeating-conic-gradient(from 0deg, rgba(240, 181, 71, .32) 0deg 6deg, rgba(240, 181, 71, 0) 6deg 20deg), repeating-conic-gradient(from 10deg, rgba(255, 236, 190, .10) 0deg 3deg, rgba(255, 236, 190, 0) 3deg 20deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .55) 22%, transparent 55%); mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .55) 22%, transparent 55%);
  animation: an-rayons-in 1.2s ease-out .1s backwards, an-tour 90s linear infinite; }
@keyframes an-rayons-in { from { opacity: 0; } }
@keyframes an-tour { to { transform: rotate(360deg); } }
/* Étincelles : petits points dorés qui montent et s'éteignent (placés par parcours.js avec --x, --y, --s, --d, --t). */
.an-etincelles { position: absolute; inset: 0; pointer-events: none; }
.an-etincelles i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: #FFE9A8; box-shadow: 0 0 7px 2px rgba(255, 196, 90, .85); opacity: 0; animation: an-etincelle var(--t) ease-in-out calc(var(--d) + .5s) infinite; }
@keyframes an-etincelle { 0% { opacity: 0; transform: translateY(16px) scale(.5); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-50px) scale(1); } }
/* Le contenu défile seulement si l'écran est très court (téléphone couché) ; sinon il est centré. */
.an-defile { position: absolute; inset: 0; overflow-y: auto; display: flex; padding: max(18px, env(safe-area-inset-top)) 22px max(22px, env(safe-area-inset-bottom)); scrollbar-width: none; }
.an-defile::-webkit-scrollbar { display: none; }
.an-corps { position: relative; margin: auto; width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center; text-align: center; }
/* La flamme sur la plaque obsidienne. Tailles en em : changer le font-size de .an-hero redimensionne tout. */
.an-hero { position: relative; font-size: 10px; width: 25em; height: 23em; margin-bottom: 6px; animation: an-pop .95s cubic-bezier(.2, .9, .3, 1.25) .12s backwards; }
@keyframes an-pop { 0% { opacity: 0; transform: scale(.25) translateY(36px); } 55% { opacity: 1; } }
.an-halo { position: absolute; left: 50%; top: 46%; width: 36em; height: 36em; margin: -18em 0 0 -18em; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 176, 72, .6), rgba(255, 176, 72, 0)); animation: an-souffle 3.2s ease-in-out infinite; }
@keyframes an-souffle { 50% { transform: scale(1.12); opacity: .8; } }
.an-plaque { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; display: block; filter: drop-shadow(0 1.2em 1.2em rgba(0, 0, 0, .55)); }
.an-flamme { position: absolute; left: 50%; bottom: 7.6em; margin-left: -4.5em; animation: an-flotte 2.6s ease-in-out infinite; }
.an-flamme svg { display: block; width: 9em; height: 12em; filter: drop-shadow(0 0 .9em rgba(246, 139, 36, .95)) drop-shadow(0 0 2.2em rgba(246, 139, 36, .6)); }
@keyframes an-flotte { 50% { transform: translateY(-.8em); } }
/* Textes : ils montent l'un après l'autre. */
.an-sur { margin-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #F0B547; animation: an-monte .6s cubic-bezier(.2, .9, .3, 1) .55s backwards; }
.annonce h2 { margin: 6px 0 4px; font-family: var(--display); font-weight: 800; font-size: 42px; line-height: 1.05; letter-spacing: -.01em; color: #F0B547;
  background: linear-gradient(100deg, #E58A1F 0%, #F0B547 30%, #FFF6D6 48%, #F0B547 66%, #E58A1F 100%) 0 0 / 240% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35));
  animation: an-monte .6s cubic-bezier(.2, .9, .3, 1) .7s backwards, an-brille 3.6s ease-in-out 1.6s infinite; }
@keyframes an-brille { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0 0; } }
.an-famille { margin: 0 0 12px; font-size: 17px; animation: an-monte .6s cubic-bezier(.2, .9, .3, 1) .85s backwards; }
.an-famille b { display: inline-block; margin-left: 2px; padding: 1px 12px 2px; border-radius: 999px; background: rgba(240, 181, 71, .16); border: 1.5px solid rgba(240, 181, 71, .7); color: #FFE9A8; font-family: var(--display); font-weight: 800; }
.an-texte { margin: 0; max-width: 320px; font-size: 15.5px; line-height: 1.45; color: #C9D8D5; animation: an-monte .6s cubic-bezier(.2, .9, .3, 1) 1s backwards; }
.an-btn { margin-top: 24px; min-width: 230px; padding: 15px 28px; border: 0; border-radius: 16px; background: linear-gradient(#FFBC66, #F68B24); color: #3A1D00; font-family: var(--display); font-weight: 800; font-size: 18px; box-shadow: 0 5px 0 #C96A0E, 0 0 34px rgba(246, 139, 36, .5); animation: an-monte .6s cubic-bezier(.2, .9, .3, 1) 1.15s backwards; }
.an-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #C96A0E, 0 0 24px rgba(246, 139, 36, .45); }
.an-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@keyframes an-monte { from { opacity: 0; transform: translateY(18px); } }
@media (max-height: 640px) { .an-hero { font-size: 7.5px; } .annonce h2 { font-size: 36px; } .an-btn { margin-top: 18px; } }
@media (max-height: 480px) { .an-hero { font-size: 5.5px; } .annonce h2 { font-size: 30px; } .an-texte { font-size: 14.5px; } }
@media (prefers-reduced-motion: reduce) {
  .annonce, .an-flash, .an-rayons, .an-etincelles i, .an-hero, .an-halo, .an-flamme, .an-sur, .annonce h2, .an-famille, .an-texte, .an-btn { animation: none !important; }
  .an-flash, .an-etincelles { display: none; }
}

/* Feuille « Bravo, partager ce call ? » (30 novembre 2026) : refuser à gauche (blanc à 70 % sur gris foncé), accepter à droite (blanc sur vert). */
.partage-feuille h2 { margin: 0; font-size: 26px; }
.partage-feuille p { margin: 0; }
.partage-boutons { display: flex; gap: 10px; margin-top: 8px; }
.partage-boutons button { flex: 1; min-height: 54px; border: 0; border-radius: 16px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.partage-boutons button:active { transform: translateY(1px); }
.partage-non { background: #3B4E52; color: rgba(255, 255, 255, .7); box-shadow: inset 0 -3px 0 #28383C; }
.partage-oui { background: #3FA66B; color: #FFFFFF; box-shadow: inset 0 -4px 0 #2C7F50; }
