/* ==============================================
   PAGE CALENDRIER MODERNE - DESIGN ULTRA-MODERNE 2026
   Créé le 11/01/2026
=============================================== */

/* Masquer UNIQUEMENT le contenu visuel du header, PAS le menu sticky */
.page-template-template-calendrier .header .overlay-layer {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.page-template-template-calendrier .intro-section {
    display: none !important;
}

/* Réduire l'espace du header au minimum */
.page-template-template-calendrier .header {
    min-height: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Section principale avec fond dégradé */
.calendrier-section-modern {
    position: relative;
    padding: 40px 0 100px 0;
    background: linear-gradient(135deg, #0a0a14 0%, #1a1a2e 50%, #0a0a14 100%);
    overflow: hidden;
}

/* Effet de particules en arrière-plan */
.calendrier-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.calendrier-particles .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(241, 108, 32, 0.4);
    border-radius: 50%;
    animation: particleFloat 15s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(241, 108, 32, 0.5);
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

.calendrier-overlay-modern {
    position: relative;
    z-index: 1;
}

/* Header moderne */
.calendrier-header-modern {
    text-align: center;
    margin-bottom: 80px;
    margin-top: 100px;
    position: relative;
}

.calendrier-title-modern {
    font-size: 64px;
    font-weight: 900;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 30px;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(241, 108, 32, 0.3);
}

/* Ligne décorative animée */
.calendrier-line-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 30px auto;
}

.calendrier-line-modern span {
    height: 4px;
    background: linear-gradient(90deg, #f16c20 0%, #e85d12 100%);
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(241, 108, 32, 0.6);
    animation: lineGrow 2s ease-in-out infinite;
}

.calendrier-line-modern span:nth-child(1) {
    width: 70px;
    animation-delay: 0s;
}

.calendrier-line-modern span:nth-child(2) {
    width: 120px;
    animation-delay: 0.3s;
}

.calendrier-line-modern span:nth-child(3) {
    width: 70px;
    animation-delay: 0.6s;
}

@keyframes lineGrow {
    0%, 100% {
        transform: scaleX(1);
        opacity: 1;
    }
    50% {
        transform: scaleX(0.7);
        opacity: 0.7;
    }
}

/* Texte d'introduction */
.calendrier-intro-modern {
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 19px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    padding: 0 20px;
}

.calendrier-intro-modern p {
    margin: 0;
}

.calendrier-intro-modern strong {
    color: #f16c20;
    font-weight: 700;
}

/* Section de téléchargement du PDF */
.calendrier-download-section {
    text-align: center;
    margin: 40px auto 60px;
    padding: 0 20px;
}

.calendrier-download-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #f16c20 0%, #e85d12 100%);
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(241, 108, 32, 0.4);
    border: 2px solid transparent;
}

.calendrier-download-button:hover {
    background: linear-gradient(135deg, #e85d12 0%, #d94d02 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(241, 108, 32, 0.6);
    color: #ffffff;
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.2);
}

.calendrier-download-button svg {
    transition: transform 0.3s ease;
}

.calendrier-download-button:hover svg {
    transform: translateY(3px);
}

/* Message "Aucun événement" */
.calendrier-no-events-message {
    text-align: center;
    padding: 80px 40px;
    max-width: 700px;
    margin: 0 auto;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.no-events-icon {
    margin-bottom: 30px;
}

.no-events-icon svg {
    color: rgba(241, 108, 32, 0.6);
    width: 64px;
    height: 64px;
}

.calendrier-no-events-message h3 {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.calendrier-no-events-message p {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* Grille des mois */
.calendrier-months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 35px;
    margin: 0 auto;
    max-width: 1600px;
    padding: 0 20px;
}

/* Carte de mois moderne */
.calendrier-month-card {
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.calendrier-month-card.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.calendrier-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(241, 108, 32, 0.12) 0%, transparent 70%);
    border-radius: 28px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.calendrier-month-card:hover .calendrier-card-glow {
    opacity: 1;
}

.calendrier-card-inner {
    position: relative;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.calendrier-month-card:hover .calendrier-card-inner {
    border-color: rgba(241, 108, 32, 0.4);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(241, 108, 32, 0.3),
                0 0 40px rgba(241, 108, 32, 0.2);
    transform: translateY(-8px);
}

/* En-tête du mois */
.calendrier-month-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px 30px 24px;
    background: linear-gradient(135deg, rgba(241, 108, 32, 0.08) 0%, rgba(232, 93, 18, 0.05) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.calendrier-month-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f16c20 0%, #e85d12 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(241, 108, 32, 0.4);
    transition: all 0.3s ease;
}

.calendrier-month-card:hover .calendrier-month-icon {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 15px 40px rgba(241, 108, 32, 0.6);
}

.calendrier-month-icon svg {
    color: #ffffff;
    width: 32px;
    height: 32px;
}

.calendrier-month-info {
    flex: 1;
}

.calendrier-month-name {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.calendrier-month-number {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calendrier-month-badge {
    width: 42px;
    height: 42px;
    background: rgba(241, 108, 32, 0.15);
    border: 2px solid rgba(241, 108, 32, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.calendrier-month-badge span {
    font-size: 18px;
    font-weight: 800;
    color: #f16c20;
}

/* Liste des événements */
.calendrier-events-list {
    padding: 24px 30px;
    flex: 1;
}

.calendrier-event-item {
    display: flex;
    gap: 16px;
    padding: 18px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.calendrier-event-item:hover,
.calendrier-event-item:focus {
    text-decoration: none;
    color: inherit;
}

.calendrier-event-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #f16c20 0%, #e85d12 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.calendrier-event-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(241, 108, 32, 0.3);
    transform: translateX(6px);
}

.calendrier-event-item:hover::before {
    opacity: 1;
}

.calendrier-event-item:last-child {
    margin-bottom: 0;
}

/* Types d'événements */
.calendrier-event-important {
    border-left-color: #f16c20;
}

.calendrier-event-sortie {
    border-left-color: #3498db;
}

.calendrier-event-reunion {
    border-left-color: #9b59b6;
}

.calendrier-event-evenement {
    border-left-color: #2ecc71;
}

.calendrier-event-commemoration {
    border-left-color: #e74c3c;
}

.calendrier-event-date {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(241, 108, 32, 0.15) 0%, rgba(232, 93, 18, 0.1) 100%);
    border: 2px solid rgba(241, 108, 32, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.calendrier-event-item:hover .calendrier-event-date {
    background: linear-gradient(135deg, #f16c20 0%, #e85d12 100%);
    border-color: #f16c20;
    transform: scale(1.05);
}

.event-day {
    font-size: 22px;
    font-weight: 900;
    color: #f16c20;
    transition: color 0.3s ease;
}

.calendrier-event-item:hover .event-day {
    color: #ffffff;
}

.calendrier-event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calendrier-event-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.calendrier-event-type {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    background: rgba(241, 108, 32, 0.12);
    border-radius: 10px;
    align-self: flex-start;
}

.calendrier-no-events {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    font-style: italic;
    padding: 30px;
}

/* Barre de progression du mois */
.calendrier-month-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f16c20 0%, #e85d12 100%);
    transition: width 1s ease;
    box-shadow: 0 0 15px rgba(241, 108, 32, 0.6);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .calendrier-months-grid {
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .calendrier-title-modern {
        font-size: 48px;
    }
    
    .calendrier-months-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 767px) {
    .calendrier-section-modern {
        padding: 60px 0 80px 0;
    }
    
    .calendrier-header-modern {
        margin-bottom: 60px;
        margin-top: 80px;
    }
    
    .calendrier-title-modern {
        font-size: 36px;
        padding: 0 15px;
    }
    
    .calendrier-intro-modern {
        font-size: 17px;
        padding: 0 15px;
        margin-bottom: 50px;
    }
    
    .calendrier-months-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .calendrier-month-header {
        padding: 22px 20px 18px;
        gap: 14px;
    }
    
    .calendrier-month-icon {
        width: 50px;
        height: 50px;
    }
    
    .calendrier-month-icon svg {
        width: 26px;
        height: 26px;
    }
    
    .calendrier-month-name {
        font-size: 22px;
    }
    
    .calendrier-month-number {
        font-size: 12px;
    }
    
    .calendrier-month-badge {
        width: 36px;
        height: 36px;
    }
    
    .calendrier-month-badge span {
        font-size: 16px;
    }
    
    .calendrier-events-list {
        padding: 18px 20px;
    }
    
    .calendrier-event-item {
        padding: 14px;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .calendrier-event-date {
        width: 48px;
        height: 48px;
    }
    
    .event-day {
        font-size: 19px;
    }
    
    .calendrier-event-title {
        font-size: 15px;
    }
    
    .calendrier-event-type {
        font-size: 11px;
    }
    
    .calendrier-download-button {
        padding: 15px 30px;
        font-size: 15px;
    }
    
    .calendrier-no-events-message {
        padding: 60px 25px;
    }
    
    .calendrier-no-events-message h3 {
        font-size: 24px;
    }
    
    .calendrier-no-events-message p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .calendrier-title-modern {
        font-size: 30px;
    }
    
    .calendrier-intro-modern {
        font-size: 16px;
    }
    
    .calendrier-month-name {
        font-size: 20px;
    }
    
    .calendrier-event-title {
        font-size: 14px;
    }
    
    .calendrier-download-button {
        padding: 14px 25px;
        font-size: 14px;
        width: 100%;
    }
    
    .calendrier-no-events-message {
        padding: 40px 20px;
    }
    
    .calendrier-no-events-message h3 {
        font-size: 22px;
    }
    
    .no-events-icon svg {
        width: 48px;
        height: 48px;
    }
}

/* Animation pour les navigateurs qui supportent */
@media (prefers-reduced-motion: no-preference) {
    .calendrier-month-card {
        will-change: opacity, transform;
    }
}

/* Mode sombre optimisé */
@media (prefers-color-scheme: dark) {
    .calendrier-section-modern {
        background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
    }
}

/* Print styles */
@media print {
    .calendrier-section-modern {
        background: #ffffff;
    }
    
    .calendrier-card-inner {
        border: 1px solid #cccccc;
    }
    
    .calendrier-particles,
    .calendrier-card-glow,
    .calendrier-download-button {
        display: none;
    }
    
    .calendrier-title-modern,
    .calendrier-month-name,
    .calendrier-event-title {
        color: #000000 !important;
        -webkit-text-fill-color: #000000 !important;
    }
}
