1091 lines
22 KiB
CSS
1091 lines
22 KiB
CSS
/* modules/family-calendar/family-calendar.css */
|
|
|
|
/* --- 1. VARIABLES --- */
|
|
:root {
|
|
--primary: #3b82f6;
|
|
--bg-page: #f8fafc;
|
|
--bg-header: #f1f5f9;
|
|
--border-color: #cbd5e1;
|
|
--text-main: #1e293b;
|
|
--text-muted: #64748b;
|
|
|
|
/* Couleurs Sémantiques */
|
|
--c-school-holiday: #e5d9f2;
|
|
--c-public-holiday: #e0e0e0;
|
|
--c-off-carole: #ffedd5;
|
|
--c-extra-off: #fee2e2;
|
|
--c-selected: #bfdbfe;
|
|
|
|
/* NOUVELLES COULEURS (Neutres) */
|
|
--bg-alex: #f0fdfa; /* Teal très pâle */
|
|
--text-alex: #0f766e; /* Teal foncé */
|
|
|
|
--bg-laia: #fffbeb; /* Jaune/Ambre très pâle */
|
|
--text-laia: #b45309; /* Ambre foncé */
|
|
}
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* Base */
|
|
.pf-family-calendar {
|
|
background-color: var(--bg-page);
|
|
font-family: "Inter", system-ui, sans-serif;
|
|
color: var(--text-main);
|
|
font-size: 13px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
/* OVERRIDES STRUCTURAUX */
|
|
.pf-family-calendar .pf-container {
|
|
max-width: 100% !important;
|
|
padding: 0 20px;
|
|
}
|
|
.pf-family-calendar .pf-main {
|
|
padding-top: 20px;
|
|
padding-bottom: 40px;
|
|
}
|
|
|
|
/* Titres */
|
|
.pf-card-title {
|
|
padding: 12px 16px;
|
|
margin: 0;
|
|
font-size: 0.9rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
background-color: var(--bg-header);
|
|
border-bottom: 1px solid var(--border-color);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.pf-card-body {
|
|
padding: 16px;
|
|
}
|
|
|
|
/* --- 2. HEADER PAGE & BOUTON VACANCES --- */
|
|
.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(--border-color);
|
|
border-radius: 20px; /* Pill */
|
|
padding: 8px 16px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
color: var(--text-main);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
}
|
|
.pf-btn-icon-text:hover {
|
|
border-color: var(--primary);
|
|
color: var(--primary);
|
|
background: #f0f9ff;
|
|
transform: translateY(-1px);
|
|
}
|
|
.pf-btn-icon-text .icon {
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
/* --- 3. PLANNING HEBDO --- */
|
|
|
|
.fc-week-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 16px;
|
|
gap: 16px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.fc-week-header h2 {
|
|
margin: 0;
|
|
font-size: 1.25rem;
|
|
font-weight: 800;
|
|
color: var(--text-main);
|
|
}
|
|
|
|
/* Contrôles Année Scolaire */
|
|
.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;
|
|
color: var(--text-main);
|
|
min-width: 120px;
|
|
text-align: center;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
#planningTable-wrapper {
|
|
max-height: 80vh;
|
|
overflow: auto;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 12px;
|
|
background: white;
|
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
|
|
position: relative;
|
|
}
|
|
|
|
#planningTable {
|
|
width: 100%;
|
|
border-collapse: separate;
|
|
border-spacing: 0;
|
|
table-layout: fixed;
|
|
}
|
|
|
|
/* Sticky Header */
|
|
#planningTable thead {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 20;
|
|
background: var(--bg-header);
|
|
}
|
|
#planningTable thead th {
|
|
position: sticky;
|
|
top: 0;
|
|
background: var(--bg-header);
|
|
border-bottom: 1px solid var(--border-color);
|
|
border-right: 1px solid var(--border-color);
|
|
padding: 6px;
|
|
font-size: 0.75rem;
|
|
color: var(--text-main);
|
|
z-index: 20;
|
|
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
/* Hauteurs */
|
|
#planningTable thead tr:nth-child(1) th {
|
|
top: 0;
|
|
height: 32px;
|
|
}
|
|
#planningTable thead tr:nth-child(2) th {
|
|
top: 32px;
|
|
height: 28px;
|
|
z-index: 19;
|
|
}
|
|
#planningTable thead tr:nth-child(3) th {
|
|
top: 60px;
|
|
height: 26px;
|
|
z-index: 19;
|
|
border-bottom: 2px solid var(--border-color);
|
|
}
|
|
|
|
/* Couleurs Headers */
|
|
.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);
|
|
}
|
|
|
|
/* Corps */
|
|
#planningTable tbody td {
|
|
border-right: 1px solid #f1f5f9;
|
|
border-bottom: 1px solid #f1f5f9;
|
|
height: 36px;
|
|
padding: 0 4px;
|
|
text-align: center;
|
|
font-size: 0.85rem;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
position: relative;
|
|
}
|
|
|
|
/* Couleurs Cellules */
|
|
.fc-day--school-holiday {
|
|
background: var(--c-school-holiday);
|
|
}
|
|
.fc-day--public-holiday {
|
|
background: var(--c-public-holiday);
|
|
font-weight: 700;
|
|
}
|
|
.fc-day--off-carole {
|
|
background: var(--c-off-carole);
|
|
}
|
|
.fc-day--extra-off-carole {
|
|
background: var(--c-extra-off);
|
|
}
|
|
.fc-day--selected {
|
|
background: var(--c-selected) !important;
|
|
outline: 2px solid var(--primary);
|
|
z-index: 5;
|
|
}
|
|
|
|
/* Icones */
|
|
.fc-day--centre::after {
|
|
content: "🏫";
|
|
position: absolute;
|
|
top: 2px;
|
|
right: 2px;
|
|
font-size: 12px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.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 center;
|
|
background-size: contain;
|
|
border: none;
|
|
}
|
|
.fc-pep-sick-emoji {
|
|
position: absolute;
|
|
bottom: 2px;
|
|
right: 2px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* Colonnes */
|
|
.col-alex-av,
|
|
.col-laia-av {
|
|
background: #f8fafc;
|
|
color: var(--text-muted);
|
|
cursor: default;
|
|
}
|
|
.col-alex-sub {
|
|
background: var(--bg-alex);
|
|
}
|
|
.col-laia-sub {
|
|
background: var(--bg-laia);
|
|
}
|
|
.col-month {
|
|
width: 50px;
|
|
background: white;
|
|
font-weight: 600;
|
|
border-right: 2px solid var(--border-color) !important;
|
|
}
|
|
.col-day {
|
|
width: 40px;
|
|
border-right: 2px solid var(--border-color) !important;
|
|
}
|
|
.col-total {
|
|
width: 30px;
|
|
}
|
|
.col-alex-sub,
|
|
.col-laia-sub {
|
|
width: 35px;
|
|
}
|
|
|
|
.rotated-text span {
|
|
writing-mode: vertical-rl;
|
|
transform: rotate(180deg);
|
|
white-space: nowrap;
|
|
font-size: 0.7rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* --- 4. CALENDRIER MENSUEL (MODERNISÉ) --- */
|
|
.fc-month-calendar-wrapper {
|
|
background: white;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 16px;
|
|
padding: 24px;
|
|
margin-bottom: 32px;
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.fc-month-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 24px;
|
|
flex-wrap: wrap;
|
|
gap: 16px;
|
|
}
|
|
|
|
/* Navigation Flèches */
|
|
.fc-nav-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
order: 2;
|
|
}
|
|
.fc-nav-button {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
border: 1px solid var(--border-color);
|
|
background: white;
|
|
color: var(--text-main);
|
|
font-size: 18px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
}
|
|
.fc-nav-button:hover {
|
|
border-color: var(--primary);
|
|
color: var(--primary);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
/* Titre Mois */
|
|
#fc-current-month-year {
|
|
margin: 0;
|
|
font-size: 1.25rem;
|
|
font-weight: 800;
|
|
color: var(--text-main);
|
|
text-transform: capitalize;
|
|
min-width: 180px;
|
|
text-align: center;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
/* Boutons Vue (Segmented) */
|
|
.fc-view-controls {
|
|
display: inline-flex;
|
|
background: #e2e8f0;
|
|
padding: 4px;
|
|
border-radius: 8px;
|
|
gap: 0;
|
|
order: 1;
|
|
}
|
|
.fc-view-button {
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: 6px;
|
|
padding: 6px 16px;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
.fc-view-button:hover {
|
|
color: var(--text-main);
|
|
}
|
|
.fc-view-button--active {
|
|
background: white;
|
|
color: var(--primary);
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* Table Mensuelle */
|
|
.fc-month-calendar {
|
|
width: 100%;
|
|
display: block;
|
|
}
|
|
.fc-month-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
table-layout: fixed;
|
|
}
|
|
.fc-month-table th {
|
|
background: #f8fafc;
|
|
padding: 10px;
|
|
border: 1px solid var(--border-color);
|
|
font-size: 0.8rem;
|
|
text-transform: uppercase;
|
|
color: var(--text-muted);
|
|
}
|
|
.fc-month-table td {
|
|
border: 1px solid var(--border-color);
|
|
height: 80px;
|
|
vertical-align: top;
|
|
padding: 6px;
|
|
position: relative;
|
|
cursor: pointer;
|
|
}
|
|
.fc-day--other-month {
|
|
background: #fcfcfc;
|
|
}
|
|
|
|
/* Grilles Vues */
|
|
.fc-two-months-container {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 24px;
|
|
width: 100%;
|
|
}
|
|
.fc-year-container {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 20px;
|
|
width: 100%;
|
|
}
|
|
.fc-month-container,
|
|
.fc-year-month {
|
|
background: white;
|
|
}
|
|
.fc-month-title,
|
|
.fc-year-month-title {
|
|
text-align: center;
|
|
font-weight: 700;
|
|
color: var(--text-main);
|
|
margin-bottom: 12px;
|
|
padding-bottom: 8px;
|
|
border-bottom: 2px solid var(--primary);
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
/* --- 5. NOUVELLE SECTION BASSE (CARTES) --- */
|
|
.pf-section--bottom-panels {
|
|
margin-top: 40px;
|
|
}
|
|
.fc-bottom-grid {
|
|
display: grid;
|
|
grid-template-columns: 2fr 1fr;
|
|
gap: 24px;
|
|
align-items: start;
|
|
}
|
|
|
|
.pf-card {
|
|
background: white;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Légende Badge Style */
|
|
|
|
.pf-legend-grid {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.pf-legend-item {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 0.75rem;
|
|
padding: 4px 8px;
|
|
background-color: white;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
color: var(--text-muted);
|
|
}
|
|
.pf-legend-color {
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 3px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 12px;
|
|
line-height: 1;
|
|
}
|
|
|
|
/* Couleurs & Contenus Légende */
|
|
.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);
|
|
}
|
|
|
|
/* Légende : Emojis */
|
|
.fc-legend-centre {
|
|
background: white;
|
|
}
|
|
.fc-legend-centre::after {
|
|
content: "🏫";
|
|
}
|
|
|
|
.fc-legend-pep-sick {
|
|
background: white;
|
|
}
|
|
.fc-legend-pep-sick::after {
|
|
content: "🤒";
|
|
}
|
|
|
|
/* Légende : Icone SVG Avis */
|
|
.fc-legend-avis {
|
|
background: white url("/modules/family-calendar/assets/img/avis.svg")
|
|
no-repeat center center;
|
|
background-size: contain;
|
|
border: none; /* Pas de bordure pour le SVG propre */
|
|
}
|
|
|
|
/* Récapitulatif Vertical */
|
|
.fc-summary-vertical {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
}
|
|
.fc-summary-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 12px 4px;
|
|
border-bottom: 1px solid #f1f5f9;
|
|
}
|
|
.fc-summary-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
.fc-summary-label {
|
|
font-size: 0.85rem;
|
|
color: var(--text-muted);
|
|
font-weight: 500;
|
|
}
|
|
.fc-summary-value {
|
|
font-size: 1rem;
|
|
font-weight: 700;
|
|
color: var(--text-main);
|
|
}
|
|
.fc-summary-sub {
|
|
font-size: 0.75rem;
|
|
color: #94a3b8;
|
|
margin-left: 8px;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* --- CONTROLES RÉCAPITULATIF --- */
|
|
|
|
/* On transforme le titre de la card en Flexbox pour y mettre les boutons */
|
|
.fc-summary-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 8px 16px; /* Un peu plus compact verticalement */
|
|
}
|
|
|
|
.fc-summary-controls {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.fc-summ-select {
|
|
background: white;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
padding: 2px 8px;
|
|
font-size: 0.75rem; /* Petit texte */
|
|
color: var(--text-main);
|
|
cursor: pointer;
|
|
outline: none;
|
|
height: 24px;
|
|
}
|
|
|
|
.fc-summ-select:hover {
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
/* Ajustement mobile pour les sélecteurs */
|
|
@media (max-width: 768px) {
|
|
.fc-summary-header {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
}
|
|
}
|
|
|
|
/* --- 6. MODALE VACANCES --- */
|
|
.fc-modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
backdrop-filter: blur(2px);
|
|
z-index: 99999;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
animation: fadeIn 0.2s ease-out;
|
|
}
|
|
.fc-modal-content {
|
|
background: white;
|
|
width: 90%;
|
|
max-width: 600px;
|
|
max-height: 80vh;
|
|
border-radius: 16px;
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
|
|
display: flex;
|
|
flex-direction: column;
|
|
animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
overflow: hidden;
|
|
}
|
|
.fc-modal-header {
|
|
padding: 16px 24px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
.fc-modal-header h2 {
|
|
margin: 0;
|
|
font-size: 1.1rem;
|
|
color: var(--text-main);
|
|
}
|
|
.fc-modal-close {
|
|
background: none;
|
|
border: none;
|
|
font-size: 24px;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
transition: background 0.1s;
|
|
}
|
|
.fc-modal-close:hover {
|
|
background: #f1f5f9;
|
|
color: #ef4444;
|
|
}
|
|
.fc-modal-body {
|
|
padding: 0;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* Table Modale */
|
|
.fc-holidays-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.85rem;
|
|
}
|
|
.fc-holidays-table th {
|
|
background: #f9fafb;
|
|
padding: 12px 16px;
|
|
text-align: left;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
position: sticky;
|
|
top: 0;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
.fc-holidays-table td {
|
|
padding: 10px 16px;
|
|
border-bottom: 1px solid #f1f5f9;
|
|
color: var(--text-main);
|
|
}
|
|
.fc-holidays-table tr:nth-child(even) {
|
|
background: #fafafa;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
@keyframes slideUp {
|
|
from {
|
|
transform: translateY(20px);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* --- MENU CONTEXTUEL COMPACT ET UNIFORMISÉ (DNA Holidays) --- */
|
|
.fc-selection-menu {
|
|
position: absolute;
|
|
z-index: 9999;
|
|
background: rgba(255, 255, 255, 0.95);
|
|
backdrop-filter: blur(8px);
|
|
border: 1px solid rgba(226, 232, 240, 0.8);
|
|
box-shadow:
|
|
0 10px 25px -5px rgba(0, 0, 0, 0.1),
|
|
0 8px 10px -6px rgba(0, 0, 0, 0.1);
|
|
border-radius: 16px;
|
|
padding: 10px 12px; /* Base compact */
|
|
min-width: 220px; /* Base compact */
|
|
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; /* Compact */
|
|
border-bottom: 1px dashed #cbd5e1;
|
|
}
|
|
.fc-menu-section:first-child {
|
|
padding-top: 0;
|
|
}
|
|
.fc-menu-section:last-child {
|
|
border: none;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.fc-menu-header {
|
|
/* Compact header */
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.fc-menu-section strong {
|
|
display: block;
|
|
font-size: 0.7rem; /* Base compact */
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
font-weight: 700;
|
|
color: #64748b;
|
|
margin-bottom: 0 !important; /* Retire l'ancienne marge */
|
|
}
|
|
|
|
.fc-menu-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 4px; /* Base compact */
|
|
}
|
|
|
|
.fc-menu-btn {
|
|
background: white;
|
|
border: 1px solid #e2e8f0;
|
|
color: #1e293b;
|
|
padding: 6px 8px; /* Base compact */
|
|
border-radius: 8px;
|
|
font-size: 0.8rem; /* Base compact */
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
width: 100%;
|
|
transition: all 0.2s ease;
|
|
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.fc-menu-btn:hover {
|
|
background: #f8fafc;
|
|
border-color: #3b82f6;
|
|
color: #2563eb;
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.15);
|
|
}
|
|
|
|
/* Style des icônes de suppression unifiées */
|
|
.fc-menu-clear-icon {
|
|
background: transparent;
|
|
border: none;
|
|
color: #94a3b8;
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 6px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.fc-menu-clear-icon svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.fc-menu-clear-icon:hover {
|
|
background: #fef2f2;
|
|
color: #dc2626;
|
|
}
|
|
|
|
/* --- TABLEAU DES CONGÉS ENFANTS --- */
|
|
.fc-menu-leaves-table table {
|
|
width: 100%;
|
|
border-spacing: 2px; /* Base compact */
|
|
border-collapse: separate;
|
|
}
|
|
.fc-menu-leaves-table th {
|
|
font-size: 0.7rem; /* Base compact */
|
|
font-weight: 700;
|
|
color: #64748b;
|
|
padding-bottom: 2px; /* Base compact */
|
|
text-align: center;
|
|
}
|
|
.fc-menu-leaves-table td {
|
|
padding: 0;
|
|
}
|
|
|
|
/* Aligner le nom et l'icône sur une ligne (Inline) */
|
|
.fc-th-inline {
|
|
display: flex;
|
|
flex-direction: row; /* Alignement horizontal */
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 4px; /* Petit espace entre le nom et la poubelle */
|
|
}
|
|
|
|
/* --- VERSION MOBILE COMPACTE --- */
|
|
@media (max-width: 768px) {
|
|
.fc-selection-menu {
|
|
position: fixed !important;
|
|
top: auto !important;
|
|
bottom: 0 !important;
|
|
left: 0 !important;
|
|
width: 100% !important;
|
|
border-radius: 24px 24px 0 0;
|
|
border: none;
|
|
border-top: 1px solid rgba(226, 232, 240, 0.8);
|
|
box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
|
|
padding: 12px 16px; /* Compact mobile */
|
|
padding-bottom: calc(
|
|
12px + env(safe-area-inset-bottom)
|
|
); /* Compact mobile */
|
|
max-height: 85vh;
|
|
overflow-y: auto;
|
|
animation: slideUpSheet 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
|
transform-origin: bottom center;
|
|
}
|
|
|
|
.fc-selection-menu::before {
|
|
content: "";
|
|
display: block;
|
|
width: 40px;
|
|
height: 5px;
|
|
background: #cbd5e1;
|
|
border-radius: 10px;
|
|
margin: 0 auto 10px auto; /* Compact mobile */
|
|
}
|
|
|
|
@keyframes slideUpSheet {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(100%);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.fc-menu-btn {
|
|
padding: 8px; /* Compact mobile */
|
|
font-size: 0.85rem; /* Compact mobile */
|
|
}
|
|
}
|
|
|
|
/* --- SUPERPOSITION : GARDE/CONGÉS + VACANCES SCOLAIRES --- */
|
|
|
|
/* 1. OFF CAROLE + VACANCES
|
|
On force le fond orange/pêche, et on met la barre violette en bas */
|
|
.fc-day--off-carole.fc-day--school-holiday {
|
|
background: var(--c-off-carole) !important;
|
|
box-shadow: inset 0 -8px 0 0 var(--c-school-holiday) !important;
|
|
}
|
|
|
|
/* 2. EXTRA OFF CAROLE + VACANCES
|
|
On force le fond rouge clair, et on met la barre violette en bas */
|
|
.fc-day--extra-off-carole.fc-day--school-holiday {
|
|
background: var(--c-extra-off) !important;
|
|
box-shadow: inset 0 -8px 0 0 var(--c-school-holiday) !important;
|
|
}
|
|
|
|
/* 3. CENTRE / AVIS + VACANCES
|
|
Comme ce sont juste des icônes sur fond normal, on se contente d'ajouter la barre violette */
|
|
.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;
|
|
}
|
|
|
|
/* =========================================================
|
|
8. OPTIMISATIONS MOBILES ET ERGONOMIE
|
|
========================================================= */
|
|
|
|
/* 1. On force une largeur stricte pour éviter le décalage de la 2ème colonne */
|
|
.col-month {
|
|
box-sizing: border-box !important;
|
|
width: 54px !important;
|
|
min-width: 54px !important;
|
|
max-width: 54px !important;
|
|
}
|
|
|
|
/* 2. Fixation horizontale pour les cellules (Valeurs) */
|
|
#planningTable tbody td.col-sticky-mois {
|
|
position: -webkit-sticky !important;
|
|
position: sticky !important;
|
|
left: 0 !important;
|
|
z-index: 15 !important;
|
|
background: white !important;
|
|
}
|
|
|
|
#planningTable tbody td.col-sticky-sem {
|
|
position: -webkit-sticky !important;
|
|
position: sticky !important;
|
|
left: 54px !important; /* Exactement la largeur de la colonne Mois */
|
|
z-index: 14 !important;
|
|
background: white !important;
|
|
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
/* 3. Fixation 2D (Haut + Gauche) ultra prioritaire pour les En-têtes */
|
|
#planningTable thead tr th.col-sticky-mois {
|
|
position: -webkit-sticky !important;
|
|
position: sticky !important;
|
|
top: 0 !important;
|
|
left: 0 !important;
|
|
z-index: 30 !important; /* Le plus haut niveau possible */
|
|
background: var(--bg-header) !important;
|
|
}
|
|
|
|
#planningTable thead tr th.col-sticky-sem {
|
|
position: -webkit-sticky !important;
|
|
position: sticky !important;
|
|
top: 0 !important;
|
|
left: 54px !important;
|
|
z-index: 29 !important; /* Sous Mois, mais au dessus du reste */
|
|
background: var(--bg-header) !important;
|
|
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
/* --- B. MENU BOTTOM SHEET (Mobile Uniquement) --- */
|
|
@media (max-width: 768px) {
|
|
.fc-selection-menu {
|
|
position: fixed !important;
|
|
top: auto !important;
|
|
left: 0 !important;
|
|
bottom: 0 !important;
|
|
width: 100% !important;
|
|
border-radius: 24px 24px 0 0;
|
|
box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
|
|
padding: 24px 20px;
|
|
padding-bottom: env(safe-area-inset-bottom, 24px);
|
|
transform: translateY(100%);
|
|
animation: slideUpSheet 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
|
max-height: 85vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
@keyframes slideUpSheet {
|
|
to {
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.fc-menu-btn {
|
|
padding: 10px;
|
|
font-size: 0.95rem;
|
|
font-weight: 600;
|
|
}
|
|
}
|
|
|
|
/* --- C. RÉDUCTION DES ICÔNES SUR MOBILE (Nouveau) --- */
|
|
@media (max-width: 768px) {
|
|
/* Icône Centre (Emoji) */
|
|
.fc-day--centre::after {
|
|
font-size: 9px !important;
|
|
top: 1px !important;
|
|
right: 1px !important;
|
|
}
|
|
|
|
/* Icône Avis (SVG) */
|
|
.fc-day--avis::after {
|
|
width: 10px !important;
|
|
height: 10px !important;
|
|
top: 1px !important;
|
|
right: 1px !important;
|
|
}
|
|
|
|
/* Icône Pep Malade (Emoji) */
|
|
.fc-pep-sick-emoji {
|
|
font-size: 9px !important;
|
|
bottom: 1px !important;
|
|
right: 1px !important;
|
|
}
|
|
}
|
|
|
|
/* --- ALIGNEMENT DES EN-TÊTES DU MENU --- */
|
|
.fc-menu-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.fc-menu-header strong {
|
|
margin-bottom: 0 !important; /* Retire l'ancienne marge du bas */
|
|
}
|
|
|
|
/* Style de l'icône Poubelle */
|
|
.fc-menu-clear-icon {
|
|
background: transparent;
|
|
border: none;
|
|
color: #94a3b8; /* Gris discret par défaut */
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 6px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.fc-menu-clear-icon svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
/* Survol de la poubelle : devient rouge clair */
|
|
.fc-menu-clear-icon:hover {
|
|
background: #fef2f2;
|
|
color: #dc2626;
|
|
}
|
|
|
|
.fc-th-stack {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding-bottom: 4px;
|
|
}
|
|
|
|
.fc-menu-btn-mini-clear {
|
|
background: #f1f5f9;
|
|
border: 1px solid #cbd5e1;
|
|
border-radius: 4px;
|
|
font-size: 10px;
|
|
padding: 2px 4px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.fc-menu-btn-mini-clear:hover {
|
|
background: #fee2e2;
|
|
border-color: #fca5a5;
|
|
transform: scale(1.1);
|
|
}
|