Crvi/assets/css/crvi-agenda.css
2026-01-20 16:40:22 +01:00

402 lines
8.2 KiB
CSS

/* Styles pour le popover des événements */
.event-popover {
max-width: 300px;
font-size: 0.875rem;
}
.event-popover .popover-header {
background-color: #f8f9fa;
border-bottom: 1px solid #dee2e6;
font-weight: 600;
padding: 0.5rem 0.75rem;
}
.event-popover .popover-body {
padding: 0.75rem;
}
.event-popover h6 {
color: #495057;
font-weight: 600;
margin-bottom: 0.5rem;
}
.event-popover .mb-1 {
margin-bottom: 0.25rem;
}
.event-popover .mb-2 {
margin-bottom: 0.5rem;
}
.event-popover .mt-2 {
margin-top: 0.5rem;
}
.event-popover strong {
color: #495057;
font-weight: 600;
}
.event-popover .text-muted {
color: #6c757d !important;
font-size: 0.75rem;
}
/* Animation du popover */
.popover {
animation: fadeIn 0.2s ease-in-out;
}
.fade.show {
opacity: 1;
}
/* Forcer l'opacité du popover d'événement en front,
même si une règle .fade externe met opacity:0 */
.popover.event-popover.fade,
.popover.event-popover.fade.show {
opacity: 1 !important;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-5px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Styles pour le lien "plus" des événements */
.fc-daygrid-more-link {
background-color: #007bff !important;
color: white !important;
border-radius: 3px !important;
padding: 2px 6px !important;
font-size: 0.75rem !important;
font-weight: 500 !important;
text-decoration: none !important;
display: inline-block !important;
margin-top: 2px !important;
transition: background-color 0.2s ease !important;
}
.fc-daygrid-more-link:hover {
background-color: #0056b3 !important;
color: white !important;
text-decoration: none !important;
}
/* Style pour le popover des événements cachés */
.fc-more-popover {
max-width: 400px !important;
border-radius: 8px !important;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}
.fc-more-popover .fc-popover-header {
background-color: #f8f9fa !important;
border-bottom: 1px solid #dee2e6 !important;
padding: 0.75rem 1rem !important;
font-weight: 600 !important;
color: #495057 !important;
}
.fc-more-popover .fc-popover-body {
padding: 0.75rem 1rem !important;
max-height: 300px !important;
overflow-y: auto !important;
}
.fc-more-popover .fc-event {
margin-bottom: 0.5rem !important;
padding: 0.5rem !important;
border-radius: 4px !important;
cursor: pointer !important;
transition: background-color 0.2s ease !important;
}
.fc-more-popover .fc-event:hover {
opacity: 0.8 !important;
}
.fc-more-popover .fc-event:last-child {
margin-bottom: 0 !important;
}
/* Responsive pour les petits écrans */
@media (max-width: 768px) {
.event-popover {
max-width: 250px;
font-size: 0.8rem;
}
.fc-daygrid-more-link {
font-size: 0.7rem !important;
padding: 1px 4px !important;
}
.fc-more-popover {
max-width: 300px !important;
}
}
/* ========================================
Timeline pour historique bénéficiaire
======================================== */
.crvi-timeline {
display: flex;
flex-direction: column;
margin: 30px auto;
padding-left: 100px;
position: relative;
}
.crvi-timeline__event {
background: #fff;
margin-bottom: 20px;
position: relative;
border-radius: 12px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
padding: 25px;
transition: all 0.3s ease;
}
.crvi-timeline__event:hover {
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
/* Ligne verticale qui connecte les événements */
.crvi-timeline__event:after {
content: "";
width: 4px;
height: calc(100% + 20px);
position: absolute;
top: 50%;
left: -74px;
z-index: 0;
}
/* Cercle numéroté sur la ligne */
.crvi-timeline__event:before {
content: attr(data-number);
width: 50px;
height: 50px;
position: absolute;
background: #fff;
border-radius: 50%;
left: -98px;
top: 50%;
transform: translateY(-50%);
border: 4px solid;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
font-weight: 700;
z-index: 2;
color: #fff;
}
/* Masquer la ligne après le dernier élément */
.crvi-timeline__event--last:after {
content: none;
}
/* Container pour date/heure dans l'événement */
.crvi-timeline__event__header {
display: flex;
align-items: center;
margin-bottom: 15px;
padding-bottom: 15px;
border-bottom: 2px solid #f0f0f0;
}
.crvi-timeline__event__date-wrapper {
display: flex;
align-items: center;
gap: 15px;
}
.crvi-timeline__event__date-icon {
width: 50px;
height: 50px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
}
.crvi-timeline__event__date-info {
display: flex;
flex-direction: column;
}
.crvi-timeline__event__date {
font-size: 1rem;
font-weight: 700;
margin-bottom: 3px;
}
.crvi-timeline__event__time {
font-size: 0.85rem;
opacity: 0.8;
}
/* Titre de l'événement */
.crvi-timeline__event__title {
font-size: 1.1rem;
font-weight: 700;
margin-bottom: 15px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Description/contenu */
.crvi-timeline__event__content {
font-size: 0.95rem;
line-height: 1.6;
color: #555;
}
.crvi-timeline__event__content .mb-2 {
margin-bottom: 10px;
}
.crvi-timeline__event__content strong {
color: #333;
font-weight: 600;
}
/* Type d'événement : Par défaut (gris) */
.crvi-timeline__event--default {
background: #f8f9fb;
border-left: 4px solid #9ca3af;
}
.crvi-timeline__event--default:before {
background: #e5e7eb;
border-color: #9ca3af;
color: #6b7280;
}
.crvi-timeline__event--default:after {
background: #d1d5db;
}
.crvi-timeline__event--default .crvi-timeline__event__date-icon {
background: #e5e7eb;
color: #6b7280;
}
.crvi-timeline__event--default .crvi-timeline__event__date,
.crvi-timeline__event--default .crvi-timeline__event__title {
color: #6b7280;
}
/* Type d'événement : Prévu (bleu) */
.crvi-timeline__event--prevu {
background: #eff6ff;
border-left: 4px solid #3b82f6;
}
.crvi-timeline__event--prevu:before {
background: #3b82f6;
border-color: #2563eb;
color: #fff;
}
.crvi-timeline__event--prevu:after {
background: #3b82f6;
}
.crvi-timeline__event--prevu .crvi-timeline__event__date-icon {
background: #3b82f6;
color: #fff;
}
.crvi-timeline__event--prevu .crvi-timeline__event__date,
.crvi-timeline__event--prevu .crvi-timeline__event__title {
color: #2563eb;
}
/* Type d'événement : Présent (vert) */
.crvi-timeline__event--present {
background: #f0fdf4;
border-left: 4px solid #22c55e;
}
.crvi-timeline__event--present:before {
background: #22c55e;
border-color: #16a34a;
color: #fff;
}
.crvi-timeline__event--present:after {
background: #22c55e;
}
.crvi-timeline__event--present .crvi-timeline__event__date-icon {
background: #22c55e;
color: #fff;
}
.crvi-timeline__event--present .crvi-timeline__event__date,
.crvi-timeline__event--present .crvi-timeline__event__title {
color: #16a34a;
}
/* Type d'événement : Incident/Absence (rouge) */
.crvi-timeline__event--incident {
background: #fef2f2;
border-left: 4px solid #ef4444;
}
.crvi-timeline__event--incident:before {
background: #ef4444;
border-color: #dc2626;
color: #fff;
}
.crvi-timeline__event--incident:after {
background: #ef4444;
}
.crvi-timeline__event--incident .crvi-timeline__event__date-icon {
background: #ef4444;
color: #fff;
}
.crvi-timeline__event--incident .crvi-timeline__event__date,
.crvi-timeline__event--incident .crvi-timeline__event__title {
color: #dc2626;
}
/* Responsive */
@media (max-width: 768px) {
.crvi-timeline {
padding-left: 50px;
}
.crvi-timeline__event:before {
width: 35px;
height: 35px;
left: -68px;
font-size: 0.9rem;
}
.crvi-timeline__event:after {
left: -53px;
width: 3px;
}
.crvi-timeline__event__header {
flex-direction: column;
align-items: flex-start;
}
}