/* =========================================================
   Blog Articles — Styles partagés
   ========================================================= */

/* --- Back to blog button --- */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    margin-bottom: 32px;
    padding: 10px 18px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}
.back-to-blog:hover {
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.07);
    transform: translateX(-3px);
}
.back-to-blog svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* --- Article header --- */
.article-header {
    padding-top: 150px;
    padding-bottom: 50px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .article-header {
        padding-top: 120px;
        padding-bottom: 32px;
    }
}

/* --- Article meta (reading time, date) --- */
.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.article-meta svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* --- Article cover image --- */
.article-cover {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    margin-bottom: 60px;
    display: block;
}
@media (max-width: 768px) {
    .article-cover {
        border-radius: 12px;
        margin-bottom: 40px;
    }
}

/* --- Article content --- */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.85;
    padding-bottom: 80px;
}
.article-content h2 {
    color: var(--text-primary);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-top: 60px;
    margin-bottom: 20px;
    line-height: 1.25;
}
.article-content h3 {
    color: var(--text-primary);
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    margin-top: 40px;
    margin-bottom: 14px;
}
.article-content h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-top: 28px;
    margin-bottom: 10px;
}
.article-content p {
    margin-bottom: 24px;
}
.article-content ul,
.article-content ol {
    margin-bottom: 24px;
    padding-left: 22px;
}
.article-content li {
    margin-bottom: 10px;
}
.article-content a {
    color: var(--accent-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- Pro tip --- */
.pro-tip {
    background: rgba(48, 209, 88, 0.05);
    border: 1px solid rgba(48, 209, 88, 0.15);
    border-left: 4px solid var(--accent-green);
    padding: 24px 28px;
    margin: 40px 0;
    border-radius: 0 16px 16px 0;
}
.pro-tip h4 {
    color: var(--accent-green);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* --- Definition box --- */
.definition-box {
    background: rgba(41, 151, 255, 0.05);
    border: 1px solid rgba(41, 151, 255, 0.15);
    padding: 28px 32px;
    border-radius: 16px;
    margin: 40px 0;
}
.definition-box h3 {
    color: var(--accent-blue);
    margin-top: 0;
    margin-bottom: 14px;
}

/* --- Device/feature card --- */
.device-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 28px 32px;
    margin: 32px 0;
}
.device-card h3 {
    color: var(--accent-orange);
    margin-top: 0;
    margin-bottom: 14px;
}

/* --- Alert box --- */
.alert-box {
    background: rgba(255, 59, 48, 0.05);
    border: 1px solid rgba(255, 59, 48, 0.2);
    padding: 24px 28px;
    border-radius: 12px;
    margin: 24px 0;
}
.alert-box strong {
    color: #ff453a;
    display: block;
    margin-bottom: 8px;
}

/* --- Numbered step list --- */
.step-list {
    counter-reset: custom-counter;
    list-style: none;
    padding: 0;
    margin: 40px 0;
}
.step-list li {
    position: relative;
    padding-left: 60px;
    margin-bottom: 28px;
}
.step-list li::before {
    counter-increment: custom-counter;
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 38px;
    height: 38px;
    background: rgba(41, 151, 255, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(41, 151, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

/* --- Structured data table --- */
.structure-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    font-size: 0.92rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}
.structure-table thead {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-weight: 700;
}
.structure-table th,
.structure-table td {
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}
.structure-table tr:last-child td {
    border-bottom: none;
}
.structure-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}
.structure-table tr.break-row {
    background: rgba(255, 159, 10, 0.08);
    color: var(--accent-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.82rem;
}
@media (max-width: 640px) {
    .structure-table th,
    .structure-table td {
        padding: 10px 8px;
        font-size: 0.82rem;
    }
}

/* --- Article CTA block --- */
.article-cta {
    margin-top: 60px;
    padding: 40px;
    text-align: center;
    border-radius: 24px;
}
.article-cta h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 12px;
}
.article-cta p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}
@media (max-width: 768px) {
    .article-cta {
        padding: 28px 20px;
    }
}

/* --- Formula box --- */
.formula-box {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin: 30px 0;
    border: 1px dashed rgba(255,255,255,0.2);
}
.formula-box code {
    font-size: 1.4rem;
    color: #32ade6;
    font-weight: 700;
    font-family: monospace;
}

/* --- "À lire aussi" section --- */
.read-also-section {
    border-top: 1px solid var(--glass-border);
    padding-top: 80px;
    padding-bottom: 80px;
}
.read-also-section h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 40px;
    color: var(--text-primary);
}

/* --- Mobile nav active link --- */
.nav-links a.nav-active {
    color: var(--text-primary);
    font-weight: 700;
}
