/* =========================================
   VARIABLES LOCALES
   ========================================= */
:root {
    --bg-soft: #FAFAFA;
    --card-bg: #FFFFFF;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --orange-soft: #FFF3E0;
    --orange-vibrant: #FF5C00;
    --violet-soft: #F3E5F5;
    --violet-deep: #662E9B;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-card: 0 10px 30px rgba(0,0,0,0.05);
}

body {
    background-color: var(--bg-soft);
    color: var(--text-main);
}

.article-wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 180px 5% 60px;
}

/* =========================================
   HERO SECTION
   ========================================= */
.article-hero {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeIn 0.8s ease-out;
}

.article-title {
    font-family: 'Lilita One', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-main);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Badges sous le titre */
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.category { background-color: var(--orange-soft); color: var(--orange-vibrant); }
.badge.time { background-color: #f0f0f0; color: var(--text-muted); }

.article-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.hero-image-container {
    width: 100%;
    height: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-image:hover { transform: scale(1.02); }

/* =========================================
   CONTENT GRID (Sidebar à droite)
   ========================================= */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px; /* Sidebar fixe à 320px */
    gap: 3rem;
    align-items: start;
}

.article-feed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

.content-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.02);
}

.card-title {
    font-family: 'Lilita One', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--violet-deep);
}

.card-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 1.5rem;
}

/* --- NOUVEAU DESIGN : Section "Pourquoi ça marche" --- */
.why-it-works-card {
    background: var(--violet-soft);
    border-left: 6px solid var(--violet-deep);
    padding: 2.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
}

.why-it-works-card:hover {
    transform: translateY(-5px);
}

.why-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.why-icon {
    font-size: 2rem;
    background: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.why-title {
    font-family: 'Lilita One', sans-serif;
    font-size: 1.8rem;
    color: var(--violet-deep);
    margin: 0;
}

.why-text {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
}

/* --- SIDEBAR --- */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.03);
}

/* --- SIDEBAR LAB CARDS --- */
.sidebar-lab-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    margin-bottom: 1.5rem;
    border: 1px solid #f0f0f0;
}

.sidebar-lab-card:last-child { margin-bottom: 0; }

.sidebar-lab-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.sidebar-card-image {
    height: 140px;
    width: 100%;
    overflow: hidden;
}

.sidebar-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-card-content {
    padding: 1rem;
    background: white;
}

.sidebar-card-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--orange-vibrant);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    display: block;
}

.sidebar-card-title {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- ELEMENTS AUTEUR & ACTIONS --- */
.author-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.author-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--orange-vibrant); }
.author-info h3 { font-size: 1.1rem; font-weight: 800; margin: 0; }
.author-info .role { font-size: 0.85rem; color: var(--text-muted); }
.author-bio { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.5; }
.follow-btn { width: 100%; padding: 0.8rem; background: var(--bg-soft); border: none; border-radius: 12px; font-weight: 700; color: var(--orange-vibrant); cursor: pointer; transition: all 0.3s ease; }
.follow-btn:hover { background: var(--orange-soft); }

.actions-title { font-weight: 700; margin-bottom: 1rem; text-align: center; font-size: 0.9rem; }
.action-buttons { display: flex; justify-content: space-around; }
.action-btn { width: 45px; height: 45px; border-radius: 50%; border: 1px solid #eee; background: white; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; color: var(--text-muted); }
.action-btn.like span { font-size: 0.7rem; margin-top: 2px; font-weight: 700; }
.action-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); color: var(--orange-vibrant); border-color: var(--orange-vibrant); }

/* --- BLOCS CONTENU --- */
.highlight-box { background-color: var(--orange-soft); border-left: 5px solid var(--orange-vibrant); padding: 1.5rem; border-radius: 12px; display: flex; gap: 1rem; align-items: flex-start; }
.highlight-icon { font-size: 1.5rem; }

.example-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.example-item { padding: 1.5rem; border-radius: var(--radius-md); background: #FAFAFA; text-align: center; }
.example-item.negative { border-bottom: 4px solid #FF6B6B; }
.example-item.positive { border-bottom: 4px solid #51CF66; }
.example-item .emoji { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
.example-item h3 { font-weight: 800; margin-bottom: 0.5rem; }
.example-item p { font-size: 0.95rem; color: var(--text-muted); }

.quote-block { background: var(--violet-deep); color: white; padding: 3rem; border-radius: var(--radius-lg); text-align: center; box-shadow: 0 15px 30px rgba(102, 46, 155, 0.3); transform: scale(1.02); }
.quote-text { font-family: 'Lilita One', sans-serif; font-size: 1.8rem; line-height: 1.4; }

.steps-container { display: flex; flex-direction: column; gap: 1.5rem; }
.step-row { display: flex; gap: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #eee; }
.step-row:last-child { border-bottom: none; padding-bottom: 0; }
.step-number { font-family: 'Lilita One', sans-serif; font-size: 2.5rem; color: var(--orange-soft); -webkit-text-stroke: 2px var(--orange-vibrant); line-height: 1; min-width: 50px; }
.step-content h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--violet-deep); }

.article-cta { text-align: center; background: var(--violet-soft); padding: 3rem; border-radius: var(--radius-lg); }
.article-cta h2 { font-family: 'Lilita One', sans-serif; font-size: 2rem; margin-bottom: 1rem; color: var(--violet-deep); }
.article-cta p { margin-bottom: 2rem; font-size: 1.1rem; }
.full-width { width: 100%; max-width: 400px; display: inline-block; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .content-grid { grid-template-columns: 1fr; }
    .article-sidebar { order: 2; margin-top: 2rem; }
}
@media (max-width: 768px) {
    .hero-image-container { height: 250px; }
    .example-grid { grid-template-columns: 1fr; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }