/* ================================
   Review part 7 — fixes & author page
   Button overrides, FAQ tldr, brand label,
   author bio enriched, author archive page
   ================================ */

/* ---------- Button overrides (priorité haute) ---------- */
.btn,
a.btn,
.test-content a.btn,
.cta-box a.btn,
.sidebar-card a.btn,
.final-verdict a.btn {
    color: #ffffff !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all .2s;
    line-height: 1;
}
.btn-primary,
a.btn-primary,
.test-content a.btn-primary {
    background: var(--accent-grad) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.25);
}
.btn-primary:hover,
a.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.35);
    color: #ffffff !important;
    text-decoration: none !important;
}
.btn svg { color: #ffffff !important; }
.btn-lg {
    padding: 16px 28px;
    font-size: 16px;
}

/* ---------- Brand label "Marque" ---------- */
.th-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    width: fit-content;
    font-size: 13px;
}
.th-brand-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--text-dim);
    font-weight: 600;
    padding-right: 10px;
    border-right: 1px solid var(--border);
}
.th-brand strong {
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
}

/* ---------- FAQ TL;DR (AEO/GEO) ---------- */
.faq-q {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 600;
    line-height: 1.4;
}
.faq-tldr {
    padding: 12px 16px;
    background: rgba(124, 58, 237, 0.08);
    border-left: 3px solid var(--accent-1);
    border-radius: 0 8px 8px 0;
    margin-bottom: 12px !important;
    font-size: 14px;
    color: var(--text);
}
.faq-tldr strong { color: var(--accent-2); }

/* ---------- Author bio enriched ---------- */
.author-bio {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    margin: 48px 0 0;
    background-image:
        radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.06), transparent 60%);
}
.author-bio .ab-avatar {
    width: 96px; height: 96px;
    border-radius: 50%;
    background: var(--accent-grad);
    overflow: hidden;
}
.author-bio .ab-avatar img {
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    object-fit: cover;
}
.ab-content { display: flex; flex-direction: column; }
.ab-content .ab-name {
    text-decoration: none;
    color: var(--text);
    margin-bottom: 2px;
    transition: color .2s;
}
.ab-content .ab-name:hover { color: var(--accent-2); }
.ab-content .ab-name strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
}
.ab-job {
    display: block;
    font-size: 13px;
    color: var(--accent-2);
    font-weight: 600;
    margin-bottom: 10px;
}
.ab-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.ab-link {
    color: var(--accent-2);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.ab-link:hover { text-decoration: underline; }
.ab-actions a[aria-label] {
    width: 32px; height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s;
}
.ab-actions a[aria-label]:hover {
    background: var(--accent-grad);
    color: #fff;
}

/* ---------- Author archive page ---------- */
.author-page { padding-bottom: 80px; }
.author-hero {
    padding: 32px 0 60px;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.author-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(124, 58, 237, 0.12), transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(6, 182, 212, 0.12), transparent 50%);
    pointer-events: none;
}
.author-hero > .container { position: relative; }
.ah-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 24px;
}
.ah-avatar img {
    width: 200px; height: 200px;
    border-radius: 24px;
    object-fit: cover;
    border: 3px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
}
.ah-kicker {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 16px;
}
.ah-content h1 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
    margin-bottom: 8px;
}
.ah-job {
    font-size: 16px;
    color: var(--accent-2);
    font-weight: 600;
    margin-bottom: 16px;
}
.ah-bio {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 720px;
}
.ah-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.ah-stats > div { display: flex; flex-direction: column; }
.ah-stats strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.ah-stats span {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-top: 4px;
}
.ah-social {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.ah-social a {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
}
.ah-social a:hover {
    border-color: var(--accent-1);
    color: var(--accent-2);
}
.ah-expertise {
    list-style: none;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin: 0;
}
.ah-expertise li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-muted);
}
.ah-expertise li strong { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
    .ah-grid { grid-template-columns: 1fr; }
    .ah-avatar img { width: 140px; height: 140px; }
    .author-bio { grid-template-columns: 1fr; text-align: center; }
    .author-bio .ab-avatar { margin: 0 auto; }
    .ab-actions { justify-content: center; }
}
