+
= tr('gift_modal_gift_name') ?>
-
+
-
-
+
\ No newline at end of file
diff --git a/includes/lang/ca.php b/includes/lang/ca.php
index 86abbd3..11904cc 100644
--- a/includes/lang/ca.php
+++ b/includes/lang/ca.php
@@ -517,7 +517,7 @@ return [
'gift_col_party' => 'Festa',
'gift_debtor' => 'Deutor',
'gift_creditor' => 'Creditor',
- 'gift_liquidations' => 'Liquidacions',
+ 'gift_liquidations' => 'Tricount',
'gift_no_debt' => 'Cap deute pendent.',
'gift_owes' => 'ha de pagar',
'gift_to' => 'a',
@@ -532,4 +532,9 @@ return [
'gift_modal_price' => 'Preu (€)',
'gift_modal_link' => 'Enllaç (opcional)',
'gift_confirm_delete' => 'Vols eliminar aquest regal?',
+ 'gift_filter_all_children' => 'Tots els nens',
+ 'gift_filter_all_adults' => 'Tots els adults',
+ 'gift_empty_state_no_gifts' => 'Cap regal de moment.',
+ 'gift_empty_state_no_filter' => 'Cap regal correspon al filtre.',
+ 'gift_view_matrix' => 'Veure la matriu detallada',
];
\ No newline at end of file
diff --git a/includes/lang/fr.php b/includes/lang/fr.php
index c2aa907..bad4737 100644
--- a/includes/lang/fr.php
+++ b/includes/lang/fr.php
@@ -501,7 +501,7 @@ return [
'gift_page_title' => 'PachaFamily - Liste de cadeaux',
'gift_occ_tio' => 'Tió',
'gift_occ_noel' => 'Noël',
- 'gift_occ_rois' => 'Rois',
+ 'gift_occ_rois' => 'Rois mages',
'gift_occ_anniv' => 'Anniversaire',
'gift_occ_sant' => 'Saint',
'gift_main_title' => 'Liste de cadeaux %s',
@@ -518,7 +518,7 @@ return [
'gift_col_party' => 'Fête',
'gift_debtor' => 'Débiteur',
'gift_creditor' => 'Créancier',
- 'gift_liquidations' => 'Liquidations',
+ 'gift_liquidations' => 'Tricount',
'gift_no_debt' => 'Aucune dette en cours.',
'gift_owes' => 'doit',
'gift_to' => 'à',
@@ -533,4 +533,9 @@ return [
'gift_modal_price' => 'Prix (€)',
'gift_modal_link' => 'Lien (optionnel)',
'gift_confirm_delete' => 'Voulez-vous vraiment supprimer ce cadeau ?',
+ 'gift_filter_all_children' => 'Tous les enfants',
+ 'gift_filter_all_adults' => 'Tous les adultes',
+ 'gift_empty_state_no_gifts' => 'Aucun cadeau pour le moment.',
+ 'gift_empty_state_no_filter' => 'Aucun cadeau ne correspond au filtre.',
+ 'gift_view_matrix' => 'Voir la matrice détaillée',
];
\ No newline at end of file
diff --git a/modules/gift-list/gift-list.css b/modules/gift-list/gift-list.css
index 6debc3f..d7e91a2 100644
--- a/modules/gift-list/gift-list.css
+++ b/modules/gift-list/gift-list.css
@@ -1,50 +1,21 @@
/* modules/gift-list/gift-list.css */
-/* --- 1. VARIABLES & BASE --- */
-:root {
- --primary: #2563eb;
- --bg-page: #f8fafc;
- --text-main: #1e293b;
- --text-muted: #64748b;
- --border-light: #e2e8f0;
-
- --radius-card: 12px;
- --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.1);
-}
-
-.pf-gift-list {
- background-color: var(--bg-page);
- font-family:
- -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
- sans-serif;
- color: var(--text-main);
- font-size: 13px;
-}
-
.pf-gift-list h1 {
font-size: 1.6rem;
- font-weight: 700;
- color: #0f172a;
+ font-weight: 800;
margin: 0;
+ color: var(--text-main);
}
-.cl-legend {
- font-size: 0.85rem;
- color: var(--text-muted);
- font-style: italic;
- margin-top: 4px;
-}
-
-/* --- 2. HEADER & SWITCH --- */
.cl-titlebar {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
- gap: 1rem;
- margin-bottom: 2rem;
- padding-bottom: 1rem;
+ gap: 15px;
+ margin-bottom: 20px;
border-bottom: 1px solid var(--border-light);
+ padding-bottom: 15px;
}
.cl-view-switch {
@@ -52,7 +23,8 @@
background: white;
padding: 4px;
border-radius: 8px;
- border: 1px solid #cbd5e1;
+ border: 1px solid var(--border-light);
+ box-shadow: var(--shadow-sm);
}
.cl-view-btn {
@@ -62,6 +34,7 @@
font-size: 0.85rem;
font-weight: 600;
color: var(--text-muted);
+ transition: 0.2s;
}
.cl-view-btn.is-active {
@@ -69,574 +42,243 @@
color: white;
}
-/* --- 3. BLOCS OCCASIONS & GRILLE --- */
-.cl-occasion-block {
- margin-bottom: 40px;
-}
-
-.cl-occasion-title {
- font-size: 1.2rem;
- font-weight: 700;
- color: #334155;
- margin-bottom: 16px;
+/* === FILTRES STICKY === */
+.pf-filter-bar {
display: flex;
- align-items: center;
gap: 10px;
- text-transform: uppercase;
- letter-spacing: 0.05em;
- border-bottom: 2px solid #e2e8f0;
- padding-bottom: 8px;
+ align-items: center;
+ margin-bottom: 24px;
+ position: sticky;
+ top: 64px;
+ z-index: 50;
+ flex-wrap: wrap;
}
-.cl-occasion-icon {
- width: 24px;
- height: 24px;
- object-fit: contain;
-}
-
-/* --- GRILLE INTELLIGENTE --- */
-.cl-occasion-children-tables {
- display: grid;
- gap: 20px;
- align-items: start;
-}
-
-/* VUE STANDARD (Nadal) : 3 par ligne */
-.cl-view-nadal .cl-occasion-children-tables {
- grid-template-columns: repeat(3, 1fr);
-}
-
-/* VUE ANNIVERSARY : Layout spécifique demandé */
-.cl-view-anniversary .cl-occasion-children-tables {
- grid-template-columns: repeat(6, 1fr); /* Grille de 6 colonnes */
-}
-
-/* Pol et Pep : Prennent 3 colonnes sur 6 (donc 50% de largeur => 2 par ligne) */
-.cl-view-anniversary .child-pol,
-.cl-view-anniversary .child-pep {
- grid-column: span 3;
-}
-
-/* Les autres : Prennent 2 colonnes sur 6 (donc 33% de largeur => 3 par ligne) */
-.cl-view-anniversary .child-elna,
-.cl-view-anniversary .child-bru,
-.cl-view-anniversary .child-guim {
- grid-column: span 2;
-}
-
-/* --- 4. TABLEAU PAR ENFANT (Card Unifiée) --- */
-.cl-child-table {
- background: white;
- box-shadow: var(--shadow-card);
- border-radius: 0 0 var(--radius-card) var(--radius-card);
- border: 1px solid var(--border-light);
- border-top: none;
- display: table;
- width: 100%;
- table-layout: fixed;
- border-collapse: separate;
- border-spacing: 0;
-}
-
-/* CAPTION (Nom de l'enfant - Haut de la carte) */
-.cl-child-table caption {
- caption-side: top;
- display: table-caption;
- padding: 10px 16px;
- text-align: left;
- font-weight: 700;
- font-size: 1.1rem;
- border-radius: var(--radius-card) var(--radius-card) 0 0;
- border: 1px solid var(--border-light);
- border-bottom: 2px solid;
- margin-bottom: 0;
- position: relative;
-}
-
-/* Bouton Ajout (+) Rotatif */
-.cl-child-add-btn {
- position: absolute;
- right: 12px;
- top: 50%;
- transform: translateY(-50%);
- background: rgba(255, 255, 255, 0.6);
- color: inherit;
- border: 1px solid rgba(0, 0, 0, 0.1);
- width: 28px;
- height: 28px;
- border-radius: 50%;
- font-size: 18px;
- line-height: 1;
- cursor: pointer;
+.pf-filter-label {
+ font-size: 0.85rem;
+ font-weight: 600;
+ color: var(--text-muted);
display: flex;
align-items: center;
- justify-content: center;
- transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
- z-index: 2;
+ gap: 6px;
}
-.cl-child-add-btn:hover {
- background: white;
- transform: translateY(-50%) rotate(90deg) scale(1.1);
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
- border-color: currentColor;
-}
-
-/* --- 5. COULEURS PAR ENFANT --- */
-/* POL (Bleu) */
-.child-pol {
- border-color: #bcd3ff;
-}
-.child-pol caption {
- background: #eaf2ff;
- color: #1e3a8a;
- border-color: #bcd3ff;
- border-bottom-color: #93c5fd;
-}
-.child-pol thead th {
- background: #f5f9ff;
-}
-
-/* PEP (Vert) */
-.child-pep {
- border-color: #b9e3b9;
-}
-.child-pep caption {
- background: #eaf7ea;
- color: #14532d;
- border-color: #b9e3b9;
- border-bottom-color: #86efac;
-}
-.child-pep thead th {
- background: #f6fdf6;
-}
-
-/* ELNA (Rose) */
-.child-elna {
- border-color: #f3bfd7;
-}
-.child-elna caption {
- background: #fdeaf3;
- color: #831843;
- border-color: #f3bfd7;
- border-bottom-color: #f9a8d4;
-}
-.child-elna thead th {
- background: #fff5f9;
-}
-
-/* BRU (Orange) */
-.child-bru {
- border-color: #ffd0a8;
-}
-.child-bru caption {
- background: #fff3e6;
- color: #7c2d12;
- border-color: #ffd0a8;
- border-bottom-color: #fdba74;
-}
-.child-bru thead th {
- background: #fffaf5;
-}
-
-/* GUIM (Violet) */
-.child-guim {
- border-color: #d3c6ff;
-}
-.child-guim caption {
- background: #f0eaff;
- color: #4c1d95;
- border-color: #d3c6ff;
- border-bottom-color: #c4b5fd;
-}
-.child-guim thead th {
- background: #fbf9ff;
-}
-
-/* --- 6. CONTENU DU TABLEAU --- */
-.cl-child-table thead th {
- padding: 8px;
- font-size: 0.75rem;
- color: var(--text-muted);
- font-weight: 700;
- text-transform: uppercase;
- border-bottom: 1px solid var(--border-light);
- border-right: 1px solid var(--border-light);
- white-space: normal;
- overflow: hidden;
- text-overflow: ellipsis;
-}
-.cl-child-table thead th:last-child {
- border-right: none;
-}
-
-.cl-th-inner {
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- gap: 2px;
-}
-.cl-summary-adult-total {
- font-size: 0.7rem;
- color: var(--primary);
- background: rgba(37, 99, 235, 0.1);
- padding: 1px 4px;
- border-radius: 4px;
-}
-
-.cl-child-table tbody td {
- padding: 8px;
- vertical-align: top;
- border-bottom: 1px solid #f1f5f9;
- border-right: 1px solid #f1f5f9;
+.pf-filter-select {
+ padding: 6px 12px;
+ border-radius: 20px; /* Forme de pillule */
+ border: 1px solid var(--border-light);
+ background: rgba(255, 255, 255, 0.95);
+ backdrop-filter: blur(8px);
font-size: 0.85rem;
-}
-.cl-child-table tbody td:last-child {
- border-right: none;
-}
-.cl-child-table tr:last-child td {
- border-bottom: none;
+ font-weight: 600;
+ color: var(--text-main);
+ outline: none;
+ font-family: inherit;
+ cursor: pointer;
+ box-shadow: var(--shadow-sm);
+ width: auto; /* Empêche de prendre toute la largeur */
+ appearance: none; /* Nettoie la flèche système... */
+ -webkit-appearance: none;
+ -moz-appearance: none;
+ /* ...pour mettre une flèche personnalisée plus discrète */
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
+ background-repeat: no-repeat;
+ background-position: right 10px center;
+ background-size: 12px;
+ padding-right: 28px; /* Place pour la flèche */
}
-.cl-empty {
- color: #e2e8f0;
- text-align: center;
- display: block;
- font-size: 1.2rem;
- line-height: 1;
+.pf-filter-select:focus {
+ border-color: var(--primary);
+ box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}
-/* --- 7. CADEAUX & INTERACTION (Overlay) --- */
-.cl-gift-item {
- display: flex;
- flex-direction: column;
- gap: 2px;
+/* === SECTIONS ENFANTS === */
+.pf-child-section {
+ margin-bottom: 30px;
+ background: white;
+ padding: 20px;
+ border-radius: 16px;
+ border: 1px solid var(--border-light);
+ box-shadow: var(--shadow-sm);
}
-
-.cl-gift-line {
+.pf-child-header {
display: flex;
justify-content: space-between;
- align-items: flex-start;
- gap: 4px;
- position: relative;
- min-height: 20px;
-}
-
-.cl-gift-desc,
-.cl-gift-link {
- font-weight: 500;
- color: #0f172a;
- line-height: 1.2;
- font-size: 0.85rem;
- word-wrap: break-word;
- word-break: break-word;
- hyphens: auto;
- flex: 1;
-}
-
-.cl-gift-link {
- color: var(--primary);
- text-decoration: none;
-}
-.cl-gift-link:hover {
- text-decoration: underline;
-}
-
-.cl-gift-right {
- display: flex;
align-items: center;
- justify-content: flex-end;
- width: 55px; /* Ajusté légèrement */
- flex-shrink: 0;
+ margin-bottom: 15px;
}
-
-/* Le Prix (Visible par défaut sur desktop) */
-.cl-gift-amount {
- font-size: 0.75rem;
- font-weight: 700;
- color: #059669;
- background: #ecfdf5;
- padding: 1px 4px;
- border-radius: 4px;
- white-space: nowrap;
- transition:
- opacity 0.2s,
- transform 0.2s;
- opacity: 1;
- transform: scale(1);
-}
-
-/* Les Actions (Masquées par défaut sur desktop) */
-.cl-gift-actions {
- display: flex;
- gap: 4px;
- position: absolute;
- right: 0;
- top: 0;
- opacity: 0;
- transform: scale(0.8);
- pointer-events: none;
- transition:
- opacity 0.2s,
- transform 0.2s;
-}
-
-/* === L'EFFET SWAP (Optimisé) === */
-.cl-gift-line:hover .cl-gift-amount {
- opacity: 0;
- transform: scale(0.8);
-}
-.cl-gift-line:hover .cl-gift-actions {
- opacity: 1;
- transform: scale(1);
- pointer-events: auto;
-}
-
-/* Boutons d'action */
-.cl-gift-action-btn {
- background: #f1f5f9;
- border: 1px solid #cbd5e1;
- width: 26px; /* Légèrement agrandi pour le tactile */
- height: 26px;
- border-radius: 6px;
- display: flex;
- align-items: center;
- justify-content: center;
- cursor: pointer;
- color: #475569;
- font-size: 14px;
- padding: 0;
- transition: all 0.2s;
-}
-.cl-gift-action-btn:hover {
- background: white;
- border-color: var(--text-main);
-}
-.cl-gift-delete:hover {
- color: #dc2626;
- border-color: #dc2626;
- background: #fef2f2;
-}
-
-/* --- 8. BUDGET & TRICOUNT --- */
-.pf-section--panel {
- margin-bottom: 32px;
-}
-.pf-section--panel h2 {
+.pf-child-header h3 {
+ margin: 0;
font-size: 1.3rem;
- margin-bottom: 16px;
- border-left: 5px solid var(--primary);
- padding-left: 12px;
color: var(--text-main);
- background: white;
- padding: 12px;
- border-radius: 0 8px 8px 0;
}
-.cl-budget-wrapper {
- background: white;
- border-radius: var(--radius-card);
- box-shadow: var(--shadow-card);
- border: 1px solid var(--border-light);
+/* === BARRE DES TOTAUX (PILLS) === */
+.pf-child-totals-bar {
+ display: flex;
+ gap: 8px;
overflow-x: auto;
- -webkit-overflow-scrolling: touch; /* Scroll fluide sur iOS */
+ padding-bottom: 12px;
+ margin-bottom: 15px;
+ border-bottom: 1px solid #f1f5f9;
+ scrollbar-width: none; /* Firefox */
}
-
-.pf-table {
- width: 100%;
- border-collapse: collapse;
+.pf-child-totals-bar::-webkit-scrollbar {
+ display: none; /* Chrome/Safari */
}
-
-.pf-table th,
-.pf-table td {
- padding: 10px 14px;
- border-bottom: 1px solid var(--border-light);
- font-size: 0.9rem;
-}
-.pf-table th {
+.pf-summary-pill {
+ white-space: nowrap;
background: #f8fafc;
- font-weight: 600;
- text-align: left;
- color: var(--text-muted);
-}
-.cl-debt-matrix td {
- text-align: right;
-}
-
-.cl-mtx-owe {
- color: #dc2626;
- background: #fef2f2;
+ padding: 4px 12px;
+ border-radius: 50px;
+ font-size: 0.8rem;
font-weight: 700;
+ color: #475569;
+ border: 1px solid #cbd5e1;
+ transition: opacity 0.2s;
}
-/* Matrice Tricount - Colonne Sticky */
+/* === FEED DES CARTES CADEAUX === */
+.pf-gift-feed {
+ display: grid;
+ gap: 12px;
+ grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
+}
+.pf-gift-card-compact {
+ background: white;
+ border-radius: 10px;
+ border: 1px solid #e2e8f0;
+ padding: 12px;
+ position: relative;
+ transition: 0.2s;
+ display: flex;
+ flex-direction: column;
+ min-height: 100px;
+}
+.pf-gift-card-compact:hover {
+ border-color: #cbd5e1;
+ box-shadow: var(--shadow-md);
+}
+.pf-gift-title {
+ font-weight: 600;
+ color: #1e293b;
+ font-size: 0.95rem;
+ margin: 0 0 10px 0;
+ line-height: 1.3;
+ word-break: break-word;
+}
+.pf-gift-link {
+ text-decoration: none;
+ margin-left: 4px;
+}
+.pf-gift-footer {
+ display: flex;
+ justify-content: space-between;
+ align-items: flex-end;
+ margin-top: auto;
+}
+.pf-gift-price {
+ font-weight: 800;
+ color: var(--success);
+ font-size: 1rem;
+}
+.pf-gift-badges-col {
+ display: flex;
+ flex-direction: column;
+ gap: 4px;
+ align-items: flex-start;
+}
+.pf-pill-adult {
+ font-size: 0.7rem;
+ font-weight: 700;
+ background: #e0f2fe;
+ color: #0369a1;
+ padding: 2px 6px;
+ border-radius: 4px;
+}
+.pf-pill-occ {
+ font-size: 0.65rem;
+ font-weight: 700;
+ background: #fef3c7;
+ color: #b45309;
+ padding: 2px 6px;
+ border-radius: 4px;
+}
+.pf-gift-payer {
+ font-size: 0.7rem;
+ color: #ef4444;
+ font-weight: 600;
+ font-style: italic;
+ margin-top: 5px;
+}
+.pf-gift-actions {
+ display: flex;
+ gap: 4px;
+}
+
+/* === TRICOUNT / LIQUIDATIONS === */
+.pf-tricount-list {
+ list-style: none;
+ padding: 0;
+ margin: 0;
+}
+.pf-tricount-item {
+ background: white;
+ padding: 12px 15px;
+ border: 1px solid var(--border-light);
+ border-radius: 8px;
+ margin-bottom: 8px;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ font-size: 0.95rem;
+}
.cl-debt-matrix th:first-child,
.cl-debt-matrix td:first-child {
position: sticky;
left: 0;
- background: #f8fafc;
+ background: var(--bg-page);
z-index: 2;
border-right: 2px solid var(--border-light);
}
-/* --- 9. MODALES --- */
-.cl-modal {
- display: none;
+/* Icônes des fêtes (Tió, Noël, etc.) plus petites et bien alignées */
+.cl-occasion-icon {
+ width: 20px; /* Réduit pour être discret */
+ height: 20px;
+ object-fit: contain;
+ vertical-align: middle;
}
-.cl-modal.cl-open {
+
+.cl-occasion-title {
display: flex;
align-items: center;
- justify-content: center;
- position: fixed;
- inset: 0;
- z-index: 9999;
-}
-.cl-modal-backdrop {
- position: absolute;
- inset: 0;
- background: rgba(15, 23, 42, 0.5);
- backdrop-filter: blur(2px);
-}
-.cl-modal-dialog {
- position: relative;
- background: white;
- width: min(450px, 90vw);
- border-radius: 12px;
- box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
- z-index: 10;
- padding: 0;
- animation: modalPop 0.2s ease-out;
-}
-@keyframes modalPop {
- from {
- transform: scale(0.95);
- opacity: 0;
- }
- to {
- transform: scale(1);
- opacity: 1;
- }
-}
-.cl-modal-form {
- padding: 24px;
- display: flex;
- flex-direction: column;
- gap: 12px;
-}
-.cl-modal-form h3 {
- margin: 0 0 12px;
- font-size: 1.2rem;
- color: var(--text-main);
-}
-.clm-label {
- display: flex;
- flex-direction: column;
- gap: 4px;
- font-weight: 600;
- font-size: 0.85rem;
- color: #475569;
-}
-.clm-label input,
-.clm-label select {
- padding: 8px;
- border: 1px solid #cbd5e1;
- border-radius: 6px;
- font-size: 0.95rem;
- background: #f8fafc;
-}
-.clm-label input:focus,
-.clm-label select:focus {
- background: white;
- border-color: var(--primary);
- outline: 2px solid rgba(37, 99, 235, 0.2);
-}
-.cl-modal-actions {
- display: flex;
- justify-content: flex-end;
- gap: 10px;
- margin-top: 10px;
-}
-.clm-cancel {
- background: white;
- border: 1px solid #cbd5e1;
- padding: 8px 16px;
- border-radius: 6px;
- cursor: pointer;
- color: var(--text-muted);
-}
-.clm-ok {
- background: var(--primary);
- color: white;
- border: none;
- padding: 8px 20px;
- border-radius: 6px;
- cursor: pointer;
- font-weight: 600;
+ gap: 8px; /* Espace réduit entre l'icône et le texte */
}
-/* --- 10. OPTIMISATIONS MOBILES ET TACTILES --- */
-
-@media (hover: none) {
- /* Sur écran tactile, on annule l'effet de swap */
- .cl-gift-line {
- flex-direction: column; /* On empile texte et prix/boutons */
- align-items: flex-start;
+@media (max-width: 768px) {
+ .pf-child-section {
+ padding: 15px;
}
-
- .cl-gift-amount {
- opacity: 1 !important;
- transform: none !important;
- margin-bottom: 6px;
+ .pf-filter-bar {
+ padding: 0 5px;
}
-
- .cl-gift-right {
- width: 100%;
- justify-content: space-between; /* Prix à gauche, boutons à droite */
- margin-top: 4px;
- border-top: 1px dashed var(--border-light);
- padding-top: 4px;
+ .pf-filter-label {
+ display: none;
}
-
- .cl-gift-actions {
- position: relative;
- opacity: 1 !important;
- transform: none !important;
- pointer-events: auto !important;
+ .pf-gift-feed {
+ grid-template-columns: 1fr 1fr;
+ }
+ .pf-gift-title {
+ font-size: 0.85rem;
+ }
+ .pf-gift-price {
+ font-size: 0.9rem;
}
}
-
-@media (max-width: 1000px) {
- .cl-view-nadal .cl-occasion-children-tables,
- .cl-view-anniversary .cl-occasion-children-tables {
+@media (max-width: 400px) {
+ .pf-gift-feed {
grid-template-columns: 1fr;
}
- .cl-view-anniversary .child-pol,
- .cl-view-anniversary .child-pep,
- .cl-view-anniversary .child-elna,
- .cl-view-anniversary .child-bru,
- .cl-view-anniversary .child-guim {
- grid-column: span 1;
- }
-
- /* Transformation des tableaux en mode "Carrousel" horizontal */
- .cl-child-table {
- display: block;
- overflow-x: auto;
- scroll-snap-type: x mandatory; /* Effet de magnétisme */
- -webkit-overflow-scrolling: touch;
- padding-bottom: 10px; /* Espace pour la barre de scroll */
- }
-
- .cl-child-table caption {
- /* Garde le nom de l'enfant visible même en scrollant à droite */
- position: sticky;
- left: 0;
- z-index: 5;
- }
-
- .cl-child-table th,
- .cl-child-table td {
- min-width: 180px; /* Plus large pour la lisibilité tactile */
- scroll-snap-align: start; /* S'arrête pile sur la colonne */
- }
}