/* ─────────────────────────────────────────────────────────────
   profile-accordion.css
   Styles pour la colonne droite du profil privé en mode
   ACCORDÉON (5 blocs : Préférences emails, Communauté, Mes
   badges, Mes prochaines soirées, Ma collection en ligne).
   À ajouter à `public/css/app.css` ou à charger en additionnel.
   ───────────────────────────────────────────────────────────── */

/* Accordéon générique (même pattern que /admin/changelog.php) */
.profile-grid-right .accordion,
.profile-grid-left  .accordion,
.profile-left-acc   .accordion {
    cursor: pointer;
    user-select: none;
    transition: background .15s;
}
.profile-grid-right .accordion:hover,
.profile-grid-left  .accordion:hover,
.profile-left-acc   .accordion:hover {
    background: rgba(232, 80, 10, .04);
}
.profile-grid-right .accordion .acc-chevron,
.profile-grid-left  .accordion .acc-chevron,
.profile-left-acc   .accordion .acc-chevron {
    margin-left: auto;
    font-size: 13px;
    color: var(--muted);
    transition: transform .25s ease;
    display: inline-block;
    flex-shrink: 0;
}
.profile-grid-right .card.open .acc-chevron,
.profile-grid-left  .card.open .acc-chevron,
.profile-left-acc.open         .acc-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}
.profile-grid-right .acc-body,
.profile-grid-left  .acc-body,
.profile-left-acc   .acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.profile-grid-right .card.open .acc-body,
.profile-grid-left  .card.open .acc-body,
.profile-left-acc.open         .acc-body {
    max-height: 4000px;
}
.profile-grid-right .card.open .accordion,
.profile-grid-left  .card.open .accordion,
.profile-left-acc.open         .accordion {
    border-bottom-color: var(--border);
}
.profile-grid-right .card:not(.open) .accordion,
.profile-grid-left  .card:not(.open) .accordion,
.profile-left-acc:not(.open)         .accordion {
    border-bottom-color: transparent;
}

/* En-tête : compteur + info auxiliaire */
.profile-grid-right .card-head .ch-count,
.profile-grid-left  .card-head .ch-count {
    font-size: 12px;
    color: var(--muted);
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 20px;
}
.profile-grid-right .card-head .head-info,
.profile-grid-left  .card-head .head-info {
    margin-left: auto;
    font-size: 11.5px;
    color: var(--muted);
    background: var(--bg);
    padding: 3px 10px;
    border-radius: 20px;
}
.profile-grid-right .card-head .head-info b,
.profile-grid-left  .card-head .head-info b {
    color: var(--accent);
    font-weight: 800;
}

/* ── Bloc badges (4 sous-catégories) ─────────────────────── */
.badges-block-body {
    padding: 14px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.badge-cat {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px 12px;
    background: var(--bg);
}
.badge-cat-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.badge-cat-ico  { font-size: 16px; }
.badge-cat-title {
    font-weight: 800;
    font-size: 12.5px;
    color: var(--ink);
}
.badge-cat-count {
    margin-left: auto;
    font-size: 11px;
    background: #fff;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
}
.badge-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.badge-tile {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 6px;
    text-align: center;
    transition: all .15s;
}
.badge-tile.earned {
    border-color: rgba(232, 80, 10, .25);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.badge-tile.locked {
    opacity: .55;
    filter: grayscale(.85);
}
.badge-tile-svg {
    width: 36px;
    height: 36px;
    margin: 0 auto 4px;
    display: block;
}
.badge-tile-svg svg { width: 100%; height: 100%; }
.badge-tile-label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 4px;
}
.badge-tile-check {
    font-size: 10px;
    color: var(--green, #15803d);
    font-weight: 700;
}
.badge-tile-progress {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    color: var(--muted);
}
.badge-tile-progress .bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
}
.badge-tile-progress .fill {
    height: 100%;
    background: var(--accent);
    border-radius: 99px;
}

/* Barre de progression globale */
.badges-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 2px;
    font-size: 11.5px;
    color: var(--muted);
    border-top: 1px dashed var(--border);
    margin-top: 4px;
}
.badges-progress .bar {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
}
.badges-progress .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #f7c948);
    border-radius: 99px;
}

/* Responsive : 4 → 3 → 2 colonnes */
@media (max-width: 760px) {
    .badge-cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 420px) {
    .badge-cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* FAQ : pastilles badges inline */
.faq-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg, #f8fafc);
    border: 1px solid var(--border);
    padding: 3px 10px 3px 6px;
    border-radius: 20px;
    margin: 3px 4px 3px 0;
    font-size: 13px;
    white-space: nowrap;
}
.faq-badge svg { flex-shrink: 0; }
.faq-badge strong { color: var(--ink); }
