/* Compléments par-dessus le thème (`styles/site.css` → theme/). */
@import url("theme/components/bundle-free-chip-Zp4hz_R.css");

/* Lien d’évit. : visible au focus clavier uniquement (WCAG 2.4.1). */
.public-skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  z-index: 10000;
}
.public-skip-link:focus {
  position: fixed;
  left: 0.75rem;
  top: 0.75rem;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.5rem 1rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: #1a1a2e;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Nav : avatar Dicebear (img) dans .user-module — la maquette index utilise un div + background. */
.user-module img.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: #ffeaa7;
}

/*
 * Ligne « aventuriers » : même partial partout (accueil, Vous aimerez aussi).
 * Sans groupement, le <p> peut passer sous les avatars (flex + largeur) ; profile.css (≤900px)
 * ajoute margin-top au p et accentue l’effet 2 lignes.
 */
.quest-card .looter-faces,
.card-horizon .looter-faces {
  flex-wrap: nowrap;
}

.quest-card .looter-faces-avatars,
.card-horizon .looter-faces-avatars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.quest-card .looter-faces p,
.card-horizon .looter-faces p {
  margin-top: 0;
  flex: 1 1 auto;
  min-width: 0;
}

/*
 * Sections « plein cadre » dans le max-width : l’horizontal du .container est réappliqué
 * par les longhands (ex. .quests-section) sauf en desktop où on aligne le contenu sur les bords utiles.
 */
@media (min-width: 901px) {
  section.container.quests-section,
  section.container.steps-section,
  section.container.drop-related-section,
  section.container.ambassador-models-section,
  section.container.ambassador-form-section {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Filtre accueil (Stimulus) : cartes verticales + carte horizon (wrapper article pleine largeur). */
.quest-card.is-filtered-out,
.quest-card-hz-wrap.is-filtered-out,
.quest-card-link--grid-full.is-filtered-out,
.reward-card.is-filtered-out {
  display: none !important;
}

/* Cartes : lien image et lien corps séparés (bouton favori interactif hors <a>). */
.quest-card-media-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  z-index: 1;
}

.quest-card-body-link {
  text-decoration: none;
  color: inherit;
  display: block;
  flex: 1 1 auto;
  min-height: 0;
}

.quest-card-hz-media-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  text-decoration: none;
  color: inherit;
  z-index: 1;
}

.card-horizon > .quest-card-hz-body-link {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  text-decoration: none;
  color: inherit;
}

.quest-card-hz-wrap:hover .card-horizon {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #f0ebff;
}

.quest-card-hz-wrap:hover .card-horizon .hz-img-zone img {
  transform: scale(1.08) rotate(2deg);
}

button.btn-favorite {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  margin: 0;
  font: inherit;
}

/* Infobulles cœur : textes traduits (remplace le contenu fixe FR de cards.css). */
button.btn-favorite:not(.active)::before {
  content: attr(data-tooltip-add);
}

button.btn-favorite.active::before {
  content: attr(data-tooltip-remove);
}

a.btn-favorite--guest::before {
  content: attr(data-tooltip-add);
}

.drop-favorite-form-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.profile-favorites-grid {
  margin-top: 1rem;
}

/* Favoris async : accessibilité + état chargement */
.favorite-aria-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button.btn-favorite[aria-busy='true'] {
  opacity: 0.65;
  pointer-events: none;
}

/* Fiche drop : cœur bas-droite sur l’image (hors flux flex du .main-img-box, au-dessus du clic lightbox). */
.main-img-box .drop-favorite-ui {
  position: absolute;
  bottom: 15px;
  right: 15px;
  z-index: 6;
  pointer-events: none;
}

.main-img-box .drop-favorite-ui .btn-favorite,
.main-img-box .drop-favorite-ui .btn-favorite--guest {
  pointer-events: auto;
  position: static;
  bottom: auto;
  right: auto;
}

.badge-time--ended {
  opacity: 0.88;
  filter: grayscale(0.25);
}

/* Ne pas surcharger .card-image : la maquette (cards.css) impose déjà
   width/height 90 % + object-fit: contain dans .card-image-wrapper (280px). */

/* Langue : sous le copyright (maquette + i18n Symfony) */
.footer-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.35rem 0 0;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-lang__sep {
  opacity: 0.5;
}

.footer-lang__link {
  color: var(--text-dark, #334155);
  text-decoration: none;
}

.footer-lang__link:hover {
  text-decoration: underline;
}

.footer-lang__link.is-active {
  color: var(--primary-color, #ff6b81);
}

/* Pages légales & aide — hero + carte (aligné esprit « Comment ça marche ») */
.legal-page__hero {
  /* Nav + ticker sont en position:fixed (designeHtml/css/layout/header-footer.css) — ne pas les recouvrir */
  padding-top: calc(var(--nav-bar-height, 85px) + var(--live-ticker-height, 40px) + 2rem);
  padding-right: 1rem;
  padding-bottom: clamp(2rem, 5vw, 3rem);
  padding-left: 1rem;
  text-align: center;
  background: linear-gradient(
    145deg,
    rgba(95, 39, 205, 0.07) 0%,
    rgba(255, 107, 129, 0.06) 45%,
    rgba(251, 191, 36, 0.05) 100%
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.legal-page__hero-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.legal-page__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-round, 999px);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--secondary-color, #ff6b81);
  background: #fff;
  box-shadow: var(--shadow-card, 0 4px 14px rgba(15, 23, 42, 0.08));
}

.legal-page__badge-icon {
  display: inline-flex;
  font-size: 1rem;
  opacity: 0.95;
}

.legal-page__badge--faq {
  color: #5f27cd;
  background: linear-gradient(135deg, #fff 0%, rgba(95, 39, 205, 0.06) 100%);
}

.legal-page__badge--help {
  color: #0d9488;
  background: linear-gradient(135deg, #fff 0%, rgba(13, 148, 136, 0.08) 100%);
}

.legal-page__badge--contact {
  color: #c2410c;
  background: linear-gradient(135deg, #fff 0%, rgba(234, 88, 12, 0.08) 100%);
}

.legal-page__badge--privacy {
  color: #4338ca;
}

.legal-page__badge--cgv {
  color: #b45309;
}

.legal-page__badge--cgu {
  color: #1d4ed8;
}

.legal-page__badge--mentions {
  color: #0f766e;
}

.legal-page__badge--cookies {
  color: #a16207;
}

.legal-page__badge--retract {
  color: #be185d;
}

.legal-page__badge--trust {
  color: #047857;
}

.legal-page__title {
  font-family: var(--font-heading, inherit);
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 1rem;
  color: var(--text-dark, #1e293b);
  letter-spacing: -0.02em;
}

.legal-page__title::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 4px;
  margin: 1rem auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary-color, #ff6b81), var(--secondary-color, #5f27cd));
}

.legal-page__lead {
  max-width: 36rem;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted, #64748b);
  font-weight: 500;
}

.legal-page.legal-page--below-hero {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 0 auto;
  margin-top: -1.75rem;
  padding: 0 1rem 4rem;
}

/* Carte du bloc légal (CGU, CGV, etc.) — désactivée sur GPSR : .legal-page--no-body-card */
.legal-page.legal-page--below-hero > .legal-page__body {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl, 20px);
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2rem) clamp(2rem, 4vw, 2.75rem);
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.06),
    0 12px 32px -8px rgba(95, 39, 205, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.28);
  max-width: 100%;
  box-sizing: border-box;
}

.legal-page.legal-page--below-hero.legal-page--no-body-card > .legal-page__body {
  background: transparent;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

/* GPSR : pas de remontée sous le hero (comme la section formulaire ambassadeur) */
.legal-page.legal-page--below-hero.legal-page--no-body-card {
  margin-top: 0;
  padding-top: 10px;
}

/* Hero GPSR = même socle que ambassadeur ; padding pour nav + ticker fixes */
.hero.ambassador-page-hero.legal-gpsr-hero {
  padding-top: calc(var(--nav-bar-height, 85px) + var(--live-ticker-height, 40px) + 3.25rem);
  /* Moins d’air sous le lead : les liens retour suivent de près */
  padding-bottom: clamp(1rem, 2.2vw, 1.75rem);
}

/* Formulaire centré comme ambassador-form-wrap (650px) */
.legal-page.legal-page--below-hero.legal-page--no-body-card .gpsr-request-form {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.legal-page__body {
  color: var(--text-muted, #475569);
  line-height: 1.68;
}

.legal-page__body p + p {
  margin-top: 1rem;
}

/* Ne pas écraser .back-link / checkout (sections.css + checkout.css) */
.legal-page__body a:not(.back-link) {
  color: var(--primary-color, #ff6b81);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.legal-page__body a:not(.back-link):hover {
  color: var(--secondary-color, #5f27cd);
}

.legal-page__hint {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted, #64748b);
}

.legal-page__inline-link {
  color: var(--secondary-color, #5f27cd);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(95, 39, 205, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.legal-page__inline-link:hover {
  color: var(--primary-color, #ff6b81);
  border-bottom-color: rgba(255, 107, 129, 0.55);
}

.legal-page__gpsr-sent {
  margin-bottom: 1.25rem;
}

/* Même logique que main > .app-flash : centré, largeur au texte */
.legal-page__body .app-flash {
  width: fit-content;
  max-width: min(36rem, 100%);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.legal-page__body .gpsr-request-form {
  margin-top: 1.25rem;
  padding: 1.35rem 1.4rem 1.5rem;
  border-radius: var(--radius-lg, 16px);
  border: 1px solid rgba(95, 39, 205, 0.14);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.96));
  box-shadow: 0 4px 22px rgba(15, 23, 42, 0.07);
}

.legal-page__body .gpsr-request-form > ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm, 8px);
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #991b1b;
  font-size: 0.88rem;
  font-weight: 600;
}

.legal-page__body .gpsr-request-form > ul li + li {
  margin-top: 0.35rem;
}

.gpsr-request-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .gpsr-request-form__grid {
    grid-template-columns: 1fr;
  }
}

.gpsr-request-form__row--full {
  grid-column: 1 / -1;
}

.gpsr-request-form__grid > div {
  margin: 0;
  min-width: 0;
}

.gpsr-request-form label,
.gpsr-request-form__grid label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-dark, #1e293b);
}

.gpsr-request-form input[type='text'],
.gpsr-request-form input[type='email'],
.gpsr-request-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font: inherit;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gpsr-request-form input:disabled,
.gpsr-request-form textarea:disabled {
  background: rgba(241, 245, 249, 0.95);
  color: var(--text-dark, #1e293b);
  border-color: rgba(148, 163, 184, 0.35);
  cursor: not-allowed;
  opacity: 1;
}

.gpsr-request-form input:focus-visible,
.gpsr-request-form textarea:focus-visible {
  outline: none;
  border-color: rgba(95, 39, 205, 0.45);
  box-shadow: 0 0 0 3px rgba(95, 39, 205, 0.12);
}

.gpsr-request-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.gpsr-request-form__actions {
  margin-top: 1.35rem;
}

.legal-page__subheading {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-dark, #1e293b);
  margin: 1.85rem 0 0.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid rgba(255, 107, 129, 0.2);
}

.legal-page__body > .legal-page__subheading:first-child {
  margin-top: 0;
}

.legal-page__list {
  margin: 0.5rem 0 1rem 1.25rem;
  padding: 0;
  line-height: 1.65;
}

.legal-page__list li + li {
  margin-top: 0.4rem;
}

.legal-page__muted {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.9rem;
  color: var(--text-muted, #64748b);
}

.legal-help-hub {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
}

.legal-help-hub__item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  transition: background 0.15s ease;
  border-radius: 10px;
  margin: 0 -0.35rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.legal-help-hub__item:hover {
  background: rgba(95, 39, 205, 0.04);
}

.legal-help-hub__item:last-child {
  border-bottom: none;
}

.legal-help-hub__link {
  display: block;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--text-dark, #1e293b);
  text-decoration: none;
}

.legal-help-hub__link:hover {
  color: var(--primary-color, #ff6b81);
}

.legal-help-hub__desc {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.92rem;
  color: var(--text-muted, #64748b);
  line-height: 1.45;
}

/* FAQ sur la page « Comment ça marche » (#faq) : ancre lisible sous nav + ticker fixes */
#faq.faq-section {
  scroll-margin-top: calc(var(--nav-bar-height, 85px) + var(--live-ticker-height, 40px) + 16px);
}

/* FAQ : questions repliables (même grille / typo maquette, contenu masqué par défaut) */
#faq .faq-item__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0;
}

#faq .faq-item__summary::-webkit-details-marker {
  display: none;
}

#faq .faq-item__summary::marker {
  content: "";
}

#faq .faq-item__summary:focus {
  outline: none;
}

#faq .faq-item__summary:focus-visible {
  outline: 2px solid var(--primary-color, #ff6b81);
  outline-offset: 3px;
  border-radius: 6px;
}

#faq .faq-item__summary h3 {
  flex: 1;
  margin-bottom: 0;
  min-width: 0;
  text-align: left;
}

#faq .faq-item__chevron {
  flex-shrink: 0;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--accent-yellow, #feca57);
  line-height: 1;
  transition: transform 0.2s ease;
}

#faq details.faq-item[open] .faq-item__chevron {
  transform: rotate(180deg);
}

#faq .faq-item__body {
  padding-top: 0.85rem;
}

#faq .faq-item__body p {
  margin: 0;
}

/* Candidature ambassadeur : message après envoi */
.ambassador-flash-success {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(95, 39, 205, 0.08);
  border: 1px solid rgba(95, 39, 205, 0.2);
  color: var(--text-dark, #1e293b);
  font-weight: 600;
  line-height: 1.5;
}

/* Erreurs validation Symfony (thème div : ul > li), même lisibilité que .auth-form */
.ambassador-form-error-banner {
  margin: 0 0 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #b91c1c;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.45;
}

.ambassador-form > ul,
.ambassador-form .ambassador-form-field ul,
.ambassador-form fieldset > ul {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}

.ambassador-form > ul li,
.ambassador-form .ambassador-form-field ul li,
.ambassador-form fieldset > ul li {
  color: #b91c1c;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.ambassador-form > ul li + li,
.ambassador-form .ambassador-form-field ul li + li,
.ambassador-form fieldset > ul li + li {
  margin-top: 0.25rem;
}

/* En-tête fixe : ancre #formulaire / scrollIntoView laisse le titre lisible */
.ambassador-form-section#formulaire,
#formulaire-erreurs.ambassador-form-error-banner {
  scroll-margin-top: 5.5rem;
}

.faq-section__footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
  text-align: center;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted, #64748b);
}

.faq-section__footer a {
  color: var(--primary-color, #ff6b81);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-section__footer a:hover {
  color: var(--secondary-color, #5f27cd);
}

/* Fiche drop : pile d’avatars cliquable (div comme designeHtml/drop.html, pas <button>) */
div.avatar-stack.avatar-stack--open {
  cursor: pointer;
}

div.avatar-stack.avatar-stack--open:focus-visible {
  outline: 2px solid var(--primary-color, #ff6b81);
  outline-offset: 3px;
}

/* Drop clos : pas de chrono — libellé « Terminé » lisible comme l’ancien compteur en gras */
.timer-pill .timer-prefix--ended {
  opacity: 1;
  font-weight: 800;
  margin-right: 0;
}

.badge-time .timer-text--ended {
  font-weight: 800;
}

/* Chiffres à chasse fixe : limite les micro-reflows quand le chrono se met à jour chaque seconde */
[data-countdown-end] .timer-text {
  font-variant-numeric: tabular-nums;
}

.share-modal-demo-hint {
  font-size: 0.92em;
  font-weight: 600;
  opacity: 0.88;
}

.buyers-modal-empty {
  padding: 1rem 0.5rem;
  color: var(--text-muted, #64748b);
  font-size: 0.95rem;
  margin: 0;
}

/* Carte accueil : pastille % vs prix magasin */
.card-savings-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm, 6px);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--secondary-color, #ff6b81);
  background: rgba(255, 107, 129, 0.12);
  vertical-align: middle;
}

/* Galerie fiche drop : vignettes en <button> (a11y), flèches modale lightbox */
.thumb-gallery button.thumb {
  border: none;
  font: inherit;
  color: inherit;
  margin: 0;
}

/*
 * Lightbox image : le .modal-content global (settings.css, max-width ~38rem) a overflow-y: auto → tout ce qui dépasse
 * (croix top/right négatifs, flèches hors boîte) est rogné. On force overflow visible et on garde
 * les contrôles à l’intérieur du cadre pour qu’ils restent entièrement visibles.
 */
#imageModal .modal-content {
  position: relative;
  overflow: visible;
  max-height: none;
  padding: 52px 56px 16px;
  box-sizing: border-box;
}

#imageModal .image-modal-close {
  top: 10px;
  right: 10px;
  z-index: 20;
}

#imageModal .image-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  color: var(--text-dark, #1e293b);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast, 0.2s ease);
}

#imageModal .image-modal-nav:hover {
  background: var(--secondary-color, #ff6b81);
  color: #fff;
}

#imageModal .image-modal-nav--prev {
  left: 0;
}

#imageModal .image-modal-nav--next {
  right: 0;
}

@media (max-width: 640px) {
  #imageModal .modal-content {
    padding: 48px 12px 12px;
  }

  #imageModal .image-modal-nav--prev {
    left: 0;
  }

  #imageModal .image-modal-nav--next {
    right: 0;
  }
}

/* Auth Symfony : onglets avec lien, erreurs formulaire, flashes */
/* La maquette applique `nav { position: fixed }` au header — exclure les onglets connexion / inscription */
nav.auth-tabs {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  width: auto;
  max-width: none;
  z-index: auto;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transform: none;
  -webkit-transform: none;
}

.auth-tabs a.auth-tab {
  display: block;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.auth-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md, 12px);
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.auth-link-forgot--muted {
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
  font-weight: 700;
}

.auth-form ul {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.auth-form ul li {
  color: #b91c1c;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Bandeaux : largeur au contenu, centrés (pas une barre sur toute la grille panier) */
main > .app-flash {
  width: fit-content;
  max-width: min(36rem, calc(100% - 1.5rem));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Dégager nav + ticker fixes — sinon les flashes passent sous le header (pages légales, etc.) */
#main-content > .app-flash:first-child {
  margin-top: calc(var(--nav-bar-height, 85px) + var(--live-ticker-height, 40px) + 0.75rem);
}

.app-flash {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 10px 16px;
  border-radius: var(--radius-md, 12px);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.app-flash__icon {
  flex-shrink: 0;
  font-size: 1.05em;
  opacity: 0.95;
}

.app-flash__text {
  flex: 1 1 auto;
  min-width: 0;
}

.app-flash--success {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

.app-flash--success .app-flash__icon {
  color: #16a34a;
}

.app-flash--error {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.app-flash--error .app-flash__icon {
  color: #dc2626;
}

.app-flash--warning {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

.app-flash--warning .app-flash__icon {
  color: #d97706;
}

/* Profil : compléments au-dessus de profile.css (carte déconnexion) */
.profile-session-section {
  padding-bottom: var(--space-section, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-session-card {
  margin-top: 0;
  padding: 28px 32px;
}

.profile-session-title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-session-lede {
  margin: 0 0 20px;
  color: var(--text-muted, #64748b);
  font-size: 0.98rem;
}

.profile-email-line {
  margin: 0 0 8px;
  color: var(--text-muted, #64748b);
  font-size: 0.95rem;
}

.profile-points-line {
  margin: 0;
  font-family: var(--font-heading, inherit);
  font-weight: 700;
  font-size: 1.1rem;
  color: #d35400;
}

.profile-points-line i {
  margin-right: 6px;
  opacity: 0.9;
}

.profile-logout-form {
  margin: 0;
}

.profile-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-hero-fidelity {
  margin: 0 0 1rem;
  color: var(--text-muted, #64748b);
  font-size: 0.98rem;
  line-height: 1.45;
}

.profile-loot-status-legend {
  margin-top: 0.75rem;
}

.profile-hero-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.profile-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.875rem;
  width: 100%;
  max-width: 200px;
  margin-top: 0.15rem;
}

.profile-settings-btn--under-avatar {
  width: 100%;
  max-width: 200px;
  justify-content: center;
}

.profile-hero-actions .profile-settings-btn--under-avatar {
  max-width: none;
}

/*
 * Admin : identique à Paramètres (outline blanc / bordure neutre).
 * Réinitialisation explicite au cas où une ancienne feuille ou le cache serve encore l’ancien bloc « tout rouge ».
 */
.profile-hero-actions .profile-admin-dashboard-btn.btn-card.btn-card-outline {
  border: 2px solid var(--border-color);
  background: #fff;
  color: var(--text-dark);
  box-shadow: none;
}

.profile-hero-actions .profile-admin-dashboard-btn.btn-card.btn-card-outline:hover,
.profile-hero-actions .profile-admin-dashboard-btn.btn-card.btn-card-outline:focus-visible {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.profile-hero-actions .profile-admin-dashboard-btn i {
  color: #c0392b;
}

.profile-hero-actions .profile-admin-dashboard-btn:hover i,
.profile-hero-actions .profile-admin-dashboard-btn:focus-visible i {
  color: #c0392b;
}

.profile-main-info .profile-title-row {
  align-items: center;
  gap: 1rem;
}

.profile-stats-grid--hero-tight {
  margin-top: 1.25rem;
}

.profile-guild-placeholder {
  margin: 0;
  color: var(--text-muted, #64748b);
  font-size: 0.95rem;
}

.status-engaged {
  background: rgba(9, 132, 227, 0.12);
  color: #0984e3;
}

.status-paid {
  background: rgba(72, 219, 251, 0.12);
  color: #0abde3;
}

.status-cancelled {
  background: rgba(214, 48, 49, 0.1);
  color: #c0392b;
}

.status-refunded {
  background: rgba(243, 156, 18, 0.12);
  color: #d35400;
}

.btn-loot-detail--muted {
  cursor: default;
  opacity: 0.75;
  pointer-events: none;
}

.aqp-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(72, 219, 251, 0.15);
  color: #0984e3;
}

/*
 * Onglets fiche drop : la maquette utilise des <div class="tab"> avec police var(--font-heading) (drop.css).
 * Ne pas forcer font: inherit sur .tab (sinon perte de la typo maquette).
 */

/* Paramètres : déconnexion en POST (bouton stylé comme les liens de la sidebar maquette) */
.settings-nav .settings-logout-form {
  margin: 0;
}

.settings-nav .settings-nav-logout-submit {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 15px 20px;
  margin: 0;
  box-sizing: border-box;
  border: none;
  border-radius: var(--radius-md, 12px);
  background: transparent;
  color: var(--text-muted, #64748b);
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition, 0.25s ease);
  white-space: nowrap;
}

.settings-nav .settings-nav-logout-submit i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  opacity: 0.7;
}

.settings-nav .settings-nav-logout-submit:hover {
  background: rgba(95, 39, 205, 0.05);
  color: var(--primary-color, #5f27cd);
}

.settings-nav .settings-nav-logout-submit:hover i {
  opacity: 1;
}

.settings-placeholder-card {
  margin-top: 8px;
  padding: 28px 24px;
  border: 2px dashed var(--border-color, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  background: rgba(95, 39, 205, 0.03);
  color: var(--text-muted, #64748b);
  font-size: 1rem;
  line-height: 1.5;
}

.settings-placeholder-card p {
  margin: 0;
}

.settings-soon-note {
  margin: 24px 0;
  padding: 14px 18px;
  border-radius: var(--radius-md, 12px);
  background: rgba(95, 39, 205, 0.06);
  color: var(--text-muted, #64748b);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-soon-note i {
  color: var(--primary-color, #5f27cd);
  opacity: 0.85;
}

.settings-soon-note--muted {
  background: rgba(9, 132, 227, 0.07);
}

/* Encadré pseudo figé : au-dessus de la grille (e-mail / bio), pas sous le bouton Enregistrer */
.settings-soon-note--public-lock {
  margin-top: 0;
  margin-bottom: 20px;
}

.settings-form-actions--notif {
  margin-top: 20px;
}

.settings-security-lead {
  margin: 0 0 20px;
  color: var(--text-muted, #64748b);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 42rem;
}

.settings-form-actions {
  margin-top: 8px;
}

.settings-address-empty {
  margin: 0 0 16px;
  color: var(--text-muted, #64748b);
  font-size: 1rem;
  line-height: 1.5;
}

.settings-address-grid {
  min-width: 0;
}

a.add-address-btn {
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.settings-address-modal-form .form-group {
  min-width: 0;
}

.settings-address-modal-form .form-actions .btn-form-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/*
 * Cartes « Mes adresses » : même gabarit pour lien Modifier et boutons (évite l’écart <a> vs <button>).
 * Supprimer : accent thème (--secondary-color / corail), pas un rouge générique.
 */
.address-actions {
  flex-wrap: wrap;
  align-items: center;
}

.address-actions__form {
  display: inline-flex;
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: middle;
  flex: 0 0 auto;
  width: auto;
  max-width: max-content;
}

.address-actions__form button {
  vertical-align: middle;
  width: auto;
  max-width: none;
}

.address-actions .btn-address-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  cursor: pointer;
  font-family: var(--font-heading, inherit);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  padding: 5px 10px;
  width: auto;
  max-width: none;
  min-height: 0;
  border-radius: 999px;
  border: 2px solid var(--border-color, #e2e8f0);
  background: #fff;
  color: var(--text-dark, #1e293b);
  transition: var(--transition, 0.25s ease);
}

.address-actions a.btn-address-edit,
.address-actions a.btn-address-edit:visited {
  color: var(--text-dark, #1e293b);
}

.address-actions .btn-address-edit i {
  margin-right: 0;
}

.address-actions a.btn-address-edit:hover,
.address-actions button.btn-address-edit:not(.btn-address-edit--danger):hover {
  background: var(--primary-color, #5f27cd);
  border-color: var(--primary-color, #5f27cd);
  color: #fff;
}

.address-actions a.btn-address-edit:hover i,
.address-actions button.btn-address-edit:not(.btn-address-edit--danger):hover i {
  color: inherit;
}

.address-actions .btn-address-edit--danger {
  border-color: rgba(255, 107, 129, 0.55);
  color: var(--secondary-color, #ff6b81);
  background: #fff;
}

.address-actions .btn-address-edit--danger i {
  color: var(--secondary-color, #ff6b81);
}

.address-actions .btn-address-edit--danger:hover {
  background: var(--secondary-color, #ff6b81);
  border-color: var(--secondary-color, #ff6b81);
  color: #fff;
}

.address-actions .btn-address-edit--danger:hover i {
  color: #fff;
}

/* Grille « Informations publiques » : éviter que les libellés longs cassent la mise en page */
.settings-public-form .form-grid {
  min-width: 0;
}

.settings-public-form .form-group {
  min-width: 0;
}

.settings-public-form .form-group label {
  overflow-wrap: break-word;
  hyphens: auto;
}

.settings-public-form .form-group textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.profile-bio-line {
  margin: 0.35rem 0 0.75rem;
  max-width: 40rem;
  color: var(--text-muted, #64748b);
  font-size: 0.98rem;
  line-height: 1.55;
}

.loot-shipping-line {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted, #64748b);
  line-height: 1.45;
}

.loot-shipping-line i {
  margin-right: 6px;
  color: var(--primary-color, #5f27cd);
  opacity: 0.85;
}

/*
 * Checkout engagement : mêmes cartes que paramètres (.address-card) + radio.
 * Le texte des cartes vient des partials Twig partagés avec le profil.
 */
.address-card--selectable {
  display: block;
  margin: 0;
  cursor: pointer;
}

.address-card--selectable .address-card__radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}

.address-card--selectable:has(.address-card__radio:checked) {
  border-style: solid;
  border-color: var(--primary-color, #5f27cd);
  background: rgba(95, 39, 205, 0.05);
  box-shadow: 0 4px 15px rgba(95, 39, 205, 0.1);
}

.address-card--selectable:has(.address-card__radio:checked)::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--primary-color, #5f27cd);
  font-size: 1.2rem;
}

.drop-engagement-payment-demo {
  margin: 0 0 1rem;
  color: var(--text-muted, #64748b);
  font-size: 0.95rem;
  line-height: 1.5;
}

.drop-engagement-no-address-hint,
.drop-engagement-summary-blocked {
  margin: 0 0 1rem;
  color: var(--text-muted, #64748b);
  font-size: 0.95rem;
  line-height: 1.5;
}

.drop-engagement-summary-blocked {
  margin-top: 0.5rem;
}

.payment-method-card--static {
  cursor: default;
  margin-bottom: 0;
}

.payment-method-card--static:hover {
  border-color: var(--border-color, #e2e8f0);
}

/* Bons boutique (panier / checkout) */
.cart-summary__was {
  text-decoration: line-through;
  opacity: 0.65;
  font-weight: 500;
  margin-right: 0.35rem;
}

.cart-promo-block {
  margin: 1rem 0 0.75rem;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color, #e2e8f0);
  background: rgba(95, 39, 205, 0.04);
}

.cart-promo-block__body > .cart-promo-boutique-lede {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-dark, #2d3436);
  font-weight: 600;
}

.cart-promo-block__body .cart-promo-list {
  margin-bottom: 0;
}

.cart-promo-boutique-link {
  font-weight: 800;
  color: #d35400;
  text-decoration: none;
}

.cart-promo-boutique-link:hover {
  color: #e67e22;
}

.cart-promo-boutique-link:focus-visible {
  outline: 2px solid rgba(211, 84, 0, 0.5);
  outline-offset: 2px;
  border-radius: 2px;
}

.cart-promo-block__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-promo-block__hint {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: var(--text-muted, #64748b);
  line-height: 1.45;
}

.cart-promo-list {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
}

.cart-promo-list__item + .cart-promo-list__item {
  margin-top: 0.45rem;
}

.cart-promo-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.35;
}

.cart-promo-checkbox,
.cart-promo-radio {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.cart-promo-label__code {
  display: block;
  font-family: ui-monospace, monospace;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cart-promo-label__summary {
  display: block;
  color: var(--text-muted, #64748b);
  font-size: 0.82rem;
}

.cart-promo-empty-hint {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted, #64748b);
}

.cart-promo-empty-cta {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
}

.cart-promo-empty-cta__link {
  font-weight: 700;
  color: var(--primary-color, #5f27cd);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-promo-form__submit {
  width: 100%;
  justify-content: center;
}

.cart-promo-breakdown {
  margin: 0.5rem 0 0;
  padding: 0.5rem 0 0;
  border-top: 1px dashed var(--border-color, #e2e8f0);
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
}

.cart-promo-breakdown__line {
  margin: 0.2rem 0;
}

.cart-promo-block__hint--solo {
  margin-bottom: 0;
}

.cart-promo-legal-hint {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted, #64748b);
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.cart-promo-readonly__label {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.cart-promo-readonly-list {
  list-style: none;
  margin: 0 0 0.35rem;
  padding: 0;
}

.cart-promo-readonly-list__item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  font-size: 0.86rem;
}

.cart-promo-readonly-list__item:last-child {
  border-bottom: none;
}

.order-summary--cart-multi .summary-line--was strong {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem;
  justify-content: flex-end;
}

/* Fiche drop — onglet authenticité : fabricant non renseigné */
.legal-supplier-meta--muted {
  opacity: 0.78;
  font-style: italic;
}

/* Bloc fabricant : 3 lignes max, peu de hauteur */
.legal-supplier-meta--compact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.25rem;
  line-height: 1.35;
}

.legal-supplier-meta--compact .legal-supplier-meta__line {
  display: block;
}

/* Checkout — facturation (identique à la livraison par défaut) */
.checkout-billing-wrap {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color, #e2e8f0);
}

.checkout-billing-step-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

.checkout-billing-same-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.checkout-billing-same-label input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.checkout-billing-hint {
  margin: 0.35rem 0 0 1.6rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted, #64748b);
}

.checkout-billing-panel {
  margin-top: 0.85rem;
}

.checkout-billing-panel-lede {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
}

/* Fond disque avatar premium = jaune hero profil (.profile-main-avatar img) */
:root {
  --guild-premium-avatar-bg: #ffeaa7;
}

/* Cosmétique Guilde : halo + couronne — uniquement autour des .l-avatar premium (sinon DOM = maquette) */
.guild-avatar-premium {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
  vertical-align: middle;
}

.guild-avatar-premium__aura {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 120, 0.55) 0%, rgba(255, 180, 60, 0.2) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.guild-avatar-premium--card .guild-avatar-premium__aura {
  inset: -4px;
}

.guild-avatar-premium .l-avatar {
  position: relative;
  z-index: 1;
  background-color: var(--guild-premium-avatar-bg);
  /* Le jaune reste visible sous les SVG transparents ; photos opaques gardent le disque en arrière-plan */
}

.guild-avatar-premium__crown {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  line-height: 1;
  color: #d97706;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.guild-avatar-premium--stack .guild-avatar-premium__crown {
  top: -6px;
  font-size: 10px;
}

.guild-avatar-premium--card .guild-avatar-premium__crown {
  top: -5px;
  font-size: 8px;
}

/* Recouvrement : comme .avatar-stack .l-avatar / .l-avatar, mais sur le wrapper si premium */
.avatar-stack-inner > .guild-avatar-premium {
  margin-left: -12px;
}

.avatar-stack-inner > .guild-avatar-premium:first-child {
  margin-left: 0;
}

.avatar-stack .avatar-stack-inner .guild-avatar-premium .l-avatar {
  margin-left: 0;
}

.quest-card .looter-faces-avatars > .guild-avatar-premium,
.card-horizon .looter-faces-avatars > .guild-avatar-premium {
  margin-left: -12px;
}

.quest-card .looter-faces-avatars > .guild-avatar-premium:first-child,
.card-horizon .looter-faces-avatars > .guild-avatar-premium:first-child {
  margin-left: 0;
}

.quest-card .looter-faces-avatars .guild-avatar-premium .l-avatar,
.card-horizon .looter-faces-avatars .guild-avatar-premium .l-avatar {
  margin-left: 0;
}

/*
 * Pile guilde : gauche = derrière, droite = devant (z-index croissant), comme la maquette.
 * Le VIP en 1ʳᵉ position reste donc « dessous » les avatars suivants ; le « +N » tout à droite au-dessus.
 */
.avatar-stack .avatar-stack-inner > *,
.avatar-stack--quest .avatar-stack-row > *,
.quest-card .looter-faces-avatars > *,
.card-horizon .looter-faces-avatars > * {
  position: relative;
}

.avatar-stack .avatar-stack-inner > *:nth-child(1),
.avatar-stack--quest .avatar-stack-row > *:nth-child(1),
.quest-card .looter-faces-avatars > *:nth-child(1),
.card-horizon .looter-faces-avatars > *:nth-child(1) {
  z-index: 1;
}

.avatar-stack .avatar-stack-inner > *:nth-child(2),
.avatar-stack--quest .avatar-stack-row > *:nth-child(2),
.quest-card .looter-faces-avatars > *:nth-child(2),
.card-horizon .looter-faces-avatars > *:nth-child(2) {
  z-index: 2;
}

.avatar-stack .avatar-stack-inner > *:nth-child(3),
.avatar-stack--quest .avatar-stack-row > *:nth-child(3),
.quest-card .looter-faces-avatars > *:nth-child(3),
.card-horizon .looter-faces-avatars > *:nth-child(3) {
  z-index: 3;
}

.avatar-stack .avatar-stack-inner > *:nth-child(4),
.avatar-stack--quest .avatar-stack-row > *:nth-child(4),
.quest-card .looter-faces-avatars > *:nth-child(4),
.card-horizon .looter-faces-avatars > *:nth-child(4) {
  z-index: 4;
}

.avatar-stack .avatar-stack-inner > *:nth-child(5),
.avatar-stack--quest .avatar-stack-row > *:nth-child(5),
.quest-card .looter-faces-avatars > *:nth-child(5),
.card-horizon .looter-faces-avatars > *:nth-child(5) {
  z-index: 5;
}

.avatar-stack .avatar-stack-inner > *:nth-child(6),
.avatar-stack--quest .avatar-stack-row > *:nth-child(6),
.quest-card .looter-faces-avatars > *:nth-child(6),
.card-horizon .looter-faces-avatars > *:nth-child(6) {
  z-index: 6;
}

.avatar-stack .avatar-stack-inner > *:nth-child(7),
.avatar-stack--quest .avatar-stack-row > *:nth-child(7),
.quest-card .looter-faces-avatars > *:nth-child(7),
.card-horizon .looter-faces-avatars > *:nth-child(7) {
  z-index: 7;
}

.avatar-stack .avatar-stack-inner > *:nth-child(8),
.avatar-stack--quest .avatar-stack-row > *:nth-child(8),
.quest-card .looter-faces-avatars > *:nth-child(8),
.card-horizon .looter-faces-avatars > *:nth-child(8) {
  z-index: 8;
}

/* Pastille « +N » : dernier à droite = au-dessus de la pile (z-index explicite si besoin) */
.avatar-stack .avatar-stack-inner > .l-avatar.l-avatar-count,
.avatar-stack--quest .avatar-stack-row > .l-avatar.l-avatar-count,
.quest-card .looter-faces-avatars > .l-avatar.l-avatar-count,
.card-horizon .looter-faces-avatars > .l-avatar.l-avatar-count {
  position: relative;
  z-index: 40;
}

.buyer-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.buyer-avatar-wrap .buyer-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.buyer-avatar-wrap--premium .buyer-avatar-wrap__aura {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 120, 0.5) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.buyer-avatar-wrap--premium .buyer-avatar {
  position: relative;
  z-index: 1;
  background-color: var(--guild-premium-avatar-bg) !important;
}

.buyer-avatar-wrap__crown {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 11px;
  color: #d97706;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.profile-main-avatar--premium .profile-main-avatar__aura {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 120, 0.45) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.profile-main-avatar--premium img {
  position: relative;
  z-index: 1;
}

.profile-main-avatar__crown {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 1.35rem;
  color: #d97706;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  pointer-events: none;
}

.profile-main-avatar .level-badge {
  z-index: 3;
}

.user-module .user-avatar-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.user-avatar-wrap--premium .user-avatar-wrap__aura {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 120, 0.5) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.user-avatar-wrap--premium .user-avatar {
  position: relative;
  z-index: 1;
}

.user-avatar-wrap__crown {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 9px;
  color: #d97706;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.settings-avatar-wrap--premium .settings-avatar-wrap__aura {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 120, 0.45) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.settings-avatar-wrap--premium .settings-avatar-img {
  position: relative;
  z-index: 1;
}

.settings-avatar-wrap__crown {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 12px;
  color: #d97706;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.settings-avatar-wrap--premium .settings-avatar-edit {
  z-index: 4;
}

/* Panier — quêtes terminées (UX + lisibilité) */
.cart-closed-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  border: 1px solid rgba(234, 179, 8, 0.45);
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.55) 0%, rgba(253, 230, 138, 0.25) 100%);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.cart-closed-banner__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(202, 138, 4, 0.2);
  color: #a16207;
  font-size: 1.15rem;
}

.cart-closed-banner__text {
  flex: 1 1 220px;
  min-width: 0;
}

.cart-closed-banner__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #713f12;
  line-height: 1.3;
}

.cart-closed-banner__lede {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #854d0e;
  max-width: 52ch;
}

.cart-closed-banner__actions {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

@media (min-width: 720px) {
  .cart-closed-banner__actions {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    min-width: 220px;
  }
}

.cart-closed-banner__btn-primary {
  width: 100%;
  justify-content: center;
}

.cart-closed-banner__btn-secondary {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.cart-line--closed {
  opacity: 0.88;
}

.cart-line--closed .cart-line__media img,
.cart-line--closed .cart-line__placeholder {
  filter: grayscale(0.35);
}

.cart-line__closed-note {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #78716c;
  font-style: italic;
}

.cart-summary__open-only-hint {
  margin: 0 0 0.65rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #57534e;
  background: rgba(254, 243, 199, 0.35);
  border-radius: 8px;
  border-left: 3px solid #ca8a04;
}

/* Inscription — case CGU / confidentialité */
.form-group--checkbox {
  margin-top: 0.5rem;
}

.auth-checkbox-label {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #44403c;
  cursor: pointer;
}

.auth-checkbox {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.auth-legal--muted {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: #78716c;
}

/* Paramètres — données personnelles (RGPD) */
.settings-subheading {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #334155;
}

.settings-section-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* Soumettre profil / notifs : .btn-card impose width 100 % — on veut gabarit compact comme les liens outline */
.settings-public-form .btn-card.btn-card-outline.btn-compact-sm,
.settings-notif-form .btn-card.btn-card-outline.btn-compact-sm {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.settings-privacy-actions {
  margin-top: 1rem;
}

/* Bouton secondaire compact (paramètres : sécurité, export JSON, suppression compte) */
.btn-card-danger-outline {
  border-color: #b91c1c;
  color: #b91c1c;
}

.btn-card.btn-card-outline.btn-card-danger-outline:hover {
  background: rgba(185, 28, 28, 0.08);
  color: #991b1b;
  border-color: #991b1b;
}

.settings-delete-account-form {
  margin-top: 0.75rem;
}

.btn-epic--danger-outline {
  border: 2px solid #b91c1c;
  color: #b91c1c;
  background: transparent;
  box-shadow: none;
}

.btn-epic--danger-outline:hover {
  background: rgba(185, 28, 28, 0.08);
  color: #991b1b;
}

/* Profil — Mes butins : titre → fiche drop + modale détail */
.loot-title-link {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
  border-radius: 0.15rem;
  box-shadow: 0 1px 0 0 color-mix(in srgb, currentColor 22%, transparent);
}

.loot-title-link:hover {
  color: var(--primary-color, #5f27cd);
  box-shadow: 0 2px 0 0 color-mix(in srgb, var(--primary-color, #5f27cd) 45%, transparent);
}

.loot-title-link:focus-visible {
  outline: 2px solid var(--primary-color, #5f27cd);
  outline-offset: 2px;
}

/* Profil — Mes butins : en-tête commande + liste produits (multi-lignes) */
.loot-card-order-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-light, #e2e8f0);
}

.loot-card-order-head__ref {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-dark, #1e293b);
}

.loot-card-order-head__ref code,
.loot-card-order-head__ref {
  font-variant-numeric: tabular-nums;
}

.loot-card-order-head__count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
}

.loot-card--engaged {
  border-color: color-mix(in srgb, var(--primary-color, #0984e3) 28%, var(--border-light, #e2e8f0));
}

.loot-engaged-total-hint {
  margin: 0.35rem 0 0;
  max-width: 14rem;
  font-size: 0.75rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text-muted, #64748b);
}

.loot-lines-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.loot-lines-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--border-light, #e2e8f0);
  font-size: 0.98rem;
}

/* Statut clôture drop par ligne (profil : quêtes actives + mes butins) */
.aqp-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 5px;
}

.aqp-title-row .aqp-title {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

.drop-closure-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
}

.drop-closure-chip--compact {
  width: 1.35rem;
  height: 1.35rem;
  font-size: 0.82rem;
}

.drop-closure-chip--validated {
  color: #059669;
  background: rgba(5, 150, 105, 0.12);
}

.drop-closure-chip--failed {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
}

.drop-closure-chip--pending {
  color: #64748b;
  background: rgba(100, 116, 139, 0.12);
}

.loot-lines-list__item:last-child {
  border-bottom: none;
}

.loot-lines-list__title {
  font-weight: 700;
  font-family: var(--font-heading, inherit);
  color: var(--text-dark, #1e293b);
  flex: 1 1 12rem;
}

.loot-lines-list__qty-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  white-space: normal;
}

.loot-lines-list__qty {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  white-space: nowrap;
}

.loot-lines-list__price {
  margin-left: auto;
  font-weight: 700;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-dark, #1e293b);
  white-space: nowrap;
}

.loot-lines-list__price--zero {
  color: var(--text-muted, #64748b);
  font-weight: 600;
}

.loot-modal-products-ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.loot-modal-product-line {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--border-light, #e2e8f0);
}

.loot-modal-product-line:last-child {
  border-bottom: none;
}

.loot-modal-line-left {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.35rem 0.5rem;
  min-width: 0;
  flex: 1 1 10rem;
}

.loot-modal-line-left .drop-closure-chip--compact {
  margin-top: 0.12rem;
}

.loot-modal-line-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.loot-modal-line-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  color: var(--text-dark, #1e293b);
  white-space: nowrap;
  flex-shrink: 0;
}

.loot-modal-line-price--zero {
  color: var(--text-muted, #64748b);
  font-weight: 600;
}

.loot-detail-product-link {
  color: var(--text-dark, #1e293b);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.15rem;
  box-shadow: 0 1px 0 0 color-mix(in srgb, var(--text-dark, #1e293b) 22%, transparent);
}

.loot-detail-product-link:hover {
  color: var(--primary-color, #5f27cd);
  box-shadow: 0 2px 0 0 color-mix(in srgb, var(--primary-color, #5f27cd) 45%, transparent);
}

.loot-detail-product-link:focus-visible {
  outline: 2px solid var(--primary-color, #5f27cd);
  outline-offset: 2px;
}

.loot-detail-product-qty {
  color: var(--text-muted, #64748b);
  font-weight: 600;
  font-size: 0.82rem;
}

.loot-modal-qty-bundle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.loot-detail-v--products {
  font-weight: 500;
}

.loot-detail-modal-body {
  padding: 0 1.25rem 1.25rem;
}

.loot-detail-modal-rows {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.loot-detail-row {
  display: grid;
  grid-template-columns: minmax(7rem, 9.5rem) 1fr;
  gap: 0.5rem 1rem;
  align-items: start;
  font-size: 0.9rem;
  line-height: 1.45;
}

.loot-detail-k {
  font-weight: 700;
  color: var(--text-muted, #64748b);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.loot-detail-v {
  color: var(--text-dark, #1e293b);
  font-weight: 600;
  word-break: break-word;
}

.loot-detail-v .loot-detail-tracking-link {
  color: var(--text-dark, #1e293b);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 1px 0 0 color-mix(in srgb, var(--text-dark, #1e293b) 22%, transparent);
}

.loot-detail-v .loot-detail-tracking-link:hover {
  color: var(--primary-color, #5f27cd);
  box-shadow: 0 2px 0 0 color-mix(in srgb, var(--primary-color, #5f27cd) 45%, transparent);
}

.loot-detail-v--money {
  display: block;
  width: 100%;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.loot-detail-v--total {
  font-size: 1.05rem;
}

.loot-detail-row--subtotal .loot-detail-k,
.loot-detail-row--shipping-fee .loot-detail-k {
  font-weight: 600;
}

.loot-detail-row--total-paid {
  padding-top: 0.35rem;
  margin-top: 0.15rem;
  border-top: 1px solid var(--border-light, #e2e8f0);
}

.loot-detail-modal-actions {
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Facture + fiche drop côte à côte (modale Mes butins) */
.loot-detail-modal-actions--paired {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.65rem;
}

.loot-detail-modal-actions--paired .btn-loot-detail {
  width: auto;
  flex: 1 1 calc(50% - 0.35rem);
  min-width: min(100%, 10rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

/* Accueil #quests sous-sections : voir assets/styles/home_quests_sections.css (chargé en dernier sur l’index). */

/* Stripe — page engagement panier (Payment Element) */
.cart-engagement-stripe-root--sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.cart-engagement-stripe-error {
  color: #f87171;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.4;
}
.cart-engagement-payment-element {
  margin-top: 1rem;
  background: #ffffff;
  border-radius: 12px;
}

/*
 * Logo CB ↔ loader (engagement + régularisation).
 * — Grille 2 colonnes sur la carte : la colonne texte ne peut plus passer sous l’icône.
 * — Variables sur .payment-method-card--stripe-trigger : ajustables dans la console
 *   puis recopiées ici, ex. :
 *   el.style.setProperty('--stripe-pay-icon-col', '3rem');
 *   el.style.setProperty('--stripe-pay-slot-size', '2.75rem');
 * Font Awesome écrase hidden : règle [hidden] obligatoire.
 */
.payment-method-card--stripe-trigger {
  --stripe-pay-icon-col: 2.5rem;
  --stripe-pay-icon-gap: 15px;
  --stripe-pay-slot-size: 2.5rem;
  --stripe-pay-slot-font: 1.8rem;
  display: grid;
  grid-template-columns: var(--stripe-pay-icon-col) minmax(0, 1fr);
  gap: var(--stripe-pay-icon-gap);
  align-items: center;
  cursor: pointer;
}

.payment-method-card--stripe-trigger .payment-method-body {
  min-width: 0;
}

.payment-method-card__stripe-icon-slot {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: var(--stripe-pay-slot-size);
  height: var(--stripe-pay-slot-size);
  font-size: var(--stripe-pay-slot-font);
  line-height: 1;
}

.payment-method-card__stripe-icon-slot [hidden] {
  display: none !important;
}

/* Même case : les deux icônes se superposent en 1×1 (sans absolute → pas de fuite sur le texte). */
.payment-method-card__stripe-icon-slot .payment-icon {
  grid-area: 1 / 1;
  margin: 0;
  font-size: 1em;
  line-height: 1;
}

.payment-method-card__stripe-icon-slot .js-stripe-loader-icon {
  color: #5f27cd;
}

/* Clic pour ouvrir Stripe : focus clavier */
.payment-method-card--stripe-trigger:focus-visible {
  outline: 2px solid rgba(201, 162, 39, 0.55);
  outline-offset: 3px;
}
.payment-method-card--stripe-trigger.is-loading {
  pointer-events: none;
  cursor: wait;
}
.order-summary--cart-multi .btn-checkout-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.order-summary--cart-multi .btn-checkout-submit.is-stripe-processing {
  cursor: wait;
  opacity: 1;
}

.order-summary--cart-multi .btn-checkout-submit.is-stripe-processing:disabled {
  opacity: 1;
}

.regularize-deadline-callout {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(231, 76, 60, 0.35);
  background: color-mix(in srgb, #e74c3c 8%, transparent);
}

.regularize-deadline-callout__icon {
  color: #e74c3c;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.regularize-deadline-callout__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Profil : paiement régularisation (alerte + carte quête) */
.profile-payment-regularization-banner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-xl, 16px);
  border: 1px solid rgba(231, 76, 60, 0.45);
  background: color-mix(in srgb, #e74c3c 10%, transparent);
}

.profile-payment-regularization-banner__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, #e74c3c 18%, transparent);
  color: #c0392b;
  font-size: 1.1rem;
}

.profile-payment-regularization-banner__title {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.profile-payment-regularization-banner__lede {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0.95;
}

.profile-payment-regularization-banner__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.profile-payment-regularization-banner__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.profile-payment-regularization-banner__ref code {
  font-size: 0.9rem;
}

.profile-payment-regularization-banner__dl {
  font-size: 0.85rem;
  opacity: 0.9;
}

.profile-payment-regularization-banner__cta {
  margin-left: auto;
}

@media (max-width: 640px) {
  .profile-payment-regularization-banner__cta {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}

.profile-quest-regularize-callout {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(231, 76, 60, 0.4);
  background: color-mix(in srgb, #e74c3c 8%, transparent);
}

.profile-quest-regularize-callout__title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.profile-quest-regularize-callout__dl {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  line-height: 1.4;
  opacity: 0.92;
}

.profile-quest-regularize-callout__btn {
  display: inline-flex !important;
  width: auto !important;
}

.regularize-unavailable-page {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  padding-top: clamp(6rem, 18vw, 10rem);
  padding-bottom: 4rem;
}

.regularize-unavailable-actions {
  margin-top: 1.5rem;
}

/* CTA : pas en pleine largeur grille checkout */
.regularize-unavailable-actions .btn-epic {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  justify-content: center;
}

.cart-promo-list--readonly .cart-promo-list__item--readonly {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cart-promo-readonly-footnote,
.cart-promo-readonly-none {
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
  opacity: 0.9;
}

/* Profil — quête : compteur terminé (pas 0:00:00) */
.timer-pill--ended-profile {
  background: rgba(148, 163, 184, 0.12);
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.timer-pill--ended-profile .timer-text--ended {
  font-weight: 700;
}

/* Profil — bouton « Inviter des alliés » : reste rouge au survol de la carte */
.active-quest-premium:hover .btn-card-share {
  background: #e24d65 !important;
  border-color: #e24d65 !important;
  color: #fff !important;
}

.active-quest-premium:hover .btn-card-share:hover,
.active-quest-premium:hover .btn-card-share:focus-visible {
  background: #c73e52 !important;
  border-color: #c73e52 !important;
  color: #fff !important;
}

/* Panier (/panier) — aligné grille + aside comme /panier/engagement */
.checkout-steps > .cart-closed-banner {
  margin-bottom: 0.35rem;
}

.checkout-steps > .cart-lines {
  margin: 0;
}

.cart-lines {
  gap: 1rem;
}

.cart-line {
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cart-line:hover {
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.cart-aside .cart-summary {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
  padding: 1.35rem 1.2rem;
}

.order-summary--cart-multi .summary-estimate-box,
.drop-engagement-form .order-summary .summary-estimate-box {
  background: rgba(95, 39, 205, 0.05);
  border: 1px dashed rgba(95, 39, 205, 0.28);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0.75rem 0 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.order-summary--cart-multi .summary-estimate-icon,
.drop-engagement-form .order-summary .summary-estimate-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color, #5f27cd);
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.order-summary--cart-multi .summary-estimate-label,
.drop-engagement-form .order-summary .summary-estimate-label {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.order-summary--cart-multi .summary-estimate-value,
.drop-engagement-form .order-summary .summary-estimate-value {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--primary-color, #5f27cd);
  line-height: 1.35;
}

/* Fiche drop — CTA désactivé (quête terminée / pas encore ouverte) */
.sticky-buy-panel .btn-epic-glow--disabled-drop {
  cursor: not-allowed;
  opacity: 0.72;
  filter: grayscale(0.15);
  box-shadow: none;
}

