/* ======================================
   CALENDRIER DES SORTIES DES GÉANTS
   ====================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container-calendrier {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: visible;
    position: relative;
}

/* HEADER */
.header-calendrier {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header-calendrier h1 {
    font-size: 2.5em;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subheading {
    font-size: 1.1em;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-top: 10px;
    opacity: 0.9;
}

/* CONTRÔLES */
.calendrier-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    flex-wrap: wrap;
    gap: 20px;
}

.btn-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-nav:active {
    transform: translateY(0);
}

.month-year {
    font-size: 1.8em;
    color: #333;
    font-weight: 600;
    min-width: 200px;
    text-align: center;
}

/* CALENDRIER */
.calendrier-wrapper {
    padding: 30px;
}

.weeks-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.week-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    background: #fafbfc;
    transition: all 0.3s ease;
    overflow: visible;
}

.week-card.semaine-active {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.week-card.semaine-avec-sortie {
    border-color: #ff6b6b;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.03) 0%, rgba(238, 90, 111, 0.03) 100%);
}

.week-card.semaine-active.semaine-avec-sortie {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
}

.week-header {
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    font-size: 1.05em;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.week-card.semaine-active .week-header {
    color: #00146f;
    border-bottom-color: #667eea;
}

.week-events {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 15px;
    color: #555;
    font-size: 0.95em;
}

.week-date-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: visible;
}

.week-date-header {
    color: #333;
    font-weight: 700;
    font-size: 1em;
    margin-bottom: 8px;
}

.week-date-header--aujourdhui {
    color: #0046d5;
    background: rgba(102, 126, 234, 0.12);
    padding: 8px 12px;
    border-radius: 10px;
}

.week-sortie-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    background: #fafbfc;
    border-radius: 10px;
    border: 1px solid #dfe9ff;
    width: calc(100% + 24px);
    margin-left: -12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    position: relative;
}

.week-sortie-title {
    color: #1f2a56;
    font-weight: 700;
}

.week-sortie-lieux {
    color: #6c757d;
    font-size: 0.9em;
    margin-top: 6px;
}

.week-sortie-description {
    color: #556687;
    font-size: 0.95em;
    line-height: 1.4;
    margin-top: 8px;
}

.week-sortie-details {
    color: #3f4a6b;
    font-size: 0.95em;
    line-height: 1.4;
    margin-top: 6px;
}

.week-events--empty {
    color: #777;
    font-style: italic;
}

/* RÉGIONS */
.week-sortie-item.region-littoral {
    background-color: #007bff;
    color: white;
}

.week-sortie-item.region-flandre-interieure {
    background-color: #28a745;
    color: white;
}

.week-sortie-item.region-douaisis {
    background-color: #ffc107;
}

.week-sortie-item.region-valenciennois {
    background-color: #fd7e14;
}

.week-sortie-item.region-artois {
    background-color: #dc3545;
    color: white;
}

.week-sortie-item.region-metropole-lilloise {
    background-color: #6f42c1;
    color: white;
}

.week-sortie-item.region-avesnois {
    background-color: #8b4513;
    color: white;
}

.week-sortie-item.region-general {
    /* default */
}

/* Couleurs de texte pour les régions avec fond sombre */
.week-sortie-item.region-littoral .week-sortie-title,
.week-sortie-item.region-littoral .week-sortie-description,
.week-sortie-item.region-flandre-interieure .week-sortie-title,
.week-sortie-item.region-flandre-interieure .week-sortie-description,
.week-sortie-item.region-artois .week-sortie-title,
.week-sortie-item.region-artois .week-sortie-description,
.week-sortie-item.region-metropole-lilloise .week-sortie-title,
.week-sortie-item.region-metropole-lilloise .week-sortie-description,
.week-sortie-item.region-avesnois .week-sortie-title,
.week-sortie-item.region-avesnois .week-sortie-description {
    color: white;
}

/* SORTIES PRÉVUES */
.details-sorties {
    padding: 25px 30px;
    background: white;
    border-top: 2px solid #e9ecef;
}

.details-sorties h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.2em;
}

.sorties-list {
    display: grid;
    gap: 15px;
}

.week-sorties-section {
    padding: 15px;
    background: #fafbfc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.week-sorties-title {
    margin: 0 0 12px 0;
    color: #667eea;
    font-size: 1.05em;
    font-weight: 600;
}

.sorties-list-week {
    display: grid;
    gap: 10px;
}

.sortie-item {
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(238, 90, 111, 0.1) 100%);
    border-left: 3px solid #ff6b6b;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.sortie-item:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(238, 90, 111, 0.15) 100%);
    transform: translateX(3px);
}

.sortie-date {
    font-weight: 700;
    color: #ff6b6b;
    font-size: 1em;
    margin-bottom: 4px;
}

.sortie-nom {
    color: #333;
    font-weight: 500;
    font-size: 0.95em;
}

.sorties-list.vide {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
}

/* GÉANT IMAGE */
.calendrier-wrapper {
    padding: 30px;
    position: relative;
    overflow: visible;
}

.geant-image {
    position: fixed;
    right: 20px;
    bottom: 150px;
    width: 300px;
    height: auto;
    pointer-events: none;
}

/* GUIRLANDE DE GÉANTS */
.guirlande-geants {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.geant-mini {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: absolute;
    cursor: pointer;
    pointer-events: auto;
    transition: filter 0.2s ease;
}

.geant-mini:hover {
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(102, 126, 234, 0.6));
  /*  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    animation: bobbing 3s ease-in-out infinite;
    z-index: 10;
    object-fit: contain; */
}

@keyframes bobbing {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-calendrier h1 {
        font-size: 2em;
    }

    .subheading {
        font-size: 0.95em;
    }

    .month-year {
        font-size: 1.3em;
    }

    .calendrier-controls {
        flex-direction: column;
        gap: 15px;
    }

    .btn-nav {
        width: 100%;
    }

    .week-card {
        padding: 15px;
    }

    .container-calendrier {
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .header-calendrier {
        padding: 20px;
    }

    .header-calendrier h1 {
        font-size: 1.5em;
    }

    .subheading {
        font-size: 0.9em;
    }

    .calendrier-wrapper {
        padding: 15px;
    }

    .week-card {
        padding: 12px;
    }
}
