/* GMC Frontend CSS */
.gmc-dashboard,.gmc-list,.gmc-alertes{font-family:system-ui,sans-serif;max-width:900px;margin:0 auto}

/* Stats */
.gmc-stats-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;margin-bottom:20px}
.gmc-stat{background:#fff;border-radius:10px;padding:16px;text-align:center;box-shadow:0 1px 4px rgba(0,0,0,.08);border-top:4px solid transparent;display:flex;flex-direction:column;gap:4px}
.gmc-stat.blue{border-top-color:#1a56db}.gmc-stat.blue .gmc-stat-num{color:#1a56db}
.gmc-stat.green{border-top-color:#16a34a}.gmc-stat.green .gmc-stat-num{color:#16a34a}
.gmc-stat.orange{border-top-color:#ea580c}.gmc-stat.orange .gmc-stat-num{color:#ea580c}
.gmc-stat.red{border-top-color:#dc2626}.gmc-stat.red .gmc-stat-num{color:#dc2626}
.gmc-stat.teal{border-top-color:#0891b2}.gmc-stat.teal .gmc-stat-num{color:#0891b2}
.gmc-stat-num{font-size:2rem;font-weight:800;line-height:1}
.gmc-stat-label{font-size:.78rem;color:#6b7280}
.gmc-cout-annee{background:#f0fdf4;border-radius:8px;padding:12px 16px;color:#15803d;font-size:.9rem;margin-bottom:16px}

/* Bouton Ajouter */
.gmc-btn-add{
    display:inline-flex !important;
    align-items:center;
    gap:8px;
    padding:12px 24px !important;
    background:linear-gradient(135deg,#16a34a,#15803d) !important;
    color:#fff !important;
    border-radius:10px !important;
    font-size:.95rem !important;
    font-weight:700 !important;
    text-decoration:none !important;
    box-shadow:0 4px 12px rgba(22,163,74,.35) !important;
    transition:all .2s;
    margin-bottom:16px;
}
.gmc-btn-add:hover{
    background:linear-gradient(135deg,#15803d,#166534) !important;
    color:#fff !important;
    transform:translateY(-1px);
    box-shadow:0 6px 16px rgba(22,163,74,.45) !important;
}

/* Filtres */
.gmc-filtres{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.gmc-filtres select,.gmc-filtres input{padding:8px 12px;border:1.5px solid #e5e7eb;border-radius:8px;font-size:.85rem;background:#fff;outline:none;flex:1;min-width:140px}
.gmc-filtres select:focus,.gmc-filtres input:focus{border-color:#1a56db}

/* Items */
.gmc-item{background:#fff;border-radius:10px;padding:16px;margin-bottom:12px;box-shadow:0 1px 4px rgba(0,0,0,.07);border-left:4px solid #e5e7eb}
.gmc-item-etude{border-left-color:#1a56db}
.gmc-item-en_cours{border-left-color:#ea580c}
.gmc-item-termine{border-left-color:#16a34a}
.gmc-item-en_retard{border-left-color:#dc2626;background:#fff5f5}
.gmc-item-en_panne{border-left-color:#9333ea}
.gmc-item-a_jour{border-left-color:#16a34a}
.gmc-item-header{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:6px}
.gmc-item-title{font-weight:700;font-size:1rem;color:#111827}
.gmc-item-sub{font-size:.82rem;color:#6b7280;margin-top:3px}
.gmc-item-sub a{color:#1a56db;text-decoration:none}
.gmc-item-dates{font-size:.8rem;color:#6b7280;margin-top:4px}
.gmc-item-remarques{font-size:.82rem;color:#374151;background:#f9fafb;border-radius:6px;padding:8px;margin-top:8px}
.gmc-item-maintenance{font-size:.82rem;font-weight:700;color:#15803d;margin-top:6px}
.gmc-item-maintenance.gmc-retard{color:#dc2626}
.gmc-item-contacts{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.gmc-contact-btn{display:inline-block;padding:5px 12px;border-radius:6px;background:#dbeafe;color:#1e40af;font-size:.78rem;font-weight:600;text-decoration:none}
.gmc-contact-btn:hover{background:#bfdbfe}
.gmc-progress{background:#e5e7eb;border-radius:4px;height:6px;margin-top:8px}
.gmc-progress-fill{height:6px;border-radius:4px}
.gmc-progress-label{font-size:.72rem;color:#6b7280;margin-top:2px}

/* Badges */
.gmc-badge{display:inline-block;padding:3px 10px;border-radius:20px;font-size:.72rem;font-weight:700;white-space:nowrap}
.gmc-badge-etude{background:#dbeafe;color:#1e40af}
.gmc-badge-en_cours{background:#fff7ed;color:#c2410c}
.gmc-badge-termine{background:#dcfce7;color:#15803d}
.gmc-badge-en_retard{background:#fee2e2;color:#b91c1c}
.gmc-badge-en_panne{background:#fef9c3;color:#c2410c}
.gmc-badge-a_jour{background:#dcfce7;color:#15803d}
.gmc-badge-a_planifier{background:#fef9c3;color:#a16207}
.gmc-badge-actif{background:#f1f5f9;color:#475569}

/* Alertes */
.gmc-alerte-titre{background:#fee2e2;border-radius:8px;padding:10px 14px;color:#b91c1c;font-weight:700;margin-bottom:12px}
.gmc-empty{color:#9aa0b0;font-style:italic;padding:16px 0}

/* Boutons admin */
.gmc-item-btns{display:flex;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid #f0f2f7;flex-wrap:wrap}
.gmc-btn-edit{padding:6px 14px;background:#dbeafe;color:#1e40af !important;border-radius:6px;font-size:.78rem;font-weight:700;text-decoration:none !important}
.gmc-btn-edit:hover{background:#bfdbfe}
.gmc-btn-delete{padding:6px 14px;background:#fee2e2;color:#b91c1c !important;border-radius:6px;font-size:.78rem;font-weight:700;text-decoration:none !important}
.gmc-btn-delete:hover{background:#fecaca}

/* ═══ CALENDRIER ═══ */
.gmc-calendrier{font-family:system-ui,sans-serif;max-width:900px;margin:0 auto}
.gmc-cal-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:10px}
.gmc-cal-titre{margin:0;font-size:1.1rem;font-weight:700;color:#1a56db}
.gmc-cal-btn{padding:7px 16px;background:#f1f5f9;border-radius:8px;text-decoration:none;color:#374151;font-size:.82rem;font-weight:600}
.gmc-cal-btn:hover{background:#e2e8f0;color:#374151}
.gmc-cal-legende{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:12px;font-size:.78rem;color:#6b7280}
.gmc-cal-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:4px;vertical-align:middle}
.gmc-cal-grid-head{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;margin-bottom:2px}
.gmc-cal-grid-head div{text-align:center;font-size:.7rem;font-weight:700;color:#9aa0b0;text-transform:uppercase;padding:4px}
.gmc-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}
.gmc-cal-day{min-height:80px;background:#fff;border-radius:6px;padding:4px;border:1px solid #f0f2f7}
.gmc-cal-empty{background:#f9fafb}
.gmc-cal-today{background:#eff6ff;border-color:#1a56db}
.gmc-cal-day-num{font-size:.78rem;font-weight:700;color:#374151;margin-bottom:2px}
.gmc-cal-today .gmc-cal-day-num{color:#1a56db}
.gmc-cal-event{background:#1a56db;color:#fff;border-radius:3px;padding:1px 4px;font-size:.6rem;margin-bottom:1px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.gmc-cal-more{font-size:.6rem;color:#9aa0b0}
.gmc-cal-liste{background:#fff;border-radius:10px;padding:16px;margin-top:16px;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.gmc-cal-liste h4{margin:0 0 12px;font-size:.9rem;color:#1a56db}
.gmc-cal-liste-item{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid #f0f2f7;font-size:.82rem}
.gmc-cal-liste-item:last-child{border-bottom:none}

/* ═══ STATISTIQUES ═══ */
.gmc-statistiques{font-family:system-ui,sans-serif;max-width:900px;margin:0 auto}
.gmc-stat-charts{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}
@media(max-width:600px){.gmc-stat-charts{grid-template-columns:1fr}}
.gmc-chart-box{background:#fff;border-radius:10px;padding:16px;box-shadow:0 1px 4px rgba(0,0,0,.07)}
.gmc-chart-box h4{margin:0 0 14px;font-size:.88rem;color:#1a56db;font-weight:700}
.gmc-bar-row{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.gmc-bar-label{font-size:.75rem;color:#374151;width:110px;flex-shrink:0}
.gmc-bar-wrap{flex:1;background:#f0f2f7;border-radius:4px;height:10px;overflow:hidden}
.gmc-bar-fill{height:10px;border-radius:4px;transition:width .5s}
.gmc-bar-val{font-size:.72rem;color:#6b7280;width:70px;text-align:right;flex-shrink:0}

/* CALENDRIER */
.gmc-calendrier{font-family:system-ui,sans-serif;max-width:900px;margin:0 auto}
.gmc-cal-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.gmc-cal-titre{margin:0;font-size:1.1rem;font-weight:700;color:#1a56db}
.gmc-cal-btn{padding:7px 16px;background:#f1f5f9;border-radius:8px;text-decoration:none;color:#374151;font-size:.82rem;font-weight:600}
.gmc-cal-btn:hover{background:#e2e8f0;color:#374151}
.gmc-cal-legende{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:12px;font-size:.78rem;color:#6b7280}
.gmc-cal-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:4px;vertical-align:middle}
.gmc-cal-grid-head{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;margin-bottom:2px}
.gmc-cal-grid-head div{text-align:center;font-size:.68rem;font-weight:700;color:#9aa0b0;text-transform:uppercase;padding:4px}
.gmc-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}
.gmc-cal-day{min-height:76px;background:#fff;border-radius:6px;padding:4px;border:1px solid #f0f2f7}
.gmc-cal-empty{background:#f9fafb;border-color:#f9fafb}
.gmc-cal-today{background:#eff6ff;border-color:#1a56db}
.gmc-cal-day-num{font-size:.75rem;font-weight:700;color:#374151;margin-bottom:2px}
.gmc-cal-today .gmc-cal-day-num{color:#1a56db}
.gmc-cal-event{color:#fff;border-radius:3px;padding:1px 4px;font-size:.58rem;margin-bottom:1px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.gmc-cal-more{font-size:.58rem;color:#9aa0b0}
.gmc-cal-liste{background:#fff;border-radius:10px;padding:16px;margin-top:16px;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.gmc-cal-liste h4{margin:0 0 12px;font-size:.9rem;color:#1a56db}
.gmc-cal-liste-item{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid #f0f2f7;font-size:.82rem}
.gmc-cal-liste-item:last-child{border-bottom:none}

/* STATISTIQUES */
.gmc-statistiques{font-family:system-ui,sans-serif;max-width:900px;margin:0 auto}
.gmc-stat-charts{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}
@media(max-width:600px){.gmc-stat-charts{grid-template-columns:1fr}}
.gmc-chart-box{background:#fff;border-radius:10px;padding:16px;box-shadow:0 1px 4px rgba(0,0,0,.07)}
.gmc-chart-box h4{margin:0 0 14px;font-size:.88rem;color:#1a56db;font-weight:700}
.gmc-bar-row{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.gmc-bar-label{font-size:.75rem;color:#374151;width:120px;flex-shrink:0}
.gmc-bar-wrap{flex:1;background:#f0f2f7;border-radius:4px;height:10px;overflow:hidden}
.gmc-bar-fill{height:10px;border-radius:4px}
.gmc-bar-val{font-size:.72rem;color:#6b7280;width:70px;text-align:right;flex-shrink:0}
