/* Fichier : public_html/assets/css/home.css */

/* --- STRUCTURE DES SLIDES PLEIN ECRAN --- */
@media (min-width: 1024px) {
    html, body { overflow: hidden; height: 100%; }
    .slide-view { overflow: hidden; }
}

#main-container {
    width: 100%; height: 100%;
    transform-origin: center top;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

/* --- ADAPTATION MOBILE --- */
@media (max-width: 1023px) {
    html, body { overflow-y: auto; height: auto; }
    #main-container { height: auto !important; overflow-x: hidden !important; transform: none !important; opacity: 1 !important; padding-top: 70px; width: 100%; }
    
    .slide-view { 
        position: relative !important; 
        transform: none !important; 
        opacity: 1 !important; 
        pointer-events: auto !important;
        min-height: calc(100dvh - 80px) !important; 
        padding: 0 0 40px 0;
        display: flex;
        align-items: center; 
        width: 100% !important;
        overflow-x: hidden !important;
    }

    #hero-view {
        align-items: flex-start !important;
        padding-top: 20px !important;
    }
    
    #hero-view h1 { font-size: 2.25rem !important; margin-bottom: 1rem !important; }
    #hero-view .mb-8 { margin-bottom: 1.25rem !important; } 
    #hero-view .mb-10 { margin-bottom: 1.5rem !important; } 

    .iphone-wrapper {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: flex-start !important;
        height: 480px !important;
        margin-top: 0 !important;
        overflow: hidden !important; 
    }
    iphone-expert {
        display: block !important;
        margin: 0 auto !important;
        width: 380px !important; 
        max-width: none !important;
        transform: scale(0.6) !important;
        transform-origin: top center !important; 
    }
}

/* --- STYLES CARTE LEAFLET & LOGISTIQUE --- */
.leaflet-control-attribution { display: none !important; }
.leaflet-interactive { transition: stroke-dashoffset 1s linear; }

.client-tooltip {
    background: rgba(255, 255, 255, 0.98); border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700; color: #334155;
    padding: 4px 8px; border-radius: 6px;
    text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
}

#time-indicator { 
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%); 
    z-index: 1000; opacity: 0; transition: opacity 0.5s ease; pointer-events: none;
}
#time-indicator span {
    font-size: 10px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
    padding: 4px 12px; background: white; border-radius: 100px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); border: 1px solid #f1f5f9;
    color: #64748b; display: flex; align-items: center; gap: 6px;
}
#time-indicator span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; display: block; }

.mode-matin span::before { background: #22c55e; }
.mode-aprem span::before { background: #f59e0b; }

.live-stats-card {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px);
    padding: 8px 14px; border-radius: 12px;
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.15); border: 1px solid white;
    z-index: 500; opacity: 0; transition: opacity 0.5s; display: flex; gap: 15px;
}

/* --- AGENDA PC PORTABLE --- */
.bilan-container {
    display: flex; gap: 0; border: 1px solid #e2e8f0; border-radius: 16px; 
    overflow: hidden; box-shadow: 0 10px 30px -5px rgba(0,0,0,0.05); background: white;
}

.agenda-block { transition: transform 0.2s ease, box-shadow 0.2s ease; cursor: default; }
.agenda-block:hover { transform: scale(1.02) translateX(2px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); z-index: 20; }

.agenda-bg {
    background-image: linear-gradient(#f1f5f9 1px, transparent 1px);
    background-size: 100% 10%; 
}

@media (max-width: 768px) {
    .bilan-container { flex-direction: column; }
}