
        /* ===== Polices auto-hébergées (Baloo 2 / Nunito) — jamais de CDN, règle du projet ===== */
        @font-face {
            font-family: 'Baloo 2';
            font-style: normal;
            font-weight: 500 800;
            font-display: swap;
            src: url("/static/vendor/fonts/baloo-2-latin.woff2?v=26fb4610d4bc") format('woff2');
            unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
        }
        @font-face {
            font-family: 'Baloo 2';
            font-style: normal;
            font-weight: 500 800;
            font-display: swap;
            src: url("/static/vendor/fonts/baloo-2-latin-ext.woff2?v=dfd52ee2e67f") format('woff2');
            unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
        }
        @font-face {
            font-family: 'Nunito';
            font-style: normal;
            font-weight: 400 800;
            font-display: swap;
            src: url("/static/vendor/fonts/nunito-latin.woff2?v=ba344451eab2") format('woff2');
            unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
        }
        @font-face {
            font-family: 'Nunito';
            font-style: normal;
            font-weight: 400 800;
            font-display: swap;
            src: url("/static/vendor/fonts/nunito-latin-ext.woff2?v=2c8d79286981") format('woff2');
            unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
        }

        :root {
            /* Palette "choupi" (refonte 2026-08-30) */
            --cream: #FFF6EC;
            --coral: #FF6B4A;
            --coral2: #FF9166;
            --coral-dark: #E06B4B;
            --pink: #FF6FA5;
            --pink2: #FFA0C4;
            --plum: #2E2140;
            --plum2: #453360;
            --sun: #FFC93C;
            --mint: #2EC4A6;
            --mint-soft: #D6F5EC;
            --text-dark: #2E2140;
            --text-soft: #8A7F98;

            --radius-card: 20px;
            --radius-btn: 16px;
            --radius-pill: 20px;

            /* Accent */
            --bs-primary: var(--coral);
            --bs-primary-rgb: 255, 107, 74;
            --bs-primary-text-emphasis: #C4431F;
            --bs-primary-bg-subtle: #FFE8E0;
            --bs-primary-border-subtle: #FFC7B3;
            --bs-link-color: var(--coral);
            --bs-link-color-rgb: 255, 107, 74;
            --bs-link-hover-color: var(--coral-dark);
            --bs-link-hover-color-rgb: 224, 107, 75;

            /* Sémantique */
            --bs-success: var(--mint); --bs-success-rgb: 46, 196, 166;
            --bs-success-text-emphasis: #0E7A63; --bs-success-bg-subtle: var(--mint-soft); --bs-success-border-subtle: #A8E4D6;
            --bs-danger: #dc2626; --bs-danger-rgb: 220, 38, 38;
            --bs-danger-text-emphasis: #991b1b; --bs-danger-bg-subtle: #fef2f2; --bs-danger-border-subtle: #fecaca;
            --bs-warning: var(--sun); --bs-warning-rgb: 255, 201, 60;
            --bs-warning-text-emphasis: #8A6300; --bs-warning-bg-subtle: #FFF0CC; --bs-warning-border-subtle: #FFE199;
            --bs-info: #2563eb; --bs-info-rgb: 37, 99, 235;
            --bs-info-text-emphasis: #1e40af; --bs-info-bg-subtle: #eff6ff; --bs-info-border-subtle: #bfdbfe;

            /* Neutres */
            --bs-body-bg: var(--cream);
            --bs-body-color: var(--text-dark);
            --bs-secondary-color: var(--text-soft);
            --bs-border-color: #F0DFF0;

            /* Formes */
            --bs-border-radius: var(--radius-btn);
            --bs-border-radius-lg: var(--radius-card);
            --bs-border-radius-sm: 0.7rem;

            --nounou-sidebar-bg: linear-gradient(180deg, var(--plum), #241A33);
            --nounou-shadow-sm: 0 1px 2px rgba(46, 33, 64, .06), 0 1px 3px rgba(46, 33, 64, .08);
        }

        body {
            font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            line-height: 1.55;
        }

        h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6, .font-titre {
            font-family: 'Baloo 2', cursive;
        }
        h1, .h1 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.01em; }
        h2, .h2 { font-size: 1.3rem; font-weight: 600; }
        h5, .h5 { font-size: 1.05rem; font-weight: 600; }

        .text-body-secondary { color: var(--bs-secondary-color) !important; }

        a { text-decoration: none; }

        /* Boutons avec relief façon "bouton physique" — voir aussi le ripple JS en bas de page */
        .btn {
            --bs-btn-padding-y: 0.6rem;
            --bs-btn-padding-x: 1.25rem;
            --bs-btn-border-radius: var(--radius-btn);
            position: relative;
            overflow: hidden;
            font-weight: 800;
            transition: transform .12s, box-shadow .15s;
        }
        .btn:hover { transform: translateY(-2px); }
        .btn:active { transform: translateY(3px); }

        .btn-primary {
            --bs-btn-bg: var(--coral);
            --bs-btn-border-color: var(--coral);
            --bs-btn-hover-bg: var(--coral-dark);
            --bs-btn-hover-border-color: var(--coral-dark);
            --bs-btn-active-bg: var(--coral-dark);
            --bs-btn-active-border-color: var(--coral-dark);
            --bs-btn-disabled-bg: var(--coral);
            --bs-btn-disabled-border-color: var(--coral);
            background: linear-gradient(160deg, var(--coral2), var(--coral) 55%, var(--pink));
            box-shadow: 0 5px 0 #C8451F, 0 10px 18px rgba(255, 107, 74, .4), inset 0 1px 0 rgba(255, 255, 255, .5);
        }
        .btn-primary:hover { box-shadow: 0 7px 0 #C8451F, 0 14px 20px rgba(255, 107, 74, .45), inset 0 1px 0 rgba(255, 255, 255, .5); }
        .btn-primary:active { box-shadow: 0 2px 0 #C8451F, 0 4px 8px rgba(255, 107, 74, .3), inset 0 1px 0 rgba(255, 255, 255, .4); }

        .btn-outline-secondary {
            --bs-btn-color: var(--plum);
            --bs-btn-border-color: #F0DFF0;
            --bs-btn-hover-bg: var(--plum2);
            --bs-btn-hover-border-color: var(--plum2);
            background: linear-gradient(160deg, #ffffff, #FBF3F8);
            box-shadow: 0 5px 0 #E4D2E8, 0 8px 14px rgba(46, 33, 64, .08), inset 0 1px 0 rgba(255, 255, 255, .9);
        }
        .btn-outline-secondary:hover { box-shadow: 0 7px 0 #E4D2E8, 0 10px 16px rgba(46, 33, 64, .1), inset 0 1px 0 rgba(255, 255, 255, .9); }
        .btn-outline-secondary:active { box-shadow: 0 2px 0 #E4D2E8, 0 4px 6px rgba(46, 33, 64, .08), inset 0 1px 0 rgba(255, 255, 255, .8); }
        /* `background` (raccourci) pose une image de dégradé qui persiste au survol/clic — les
           règles :hover/:active de Bootstrap ne basculent que background-color, jamais
           l'image, donc le texte passait blanc (--bs-btn-hover-color/--bs-btn-active-color)
           sur un fond resté quasi blanc : illisible. Écrase explicitement l'image ici. Même
           piège pour un bouton radio coché (.btn-check:checked +) : « Congé payé » invisible
           sur la page des congés prévus (capture de l'éditeur, 2026-11-14). */
        .btn-outline-secondary:hover,
        .btn-outline-secondary:active,
        .btn-outline-secondary.active,
        .btn-check:checked + .btn-outline-secondary {
            background: var(--plum2);
            color: #fff;
        }

        .btn-outline-primary, .btn-outline-danger, .btn-outline-warning, .btn-outline-success, .btn-light, .btn-danger {
            box-shadow: 0 4px 0 var(--bs-border-color), 0 7px 12px rgba(46, 33, 64, .08);
        }
        .btn-outline-primary:hover, .btn-outline-danger:hover, .btn-outline-warning:hover, .btn-outline-success:hover, .btn-light:hover, .btn-danger:hover {
            box-shadow: 0 6px 0 var(--bs-border-color), 0 10px 14px rgba(46, 33, 64, .1);
        }
        .btn-outline-primary:active, .btn-outline-danger:active, .btn-outline-warning:active, .btn-outline-success:active, .btn-light:active, .btn-danger:active {
            box-shadow: 0 1px 0 var(--bs-border-color), 0 3px 6px rgba(46, 33, 64, .08);
        }

        /* Actions d'une fiche (contrat, enfant, famille — demande de l'éditeur et de Priscilla du 2026-11-28 : « ça
           commence à faire beaucoup ») : boutons de même taille sur une grille, regroupés sous un petit intitulé ; une
           action déconseillée n'est qu'un lien discret. Grille CSS (gap de grille compris par Chrome 69). */
        .nounou-actions { margin-bottom: 1.5rem; }
        .nounou-actions-titre {
            font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
            color: var(--bs-secondary-color); margin: .9rem 0 .45rem;
        }
        .nounou-actions-titre:first-child { margin-top: 0; }
        .nounou-actions-grille { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
        @media (min-width: 768px) {
            .nounou-actions-grille { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
        }
        .nounou-actions-grille > .btn, .nounou-actions-grille > form > .btn {
            --bs-btn-padding-y: .5rem;
            --bs-btn-padding-x: .75rem;
            display: flex; align-items: center; width: 100%; min-height: 2.9rem; height: 100%;
            font-size: .9rem; line-height: 1.2; text-align: left; white-space: normal;
        }
        .nounou-actions-grille .btn > .bi { flex: 0 0 1.3em; margin-right: .45rem !important; }
        .nounou-actions-lien {
            display: inline-block; margin-top: .7rem; font-size: .85rem;
            color: var(--bs-secondary-color); text-decoration: underline;
        }

        .btn-icon {
            width: 2.6rem;
            height: 2.6rem;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            font-size: 1.1rem;
        }

        /* Effet ripple au clic (JS en bas de page) */
        .nounou-ripple {
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, .55);
            transform: scale(0);
            animation: nounouRip .55s ease-out;
            pointer-events: none;
        }
        @keyframes nounouRip { to { transform: scale(2.6); opacity: 0; } }

        .form-control, .form-select {
            padding: 0.6rem 0.9rem;
            border-color: #F0DFF0;
        }
        .form-select { padding-right: 2.4rem; }   /* place de la flèche : sinon elle mord sur « 1 famille » */

        .form-control:focus, .form-select:focus {
            border-color: var(--coral);
            box-shadow: 0 0 0 0.25rem rgba(255, 107, 74, 0.15);
        }

        .form-label {
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 0.4rem;
        }

        .card {
            border: 1px solid var(--bs-border-color);
            border-radius: var(--radius-card);
            box-shadow: var(--nounou-shadow-sm);
        }

        /* ===== Barre de navigation horizontale (remplace l'ancienne sidebar verticale,
           2026-08-30, retour direct de l'utilisatrice réelle) — sticky, prend le flux normal
           de la page, plus besoin des contournements position:fixed/offcanvas qu'exigeait la
           sidebar fixe. Seule la zone de navigation défile horizontalement en cas de
           débordement (petit écran) ; le logo et les icônes utilitaires à droite restent
           toujours visibles, jamais poussés hors champ par le défilement. */
        .nounou-topbar {
            position: sticky;
            top: 0;
            z-index: 30;
            background: var(--nounou-sidebar-bg);
            display: flex;
            align-items: center;
            gap: 1.25rem;
            padding: 0.75rem 1.5rem;
            box-shadow: 0 4px 14px rgba(46, 33, 64, .12);
        }

        .nounou-marque {
            display: flex;
            align-items: center;
            gap: 0.65rem;
            flex-shrink: 0;
            background: transparent;
            border: none;
            padding: 0;
            text-align: left;
            cursor: pointer;
        }

        .nounou-marque-pastille {
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 0.8rem;
            background: rgba(255, 107, 74, 0.18);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            flex-shrink: 0;
            overflow: hidden;
        }

        .nounou-marque-halo .nounou-marque-pastille {
            overflow: visible;
            animation: nounou-halo 1.8s ease-out infinite;
        }
        @keyframes nounou-halo {
            0% { box-shadow: 0 0 0 0 rgba(255, 107, 74, 0.65); }
            70% { box-shadow: 0 0 0 0.7rem rgba(255, 107, 74, 0); }
            100% { box-shadow: 0 0 0 0 rgba(255, 107, 74, 0); }
        }
        @media (prefers-reduced-motion: reduce) {
            .nounou-marque-halo .nounou-marque-pastille {
                animation: none;
                box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.7);
            }
        }

        .nounou-marque-pastille img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Variante plus grande pour les écrans de connexion (page d'accueil du logo,
           pas juste un repère dans la barre) — même image, même proportions. */
        .nounou-marque-pastille-grande {
            width: 4.5rem;
            height: 4.5rem;
            border-radius: 1.2rem;
            font-size: 2.2rem;
        }

        .nounou-marque .nounou-marque-nom {
            color: #fff;
            font-family: 'Baloo 2', cursive;
            font-weight: 600;
            font-size: 1.05rem;
            line-height: 1.2;
        }

        .nounou-marque .nounou-marque-soustitre {
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.75rem;
        }

        /* `overflow-x: auto` force aussi `overflow-y` à `auto` (donc à rogner verticalement,
           spec CSS) sur le même élément — appliqué en permanence, ça coupait le menu déroulant
           "Administratif" qui s'ouvre juste en dessous. Réservé à l'écran étroit ci-dessous, où
           le compromis (scroll horizontal) est accepté ; sur desktop, ça passe à la ligne au
           lieu de rogner, donc aucun `overflow` n'est nécessaire et le menu s'ouvre normalement. */
        .nounou-topbar-nav-conteneur {
            position: relative;
            flex: 1 1 auto;
            min-width: 0;
            display: flex;
        }

        .nounou-topbar-nav {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            flex: 1 1 auto;
            min-width: 0;
            flex-wrap: wrap;
        }
        @media (max-width: 900px) {
            .nounou-topbar-nav {
                flex-wrap: nowrap;
                overflow-x: auto;
                scrollbar-width: none;
            }
            .nounou-topbar-nav::-webkit-scrollbar { display: none; }
        }

        /* Petites flèches indiquant qu'il reste des onglets hors champ (uniquement visibles
           quand la navigation défile réellement, voir le JS en bas de page) — n'apparaissent
           jamais sur desktop, où .nounou-topbar-nav passe à la ligne au lieu de déborder. */
        .nounou-topbar-nav-fleche {
            display: none;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 5;
            width: 1.7rem;
            height: 1.7rem;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
            border: none;
            align-items: center;
            justify-content: center;
            font-size: .75rem;
        }
        .nounou-topbar-nav-fleche.nounou-visible {
            display: flex;
        }
        .nounou-topbar-nav-fleche-gauche { left: -0.1rem; }
        .nounou-topbar-nav-fleche-droite { right: -0.1rem; }

        .nounou-topbar-nav .nav-link {
            white-space: nowrap;
            color: rgba(255, 255, 255, 0.7);
            border-radius: 14px;
            padding: 0.55rem 0.9rem;
            font-size: 0.94rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 0.55rem;
            transition: background .25s, color .2s, transform .15s;
        }

        .nounou-topbar-nav .nav-link i {
            font-size: 1.15rem;
        }

        .nounou-topbar-nav .nav-link:not(.active):hover {
            background: var(--plum2);
            color: #fff;
            transform: translateY(-1px);
        }

        .nounou-topbar-nav .nav-link.active {
            background: linear-gradient(135deg, var(--coral), var(--pink));
            color: #fff;
            box-shadow: 0 4px 14px rgba(255, 107, 74, .35);
        }

        /* Zone utilitaire (notifications, profil ; barre de recherche retirée le 2026-10-05 : sur
           tablette, elle faisait passer les onglets sur deux lignes) — ne défile jamais, toujours
           accessible même quand la navigation déborde sur petit écran. */
        .nounou-topbar-utils {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            flex-shrink: 0;
            margin-left: auto;
        }

        .nounou-notif-dot {
            position: absolute;
            top: -0.15rem;
            right: -0.15rem;
            font-size: 0.65rem;
            line-height: 1;
            min-width: 1.2rem;
            height: 1.2rem;
            padding: 0 0.4em;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            white-space: nowrap;
        }

        .nounou-notif-menu, .dropdown-menu {
            border: 1px solid var(--bs-border-color);
            box-shadow: 0 8px 24px rgba(17, 24, 39, 0.1);
            border-radius: var(--bs-border-radius);
        }

        .nounou-notif-menu {
            width: 320px;
            /* Défile s'il y a beaucoup de notifications au lieu de sortir de l'écran par le bas (2026-10-09). */
            max-height: 70vh;
            overflow-y: auto;
        }
        /* Les éléments de menu Bootstrap ne passent jamais à la ligne (`white-space: nowrap`) : un titre de
           notification long sortait de la bulle (retour du user, 2026-10-09). */
        .nounou-notif-menu .dropdown-item {
            white-space: normal;
            word-wrap: break-word;
            word-break: break-word;
        }

        /* ===== Tiroir de navigation fixe en bas, smartphone uniquement (2026-08-31) =====
           Retour direct de l'utilisateur, comparaison avec Le Bon Coin/Amazon : sur mobile, le
           défilement horizontal de la barre du haut oblige à "swiper pour trouver" — l'inverse
           d'une barre de navigation mobile bien conçue (tout visible d'un coup, zone atteignable
           au pouce). PC et tablette gardent la barre du haut inchangée (aucune plainte dessus,
           seuil volontairement plus étroit que celui du mode défilement 600-900px ci-dessus,
           pour ne pas faire basculer une tablette en portrait dans ce mode pensé pour un vrai
           téléphone). */
        /* ===== Pastille de statut du jour, smartphone uniquement (2026-08-31) =====
           Résumé visuel rapide de la barre du haut, en plus (pas à la place) de la cloche —
           demande directe de l'utilisateur : "en un coup d'œil, savoir si mes notifications
           peuvent attendre". Masquée par défaut, réaffichée dans le mode tiroir-bas ci-dessous
           uniquement (PC/tablette inchangés). */
        /* Rond de couleur de la pastille, dessiné en CSS (2026-09-30) : les emojis 🟠/🟢 sont de
           l'Unicode 12 (Android 10+) et s'affichaient en case vide sur Android 9, version minimale
           de l'appli — constaté sur l'émulateur Android 9. */
        .nounou-point {
            display: inline-block;
            width: 0.7em;
            height: 0.7em;
            border-radius: 50%;
            margin-right: 0.4em;
            vertical-align: baseline;
            flex: none;
        }
        .nounou-point-vert { background: #2ec4a6; }
        .nounou-point-orange { background: #ff9a3d; }
        .nounou-point-rouge { background: #ef4444; }
        .nounou-point-bleu { background: #6aa9e9; }
        .nounou-point-blanc { background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
        .nounou-pastille-statut {
            display: none;
            font-size: 0.72rem;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.85);
            white-space: nowrap;
            /* Débordement visuel corrigé (2026-09-23, retour terrain) : les deux états statiques
               ("tous arrivés"/"tous partis") étaient supposés toujours tenir sur la largeur
               disponible — faux en pratique sur un petit écran, où le logo + la cloche laissent
               parfois moins de place que prévu. `min-width: 0` est nécessaire pour qu'un enfant
               flex accepte de rétrécir sous sa largeur de contenu naturelle (sinon `overflow`
               n'a jamais l'occasion de s'appliquer) ; tronqué proprement avec "…" plutôt que de
               déborder visuellement de la barre. */
            overflow: hidden;
            text-overflow: ellipsis;
            min-width: 0;
            flex: 0 1 auto;
        }

        /* Bannière défilante (heures d'arrivée/départ prévues) — seuls les deux états
           statiques ("tous arrivés"/"tous partis") n'en ont pas besoin, le texte y tient déjà
           en entier. */
        .nounou-pastille-statut.nounou-pastille-parent { display: inline-flex; }   /* parent : visible à toutes les largeurs */
        .nounou-pastille-defilante {
            overflow: hidden;
            max-width: 150px;
        }
        /* Copie du téléphone du parent (2026-11-15) : la date de la dernière mise à jour prend toute la place libre
           entre le nounours et la cloche. */
        #replique-a-jour.nounou-pastille-defilante { flex: 1 1 auto; max-width: none; justify-content: flex-start; }
        .nounou-pastille-defilante span {
            display: inline-block;
            padding-left: 100%;
            animation: nounouDefilement 14s linear infinite;
        }
        @keyframes nounouDefilement {
            from { transform: translateX(0); }
            to { transform: translateX(-100%); }
        }
        @media (prefers-reduced-motion: reduce) {
            .nounou-pastille-defilante span {
                animation: none;
                padding-left: 0;
            }
            .nounou-pastille-defilante {
                overflow-x: auto;
            }
        }

        /* Tablette en largeur moyenne (iPad 13 pouces debout, 1032 points) : tous les onglets sur une seule ligne,
           sans le sous-titre de la marque (retour de l'éditeur, 2026-11-01). */
        @media (min-width: 960px) and (max-width: 1279px) {
            .nounou-marque .nounou-marque-soustitre { display: none; }
            .nounou-topbar-nav { flex-wrap: nowrap; justify-content: center; }
            .nounou-topbar-nav .nav-link { padding-left: 0.5rem; padding-right: 0.5rem; }
        }

        @media (max-width: 959px) {
            .nounou-pastille-statut {
                display: inline-flex;
                align-items: center;
                margin-left: auto;
            }
            .nounou-topbar-nav-conteneur {
                position: fixed;
                left: 0;
                right: 0;
                bottom: 0;
                z-index: 35;
                background: var(--nounou-sidebar-bg);
                box-shadow: 0 -4px 14px rgba(46, 33, 64, .18);
                padding: 0.3rem 0.2rem calc(0.3rem + env(safe-area-inset-bottom, 0px));
            }
            /* Applis iPhone et Android, clavier ouvert (ControleurWeb.swift, BordsSysteme.java) : la barre laisse la place à la saisie. */
            .lpc-clavier .nounou-topbar-nav-conteneur { display: none; }
            .nounou-topbar-nav {
                flex-wrap: nowrap;
                overflow-x: visible;
                justify-content: space-around;
                gap: 0.1rem;
            }
            /* Chaque entrée prend la même part de largeur et peut couper un mot long en fin de
               ligne (« Alimen-tation ») : avec une grande police dans le téléphone, l'appli suit ce
               réglage et les libellés ne tenaient plus sur la barre (2026-10-07). */
            .nounou-topbar-nav > .nav-link,
            .nounou-topbar-nav > .dropdown {
                flex: 1 1 0;
                min-width: 0;
            }
            .nounou-topbar-nav > .dropdown > .nav-link {
                width: 100%;
            }
            .nounou-topbar-nav .nav-link {
                flex-direction: column;
                gap: 0.2rem;
                /* Libellé et marges resserrés le 2026-10-09 : « Alimentation » (68 px à 0,7rem) passait sur deux
                   lignes, chaque case n'offrant que 59 à 62 px sur un téléphone. */
                padding: 0.45rem 0;
                font-size: 0.66rem;
                letter-spacing: -0.02em;
                text-align: center;
                white-space: normal;
                line-height: 1.1;
                hyphens: auto;
                -webkit-hyphens: auto;
                overflow-wrap: break-word;
            }
            .nounou-topbar-nav .nav-link i {
                font-size: 1.35rem;
            }
            .nounou-topbar-nav .nav-link:not(.active):hover {
                transform: none;
            }
            /* Les flèches de défilement n'ont plus lieu d'être : plus aucun débordement à
               signaler dans ce mode, l'ensemble tient toujours entièrement à l'écran. */
            .nounou-topbar-nav-fleche {
                display: none !important;
            }
            /* Réserve la place du tiroir fixe pour que le bas d'une page ne soit jamais
               recouvert par la barre de navigation. */
            /* Sélecteur plus spécifique (body …) : la règle générale `.nounou-page { padding }`
               déclarée plus bas écrasait sinon cette réserve, et la barre recouvrait le bas des
               pages (bouton de la page d'invitation masqué, retour terrain 2026-09-24). */
            body .nounou-page {
                padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
            }
        }

        /* ===== Contenu ===== */
        .nounou-page {
            padding: 1.75rem;
        }

        /* ===== Cartes de stats — bordure en pointillés façon "carnet" ===== */
        .nounou-stat-carte {
            border: 2px dashed #FFD6C2;
            border-radius: var(--bs-border-radius-lg);
            background: #fff;
            padding: 1.25rem 1.4rem;
            height: 100%;
            transition: transform .2s;
        }

        .nounou-stat-carte:hover {
            transform: translateY(-3px);
        }

        .nounou-stat-carte .nounou-stat-valeur {
            font-size: 2rem;
            font-weight: 700;
            color: var(--bs-primary);
            line-height: 1.2;
        }

        /* ===== Liste moderne (remplace les tableaux) ===== */
        .nounou-list {
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
        }

        .nounou-list-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 1.25rem;
            border-radius: var(--bs-border-radius);
            background: #fff;
            border: 2px solid transparent;
            box-shadow: var(--nounou-shadow-sm);
            color: inherit;
            transition: border-color .2s ease, transform .2s ease;
        }

        a.nounou-list-item:hover {
            border-color: var(--pink2);
            transform: translateX(3px);
        }

        .nounou-list-avatar {
            width: 2.6rem;
            height: 2.6rem;
            border-radius: 50%;
            background: var(--bs-primary-bg-subtle);
            color: var(--bs-primary-text-emphasis);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.85rem;
            flex-shrink: 0;
        }

        .nounou-list-main {
            flex: 1 1 auto;
            min-width: 0;
        }

        /* Ligne de liste avec boutons (personnes autorisées) sur téléphone : l'icône, les espacements et les boutons ne
           laissaient qu'une trentaine de pixels au nom en grande police (photo de l'éditeur du 2026-11-24, « Madre cool
           Raoul » coupé syllabe par syllabe). Sous 576 px : icône cachée, la ligne passe à la ligne (texte sur toute la
           largeur s'il est long), boutons en ligne, alignés à droite. */
        @media (max-width: 575.98px) {
            .nounou-list-item-etroit { flex-wrap: wrap; padding: 0.85rem 1rem; }
            .nounou-list-item-etroit > .nounou-list-avatar { display: none; }
            .nounou-list-item-etroit > .nounou-list-actions { flex-direction: row !important; margin-left: auto; }
        }

        /* Textes d'aide repliables (<details>) : la première phrase reste visible, le reste derrière « En savoir plus ». */
        .nounou-aide-repliable > summary { cursor: pointer; list-style: none; }
        .nounou-aide-repliable > summary::-webkit-details-marker { display: none; }
        .nounou-aide-repliable .nounou-en-savoir-plus { text-decoration: underline; white-space: nowrap; margin-left: 0.25rem; }
        .nounou-aide-repliable[open] .nounou-en-savoir-plus { display: none; }
        .nounou-aide-repliable[open] > summary { margin-bottom: 0.5rem; }

        /* Cases de la page Aujourd'hui : une couleur par catégorie, reconnue d'un coup d'œil (2026-10-22, « la page est
           fade »). Fond pastel de l'en-tête, pastille ronde de la couleur vive, liseré à gauche. */
        .nounou-case { overflow: hidden; border-left: 5px solid var(--case-vif, var(--coral)); }
        .nounou-case-entete { background: var(--case-fond, var(--bs-primary-bg-subtle)); }
        .nounou-case-pastille { display: inline-flex; align-items: center; justify-content: center; flex: none;
            width: 34px; height: 34px; border-radius: 50%; background: var(--case-vif, var(--coral));
            color: var(--case-icone, #fff); font-size: 1.05rem; }
        .nounou-case-compte { background: var(--case-vif, var(--coral)); color: var(--case-icone, #fff); }
        .nounou-case-activite { --case-fond: #FFF3D1; --case-vif: var(--sun); --case-icone: var(--plum); }
        .nounou-case-repas { --case-fond: #FFE8E0; --case-vif: var(--coral); }
        .nounou-case-sieste { --case-fond: #ECE6F7; --case-vif: #8B76C9; }
        .nounou-case-hygiene { --case-fond: var(--mint-soft); --case-vif: var(--mint); }
        .nounou-case-humeur { --case-fond: #FFE3EE; --case-vif: var(--pink); }
        .nounou-case-fournitures { --case-fond: #E3EEF9; --case-vif: #5B8DD6; }
        .nounou-case-photos { --case-fond: #EFE8F3; --case-vif: var(--plum2); }
        /* Le libellé de la zone de texte répète le titre coloré : gardé pour les lecteurs d'écran seulement. */
        .nounou-case label[for^="texte_"] { position: absolute; width: 1px; height: 1px; overflow: hidden;
            clip: rect(0 0 0 0); white-space: nowrap; }

        /* Cases repliables de la page Aujourd'hui (essai du 2026-10-22). */
        .nounou-barre-valider { position: sticky; bottom: 0.75rem; z-index: 20; }
        .nounou-barre-valider .btn { box-shadow: 0 4px 14px rgba(46, 33, 64, .28); min-height: 48px; }
        /* Inactif : opaque, sinon son texte se mêle à la case qui passe dessous. */
        .nounou-barre-valider .btn:disabled { opacity: 1; background: #E5DEEC; border-color: #E5DEEC; color: var(--plum); }
        .nounou-pour-enfant { display: inline-block; cursor: pointer; padding: 0.3rem 0.7rem; margin: 0 0.25rem 0.25rem 0;
                              border: 1px solid var(--case-vif, var(--coral)); border-radius: 999px; font-size: 0.85rem; }
        .btn-check:checked + .nounou-pour-enfant { opacity: .55; text-decoration: line-through; border-style: dashed; }
        .btn-check:focus-visible + .nounou-pour-enfant { outline: 2px solid var(--plum); outline-offset: 1px; }
        .nounou-case-repliable > summary { cursor: pointer; list-style: none; min-height: 52px; }
        .nounou-case-repliable > summary::-webkit-details-marker { display: none; }
        .nounou-case-repliable .nounou-case-chevron { transition: transform .15s; }
        .nounou-case-repliable[open] .nounou-case-chevron { transform: rotate(180deg); }

        /* Interrupteur « Pointage auto » sous la tuile d'un enfant : un peu plus grand et une zone tactile plus haute
           (audit d'ergonomie du 2026-10-21 : 28 × 14 px, activé par erreur). */
        .nounou-interrupteur-auto { min-height: 32px; display: flex; align-items: center; }
        .nounou-interrupteur-auto .form-check-input { width: 2.3em; height: 1.25em; margin-top: 0; }
        .nounou-interrupteur-auto .form-check-label { padding: 6px 0 6px 0.4rem; }

        .nounou-list-title {
            font-weight: 600;
            color: var(--bs-body-color);
        }

        .nounou-list-sub {
            font-size: 0.85rem;
            color: var(--bs-secondary-color);
        }

        .nounou-list-chevron {
            color: var(--bs-secondary-color);
            flex-shrink: 0;
        }

        .nounou-list-vide {
            text-align: center;
            color: var(--bs-secondary-color);
            padding: 2.5rem 1rem;
            border: 1px dashed var(--bs-border-color);
            border-radius: var(--bs-border-radius);
        }

        /* ===== Carnet de liaison (dashboard parent) — habillage "carnet papier" =====
           Remplace le rendu en .nounou-list (lignes en carte + icône ronde façon "pastille")
           pour ce contenu précis : un carnet de liaison se lit en continu comme une page de
           journal, pas comme une liste administrative à scanner. Habillage volontairement
           discret (fond crème + lignes ni trop marquées ni décoratives, filet de marge rouge
           façon cahier d'écolier) pour rester lisible rapidement sur mobile, sans pousser le
           skeuomorphisme (pas de reliure/coin corné). */
        .nounou-carnet {
            background-color: #fdfaf1;
            background-image: repeating-linear-gradient(
                to bottom,
                transparent 0,
                transparent 1.7rem,
                rgba(17, 24, 39, .08) 1.7rem,
                rgba(17, 24, 39, .08) calc(1.7rem + 1px)
            );
            border: 1px solid var(--bs-border-color);
            border-left: 3px solid rgba(220, 38, 38, .35);
            border-radius: var(--bs-border-radius-lg);
            box-shadow: var(--nounou-shadow-sm);
            padding: 1.6rem 1.5rem 1.8rem 1.75rem;
        }

        .nounou-carnet-rubrique {
            margin-bottom: 1.4rem;
        }
        .nounou-carnet-rubrique:last-child {
            margin-bottom: 0;
        }

        .nounou-carnet-rubrique-titre {
            display: flex;
            align-items: center;
            gap: .4rem;
            font-size: .78rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .07em;
            color: var(--bs-primary-text-emphasis);
            margin-bottom: .5rem;
        }

        .nounou-carnet-ligne {
            display: flex;
            align-items: baseline;
            gap: .6rem;
            line-height: 1.7rem;
            color: var(--bs-body-color);
        }

        .nounou-carnet-heure, .nounou-carnet-puce {
            flex-shrink: 0;
            min-width: 3.1rem;
        }
        .nounou-carnet-heure {
            font-weight: 700;
        }
        .nounou-carnet-puce {
            text-align: center;
            color: var(--bs-secondary-color);
        }

        .nounou-carnet-sub {
            color: var(--bs-secondary-color);
            font-size: .85rem;
        }

        .nounou-carnet-vide {
            text-align: center;
            font-style: italic;
            color: var(--bs-secondary-color);
            padding: 1.5rem 1rem;
        }

        /* Barre d'onglets (ex. fiche enfant) : défile horizontalement plutôt que de passer
           à la ligne quand il y a trop d'onglets pour la largeur disponible. */
        .nounou-nav-tabs-scroll {
            overflow-x: auto;
            /* Jamais de défilement vertical (capture de l'éditeur, 2026-11-14 : la zone faisait 1 px de moins que les
               pastilles, Android affichait ses barres de défilement — un trait gris sous l'onglet actif, une barre à
               droite — et rognait les bords). Marge intérieure pour les bords des pastilles, barre cachée : on fait
               glisser du doigt, le fondu à droite montre qu'il y a d'autres onglets. */
            overflow-y: hidden;
            padding: 3px 2px 5px;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
            mask-image: linear-gradient(to right, #000 85%, transparent);
        }
        .nounou-nav-tabs-scroll.nounou-tabs-fin {
            -webkit-mask-image: none;
            mask-image: none;
        }
        .nounou-nav-tabs-scroll::-webkit-scrollbar { display: none; }
        .nounou-nav-tabs-scroll .nav-tabs {
            flex-wrap: nowrap;
        }
        .nounou-nav-tabs-scroll .nav-link {
            white-space: nowrap;
        }
        @media (max-width: 575.98px) {
            .nounou-nav-tabs-scroll .nav-link { padding: 0.4rem 0.8rem; }
        }

        /* ===== Onglets en pilules (remplace le soulignement Bootstrap par défaut) ===== */
        .nav-tabs {
            border-bottom: none;
            gap: 0.5rem;
        }
        .nav-tabs .nav-link {
            border: 2px solid var(--bs-border-color);
            border-radius: var(--radius-pill);
            background: #fff;
            color: var(--text-soft);
            font-weight: 800;
            font-size: 0.85rem;
            padding: 0.5rem 1rem;
            transition: background .2s, color .2s, border-color .2s;
        }
        .nav-tabs .nav-link:hover {
            border-color: var(--pink2);
            isolation: isolate;
        }
        .nav-tabs .nav-link.active {
            background: var(--plum);
            border-color: var(--plum);
            color: #fff;
        }

        /* ===== Présence du jour (dashboard) ===== */
        .nounou-presence-tuile {
            width: 100%;
            border: 1px solid var(--bs-border-color);
            border-radius: var(--bs-border-radius);
            background: #fff;
            padding: 1rem 0.75rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.4rem;
            transition: box-shadow .15s ease, transform .15s ease;
        }

        .nounou-presence-tuile:hover {
            box-shadow: var(--nounou-shadow-sm);
            transform: translateY(-1px);
        }

        .nounou-presence-tuile.nounou-presence-present {
            border-color: var(--bs-success-border-subtle);
            background: var(--bs-success-bg-subtle);
        }

        .nounou-presence-nom {
            font-weight: 600;
            font-size: 0.9rem;
        }

        .nounou-presence-heure {
            font-size: 0.75rem;
            color: var(--bs-secondary-color);
        }

        /* ===== Calendrier hebdomadaire de présence ===== */
        .nounou-jour-calendrier {
            border: 1px solid var(--bs-border-color);
            border-radius: var(--bs-border-radius);
            background: #fff;
            padding: 0.9rem 0.6rem;
            text-align: center;
            height: 100%;
        }

        .nounou-jour-calendrier.nounou-jour-present {
            background: var(--bs-success-bg-subtle);
            border-color: var(--bs-success-border-subtle);
        }

        .nounou-jour-calendrier.nounou-jour-conge_paye {
            background: var(--bs-info-bg-subtle);
            border-color: var(--bs-info-border-subtle);
        }

        .nounou-jour-calendrier.nounou-jour-maladie {
            background: var(--bs-danger-bg-subtle);
            border-color: var(--bs-danger-border-subtle);
        }

        .nounou-jour-calendrier.nounou-jour-ferie {
            background: var(--bs-warning-bg-subtle);
            border-color: var(--bs-warning-border-subtle);
        }

        .nounou-jour-calendrier.nounou-jour-injustifie {
            background: #fde2e2;
            border-color: #f5b5b5;
            color: #842029;
        }

        .nounou-jour-calendrier.nounou-jour-autre {
            background: var(--bs-primary-bg-subtle);
            border-color: var(--bs-primary-border-subtle);
        }

        .nounou-jour-calendrier.nounou-jour-aucune_donnee {
            background: #f9fafb;
            border-style: dashed;
            color: var(--bs-secondary-color);
        }

        /* ===== Planning de la semaine (dashboard admin) : chips par jour ===== */
        .nounou-chip-jour {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.8rem;
            font-weight: 600;
            background: #f1f2f4;
            color: var(--bs-secondary-color);
        }

        .nounou-chip-jour.nounou-chip-heures {
            background: #d1f7e6;
            color: #0f5132;
        }

        .nounou-chip-jour.nounou-chip-absence {
            background: #fde2e2;
            color: #842029;
        }

        .nounou-avatar-mini {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: var(--bs-primary-bg-subtle);
            color: var(--bs-primary-text-emphasis);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.7rem;
            flex-shrink: 0;
        }

        /* ===== Carte enfant du jour (dashboard admin) ===== */
        .nounou-carte-enfant {
            width: 100%;
            border: 1px solid var(--bs-border-color);
            border-radius: var(--bs-border-radius-lg);
            background: #fff;
            padding: 1.5rem 1rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            box-shadow: var(--nounou-shadow-sm);
            transition: box-shadow .15s ease, transform .15s ease;
        }

        .nounou-carte-enfant:hover {
            box-shadow: 0 8px 24px rgba(17, 24, 39, .08);
            transform: translateY(-2px);
        }

        .nounou-avatar-emoji {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: var(--bs-primary-bg-subtle);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.75rem;
            margin-bottom: 0.75rem;
        }

        .nounou-carte-enfant-nom {
            font-weight: 700;
        }

        .nounou-carte-enfant-age {
            font-size: 0.8rem;
            color: var(--bs-secondary-color);
            margin-bottom: 0.6rem;
        }

        /* Pastilles de statut façon "sticker" — légèrement inclinées, micro-animation au clic */
        .nounou-badge-statut {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            font-weight: 800;
            padding: 0.35em 0.75em;
            border-radius: var(--radius-pill);
            transform: rotate(-3deg);
            transition: transform .15s;
        }

        .nounou-badge-statut:hover { transform: rotate(-3deg) scale(1.08); }
        .nounou-badge-statut:active { transform: rotate(-3deg) scale(.92); }

        .nounou-badge-point {
            width: 0.5rem;
            height: 0.5rem;
            border-radius: 50%;
            display: inline-block;
            flex-shrink: 0;
        }

        .nounou-badge-present {
            background: var(--bs-success-bg-subtle);
            color: var(--bs-success-text-emphasis);
        }

        .nounou-badge-present .nounou-badge-point { background: var(--bs-success); }

        .nounou-badge-absent {
            background: var(--bs-warning-bg-subtle);
            color: var(--bs-warning-text-emphasis);
        }

        .nounou-badge-absent .nounou-badge-point { background: var(--bs-warning); }

        .nounou-badge-non_arrive {
            background: #f1f2f4;
            color: var(--bs-secondary-color);
        }

        .nounou-badge-non_arrive .nounou-badge-point { background: var(--bs-secondary-color); }

        .nounou-badge-automatique {
            background: var(--bs-success-bg-subtle);
            color: var(--bs-success-text-emphasis);
        }

        .nounou-badge-automatique .nounou-badge-point { background: var(--bs-success); }

        .nounou-badge-parti {
            background: var(--bs-info-bg-subtle);
            color: var(--bs-info-text-emphasis);
        }

        .nounou-badge-parti .nounou-badge-point { background: var(--bs-info); }

        .nounou-carte-enfant-heure {
            font-size: 0.75rem;
            color: var(--bs-secondary-color);
            margin-top: 0.5rem;
        }

        /* ===== Sélection multi-enfants (formulaires repas/soins/change de couche) ===== */
        .nounou-selection-enfant {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.3rem;
            min-width: 76px;
            padding: 0.6rem 0.8rem;
            border: 2px solid var(--bs-border-color);
            border-radius: var(--bs-border-radius-lg);
            background: #fff;
            text-align: center;
            cursor: pointer;
            transition: border-color .15s ease, background-color .15s ease;
        }

        .nounou-selection-enfant:hover {
            border-color: var(--bs-primary);
        }

        .nounou-selection-enfant .nounou-avatar-emoji {
            width: 40px;
            height: 40px;
            font-size: 1.25rem;
            margin-bottom: 0;
        }

        .nounou-selection-enfant-nom {
            font-size: 0.8rem;
            font-weight: 600;
        }

        .btn-check:checked + .nounou-selection-enfant {
            border-color: var(--bs-primary);
            background: var(--bs-primary-bg-subtle);
        }

        .btn-check:checked + .nounou-selection-enfant::after {
            content: "\2713";
            position: absolute;
            top: -6px;
            right: -6px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--bs-primary);
            color: #fff;
            font-size: 0.7rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-check:focus-visible + .nounou-selection-enfant {
            outline: 2px solid var(--bs-primary);
            outline-offset: 2px;
        }

        /* ===== Bannière d'accueil (dashboard) =====
           Padding/marge/icône réduits d'environ 25% (2026-09-23, retour terrain : "trop d'espace
           vide vertical"). Le bord "en dents de scie" (::after) est retiré le 2026-10-09 : il ne
           s'affichait que comme une bande rose plate sous les coins arrondis (décision du user). */
        .nounou-hero {
            position: relative;
            background: linear-gradient(120deg, var(--coral), var(--pink));
            border-radius: 26px;
            padding: 1.1rem 1.75rem 1.5rem;
            color: #fff;
            margin-bottom: 1.7rem;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 1rem;
        }
        .nounou-hero-titre {
            font-family: 'Baloo 2', cursive;
            font-size: 1.55rem;
            font-weight: 600;
            margin: 0 0 .25rem;
            color: #fff;
        }
        .nounou-hero p:not(.nounou-hero-titre) {
            margin: 0;
            opacity: .92;
            font-size: .9rem;
        }
        .nounou-hero-icone {
            width: 2.8rem;
            height: 2.8rem;
            flex-shrink: 0;
        }
        @media (prefers-reduced-motion: no-preference) {
            .nounou-hero-icone { animation: nounouSpin 14s linear infinite; }
        }
        @keyframes nounouSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

        /* ===== Animation d'entrée en cascade — listes/cartes, respecte prefers-reduced-motion ===== */
        @media (prefers-reduced-motion: no-preference) {
            .nounou-list-item, .nounou-stat-carte, .nounou-carte-enfant, .nounou-presence-tuile {
                animation: nounouPopIn .45s ease both;
            }
            .nounou-list-item:nth-child(1), .nounou-stat-carte:nth-child(1), .nounou-carte-enfant:nth-child(1), .nounou-presence-tuile:nth-child(1) { animation-delay: .02s; }
            .nounou-list-item:nth-child(2), .nounou-stat-carte:nth-child(2), .nounou-carte-enfant:nth-child(2), .nounou-presence-tuile:nth-child(2) { animation-delay: .06s; }
            .nounou-list-item:nth-child(3), .nounou-stat-carte:nth-child(3), .nounou-carte-enfant:nth-child(3), .nounou-presence-tuile:nth-child(3) { animation-delay: .1s; }
            .nounou-list-item:nth-child(4), .nounou-stat-carte:nth-child(4), .nounou-carte-enfant:nth-child(4), .nounou-presence-tuile:nth-child(4) { animation-delay: .14s; }
            .nounou-list-item:nth-child(5), .nounou-stat-carte:nth-child(5), .nounou-carte-enfant:nth-child(5), .nounou-presence-tuile:nth-child(5) { animation-delay: .18s; }
            .nounou-list-item:nth-child(n+6), .nounou-stat-carte:nth-child(n+6), .nounou-carte-enfant:nth-child(n+6), .nounou-presence-tuile:nth-child(n+6) { animation-delay: .22s; }
        }
        @keyframes nounouPopIn {
            from { opacity: 0; transform: translateY(10px) scale(.97); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        /* ===== Carte secondaire "carnet" — bordure en pointillés ===== */
        .nounou-list-vide {
            border-radius: var(--radius-card);
            border-color: #FFD6C2;
        }
        /* Sélecteur de date année → mois → jour (app/static/js/calendrier.js, 2026-09-26). */
        .nounou-champ-date { cursor: pointer; background-color: var(--bs-body-bg); }
        .nounou-calendrier-fond {
            display: none; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2000;
            background: rgba(46, 33, 64, 0.45); align-items: center; justify-content: center;
            padding: 16px;
        }
        .nounou-calendrier {
            background: var(--bs-body-bg); border-radius: 20px; padding: 16px;
            width: 100%; max-width: 360px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
        }
        .nounou-calendrier-entete {
            display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
        }
        .nounou-calendrier-titre { font-weight: 700; font-size: 1.1rem; }
        .nounou-calendrier-titre-lien {
            border: 0; background: none; color: var(--bs-primary); padding: 4px 8px; border-radius: 10px;
        }
        .nounou-calendrier-titre-lien:hover { background: var(--bs-primary-bg-subtle); }
        .nounou-calendrier-fleche {
            border: 0; background: var(--bs-tertiary-bg); width: 40px; height: 40px;
            border-radius: 50%; font-size: 1.4rem; line-height: 1;
        }
        .nounou-calendrier-grille { display: grid; gap: 6px; }
        .nounou-calendrier-grille-3 { grid-template-columns: repeat(3, 1fr); }
        .nounou-calendrier-grille-7 { grid-template-columns: repeat(7, 1fr); }
        .nounou-calendrier-grille-3 .nounou-calendrier-case { padding: 14px 0; }
        .nounou-calendrier-grille-7 .nounou-calendrier-case { padding: 8px 0; }
        .nounou-calendrier-case {
            border: 1px solid var(--bs-border-color); background: var(--bs-body-bg);
            border-radius: 12px; font-size: 1rem; color: var(--bs-body-color);
        }
        .nounou-calendrier-case:hover:not(:disabled) { background: var(--bs-primary-bg-subtle); }
        .nounou-calendrier-case.actif {
            background: var(--bs-primary); border-color: var(--bs-primary); color: #fff; font-weight: 700;
        }
        .nounou-calendrier-case:disabled { opacity: 0.35; }
        .nounou-calendrier-jour-nom {
            text-align: center; font-size: 0.8rem; color: var(--bs-secondary-color); padding-bottom: 2px;
        }
        .nounou-calendrier-pied { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

        /* Fenêtre de confirmation (static/js/dialogue.js, 2026-11-03) : remplace la fenêtre du système. */
        .nounou-dialogue-ouvert, .nounou-dialogue-ouvert body { overflow: hidden; }
        .nounou-dialogue-fond {
            position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2000;
            display: flex; align-items: center; justify-content: center; padding: 16px;
            background: rgba(46, 33, 64, .45);
            animation: nounou-dialogue-fondu .15s ease-out;
        }
        .nounou-dialogue {
            width: 100%; max-width: 420px; background: #fff; border-radius: var(--radius-card);
            border-top: 6px solid var(--coral); padding: 22px 22px 18px;
            box-shadow: 0 18px 40px rgba(46, 33, 64, .28);
            animation: nounou-dialogue-entree .18s ease-out;
        }
        .nounou-dialogue-message {
            font-family: 'Baloo 2', 'Nunito', sans-serif; font-weight: 600; font-size: 1.15rem; line-height: 1.35;
            color: var(--plum); margin: 0 0 18px; white-space: pre-line;
        }
        .nounou-dialogue-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
        .nounou-dialogue-actions .btn { min-width: 110px; }
        .nounou-dialogue-danger { background: #dc2626; border-color: #dc2626; color: #fff; }
        @media (max-width: 400px) { .nounou-dialogue-actions .btn { flex: 1 1 auto; } }
        @keyframes nounou-dialogue-fondu { from { opacity: 0; } to { opacity: 1; } }
        @keyframes nounou-dialogue-entree { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
        @media (prefers-reduced-motion: reduce) { .nounou-dialogue-fond, .nounou-dialogue { animation: none; } }
    

        .sans-flex-gap .nounou-topbar > :not(:last-child), .sans-flex-gap .nounou-topbar > :only-child { margin-right: 1.25rem; }
        .sans-flex-gap .nounou-marque > :not(:last-child), .sans-flex-gap .nounou-marque > :only-child { margin-right: 0.65rem; }
        .sans-flex-gap .nounou-topbar-nav > :not(:last-child), .sans-flex-gap .nounou-topbar-nav > :only-child { margin-right: 0.4rem; }
        .sans-flex-gap .nounou-topbar-nav > * { margin-bottom: 0.4rem !important; }
        .sans-flex-gap .nounou-topbar-nav .nav-link > :not(:last-child), .sans-flex-gap .nounou-topbar-nav .nav-link > :only-child { margin-right: 0.55rem; }
        .sans-flex-gap .nounou-topbar-utils > :not(:last-child), .sans-flex-gap .nounou-topbar-utils > :only-child { margin-right: 0.6rem; }
        .sans-flex-gap .nounou-list > :not(:last-child), .sans-flex-gap .nounou-list > :only-child { margin-bottom: 0.6rem !important; }
        .sans-flex-gap .nounou-list-item > :not(:last-child), .sans-flex-gap .nounou-list-item > :only-child { margin-right: 1rem; }
        .sans-flex-gap .nounou-carnet-rubrique-titre > :not(:last-child), .sans-flex-gap .nounou-carnet-rubrique-titre > :only-child { margin-right: .4rem; }
        .sans-flex-gap .nounou-carnet-ligne > :not(:last-child), .sans-flex-gap .nounou-carnet-ligne > :only-child { margin-right: .6rem; }
        .sans-flex-gap .nav-tabs > :not(:last-child), .sans-flex-gap .nav-tabs > :only-child { margin-right: 0.5rem; }
        .sans-flex-gap .nav-tabs > * { margin-bottom: 0.5rem !important; }
        .sans-flex-gap .nounou-nav-tabs-scroll .nav-tabs > * { margin-bottom: 0 !important; }
        .sans-flex-gap .nounou-presence-tuile > :not(:last-child), .sans-flex-gap .nounou-presence-tuile > :only-child { margin-bottom: 0.4rem !important; }
        .sans-flex-gap .nounou-badge-statut > :not(:last-child), .sans-flex-gap .nounou-badge-statut > :only-child { margin-right: 0.4rem; }
        .sans-flex-gap .nounou-selection-enfant > :not(:last-child), .sans-flex-gap .nounou-selection-enfant > :only-child { margin-bottom: 0.3rem !important; }
        .sans-flex-gap .nounou-hero > :not(:last-child), .sans-flex-gap .nounou-hero > :only-child { margin-right: 1rem; }
        .sans-flex-gap .nounou-calendrier-pied > :not(:last-child), .sans-flex-gap .nounou-calendrier-pied > :only-child { margin-right: 8px; }
        .sans-flex-gap .nounou-calendrier-pied > * { margin-bottom: 8px !important; }
        .sans-flex-gap .nounou-dialogue-actions > :not(:last-child), .sans-flex-gap .nounou-dialogue-actions > :only-child { margin-right: 10px; }
        .sans-flex-gap .nounou-dialogue-actions > * { margin-bottom: 10px !important; }
        @media (max-width: 959px) {
            .sans-flex-gap .nounou-topbar > .nounou-topbar-nav-conteneur { margin-right: 0; }
            .sans-flex-gap .nounou-topbar-nav > :not(:last-child), .sans-flex-gap .nounou-topbar-nav > :only-child { margin-right: 0.1rem; }
            .sans-flex-gap .nounou-topbar-nav > * { margin-bottom: 0 !important; }
            .sans-flex-gap .nounou-topbar-nav .nav-link > :not(:last-child), .sans-flex-gap .nounou-topbar-nav .nav-link > :only-child { margin-right: 0; margin-bottom: 0.2rem !important; }
        }
        
        .sans-flex-gap .gap-1:not(.d-grid):not(.flex-column) > :not(:last-child),
        .sans-flex-gap .gap-1:not(.d-grid):not(.flex-column) > :only-child { margin-right: .25rem; }
        .sans-flex-gap .gap-1.flex-wrap > * { margin-bottom: .25rem !important; }
        .sans-flex-gap .gap-1.flex-column > :not(:last-child),
        .sans-flex-gap .gap-1.flex-column > :only-child { margin-bottom: .25rem !important; }
        @media (min-width: 576px) {
            .sans-flex-gap .gap-1.flex-column.flex-sm-row > :not(:last-child),
            .sans-flex-gap .gap-1.flex-column.flex-sm-row > :only-child,
            .sans-flex-gap .gap-1.d-grid.d-sm-flex > :not(:last-child),
            .sans-flex-gap .gap-1.d-grid.d-sm-flex > :only-child { margin-bottom: 0 !important; margin-right: .25rem; }
        }
        
        .sans-flex-gap .gap-2:not(.d-grid):not(.flex-column) > :not(:last-child),
        .sans-flex-gap .gap-2:not(.d-grid):not(.flex-column) > :only-child { margin-right: .5rem; }
        .sans-flex-gap .gap-2.flex-wrap > * { margin-bottom: .5rem !important; }
        .sans-flex-gap .gap-2.flex-column > :not(:last-child),
        .sans-flex-gap .gap-2.flex-column > :only-child { margin-bottom: .5rem !important; }
        @media (min-width: 576px) {
            .sans-flex-gap .gap-2.flex-column.flex-sm-row > :not(:last-child),
            .sans-flex-gap .gap-2.flex-column.flex-sm-row > :only-child,
            .sans-flex-gap .gap-2.d-grid.d-sm-flex > :not(:last-child),
            .sans-flex-gap .gap-2.d-grid.d-sm-flex > :only-child { margin-bottom: 0 !important; margin-right: .5rem; }
        }
        
        .sans-flex-gap .gap-3:not(.d-grid):not(.flex-column) > :not(:last-child),
        .sans-flex-gap .gap-3:not(.d-grid):not(.flex-column) > :only-child { margin-right: 1rem; }
        .sans-flex-gap .gap-3.flex-wrap > * { margin-bottom: 1rem !important; }
        .sans-flex-gap .gap-3.flex-column > :not(:last-child),
        .sans-flex-gap .gap-3.flex-column > :only-child { margin-bottom: 1rem !important; }
        @media (min-width: 576px) {
            .sans-flex-gap .gap-3.flex-column.flex-sm-row > :not(:last-child),
            .sans-flex-gap .gap-3.flex-column.flex-sm-row > :only-child,
            .sans-flex-gap .gap-3.d-grid.d-sm-flex > :not(:last-child),
            .sans-flex-gap .gap-3.d-grid.d-sm-flex > :only-child { margin-bottom: 0 !important; margin-right: 1rem; }
        }
        
        .sans-flex-gap .gap-4:not(.d-grid):not(.flex-column) > :not(:last-child),
        .sans-flex-gap .gap-4:not(.d-grid):not(.flex-column) > :only-child { margin-right: 1.5rem; }
        .sans-flex-gap .gap-4.flex-wrap > * { margin-bottom: 1.5rem !important; }
        .sans-flex-gap .gap-4.flex-column > :not(:last-child),
        .sans-flex-gap .gap-4.flex-column > :only-child { margin-bottom: 1.5rem !important; }
        @media (min-width: 576px) {
            .sans-flex-gap .gap-4.flex-column.flex-sm-row > :not(:last-child),
            .sans-flex-gap .gap-4.flex-column.flex-sm-row > :only-child,
            .sans-flex-gap .gap-4.d-grid.d-sm-flex > :not(:last-child),
            .sans-flex-gap .gap-4.d-grid.d-sm-flex > :only-child { margin-bottom: 0 !important; margin-right: 1.5rem; }
        }
        
        .sans-flex-gap .gap-5:not(.d-grid):not(.flex-column) > :not(:last-child),
        .sans-flex-gap .gap-5:not(.d-grid):not(.flex-column) > :only-child { margin-right: 3rem; }
        .sans-flex-gap .gap-5.flex-wrap > * { margin-bottom: 3rem !important; }
        .sans-flex-gap .gap-5.flex-column > :not(:last-child),
        .sans-flex-gap .gap-5.flex-column > :only-child { margin-bottom: 3rem !important; }
        @media (min-width: 576px) {
            .sans-flex-gap .gap-5.flex-column.flex-sm-row > :not(:last-child),
            .sans-flex-gap .gap-5.flex-column.flex-sm-row > :only-child,
            .sans-flex-gap .gap-5.d-grid.d-sm-flex > :not(:last-child),
            .sans-flex-gap .gap-5.d-grid.d-sm-flex > :only-child { margin-bottom: 0 !important; margin-right: 3rem; }
        }
        

        /* Barres claires (2026-11-11, éditeur et Priscilla : « l'appli est un peu fade, le violet ») : barres du haut et
           du bas blanches avec un liseré aux couleurs d'Aujourd'hui, icônes de navigation chacune de sa couleur, libellés
           gris-violet (#5C506C, mi-chemin choisi sur capture), traits gris entre les boutons du bas. Les textes et
           flèches qui étaient blancs sur le violet passent en foncé. Le violet reste pour les titres. */
        :root { --nounou-sidebar-bg: #FFFFFF; }
        .nounou-topbar { box-shadow: 0 2px 12px rgba(46, 33, 64, .08); border-bottom: 3px solid transparent;
            border-image: linear-gradient(90deg, var(--coral), var(--pink), var(--sun), var(--mint)) 1; }
        .nounou-marque .nounou-marque-nom { color: var(--plum); }
        .nounou-marque .nounou-marque-soustitre { color: var(--text-soft); }
        .nounou-pastille-statut { color: var(--plum2); }
        .nounou-topbar-nav-fleche { background: #F3EDF7; color: var(--plum); }
        .nounou-topbar-nav .nav-link { color: #5C506C; font-weight: 700; }
        .nounou-topbar-nav .nav-link:not(.active):hover { background: #FFF1EA; color: var(--plum); }
        .nounou-topbar-nav > :nth-child(6n+1) i, .nounou-topbar-nav > :nth-child(6n+1) > .nav-link i { color: var(--coral); }
        .nounou-topbar-nav > :nth-child(6n+2) i, .nounou-topbar-nav > :nth-child(6n+2) > .nav-link i { color: #7A63BF; }
        .nounou-topbar-nav > :nth-child(6n+3) i, .nounou-topbar-nav > :nth-child(6n+3) > .nav-link i { color: #D99A00; }
        .nounou-topbar-nav > :nth-child(6n+4) i, .nounou-topbar-nav > :nth-child(6n+4) > .nav-link i { color: #E8558C; }
        .nounou-topbar-nav > :nth-child(6n+5) i, .nounou-topbar-nav > :nth-child(6n+5) > .nav-link i { color: #1FA68C; }
        .nounou-topbar-nav > :nth-child(6n) i, .nounou-topbar-nav > :nth-child(6n) > .nav-link i { color: #4A7CC7; }
        .nounou-topbar-nav .nav-link.active, .nounou-topbar-nav .nav-link.active i { color: #fff !important; }
        @media (max-width: 959px) {
            .nounou-topbar-nav-conteneur { box-shadow: 0 -2px 12px rgba(46, 33, 64, .10); border-top: 3px solid transparent;
                border-image: linear-gradient(90deg, var(--coral), var(--pink), var(--sun), var(--mint)) 1; }
            .nounou-topbar-nav { gap: 0; }
            .nounou-topbar-nav > * { position: relative; }
            .nounou-topbar-nav > * + *::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%;
                width: 1px; background: #CFC3D9; }
            .nounou-topbar-nav .nav-link { border-radius: 12px; font-size: .68rem; }
        }
        /* Listes : un liseré et une pastille de couleur par ligne, comme les cases d'Aujourd'hui. */
        .nounou-list-item { border-left: 4px solid transparent; }
        .nounou-list > :nth-child(5n+1).nounou-list-item { border-left-color: var(--coral); }
        .nounou-list > :nth-child(5n+2).nounou-list-item { border-left-color: #8B76C9; }
        .nounou-list > :nth-child(5n+3).nounou-list-item { border-left-color: var(--sun); }
        .nounou-list > :nth-child(5n+4).nounou-list-item { border-left-color: var(--mint); }
        .nounou-list > :nth-child(5n).nounou-list-item { border-left-color: #5B8DD6; }
        .nounou-list > :nth-child(5n+1) .nounou-list-avatar { background: #FFE8E0; color: var(--coral); }
        .nounou-list > :nth-child(5n+2) .nounou-list-avatar { background: #ECE6F7; color: #7A63BF; }
        .nounou-list > :nth-child(5n+3) .nounou-list-avatar { background: #FFF3D1; color: #B07F00; }
        .nounou-list > :nth-child(5n+4) .nounou-list-avatar { background: var(--mint-soft); color: #0E7A63; }
        .nounou-list > :nth-child(5n) .nounou-list-avatar { background: #E3EEF9; color: #3F6FB5; }

        /* Touche « choupinou » (2026-11-11, validée par Priscilla) : décor pâle en bas de page (nuages, étoiles, lune,
           cœurs, couleurs de la charte), derrière le contenu, visible seulement là où la page a du vide ; nounours dans
           les messages vides. Taille fixe d'abord : Chrome 69 (Android 9) ignore min(). */
        body { background-image: url("/static/img/decor_fond.svg?v=ef0077e065c3"); background-repeat: no-repeat;
            background-position: center bottom 70px; background-size: 390px auto; background-size: min(100%, 520px) auto;
            background-attachment: fixed; }
        @media (min-width: 960px) { body { background-position: right 24px bottom 16px; } }
        .nounou-list-vide { text-align: center; padding: 1.5rem 1rem; }
        .nounou-list-vide::before { content: ""; display: block; width: 72px; height: 72px; margin: 0 auto .6rem;
            background: url("/static/logo.png?v=d964a7fe8d38") center / cover; border-radius: 22px; opacity: .9; }
        /* Sous-menus du menu « Enfants » (2026-11-15) : rubriques d'un enfant sur le côté (grand écran), dessous (téléphone). */
        .nounou-sous-menu { position: relative; }
        .nounou-sous-menu > .nounou-sous-menu-liste { display: none; }
        .nounou-sous-menu.ouvert > .nounou-sous-menu-liste { display: block; }
        .nounou-sous-menu.ouvert .nounou-sous-menu-fleche { transform: rotate(90deg); }
        @media (min-width: 600px) {
            .nounou-sous-menu > .nounou-sous-menu-liste { position: absolute; left: 100%; top: 0; margin-left: .25rem; }
            .nounou-sous-menu.ouvert .nounou-sous-menu-fleche { transform: none; }
        }
        @media (max-width: 599.98px) {
            .nounou-sous-menu > .nounou-sous-menu-liste { position: static; float: none; border: 0; box-shadow: none;
                                                          margin: 0 0 .25rem 1.25rem; padding: 0; }
        }
    