/* =====================================================================
   PAGE QUÊTES : deuxième référence de Ruben. Même langage que l'accueil
   (fond presque noir, cartes anthracite, typographie blanche), avec une
   illustration pointillée qui lui donne sa personnalité.
   ===================================================================== */
.hero-quetes { padding: 6px 0 8px; }
.halo-blanc { background: radial-gradient(circle, rgba(255,255,255,.10) 0%, transparent 65%); top: -30px; width: 280px; height: 260px; }
.illustration { position: relative; width: 210px; height: 149px; animation: flotte 7s ease-in-out infinite; }
.illustration svg { width: 100%; height: 100%; display: block; }
.hero-titre { font-size: 42px; font-weight: 600; letter-spacing: -.02em; color: #fff; margin-top: 14px; line-height: 1; }
.hero-quetes .hero-grade { font-size: 11.5px; letter-spacing: .2em; text-align: center; max-width: 320px; line-height: 1.6; }

.section-tete { margin: 30px 4px 12px; }
.section-titre { font-size: 15px; font-weight: 650; color: #fff; display: flex; align-items: center; gap: 8px; }
.ico-sec { font-size: 11px; color: #8e8e93; }
.section-sous { font-size: 13.5px; color: #8e8e93; margin-top: 3px; }

/* Carte de quête */
.carte-q { cursor: pointer; padding: 16px 18px 14px; transition: border-color .2s, background .2s; }
.carte-q:active { background: #1b1b1e; }
.carte-q-tete { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.ico-stat { width: 18px; height: 18px; flex: none; }
.ico-stat svg { width: 100%; height: 100%; display: block; }
.ico-stat.grand { width: 30px; height: 30px; }
.domaine { font-size: 12px; color: #8e8e93; letter-spacing: .04em; flex: 1; }
.pastille-a { font-size: 10.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: #070708; background: #fff; border-radius: 99px; padding: 2px 7px; }
.agrandir { color: #5c5c61; font-size: 15px; line-height: 1; }
.carte-q .quete-a-titre { font-size: 16.5px; margin-bottom: 5px; }
.carte-q-pied { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 2px; }
.carte-date { font-size: 12.5px; color: #8e8e93; }
.carte-q-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.pilule { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 14px; font-weight: 600; color: #fff; background: #1f1f22; border: 1px solid #2e2e32; border-radius: 99px; padding: 10px 22px; cursor: pointer; text-decoration: none; }
.carte-q-actions .pilule { flex: 1; }
.pilule-lien { margin-top: 12px; }
.barre-seg { display: flex; gap: 4px; margin: 14px 0 12px; }
.barre-seg i { flex: 1; height: 3px; border-radius: 2px; background: #2e2e32; }
.barre-seg i.on { background: #fff; }
.etapes-points { margin: 14px 0 12px; gap: 6px; }
.etapes-points i { width: 7px; height: 7px; }
.etapes-points i.actuel { background: none; outline: 1.5px solid #fff; outline-offset: -1.5px; }

/* Historique : rien n'est effacé */
.repli-a { margin: 28px 4px 10px; }
.repli-a summary { list-style: none; cursor: pointer; }
.repli-a summary::-webkit-details-marker { display: none; }
.chevron-repli { color: #5c5c61; font-size: 12px; margin-left: auto; }
.repli-a[open] .chevron-repli { transform: rotate(180deg); }
.repli-a[open] summary { margin-bottom: 10px; }
.ligne-histo { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; padding: 11px 0; border-bottom: 1px solid #1f1f22; cursor: pointer; }
.histo-marque { font-size: 13px; color: #8e8e93; text-align: center; padding-top: 1px; }
.histo-marque.faite { color: #fff; }
.histo-titre { font-size: 14.5px; color: #c7c7cc; }

/* La fiche complète */
body.fiche-ouverte { overflow: hidden; }
.fiche { position: fixed; inset: 0; z-index: 45; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: #070708; animation: fiche-monte .28s cubic-bezier(.2,.9,.2,1); }
@keyframes fiche-monte { from { transform: translateY(24px); opacity: 0; } }
.fiche-contenu { max-width: 560px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 12px) 18px calc(env(safe-area-inset-bottom) + 40px); }
.fiche-barre { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin-bottom: 18px; }
.fiche-fermer { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #2e2e32; background: #161618; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding-bottom: 3px; }
.fiche-type { text-align: center; font-size: 14px; font-weight: 600; color: #fff; }
.fiche-tete { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.fiche-titre { font-size: 27px; font-weight: 650; color: #fff; line-height: 1.2; letter-spacing: -.01em; }
.fiche-texte { font-size: 15px; line-height: 1.55; color: #c7c7cc; }
.fiche-puces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.puce { font-size: 12.5px; color: #c7c7cc; background: #161618; border: 1px solid #26262a; border-radius: 99px; padding: 5px 11px; }
.puce.on { color: #070708; background: #fff; border-color: #fff; }
.fiche-sec { padding: 18px 0; border-top: 1px solid #1f1f22; }
.fiche-sec .detail-titre { color: #8e8e93; letter-spacing: .16em; margin-bottom: 8px; }
.fiche-liste { padding-left: 18px; }
.fiche-liste li { font-size: 15px; line-height: 1.5; color: #c7c7cc; margin-bottom: 6px; }
.fiche-infos { display: grid; grid-template-columns: 78px 1fr; gap: 10px 12px; margin-bottom: 10px; }
.fiche-infos dt { font-size: 13px; color: #8e8e93; padding-top: 1px; }
.fiche-infos dd { font-size: 15px; color: #fff; line-height: 1.45; }
.fiche a { color: #fff; }
.fiche .note-a a { color: #8e8e93; }
.fiche-statut { margin: 10px 0 4px; }
.fiche-etapes { display: grid; gap: 4px; }
.fiche-etape { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: start; padding: 10px 0; }
.fiche-etape .etape-titre { font-size: 15px; color: #fff; line-height: 1.4; }
.fiche-etape.verrou .etape-titre { color: #8e8e93; }
.fiche-etape.faite .etape-titre { color: #8e8e93; text-decoration: line-through; text-decoration-color: #5c5c61; }
.fiche-etape.faite .case-a { background: #fff; border-color: #fff; }
.fiche-etape .case-a:disabled { cursor: default; opacity: .7; }
.cadenas { font-size: 10px; filter: grayscale(1); }
.fiche-actions { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 1px solid #1f1f22; }
.fiche-actions-ligne { display: flex; gap: 8px; }
.fiche-actions-ligne .pilule { flex: 1; padding: 11px 10px; }
.btn-a.large { width: 100%; padding: 14px; font-size: 16px; }
.lien-retirer { font: inherit; font-size: 13.5px; color: #8e8e93; background: none; border: none; padding: 8px; cursor: pointer; text-decoration: underline; text-decoration-color: #3a3a3e; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { .illustration, .fiche { animation: none !important; } }
