/* ============================================
   SITE VEILLE TECHNOLOGIQUE - STYLE PROFESSIONNEL
   ============================================ */

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

:root {
    --primary: #2c3e50;
    --secondary: #34495e;
    --accent: #3498db;
    --text-dark: #2c3e50;
    --text-medium: #7f8c8d;
    --text-light: #95a5a6;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #ecf0f1;
    --border: #dce0e3;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: var(--primary);
    color: white;
    padding: 2.5rem 0;
}

.header-content h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 0;
}

.nav-list li a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    padding: 3rem 0;
    min-height: calc(100vh - 400px);
}

.intro-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    border-left: 4px solid var(--accent);
}

.intro-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.intro-section p {
    color: var(--text-medium);
    font-size: 1.05rem;
}

/* ============================================
   VEILLES LIST
   ============================================ */
.veilles-list {
    margin-bottom: 3rem;
}

.veilles-list h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-weight: 600;
}

.veilles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.veille-card {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.veille-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.veille-card.placeholder {
    opacity: 0.6;
}

.card-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--bg-gray);
    color: var(--text-medium);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    width: fit-content;
}

.veille-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.4;
}

.card-description {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-medium);
}

.btn-read {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.2s;
    text-align: center;
}

.btn-read:hover {
    background: #2980b9;
}

.btn-read.disabled {
    background: var(--bg-gray);
    color: var(--text-light);
    cursor: not-allowed;
}

.btn-read.disabled:hover {
    background: var(--bg-gray);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
}

.about-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.about-section p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.about-section p:last-child {
    margin-bottom: 0;
}

/* ============================================
   ARTICLE PAGE
   ============================================ */
.article-content {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.article-header {
    border-bottom: 2px solid var(--bg-gray);
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
}

.article-date {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--accent);
    color: white;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.article-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
}

.article-intro {
    font-size: 1.15rem;
    color: var(--text-medium);
    line-height: 1.7;
}

.article-section {
    margin-bottom: 3rem;
}

.article-section h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
    font-weight: 600;
}

.article-section h4 {
    font-size: 1.2rem;
    margin: 2rem 0 1rem;
    color: var(--secondary);
    font-weight: 600;
}

.article-section p {
    margin-bottom: 1.2rem;
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-section ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-section ul li {
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1.05rem;
}

.article-section ul li strong {
    color: var(--accent);
}

/* Sources Section */
.sources-section {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.sources-list {
    list-style: none;
    padding: 0;
}

.sources-list li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    line-height: 1.6;
}

.sources-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sources-list a {
    color: var(--accent);
    text-decoration: none;
    word-break: break-all;
}

.sources-list a:hover {
    text-decoration: underline;
}

.sources-list small {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Article Footer */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.btn-back {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-back:hover {
    background: var(--primary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

.footer p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .header-content h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .nav-list {
        flex-direction: column;
    }

    .veilles-grid {
        grid-template-columns: 1fr;
    }

    .article-content {
        padding: 2rem 1.5rem;
    }

    .article-header h2 {
        font-size: 1.7rem;
    }

    .article-intro {
        font-size: 1rem;
    }

    .article-section h3 {
        font-size: 1.4rem;
    }

    .article-section h4 {
        font-size: 1.1rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .article-footer,
    .footer {
        display: none;
    }

    .article-content {
        box-shadow: none;
        border: none;
    }

    body {
        background: white;
    }
}
