/* ============================================================
   Blog styles — Usibee
   Dépend de css/style.css (couleurs, container, header, footer)
   ============================================================ */

/* ---------- Listing (blog.html) ---------- */
.blog-hero {
    padding: 145px 0 40px;
    background: linear-gradient(180deg, #faf7ff 0%, #ffffff 100%);
    text-align: center;
}
.blog-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin: 16px 0 12px;
    color: #1a1033;
    letter-spacing: -0.02em;
}
.blog-hero p {
    max-width: 640px;
    margin: 0 auto;
    color: #4a4565;
    font-size: 1.1rem;
    line-height: 1.6;
}

.blog-list {
    padding: 40px 0 100px;
}
.blog-list__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.blog-card {
    background: #fff;
    border: 1px solid #ece8f5;
    border-radius: 16px;
    padding: 28px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -20px rgba(124, 58, 237, 0.25);
    border-color: #d7c9f5;
}
.blog-card .badge {
    align-self: flex-start;
    margin-bottom: 16px;
}
.blog-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
    color: #1a1033;
    letter-spacing: -0.01em;
}
.blog-card p {
    color: #4a4565;
    line-height: 1.6;
    margin: 0 0 24px;
    flex-grow: 1;
}
.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #8076a3;
    font-size: .88rem;
    padding-top: 16px;
    border-top: 1px solid #f0edf7;
}
.blog-card__arrow {
    margin-left: auto;
    color: #7c3aed;
    font-weight: 600;
    transition: transform .2s;
}
.blog-card:hover .blog-card__arrow {
    transform: translateX(4px);
}

/* ---------- Article page ---------- */
.article {
    padding: 40px 0 100px;
}
.article__container {
    max-width: 780px;
}
.article__breadcrumbs {
    font-size: .9rem;
    color: #8076a3;
    margin-bottom: 49px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.article__breadcrumbs a {
    color: #7c3aed;
    text-decoration: none;
}
.article__breadcrumbs a:hover { text-decoration: underline; }
.article__breadcrumbs span[aria-current] { color: #4a4565; }

.article__header { margin-bottom: 32px; }
.article__header .badge { margin-bottom: 20px; }
.article__title {
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    color: #1a1033;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}
.article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #8076a3;
    font-size: .95rem;
}
.article__meta strong { color: #4a4565; }

.article__lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #2e2554;
    padding: 24px 28px;
    background: linear-gradient(180deg, #faf7ff 0%, #f4edfd 100%);
    border-left: 4px solid #7c3aed;
    border-radius: 8px;
    margin: 32px 0;
}
.article__lead p { margin: 0; }

.article__toc {
    background: #fafafb;
    border: 1px solid #ece8f5;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 32px 0 48px;
}
.article__toc h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #8076a3;
    margin: 0 0 16px;
    font-weight: 700;
}
.article__toc ol {
    margin: 0;
    padding-left: 24px;
    line-height: 2;
}
.article__toc a {
    color: #4a4565;
    text-decoration: none;
    transition: color .15s;
}
.article__toc a:hover { color: #7c3aed; }

.article section {
    margin-bottom: 48px;
}
.article h2 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #1a1033;
    letter-spacing: -0.015em;
    margin: 48px 0 20px;
    line-height: 1.25;
}
.article h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1033;
    margin: 32px 0 14px;
    line-height: 1.35;
}
.article p {
    color: #2e2554;
    line-height: 1.75;
    font-size: 1.05rem;
    margin: 0 0 16px;
}
.article ul, .article ol {
    margin: 0 0 20px;
    padding-left: 24px;
    line-height: 1.75;
    color: #2e2554;
}
.article li { margin-bottom: 8px; font-size: 1.05rem; }
.article strong { color: #1a1033; }
.article a { color: #7c3aed; text-decoration: underline; text-underline-offset: 3px; }
.article a:hover { color: #5f2dc5; }

.article__table-wrapper {
    overflow-x: auto;
    margin: 24px 0 28px;
    border-radius: 12px;
    border: 1px solid #ece8f5;
}
.article__table {
    width: 100%;
    border-collapse: collapse;
    font-size: .97rem;
    background: #fff;
}
.article__table th,
.article__table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #ece8f5;
    vertical-align: top;
}
.article__table th {
    background: #faf7ff;
    color: #1a1033;
    font-weight: 700;
    font-size: .88rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.article__table tr:last-child td { border-bottom: none; }
.article__table tr:hover td { background: #fcfaff; }

.article__cta-box {
    margin: 40px 0;
    padding: 32px;
    background: linear-gradient(135deg, #7c3aed 0%, #5f2dc5 100%);
    border-radius: 16px;
    color: #fff;
    text-align: center;
}
.article__cta-box h3 {
    color: #fff;
    font-size: 1.4rem;
    margin: 0 0 12px;
}
.article__cta-box p {
    color: rgba(255, 255, 255, 0.92);
    margin: 0 auto 24px;
    max-width: 520px;
}
.article__cta-box .btn { margin: 6px; }
.article__cta-box .btn--primary,
.article__cta-box .btn--primary:hover {
    color: #fff;
}
.article__cta-box .btn--ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
}
.article__cta-box .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

.article__vendor {
    padding: 28px;
    background: #fafafb;
    border: 1px solid #ece8f5;
    border-radius: 12px;
    margin-bottom: 32px !important;
}
.article__vendor h2 { margin-top: 0; font-size: 1.45rem; }
.article__vendor h3 { font-size: 1.05rem; color: #7c3aed; }

.article__faq {
    background: #fff;
    border: 1px solid #ece8f5;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow .2s;
}
.article__faq:hover { box-shadow: 0 4px 16px -8px rgba(124, 58, 237, 0.15); }
.article__faq summary {
    cursor: pointer;
    padding: 18px 22px;
    font-weight: 600;
    color: #1a1033;
    list-style: none;
    position: relative;
    padding-right: 50px;
}
.article__faq summary::-webkit-details-marker { display: none; }
.article__faq summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #7c3aed;
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform .2s;
}
.article__faq[open] summary::after { content: "−"; }
.article__faq[open] summary { border-bottom: 1px solid #ece8f5; }
.article__faq p {
    padding: 18px 22px;
    margin: 0;
    color: #4a4565;
    line-height: 1.7;
}

.article__conclusion {
    margin-top: 56px;
    padding: 28px;
    background: #faf7ff;
    border-radius: 12px;
}
.article__conclusion h2 { margin-top: 0; }

.article__next {
    margin-top: 48px;
    padding: 28px;
    border-top: 2px solid #ece8f5;
}
.article__next h3 {
    color: #8076a3;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .9rem;
    margin: 0 0 16px;
}
.article__next ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.article__next li {
    margin-bottom: 10px;
}
.article__next a {
    display: inline-block;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    color: #1a1033;
    border-bottom: 2px solid transparent;
    transition: border-color .2s, color .2s;
}
.article__next a:hover {
    color: #7c3aed;
    border-bottom-color: #7c3aed;
}

/* Responsive */
@media (max-width: 640px) {
    .article { padding: 24px 0 60px; }
    .article__lead { padding: 20px; font-size: 1.05rem; }
    .article__toc { padding: 20px; }
    .article__cta-box { padding: 24px 20px; }
    .article__vendor { padding: 22px; }
    .article__table th, .article__table td { padding: 10px 12px; font-size: .9rem; }
    .blog-hero { padding: 56px 0 32px; }
    .blog-list { padding: 32px 0 60px; }
}
