:root {
    --primary-orange: #ff6a00;
    --secondary-yellow: #FFE066;
    --solar-red: #d84315;
    --space-blue: #1a237e;
    --text-primary: #222;
    --text-secondary: #555;
    --text-light: #777;
    --bg-cream: #fff2beff;
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;

    --font-main: 'Poppins', sans-serif;
    --font-serif: 'Merriweather', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.8;
    color: var(--text-primary);
    background: var(--bg-cream);
    min-height: 100vh;
}

/* --- LAYOUT --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    margin-top: 40px;
    margin-bottom: 40px;
}

/* --- HEADER ARTICLE --- */
.article-header {
    text-align: center;
    margin-bottom: 50px;
}

.category-tag {
    background: rgba(255, 106, 0, 0.1);
    color: var(--primary-orange);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 106, 0, 0.2);
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--text-primary);
    background: linear-gradient(45deg, #bf360c, #f57c00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.meta-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 20px;
}

/* --- IMAGES & FIGURES --- */
.hero-img-container {
    margin: 40px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    position: relative;
    background: #000;
}

.hero-img-container img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.caption {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 0.85rem;
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* --- TYPOGRAPHIE CONTENU --- */
.intro {
    background: #fff8e1;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    border-left: 5px solid var(--secondary-yellow);
    font-size: 1.15rem;
    font-family: var(--font-serif);
    color: var(--text-primary);
    line-height: 1.9;
}

p {
    margin-bottom: 25px;
    color: var(--text-secondary);
}

h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin: 50px 0 25px;
    border-bottom: 3px solid var(--primary-orange);
    display: inline-block;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin: 25px 0 15px;
}

/* --- BOITES D'INFORMATION (TECHNIQUE) --- */
.tech-box {
    background: #e3f2fd;
    border-left: 5px solid #1976d2;
    padding: 25px;
    margin: 30px 0;
    border-radius: var(--border-radius);
}

.tech-box h4 {
    color: #0d47a1;
    margin-bottom: 10px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.tech-box p {
    color: #37474f;
    margin-bottom: 0;
}

/* --- NIVEAUX DE LECTURE --- */
.level-prepa {
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-left: 5px solid var(--primary-orange);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 40px 0;
    box-shadow: var(--shadow-light);
}

.level-prepa h3 {
    color: #e65100;
    margin-bottom: 15px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.level-prepa p {
    color: #4e342e;
}

/* --- QUIZ --- */
.quiz-container {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 60px;
    border-top: 5px solid var(--primary-orange);
    box-shadow: var(--shadow-medium);
}

.quiz-container h3 {
    color: var(--text-primary);
}

.quiz-option {
    background: #f8fafc;
    padding: 15px 20px;
    margin-bottom: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #f1f5f9;
    font-weight: 500;
    color: var(--text-secondary);
}

.quiz-option:hover {
    background: #fff3e0;
    border-color: var(--primary-orange);
}

.quiz-option.correct {
    background: #dcfce7;
    border-color: #22c55e;
    color: #15803d;
}

.quiz-option.incorrect {
    background: #fee2e2;
    border-color: #ef4444;
    color: #b91c1c;
}

/* --- NAVIGATION FOOTER --- */
.article-navigation {
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    gap: 20px;
}

.btn-miga {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-orange), #ff9500);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(255, 123, 0, 0.3);
    transition: all 0.3s ease;
    border: none;
    margin: 0;
}

.btn-miga:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 123, 0, 0.4);
    color: white;
}

/* --- SPECIFIC TO ASTROPHOTO (Legacy support or new specific styles) --- */
.equipment-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.equipment-item {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border-top: 4px solid var(--space-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.equipment-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.equipment-icon {
    font-size: 2rem;
    background: #e8eaf6;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--space-blue);
    margin-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    border-top: 4px solid var(--solar-red);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--solar-red);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.formula-box {
    background: #f5f5f5;
    border: 2px solid #ddd;
    padding: 25px;
    margin: 25px 0;
    border-radius: var(--border-radius);
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 2rem;
    }

    .meta-info {
        flex-direction: column;
        gap: 10px;
        font-size: 0.9rem;
    }

    .hero-img-container {
        margin: 20px -20px;
        border-radius: 0;
        width: calc(100% + 40px);
        max-width: none;
    }

    .container {
        padding: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
        border-radius: var(--border-radius);
    }

    h2 {
        font-size: 1.5rem;
        margin-top: 30px;
    }

    .intro {
        padding: 20px;
        font-size: 1rem;
    }

    .tech-box,
    .level-prepa {
        padding: 20px;
        margin: 20px 0;
        overflow-x: auto;
        max-width: 100%;
    }

    .article-navigation {
        flex-direction: column;
        gap: 20px;
    }

    .btn-miga {
        width: 100%;
        justify-content: center;
        max-width: none;
        padding: 12px 15px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    body {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .article-header h1 {
        font-size: 1.7rem;
    }
}