/* Styles pour Revue de Presse */

.revue-presse-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Navigation des années */
.revue-presse-years {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.year-link {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    background: #262627;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.year-link:hover {
    background: #1a1a1b;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.year-link.active {
    background: #F10000;
}

/* Titre de l'année */
.revue-year-title {
    text-align: center;
    font-size: 2em;
    color: #333;
    margin-bottom: 30px;
    border-bottom: 3px solid #262627;
    padding-bottom: 10px;
}

/* Grille des mois */
.revue-months {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Carte de mois */
.revue-month {
    background: white;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.revue-month.available {
    border-color: #262627;
}

.revue-month.available:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.revue-month.unavailable {
    background: #f5f5f5;
    border-color: #ccc;
    opacity: 0.6;
}

/* Liens des mois */
.month-link {
    display: block;
    font-size: 1.1em;
    font-weight: bold;
    color: #262627;
    margin-bottom: 15px;
    padding: 8px;
    border-radius: 5px;
    background: #f5f5f5;
    cursor: default;
}

.month-name {
    display: block;
    font-size: 1.1em;
    font-weight: bold;
    color: #666;
    margin-bottom: 15px;
}

/* Bouton de téléchargement */
.download-btn {
    display: inline-block;
    background: linear-gradient(135deg, #F10000, #d60000);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(241, 0, 0, 0.3);
}

.download-btn:hover {
    background: linear-gradient(135deg, #d60000, #b30000);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(241, 0, 0, 0.4);
    color: white;
    text-decoration: none;
}

.not-available {
    color: #999;
    font-style: italic;
    padding: 12px 24px;
    background: #f8f9fa;
    border-radius: 6px;
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .revue-presse-container {
        padding: 10px;
    }

    .revue-months {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .year-link {
        display: block;
        margin: 5px 0;
    }

    .revue-year-title {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .revue-month {
        padding: 15px;
    }

    .month-link,
    .month-name {
        font-size: 1em;
    }

    .download-btn {
        width: 100%;
        padding: 12px 18px;
        font-size: 0.85em;
    }

    .revue-year-title {
        font-size: 1.6em;
    }
}

/* Animation d'apparition */
.revue-month {
    opacity: 0;
    animation: slideInUp 0.6s ease forwards;
}

.revue-month:nth-child(1) {
    animation-delay: 0.1s;
}

.revue-month:nth-child(2) {
    animation-delay: 0.2s;
}

.revue-month:nth-child(3) {
    animation-delay: 0.3s;
}

.revue-month:nth-child(4) {
    animation-delay: 0.4s;
}

.revue-month:nth-child(5) {
    animation-delay: 0.5s;
}

.revue-month:nth-child(6) {
    animation-delay: 0.6s;
}

.revue-month:nth-child(7) {
    animation-delay: 0.7s;
}

.revue-month:nth-child(8) {
    animation-delay: 0.8s;
}

.revue-month:nth-child(9) {
    animation-delay: 0.9s;
}

.revue-month:nth-child(10) {
    animation-delay: 1.0s;
}

.revue-month:nth-child(11) {
    animation-delay: 1.1s;
}

.revue-month:nth-child(12) {
    animation-delay: 1.2s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style pour Elementor */
.elementor-widget-container .revue-presse-container {
    padding: 0;
}

/* Effet de survol sur les cartes disponibles */
.revue-month.available:hover .month-link {
    background: #262627;
    color: white;
    transition: all 0.3s ease;
}

/* Badge pour les nouvelles revues */
.revue-month.recent::before {
    content: "NOUVEAU";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #F10000;
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.65em;
    font-weight: bold;
}

/* Style compact pour petits écrans */
@media (max-width: 576px) {
    .revue-presse-years {
        padding: 15px 10px;
    }

    .year-link {
        font-size: 0.8em;
        padding: 6px 12px;
        margin: 2px;
    }

    .revue-months {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .revue-month {
        padding: 15px 10px;
    }

    .month-link,
    .month-name {
        font-size: 1em;
        margin-bottom: 10px;
    }

    .download-btn {
        font-size: 0.8em;
        padding: 8px 12px;
    }
}