/* ARIANE  Contenu : FAQ accordéon, grille, stat-box, leaderboard, graphiques */

        /* FAQ accordéon */
        details summary::-webkit-details-marker { display: none; }
        details[open] summary span:first-child { transform: rotate(90deg); }
        details summary span:first-child { display: inline-block; transition: transform .2s; }
        details[open] > div { animation: faqFadeIn .18s ease; }
        @keyframes faqFadeIn { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }

        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .card {
            background: white;
            border-radius: 12px;
            padding: 20px;
            border: 1px solid #ddd;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .card:hover {
            transform: translateY(-5px);
            border-color: #667eea;
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
        }

        .card h2 {
            color: #667eea;
            font-size: 1.3em;
            margin-bottom: 20px;
            border-bottom: 2px solid #667eea;
            padding-bottom: 10px;
        }

        .stat-box {
            text-align: center;
            padding: 20px 10px;
            transition: all 0.3s ease;
        }

        .stat-box:hover {
            border-color: #667eea;
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
        }

        .stat-value {
            font-size: 2.5em;
            font-weight: bold;
            color: #667eea;
            margin: 10px 0;
        }

        .stat-label {
            color: #666;
            font-size: 0.85em;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: all 0.3s ease;
        }

        .stat-box:hover .stat-label {
            color: #667eea;
        }

        .card.full-width {
            grid-column: 1 / -1;
        }

        .chart-container {
            position: relative;
            height: 400px;
            margin: 20px 0;
        }

        .heatmap-wrapper {
            overflow-x: auto;
            margin: 20px 0;
            background: #f9f9f9;
            padding: 15px;
            border-radius: 8px;
        }

        .heatmap {
            display: inline-grid;
            grid-template-columns: 70px repeat(24, 35px);
            gap: 4px;
            padding: 10px;
            min-width: 100%;
        }

        .heatmap-day-label {
            grid-column: 1;
            padding: 8px;
            font-weight: bold;
            color: #333;
            font-size: 0.9em;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .heatmap-hour-header {
            padding: 8px 4px;
            text-align: center;
            font-weight: bold;
            color: #666;
            font-size: 0.75em;
        }

        .heatmap-cell {
            width: 35px;
            height: 35px;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7em;
            color: white;
            font-weight: bold;
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        .heatmap-cell:hover {
            transform: scale(1.1);
            z-index: 10;
            border-color: #667eea;
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
        }

        .leaderboard {
            list-style: none;
        }

        .leaderboard li {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px;
            border-bottom: 1px solid #eee;
            background: linear-gradient(90deg, transparent 0%, rgba(102, 126, 234, 0.05) 100%);
        }

        .leaderboard li:last-child {
            border-bottom: none;
        }

        .leaderboard-medal {
            font-size: 1.8em;
            margin-right: 15px;
            width: 40px;
            text-align: center;
        }

        .leaderboard-user {
            flex: 1;
            font-weight: 600;
            color: #333;
        }

        .leaderboard-count {
            font-weight: bold;
            color: #667eea;
            font-size: 1.3em;
        }
        /* -- Dot pulsé badge fraîcheur DIRECT -- */
        @keyframes dotPulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.4; transform: scale(0.6); }
        }
        .dot-pulse {
            animation: dotPulse 1.4s ease-in-out infinite;
        }

        /* -- Bouton plein écran carte DIRECT -- */
        .btn-plein-ecran-ouvrir {
            background: transparent;
            border: 1px solid rgba(102, 126, 234, 0.35);
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.88em;
            padding: 5px 11px;
            color: #667eea;
            transition: all 0.2s;
            line-height: 1.4;
            white-space: nowrap;
        }
        .btn-plein-ecran-ouvrir:hover {
            background: rgba(102, 126, 234, 0.12);
        }

        .btn-plein-ecran-fermer {
            display: none;
            position: absolute;
            top: 16px;
            right: 20px;
            background: rgba(220, 53, 69, 0.15);
            border: 1px solid rgba(220, 53, 69, 0.4);
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.88em;
            padding: 6px 14px;
            color: #dc3545;
            transition: all 0.2s;
            z-index: 10000;
        }
        .btn-plein-ecran-fermer:hover {
            background: rgba(220, 53, 69, 0.28);
        }

        /* -- Mode plein écran (card DIRECT) -- */
        .card.card-plein-ecran {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 100vw !important;
            height: 100vh !important;
            margin: 0 !important;
            border-radius: 0 !important;
            z-index: 9999 !important;
            overflow: hidden !important;
            display: flex !important;
            flex-direction: column !important;
            transform: none !important;
            padding: 20px !important;
            box-sizing: border-box !important;
        }
        .card.card-plein-ecran .btn-plein-ecran-fermer {
            display: block;
        }
        .card.card-plein-ecran .btn-plein-ecran-ouvrir {
            display: none;
        }
        .card.card-plein-ecran #vineyard-live-feed {
            flex: 1 !important;
            max-height: none !important;
            min-height: 0 !important;
            height: auto !important;
        }