/* modules/family-calendar/family-calendar.css */ :root { --c-school-holiday: #e5d9f2; --c-public-holiday: #e0e0e0; --c-off-carole: #ffedd5; --c-extra-off: #fee2e2; --c-selected: #bfdbfe; --bg-alex: #f0fdfa; --text-alex: #0f766e; --bg-laia: #fffbeb; --text-laia: #b45309; } .pf-family-calendar .pf-main { padding-top: 20px; padding-bottom: 40px; } /* En-tête & Boutons */ .fc-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; } .pf-btn-icon-text { background: white; border: 1px solid var(--pf-border); border-radius: 20px; padding: 8px 16px; display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: 0.2s; box-shadow: var(--pf-shadow-sm); } .pf-btn-icon-text:hover { border-color: var(--pf-primary); color: var(--pf-primary); background: #f0f9ff; transform: translateY(-1px); } /* Calendrier Mensuel */ .fc-month-calendar-wrapper { background: white; border: 1px solid var(--pf-border); border-radius: var(--pf-radius-lg); padding: 24px; margin-bottom: 32px; box-shadow: var(--pf-shadow-sm); } .fc-month-header { display: flex !important; flex-direction: column !important; gap: 16px !important; margin-bottom: 20px !important; } .fc-month-nav-row { display: flex !important; align-items: center !important; justify-content: space-between !important; width: 100% !important; } .fc-month-nav-row h3 { margin: 0 !important; font-size: 1.4rem !important; font-weight: 800 !important; text-transform: capitalize !important; text-align: center !important; flex-grow: 1 !important; } .fc-nav-button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--pf-border); background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: 0.2s; } .fc-nav-button:hover { border-color: var(--pf-primary); color: var(--pf-primary); } .fc-view-controls { display: flex !important; width: 100% !important; background: #e2e8f0 !important; padding: 4px !important; border-radius: 8px !important; } .fc-view-button { flex: 1 !important; text-align: center !important; background: transparent; border: none; border-radius: 6px; padding: 6px 16px; font-size: 0.85rem; font-weight: 600; color: var(--pf-text-muted); cursor: pointer; transition: 0.2s; } .fc-view-button--active { background: white; color: var(--pf-primary); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); font-weight: 700; } .fc-month-calendar { width: 100%; display: block; overflow-x: auto; } .fc-month-table { min-width: 100% !important; width: 100% !important; table-layout: fixed; border-collapse: collapse !important; } .fc-month-table td { height: 80px; padding: 6px !important; font-size: 0.85rem; vertical-align: top; position: relative; cursor: pointer; border: 1px solid var(--pf-border) !important; } .fc-month-table th { padding: 10px !important; font-size: 0.8rem !important; background: var(--pf-bg-lighter) !important; color: var(--pf-text-muted); text-transform: uppercase; border: 1px solid var(--pf-border) !important; } .fc-day--other-month { background: #fcfcfc !important; } /* Vues Multi-mois */ .fc-two-months-container { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: 100%; overflow-x: auto; } .fc-three-months-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: 100%; overflow-x: auto; } .fc-month-title { text-align: center; font-weight: 700; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--pf-primary); text-transform: capitalize; } /* Décompte Congés (Pills) */ .fc-month-balances { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 20px; padding-top: 15px; border-top: 1px dashed var(--pf-border); } .fc-minimal-balance-card { display: flex; align-items: center; gap: 12px; background: white; padding: 8px 16px; border-radius: 50px; border: 1px solid #e2e8f0; } .fc-minimal-balance-card strong.alex { color: var(--text-alex); } .fc-minimal-balance-card strong.laia { color: var(--text-laia); } .fc-minimal-chips { display: flex; gap: 8px; flex-wrap: wrap; } .fc-min-chip { display: flex; align-items: center; background: var(--pf-bg-page); border-radius: 20px; padding: 3px 10px; font-size: 0.75rem; border: 1px solid #cbd5e1; } .fc-min-chip .type { font-weight: 700; color: var(--pf-text-muted); margin-right: 6px; } .fc-min-chip .val { font-weight: 800; color: var(--pf-text-main); } .fc-used-badge { margin-left: 6px; background: #fee2e2; color: var(--pf-danger); padding: 1px 5px; border-radius: 10px; font-size: 0.65rem; font-weight: bold; } .fc-burn-alert { margin-left: 5px; cursor: help; animation: pulseBurn 2s infinite; font-size: 0.9rem; display: flex; align-items: center; color: var(--pf-danger); font-weight: bold; } @keyframes pulseBurn { 0% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); opacity: 0.8; } } /* Couleurs des jours */ .fc-day--school-holiday { background: var(--c-school-holiday) !important; } .fc-day--public-holiday { background: var(--c-public-holiday) !important; font-weight: 700; } .fc-day--off-carole { background: var(--c-off-carole) !important; } .fc-day--extra-off-carole { background: var(--c-extra-off) !important; } .fc-day--selected { background: var(--c-selected) !important; outline: 2px solid var(--pf-primary); z-index: 5; } .fc-day--centre::after { content: "🏫"; position: absolute; top: 2px; right: 2px; font-size: 12px; } .fc-day--avis::after { content: ""; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; background: url("/modules/family-calendar/assets/img/avis.svg") no-repeat center; background-size: contain; } .fc-pep-sick-emoji { position: absolute; bottom: 2px; right: 2px; font-size: 12px; } .fc-day--off-carole.fc-day--school-holiday, .fc-day--extra-off-carole.fc-day--school-holiday, .fc-day--centre.fc-day--school-holiday, .fc-day--avis.fc-day--school-holiday { box-shadow: inset 0 -8px 0 0 var(--c-school-holiday) !important; } /* Planning Hebo (Desktop) */ .fc-week-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; } .fc-week-nav-controls { display: flex; align-items: center; gap: 12px; background: white; padding: 4px 12px; border-radius: 50px; } #fc-current-school-year-label { font-size: 1rem; font-weight: 800; min-width: 120px; text-align: center; } #planningTable-wrapper { max-height: 80vh; overflow: auto; border: 1px solid var(--pf-border); border-radius: 12px; background: white; box-shadow: var(--pf-shadow-sm); position: relative; } #planningTable { width: 100%; min-width: 1000px; border-collapse: separate; border-spacing: 0; } #planningTable thead th { position: sticky; top: 0; background: var(--pf-bg-lighter); border-bottom: 1px solid var(--pf-border); border-right: 1px solid var(--pf-border); padding: 6px; font-size: 0.75rem; z-index: 20; } .col-alex.header-group { background: var(--bg-alex) !important; color: var(--text-alex); } .col-laia.header-group { background: var(--bg-laia) !important; color: var(--text-laia); } #planningTable tbody td { border-right: 1px solid var(--pf-bg-lighter); border-bottom: 1px solid var(--pf-bg-lighter); height: 36px; padding: 0 4px; text-align: center; font-size: 0.85rem; white-space: nowrap; cursor: pointer; } .col-alex-sub { background: var(--bg-alex); } .col-laia-sub { background: var(--bg-laia); } .col-month { width: 54px !important; min-width: 54px !important; max-width: 54px !important; background: white; border-right: 2px solid var(--pf-border) !important; } th.col-day, td.col-day { min-width: 35px !important; border-right: 2px solid var(--pf-border) !important; } th.col-total, td.col-total, th.col-alex-sub, td.col-alex-sub, th.col-laia-sub, td.col-laia-sub { width: 32px !important; min-width: 32px !important; max-width: 32px !important; } .rotated-text span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.7rem; color: var(--pf-text-muted); } #planningTable tbody td.col-sticky-mois { position: sticky !important; left: 0 !important; z-index: 15 !important; background: white !important; } #planningTable tbody td.col-sticky-sem { position: sticky !important; left: 54px !important; z-index: 14 !important; background: white !important; box-shadow: 4px 0 6px -2px rgba(0, 0, 0, 0.1); } #planningTable thead tr th.col-sticky-mois { position: sticky !important; top: 0 !important; left: 0 !important; z-index: 30 !important; background: var(--pf-bg-lighter) !important; } #planningTable thead tr th.col-sticky-sem { position: sticky !important; top: 0 !important; left: 54px !important; z-index: 29 !important; background: var(--pf-bg-lighter) !important; box-shadow: 4px 0 6px -2px rgba(0, 0, 0, 0.1); } /* Panneaux bas & Légendes */ .fc-bottom-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; } .pf-legend-grid { display: flex; flex-wrap: wrap; gap: 8px; } .pf-legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; padding: 4px 8px; border: 1px solid var(--pf-border); border-radius: 6px; } .pf-legend-color { width: 16px; height: 16px; border-radius: 3px; } .fc-legend-school-holiday { background: var(--c-school-holiday); } .fc-legend-public-holiday { background: var(--c-public-holiday); } .fc-legend-off-carole { background: var(--c-off-carole); } .fc-legend-extra-off-carole { background: var(--c-extra-off); } .fc-legend-centre::after { content: "🏫"; } .fc-legend-pep-sick::after { content: "🤒"; } .fc-legend-avis { background: white url("/modules/family-calendar/assets/img/avis.svg") no-repeat center; background-size: contain; border: none; } .fc-summary-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; } .fc-summ-select { border: 1px solid var(--pf-border); border-radius: 6px; padding: 2px 8px; font-size: 0.75rem; height: 24px; } .fc-summary-item { display: flex; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid var(--pf-bg-lighter); } .fc-summary-label { font-size: 0.85rem; color: var(--pf-text-muted); font-weight: 500; } .fc-summary-value { font-size: 1rem; font-weight: 700; } /* Menu Contextuel Tactile */ .fc-selection-menu { position: absolute; z-index: 9000; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); border: 1px solid rgba(226, 232, 240, 0.8); box-shadow: var(--pf-shadow-lg); border-radius: 16px; padding: 10px 12px; min-width: 220px; display: none; animation: menuPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; transform-origin: top center; } @keyframes menuPopIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } } .fc-menu-section { padding: 6px 0; border-bottom: 1px dashed #cbd5e1; } .fc-menu-section:last-child { border: none; padding-bottom: 0; } .fc-menu-header { display: flex; justify-content: space-between; margin-bottom: 6px; } .fc-menu-section strong { font-size: 0.7rem; text-transform: uppercase; color: var(--pf-text-muted); } .fc-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; } .fc-menu-btn { background: white; border: 1px solid var(--pf-border); padding: 6px 8px; border-radius: 8px; font-size: 0.8rem; font-weight: 600; cursor: pointer; width: 100%; transition: 0.2s; box-shadow: var(--pf-shadow-sm); } .fc-menu-btn:hover { background: var(--pf-bg-page); border-color: var(--pf-primary); color: var(--pf-primary); } .fc-menu-clear-icon { background: transparent; border: none; color: #94a3b8; cursor: pointer; padding: 4px; display: flex; border-radius: 6px; } .fc-menu-clear-icon svg { width: 14px; height: 14px; } .fc-menu-clear-icon:hover { background: #fef2f2; color: var(--pf-danger); } .fc-menu-leaves-table table { width: 100%; border-spacing: 2px; } .fc-menu-leaves-table th { font-size: 0.7rem; color: var(--pf-text-muted); text-align: center; } .fc-th-inline { display: flex; justify-content: center; gap: 4px; } /* Table specifique modale vacances */ .fc-holidays-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; } .fc-holidays-table th { background: var(--pf-bg-page); padding: 12px 16px; text-align: left; font-weight: 600; position: sticky; top: 0; border-bottom: 1px solid var(--pf-border); } .fc-holidays-table td { padding: 10px 16px; border-bottom: 1px solid var(--pf-bg-lighter); } .fc-holidays-table tr:nth-child(even) { background: #fafafa; } /* Mobile */ @media (max-width: 768px) { .pf-family-calendar .pf-container { padding: 0 !important; } .fc-header-row { flex-direction: column; gap: 15px; padding: 0 10px; } .fc-header-row > div { flex-direction: column; width: 100%; } .pf-btn-icon-text { width: 100%; justify-content: center; } .fc-week-header, #planningTable-wrapper { display: none !important; } .fc-month-calendar-wrapper { padding: 16px !important; margin-bottom: 20px !important; } .fc-month-table td { height: 46px !important; padding: 2px !important; font-size: 0.75rem !important; } .fc-bottom-grid { grid-template-columns: 1fr; padding: 0 10px; } .fc-selection-menu { position: fixed !important; top: auto !important; left: 0 !important; bottom: 0 !important; width: 100% !important; border-radius: 24px 24px 0 0; padding: 24px 20px; transform: translateY(100%); animation: slideUpSheet 0.3s forwards; z-index: 10000 !important; } .fc-selection-menu::before { content: ""; display: block; width: 40px; height: 5px; background: #cbd5e1; border-radius: 10px; margin: 0 auto 15px auto; } }