/* ========================================================
   ARTICLES CSS - BTOV France
   Design moderne cohérent avec le site principal
   ======================================================== */

/* ========== Design Tokens ========== */
:root {
    /* Brand Colors BTOV */
    --color-primary: #00A6CA;
    --color-primary-dark: #008CA8;
    --color-bg: #FFFFFF;
    --color-surface: #FFFFFF;
    --color-text-main: #0B0F14;
    --color-text-muted: #6F6F6E;
    --color-border: rgba(11, 15, 20, 0.08);

    /* Typography */
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --gutter: clamp(16px, 3vw, 40px);
    --radius: 8px;
    --radius-sm: 4px;
    --radius-md: 12px;
    --maxw: 1200px;

    /* Shadows */
    --shadow-sm: 0 4px 20px rgba(0,0,0,.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,.12);
    --shadow-lg: 0 16px 50px rgba(0,0,0,.18);

    /* Motion */
    --ease-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-base: all 0.4s var(--ease-quart);
    --speed: 300ms;
}

/* ========== Body Background ========== */
body {
    background-color: #FFFFFF !important;
}

/* ========== Article Header ========== */
.article-header {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 50px;
    position: relative;
    overflow: hidden;
}
.article-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 600px at 60% 10%, rgba(0, 166, 202, 0.08), transparent 60%),
        radial-gradient(900px 500px at 20% 30%, rgba(0, 140, 168, 0.06), transparent 60%);
    z-index: -1;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    border: 1px solid rgba(0, 166, 202, .3);
    border-radius: 999px;
    margin-bottom: 32px;
    transition: var(--transition-base);
    background: var(--color-surface);
}
.back-btn:hover {
    background: rgba(0, 166, 202, .1);
    border-color: var(--color-primary);
    transform: translateX(-4px);
}
.back-btn i {
    transition: transform 0.3s ease;
}
.back-btn:hover i {
    transform: translateX(-3px);
}

.article-header h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    line-height: 1.12;
    max-width: 950px;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--color-text-main) 0%, var(--color-text-main) 70%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.article-header .subtitle {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    color: var(--color-text-muted);
    font-weight: 400;
    max-width: 850px;
    margin: 0;
    line-height: 1.5;
}

/* ========== CTA Box ========== */
.cta-box {
    background: linear-gradient(135deg, rgba(0, 166, 202, .06) 0%, rgba(0, 140, 168, .03) 100%);
    border: 2px solid rgba(0, 166, 202, .15);
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 166, 202, 0.04) 0%, transparent 50%);
    animation: pulse-bg 8s ease-in-out infinite;
}
@keyframes pulse-bg {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}
.cta-box h3 {
    margin-bottom: 14px;
    color: var(--color-text-main);
    font-size: 1.5rem;
    position: relative;
}
.cta-box p {
    color: var(--color-text-muted);
    margin-bottom: 28px;
    font-size: 1.05rem;
    position: relative;
}
.cta-box .btn {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    border-radius: 999px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 166, 202, .25);
    position: relative;
    transition: all 0.3s ease;
}
.cta-box .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 166, 202, .35);
}
.cta-box .btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}
.cta-box .btn:hover i {
    transform: translateX(4px);
}

/* ========== Article Main ========== */
.article-main {
    padding: 50px 0 60px;
    background: #FFFFFF;
}

.article-image {
    margin: 0 0 50px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.12);
    border: none;
    position: relative;
}
.article-image::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid rgba(0, 166, 202, 0.15);
    border-radius: 16px;
    pointer-events: none;
    z-index: 1;
}
.article-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 550px;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.article-image:hover img {
    transform: scale(1.02);
}

.article-content {
    background: var(--color-surface);
    border-radius: 16px;
    padding: 60px 70px;
    box-shadow: 0 8px 40px rgba(0,0,0,.06);
    border: 1px solid rgba(0, 166, 202, 0.08);
    position: relative;
}
.article-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 50%, var(--color-primary) 100%);
    border-radius: 16px 16px 0 0;
}

.article-content pre {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-text-main);
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.85;
}

/* Styling paragraphs inside pre */
.article-content pre p {
    text-align: justify;
    text-justify: inter-word;
}
.article-content pre p:last-child {
    margin-bottom: 0;
}
.article-content pre p:first-child {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--color-text-main);
    font-weight: 400;
}

.article-content strong {
    color: var(--color-primary);
    font-weight: 600;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 166, 202, 0.12) 60%);
    padding: 0 2px;
}

/* ========== Suggested Articles ========== */
.suggested-articles {
    background: var(--color-bg);
    padding: 40px 0 60px;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
    .article-content { padding: 45px 40px; }
}
@media (max-width: 680px) {
    .article-header { padding-top: calc(var(--header-height) + 40px); padding-bottom: 30px; }
    .article-header h1 { font-size: 1.8rem; }
    .article-content { padding: 35px 24px; }
    .article-content pre { font-size: 1rem; line-height: 1.75; }
    .article-content pre p:first-child { font-size: 1.05rem; }
    .cta-box { padding: 35px 24px; margin-top: 30px; }
    .article-image { border-radius: 12px; margin-bottom: 35px; }
    .article-image::before { border-radius: 12px; }
    .article-main { padding: 40px 0 50px; }
}
