/* ARIANE  Calendrier prédictions semaine + cartes cliquables + recherche */

        /* PREDICTION VIEW TOGGLE */
        .prediction-view-toggle {
            display: flex;
            gap: 10px;
            justify-content: center;
        }

        .view-toggle-btn {
            padding: 12px 24px;
            border: 2px solid #667eea;
            background: white;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1em;
            font-weight: 500;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            transition: all 0.3s ease;
            color: #667eea;
        }

        .view-toggle-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
        }

        .view-toggle-btn.active {
            background: #667eea;
            color: white;
            border-color: #667eea;
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
        }

        html.dark-mode .view-toggle-btn {
            background: var(--card-bg);
            border-color: #00d4ff;
            color: #00d4ff;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        html.dark-mode .view-toggle-btn:hover {
            background: rgba(0, 212, 255, 0.1);
            box-shadow: 0 2px 8px rgba(0, 212, 255, 0.2);
        }

        html.dark-mode .view-toggle-btn.active {
            background: #00d4ff;
            border-color: #00d4ff;
            color: #000;
            box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
        }

        /* WEEK CALENDAR */
        .week-calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 10px;
            margin-top: 30px;
        }

        .calendar-day-card {
            background: white;
            border: 2px solid #ddd;
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            min-height: 380px;
            height: 100%;
        }

        .calendar-day-card:hover {
            border-color: #667eea;
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
        }

        .calendar-day-header {
            background: rgba(102, 126, 234, 0.1);
            color: #667eea;
            padding: 15px;
            text-align: center;
            border-bottom: 2px solid #667eea;
            border-radius: 12px 12px 0 0;
            border: 1px solid rgba(102, 126, 234, 0.3);
            flex-shrink: 0;
        }

        .calendar-day-name {
            font-size: 1.1rem;
            font-weight: 700;
            margin: 0;
        }

        .calendar-day-date {
            font-size: 0.85rem;
            opacity: 0.9;
            margin-top: 3px;
        }

        .calendar-day-anomaly {
            position: absolute;
            top: 10px;
            right: 10px;
            background: #ff6b6b;
            color: white;
            padding: 5px 10px;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: bold;
        }

        .calendar-day-content {
            padding: 12px;
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 0;
            overflow: hidden;
        }

        .calendar-prediction-section {
            display: flex;
            flex-direction: column;
            gap: 4px;
            padding: 8px 0;
            flex: 1;
            overflow-y: auto;
            max-height: 140px;
        }

        .calendar-prediction-section:not(:last-child) {
            padding-bottom: 6px;
            border-bottom: 1px solid rgba(102, 126, 234, 0.2);
        }

        .calendar-section-title {
            font-size: 0.95rem;
            font-weight: 700;
            color: #667eea;
            margin-bottom: 5px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .calendar-window {
            background: transparent;
            border: none;
            border-radius: 0;
            padding: 4px 0;
            font-size: 0.85rem;
        }

        .calendar-window-time {
            font-weight: 600;
            color: #333;
            font-size: 0.85rem;
        }

        .calendar-window-prob {
            font-size: 0.8rem;
            color: #667eea;
            font-weight: 500;
        }

        .calendar-no-data {
            color: #999;
            font-style: italic;
            text-align: center;
            padding: 20px;
            background: #f5f5f5;
            border-radius: 6px;
        }

        .calendar-anomaly-badge {
            display: inline-block;
            background: #ff6b6b;
            color: white;
            padding: 4px 10px;
            border-radius: 50px;
            font-size: 0.75rem;
            font-weight: bold;
            margin-top: 10px;
            width: 100%;
            text-align: center;
        }

        .calendar-anomaly-reason {
            font-size: 0.85rem;
            color: #ff6b6b;
            margin-top: 8px;
        }

        /* DARK MODE - WEEK CALENDAR */
        html.dark-mode .calendar-day-card {
            background: var(--card-bg);
            border-color: rgba(0, 212, 255, 0.3);
        }

        html.dark-mode .calendar-day-card:hover {
            border-color: #00d4ff;
            box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
        }

        html.dark-mode .calendar-day-header {
            background: rgba(0, 212, 255, 0.1);
            color: #00d4ff;
            border: 1px solid rgba(0, 212, 255, 0.3);
        }

        html.dark-mode .calendar-day-name {
            color: white;
        }

        html.dark-mode .calendar-day-date {
            color: rgba(255, 255, 255, 0.8);
        }

        html.dark-mode .calendar-section-title {
            color: #00d4ff;
        }

        html.dark-mode .calendar-prediction-section {
            border-bottom-color: rgba(0, 212, 255, 0.2);
        }

        html.dark-mode .calendar-window {
            background: transparent;
            border-color: transparent;
            color: var(--text-primary);
        }

        html.dark-mode .calendar-window-time {
            color: var(--text-primary);
        }

        html.dark-mode .calendar-window-prob {
            color: #00d4ff;
        }

        html.dark-mode .calendar-no-data {
            background: rgba(0, 212, 255, 0.05);
            color: #aaa;
            border: 1px solid rgba(0, 212, 255, 0.2);
        }

        html.dark-mode .calendar-anomaly-badge {
            background: #ff4757;
        }

        html.dark-mode .calendar-anomaly-reason {
            color: #ff6b6b;
        }

        @media (max-width: 1400px) {
            .week-calendar-grid {
                grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
                gap: 10px;
            }
        }

        @media (max-width: 768px) {
            .week-calendar-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .calendar-day-card {
                margin-bottom: 10px;
            }
        }

