/* Variables CSS - Palette de couleurs */
:root {
    --primary: #2196F3;
    --success: #4CAF50;
    --warning: #FFC107;
    --accent: #FF9800;
    --danger: #F44336;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #757575;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;

    /* Variables supplémentaires */
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #999;
    --text-dark: #222;
    --text-muted: #888;
    --bg-card: #ffffff;
    --bg-secondary: #f8f9fa;
    --border-color: #e0e0e0;
    --accent-color: #FF9800;
}

/* Reset et bases */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 20px 0;
    margin-bottom: 20px;
}

.header__title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.header__subtitle {
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.header__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Navigation */
.nav {
    background: var(--white);
    padding: 15px 0;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.nav__filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav__search input {
    padding: 10px 15px;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 14px;
    width: 300px;
    max-width: 100%;
}

.nav__search input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Boutons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn--primary {
    background: var(--primary);
    color: var(--white);
}

.btn--primary:hover {
    background: #1976D2;
    transform: translateY(-2px);
}

.btn--secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn--secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn--success {
    background: var(--success);
    color: var(--white);
}

.btn--warning {
    background: var(--warning);
    color: #333;
}

.btn--danger {
    background: var(--danger);
    color: var(--white);
}

.filter-btn {
    padding: 8px 16px;
    background: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 10px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card__number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-card__label {
    color: var(--dark-gray);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .header__actions {
        width: 100%;
        justify-content: center;
    }

    .nav .container {
        flex-direction: column;
    }

    .nav__search input {
        width: 100%;
    }

    .stats {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}


.article-card__content-stats {
    display: flex;
    gap: 12px;
    margin: 8px 0 12px 0;
    padding: 6px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 11px;
    color: var(--text-light);
}

.content-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.content-stat:before {
    content: '📊';
    font-size: 10px;
    opacity: 0.7;
}

.content-stat:nth-child(2):before {
    content: '🔤';
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
    .article-card__content-stats {
        border-top-color: rgba(255, 255, 255, 0.1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .article-card__content-stats {
        flex-direction: column;
        gap: 4px;
    }

    .content-stat {
        font-size: 10px;
    }
}

/* Temps relatif et badges temporels */
.date-badge,
.scheduled-badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    white-space: nowrap;
}

.scheduled-badge {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #fff;
    font-weight: 500;
}

/* Dropdown menu pour actions secondaires */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 1000;
    min-width: 150px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 4px 0;
    margin-top: 4px;
}

.dropdown.open .dropdown-menu {
    display: block;
    animation: dropdownSlide 0.2s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: none;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    border: none;
    margin: 4px 0;
}

/* Expand content button */
.expand-content-btn {
    background: none;
    border: 1px dashed var(--border-color);
    color: var(--accent-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s;
}

.expand-content-btn:hover {
    background: var(--accent-color);
    color: white;
    border-style: solid;
}

/* Share menu */
.share-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-menu.active {
    opacity: 1;
}

.share-menu__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.share-menu__content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    min-width: 300px;
    text-align: center;
}

.share-menu__content h3 {
    margin: 0 0 20px 0;
    color: var(--primary);
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.share-option {
    padding: 12px 16px;
    border: 2px solid var(--medium-gray);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.share-option:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}/* 
Groupes de boutons */
.btn-group {
    display: inline-flex;
    gap: 4px;
    margin: 0 4px;
}

.btn-group .btn {
    border-radius: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-group .btn:first-child {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.btn-group .btn:last-child {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    border-right: none;
}

.btn-group .btn:only-child {
    border-radius: var(--border-radius);
    border-right: none;
}

.btn-group .btn:hover {
    z-index: 1;
    position: relative;
}