       /* Conteneurs généraux */
        .dashboard-section, .preparation-section {
            max-width: 1400px !important;
            margin: 0 auto !important;
            padding: 0 1rem;
            font-family: Tahoma, sans-serif;
            color: #808080; /* texte doux */
        }

        /* Remonter le TDB sous l'en-tête du site */
        body.wnp-page-tdb .site-content,
        body.wnp-page-tdb .entry-content,
        body.wnp-page-tdb .content-area,
        body.wnp-page-tdb main {
            padding-top: 0 !important;
        }

        body.wnp-page-tdb .entry-header,
        body.wnp-page-tdb .page-header {
            display: none;
        }

        .wnp-dashboard {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        .wnp-dashboard .dashboard-section,
        .wnp-dashboard .preparation-section {
            padding-left: 0 !important;
            padding-right: 0 !important;
        }

        .dashboard-header {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 0.75rem;
            margin: 0 0 2rem;
            padding-top: 0.15rem;
        }

        .dashboard-header-left {
            display: flex;
            flex-direction: column;
        }

        .dashboard-title {
          margin: 0;
        }

        .dashboard-emoji {
            font-size: 1.8rem;
            margin-left: 0.4rem;
        }

        .dashboard-meta {
            display: flex;
            flex-wrap: wrap;
            align-items: baseline;
            gap: 0.35rem 0.5rem;
            margin-top: 0.15rem;
        }

        .dashboard-plan {
            margin: 0;
            font-weight: 500;
            color: #444;
        }

        .dashboard-meta-sep {
            color: #bbb;
            font-weight: 300;
        }

        .dashboard-portions {
            margin: 0;
            font-size: 0.95rem;
            color: #007b8a;
        }

        .dashboard-header-actions {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.5rem;
            padding-bottom: 0.5rem;
        }

        .dashboard-header-actions .wnp-btn {
            white-space: nowrap;
            padding: 0.45rem 1.1rem;
            font-size: 0.88rem;
        }

        .dashboard-header-actions .wnp-btn.outline {
            margin-left: auto;
        }

        @media (max-width: 900px) {
            .dashboard-header-actions .wnp-btn.outline {
                margin-left: 0;
            }
        }

        /* Boutons verrouillés (plan Découverte) — cliquables pour upsell */
        .wnp-btn.wnp-btn--locked {
            background: #e8e8e4;
            color: #8a8a86;
            border-color: #d8d8d4;
            cursor: pointer;
            opacity: 0.95;
        }

        .wnp-btn.wnp-btn--locked:hover {
            background: #deded8;
            color: #6e6e6a;
            border-color: #d0d0ca;
            transform: translateY(-1px);
            box-shadow: 0 2px 6px rgba(0,0,0,0.06);
        }

        .wnp-btn-lock {
            display: inline-block;
            width: 0.85rem;
            height: 0.85rem;
            margin-right: 0.35rem;
            vertical-align: -0.1rem;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238a8a86'%3E%3Cpath d='M12 1a5 5 0 00-5 5v4H6a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V12a2 2 0 00-2-2h-1V6a5 5 0 00-5-5zm-3 9V6a3 3 0 016 0v4H9z'/%3E%3C/svg%3E") center / contain no-repeat;
        }

        /* Modale upsell Découverte */
        .wnp-upsell-modal[hidden] {
            display: none !important;
        }

        .wnp-upsell-modal {
            position: fixed;
            inset: 0;
            z-index: 100050;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1.25rem;
        }

        .wnp-upsell-modal__backdrop {
            position: absolute;
            inset: 0;
            background: rgba(40, 40, 36, 0.45);
        }

        .wnp-upsell-modal__dialog {
            position: relative;
            z-index: 1;
            width: min(100%, 420px);
            background: #f6f5f2;
            border: 1px solid #e8e8e4;
            border-radius: 16px;
            padding: 1.5rem 1.4rem 1.35rem;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
            text-align: center;
            font-family: inherit;
        }

        .wnp-upsell-modal__title {
            margin: 0 0 0.55rem;
            font-family: "Playfair Display", Georgia, serif;
            font-size: 1.25rem;
            font-weight: 600;
            color: #007b8a;
        }

        .wnp-upsell-modal__text {
            margin: 0 0 1.25rem;
            font-family: inherit;
            font-size: 0.98rem;
            line-height: 1.45;
            color: #555;
            white-space: pre-line;
        }

        .wnp-upsell-modal__actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.55rem;
            justify-content: center;
        }

        .wnp-upsell-modal__actions .wnp-btn {
            min-width: 8.5rem;
        }

        body.wnp-upsell-open {
            overflow: hidden;
        }

        /* Boutons */
        .wnp-btn {
            padding: 0.55rem 1.4rem;
            background: #007B8A;
            color: #F6F5F2;
            border-radius: 999px;              /* pill */
            border: 1px solid #007B8A;
            text-decoration: none !important;
            cursor: pointer;
            font-size: 0.95rem;
            font-weight: 500;
            line-height: 1.2;
            transition: background-color 0.2s ease,
                        color 0.2s ease,
                        transform 0.15s ease,
                        box-shadow 0.15s ease;
        }

        /* Hover élégant */
        .wnp-btn:hover {
            background: #F6F5F2;
            color: #007B8A;
            transform: translateY(-1px);
            box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        }

        /* Bouton secondaire (ex: déconnexion) */
        .wnp-btn.outline {
            background: transparent;
            color: #007B8A;
            text-decoration: none !important;
        }

        /* Hover secondaire */
        .wnp-btn.outline:hover {
            background: #007B8A;
            color: #F6F5F2;
        }

        /* Titres */
        .dashboard-section h3:not(.menu-semaine-label),
        .preparation-section h3 {
            color: #007B8A;
            margin-top: 0;
            margin-bottom: 0.65rem;
            font-size: 1.35rem;
            font-weight: 600;
            font-family: "Book Antiqua", serif;
        }

        /* Cartes repas */
        .menu-cards {
            display: grid;
            grid-template-columns: repeat(5, minmax(200px, 260px));
            justify-content: space-between;
            align-items: stretch;
            gap: 1.2rem;
            margin-top: 0;
        }


        .menu-card {
            position: relative;
            overflow: hidden;
            box-sizing: border-box;
            max-width: 260px;
            width: 100%;
            height: 100%;
            margin: 0 auto;
            background: #fff;
            border-radius: 20px;
            border: 1px solid #ddd;
            padding: 0;
            min-height: 0;
            display: flex;
            flex-direction: column;
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
            transition: transform .25s ease, box-shadow .15s ease;
        }

        .menu-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 10px rgba(0,0,0,0.06);
        }

        .menu-card-body {
            position: relative;
            flex: 1 1 auto;
            display: flex;
            flex-direction: column;
            padding: 0.85rem 0.9rem 0.55rem;
            z-index: 1;
        }

        .menu-card-actions {
            margin-top: auto;
            padding-top: 0.55rem;
        }

        .menu-card-media {
            flex: 0 0 auto;
            height: 140px;
            overflow: hidden;
            border-radius: 0 0 19px 19px;
            background: #f0efea;
            z-index: 1;
        }

        .menu-card-media img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }

        /* Jours */
        .menu-card h4,
        .menu-card h4.menu-card-jour {
            margin-top: 0;
            color: #007B8A;
            font-size: 0.95rem;
            font-weight: 700;
            font-family: "Book Antiqua", serif;
            margin-bottom: .6rem;
            display: flex;
            align-items: center;
            gap: 0.4rem;
            flex-wrap: wrap;
        }

        .menu-card-jour-nom {
            min-width: 0;
        }

        /* Pastille spécial (🏷️ Économique à côté du jour ; détail au survol) */
        .wnp-spec-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            height: 1.45rem;
            padding: 0 0.55rem;
            border-radius: 999px;
            background: #d8f3e7;
            color: #0f6b4c;
            font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.01em;
            line-height: 1;
            white-space: nowrap;
        }

        .menu-card-jour .wnp-spec-badge {
            margin-left: 0;
            font-size: 0.7rem;
            height: 1.4rem;
            padding: 0 0.5rem;
        }

        .wnp-liste-special {
            display: inline-flex;
            align-items: center;
            margin-left: 0.4rem;
            height: 1.4rem;
            padding: 0 0.5rem;
            border-radius: 999px;
            background: #d8f3e7;
            color: #0f6b4c;
            font-size: 0.72rem;
            font-weight: 700;
            vertical-align: middle;
            white-space: nowrap;
        }

        .menu-card p {
            color: #808080;
            line-height: 1.45;
            font-size: .95rem;
            position: relative;
            padding-right: 22px;
        }

        .menu-card .wnp-cout-jour {
            flex: 0 0 auto;
            padding: 0 0.9rem 0.45rem;
            font-size: 0.78rem;
            font-weight: 600;
            color: #5a6a6e;
            letter-spacing: 0.01em;
            line-height: 1.2;
            text-align: left;
        }

        .wnp-cout-note {
            margin: 0.55rem 0 0;
            padding: 0 0.15rem;
            font-size: 0.78rem;
            line-height: 1.35;
            color: #8a9498;
            font-style: italic;
        }
        
        /* Bouton Modifier */
        .modifier-btn {
            width: 100%;
            margin: 0;
            background: #007B8A !important;
            color: #F6F5F2 !important;
            border-radius: 10px;
            padding: .45rem 1rem;
            border: none;
            font-size: .9rem;
            font-family: Tahoma, sans-serif;
            cursor: pointer;
        }

        .modifier-btn:hover {
            background-color: #F6F5F2 !important;
            color: #007B8A !important;
        }

        .menu-card .btn-remove {
            display: inline;
            position: absolute;
            right: 0;
            top: 0;
            background: none;          /* ⬅️ PLUS DE FOND */
            border: none;
            padding: 0;
            color: #007B8A;  /* #c0392b; */
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            opacity: 0;
            transform: scale(0.85);
            transition: opacity .15s ease, transform .15s ease, color .15s ease;   /*transition: opacity .18s ease, transform .18s ease; */
        }

        .menu-card.mode-modif .btn-remove {
            display: inline;
            opacity: 1;
            transform: scale(1);
        }
        
        .menu-card .btn-remove::after {
            content: "Remplacer ce plat";
            position: absolute;
            right: 130%;
            top: 50%;
            transform: translateY(-50%);
            background: #333;
            color: #fff;
            font-size: 0.7rem;
            padding: 2px 6px;
            border-radius: 4px;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity .15s ease;
        }

        .menu-card .btn-remove:hover::after {
            opacity: 1;
        }
        
        .menu-card p[data-type="Principal"] .btn-remove::after {
            content: "Modifier le plat principal";
        }
        
        .menu-card p[data-type="Légumes"] .btn-remove::after {
            content: "Modifier les légumes";
        }
        
        .menu-card p[data-type="Accompagnement"] .btn-remove::after {
            content: "Modifier l’accompagnement";
        }

        .menu-card.mode-modif p {
            transition: transform .15s ease;
        }

        .menu-card.mode-modif p:hover {
            transform: translateX(-2px);
        }

        .menu-select-row {
            display: flex;
            align-items: center;
            gap: 0.75rem 1rem;
            flex-wrap: wrap;
            margin-bottom: 1.5rem;
        }

        .wnp-speciaux-bandeau {
            flex: 0 0 auto;
            width: max-content;
            max-width: min(100%, 440px);
            margin-left: auto;
            align-self: flex-start;
        }

        .wnp-speciaux-bandeau[hidden] {
            display: none !important;
        }

        .wnp-speciaux-bandeau-inner {
            border: 1px solid #d5e4e2;
            background: #f7fbfb;
            border-radius: 10px;
            padding: 0.4rem 0.85rem 0.45rem;
            line-height: 1.25;
        }

        .wnp-speciaux-bandeau-titre {
            margin: 0;
            font-size: 0.86rem;
            font-weight: 600;
            color: #1f4f4a;
            line-height: 1.25;
            white-space: nowrap;
        }

        .wnp-speciaux-bandeau-sous {
            margin: 0.2rem 0 0;
            font-size: 0.8rem;
            color: #555;
            line-height: 1.25;
        }

        .wnp-speciaux-bandeau-sous[hidden] {
            display: none !important;
        }

        .wnp-speciaux-bandeau-lien {
            display: inline-block;
            margin-top: 0.2rem;
            color: #007b8a;
            font-size: 0.84rem;
            font-weight: 600;
            text-decoration: none;
            line-height: 1.2;
        }

        .wnp-speciaux-bandeau-lien:hover,
        .wnp-speciaux-bandeau-lien:focus {
            color: #006670;
            text-decoration: underline;
        }

        .wnp-speciaux-page {
            max-width: 820px;
            margin: 0 auto;
            padding: 1rem 1.25rem 2.5rem;
        }

        .wnp-speciaux-titre {
            margin: 0.5rem 0 0.35rem;
            color: #1f4f4a;
        }

        .wnp-speciaux-intro,
        .wnp-speciaux-vide {
            color: #555;
            margin: 0 0 1.5rem;
        }

        .wnp-speciaux-liste {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .wnp-speciaux-bloc {
            background: #fff;
            border: 1px solid #e2e8e6;
            border-radius: 12px;
            padding: 1rem 1.15rem 0.85rem;
        }

        .wnp-speciaux-bloc-tete {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 0.75rem;
            flex-wrap: wrap;
            margin-bottom: 0.65rem;
            padding-bottom: 0.55rem;
            border-bottom: 1px solid #eef3f2;
        }

        .wnp-speciaux-bloc-titre {
            margin: 0;
            font-size: 1.15rem;
            font-weight: 600;
            color: #1f4f4a;
            line-height: 1.3;
        }

        .wnp-speciaux-bloc-titre a {
            color: inherit;
            text-decoration: none;
        }

        .wnp-speciaux-bloc-titre a:hover,
        .wnp-speciaux-bloc-titre a:focus {
            color: #007b8a;
            text-decoration: underline;
        }

        .wnp-speciaux-bloc-meta {
            margin: 0;
            font-size: 0.82rem;
            color: #777;
            white-space: nowrap;
        }

        .wnp-speciaux-lignes {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .wnp-speciaux-ligne {
            display: grid;
            grid-template-columns: 7.5rem minmax(0, 1fr) auto auto;
            gap: 0.35rem 0.85rem;
            align-items: baseline;
            padding: 0.55rem 0;
            border-bottom: 1px solid #f3f6f5;
        }

        .wnp-speciaux-ligne:last-child {
            border-bottom: 0;
            padding-bottom: 0.2rem;
        }

        .wnp-speciaux-enseigne {
            margin: 0;
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.03em;
            text-transform: uppercase;
            color: #007b8a;
        }

        .wnp-speciaux-produit {
            margin: 0;
            font-size: 0.98rem;
            color: #222;
            line-height: 1.35;
        }

        .wnp-speciaux-prix {
            margin: 0;
            font-size: 1rem;
            font-weight: 700;
            color: #1f4f4a;
            white-space: nowrap;
            justify-self: end;
        }

        .wnp-speciaux-deja {
            margin: 0.55rem 0 0;
            font-size: 0.82rem;
            color: #6b7c7a;
        }

        .wnp-speciaux-suggestions {
            margin-top: 1.75rem;
            padding-top: 1.25rem;
            border-top: 1px solid #e4eeec;
        }

        .wnp-speciaux-suggestions-titre {
            margin: 0 0 0.35rem;
            font-size: 1.15rem;
            color: #1f4f4a;
        }

        .wnp-speciaux-suggestions-intro {
            margin: 0 0 1rem;
            font-size: 0.9rem;
            color: #666;
        }

        .wnp-speciaux-suggest-bloc {
            margin: 0 0 1.1rem;
            padding: 0.85rem 1rem;
            background: #f7fbfa;
            border-radius: 8px;
        }

        .wnp-speciaux-suggest-produit {
            margin: 0 0 0.55rem;
            display: flex;
            flex-wrap: wrap;
            gap: 0.35rem 0.65rem;
            align-items: center;
        }

        .wnp-speciaux-suggest-liste {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .wnp-speciaux-suggest-liste li {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 0.4rem 1rem;
            align-items: center;
            padding: 0.4rem 0;
            border-bottom: 1px solid #e8f0ee;
        }

        .wnp-speciaux-suggest-liste li:last-child {
            border-bottom: 0;
        }

        .wnp-speciaux-cta {
            display: inline-block;
            padding: 0.28rem 0.7rem;
            border-radius: 999px;
            background: #007b8a;
            color: #fff !important;
            font-size: 0.8rem;
            font-weight: 700;
            text-decoration: none !important;
            white-space: nowrap;
        }

        .wnp-speciaux-cta:hover,
        .wnp-speciaux-cta:focus {
            background: #006675;
            color: #fff !important;
        }

        .wnp-speciaux-periode {
            margin: 0;
            font-size: 0.82rem;
            color: #777;
            white-space: nowrap;
            justify-self: end;
        }

        @media (max-width: 640px) {
            .wnp-speciaux-ligne {
                grid-template-columns: 1fr auto;
                grid-template-areas:
                    "enseigne prix"
                    "produit produit"
                    "periode periode";
                gap: 0.15rem 0.75rem;
                padding: 0.7rem 0;
            }

            .wnp-speciaux-enseigne { grid-area: enseigne; }
            .wnp-speciaux-produit { grid-area: produit; }
            .wnp-speciaux-prix { grid-area: prix; }
            .wnp-speciaux-periode {
                grid-area: periode;
                justify-self: start;
            }
        }

        .dashboard-section h3.menu-semaine-label {
            margin: 0;
            font-weight: 500;
            color: #444;
            font-size: 0.95rem;
            font-family: Tahoma, sans-serif;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .menu-select-controls {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex-wrap: nowrap;
            flex: 1;
            min-width: 0;
        }

        .menu-select-controls #select-menu {
            flex: 1 1 auto;
            min-width: 0;
            max-width: 340px;
            width: auto;
        }

        .menu-select-controls #info-menu-actif {
            margin: 0;
            font-weight: 500;
            color: #444;
            font-size: 0.95rem;
            white-space: nowrap;
        }

        @media (max-width: 768px) {
            .menu-select-row {
                flex-wrap: wrap;
            }

            .menu-select-controls {
                flex-wrap: wrap;
                width: 100%;
            }

            .menu-select-controls #select-menu {
                width: 100%;
                max-width: none;
            }
        }

        .btn-fav-menu {
            padding: 0.45rem 1.1rem;
            font-size: 0.88rem;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .btn-renommer-menu {
            padding: 0.45rem 1.1rem;
            font-size: 0.88rem;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .menu-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin: 0;
            flex-shrink: 0;
        }

        .menu-top-zone {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem 1.25rem;
            margin-top: 1.25rem;
            margin-bottom: 0;
            padding-top: 0.25rem;
        }

        .menu-top-zone.is-empty {
            display: none;
        }

        .btn-terminer-menu {
            font-size: 0.88rem;
            padding: 0.45rem 1.1rem;
            white-space: nowrap;
        }

        @media (max-width: 640px) {
            .menu-top-zone {
                flex-direction: column;
                align-items: flex-start;
            }
        }
        
        .btn-terminer-menu.is-hidden {
            visibility: hidden;
            opacity: 0;
            pointer-events: none;
        }

        /* Sous-sections */
        .preparation-section h4 {
            margin-top: 2rem;
            font-size: 1.2rem;
            color: #007B8A;
            font-family: "Book Antiqua", serif;
        }

        /* Tableau plan de préparation */
        .preparation-section table {
            width: 100%;
            margin-top: 1rem;
            border-collapse: collapse;
            background: #ffffff;
            border-radius: 10px;
        }

        .preparation-section th, .preparation-section td {
            padding: 0.8rem;
            border-bottom: 1px solid rgba(0,0,0,0.07);
            text-align: left;
            color: #808080; /* pas de noir */
            font-size: .95rem;
        }

        /* === PANNEAU LATÉRAL === */
        #modifier-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            z-index: 99998;
        }

        #modifier-panel {
            position: fixed;
            top: 0;
            right: -460px;
            bottom: 0;
            width: 440px;
            background: #fff;
            box-shadow: -6px 0 20px rgba(0,0,0,0.15);
            transition: right .35s ease;
            z-index: 99999;
            display: flex;
            flex-direction: column;
            border-left: 4px solid #007B8A;
        }

        #modifier-panel.open {
            right: 0;
        }

        .panel-header {
            padding: 1.5rem;
            background: #007B8A;
            color: #fff;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .panel-header h3 {
            margin: 0;
            font-size: 1.3rem;
        }

        #panel-close {
            background: none;
            border: none;
            color: #fff;
            font-size: 2rem;
            cursor: pointer;
        }


        .recette-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.9rem 1rem;
            margin-bottom: 0.8rem;
            background: #F6F5F2;
            border-radius: 10px;
            cursor: pointer;
            border: 1px solid rgba(0,0,0,0.05);
        }

        .recette-item:hover {
            background: #e6e4df;
            transform: translateY(-1px);
        }

        /* === CONFIRMATION DANS LE PANNEAU === */
        #confirmation-recette {
            display: none;
            background: #F6F5F2;
            border-radius: 15px;
            padding: 1.2rem;
            margin: 1rem 0 0;
            border: 2px solid #007B8A;
            text-align: center;
            animation: fadeIn 0.3s ease;
        }

        #confirmation-recette .wnp-btn {
            margin: 0.35rem 0.25rem 0;
        }
        
        .recette-thumb {
            width: 75px;
            height: 75px;
            border-radius: 12px;
            background-size: cover;
            background-position: center;
            flex-shrink: 0;
        }
        
        .panel-brand {
            display: flex;
            align-items: center;
        }
        
        .panel-logo {
            height: 100px;
        }
        
        .panel-section-title {
            font-family: "Book Antiqua", serif;
            color: #007B8A;
            font-size: 1.4rem;
            margin: 0 0 0.3rem 0;
        }
        
        .panel-context {
            font-size: 0.9rem;
            color: #666;
            margin-bottom: 1.2rem;
        }
        
        .panel-content {
            flex: 1;
            overflow-y: auto;
            padding: 1.5rem 1.25rem;
            background: #f9f9f9;
        }
        
        .menu-quota-message {
            margin: 0;
            padding: 0;
            font-size: 0.9rem;
            color: #808080;
        }
        
        .menu-quota-message strong {
            color: #444;
        }
        
        /* Message d'avertissement conflit (dans #panel-context) */
        .conflict-warning {
            text-align: center;
            padding: 1.5rem 1rem;
            background: #f9f9f9;
            border-radius: 12px;
            border: 1px solid #007B8A;
            margin: 0 auto;
            max-width: 90%;
            animation: fadeIn 0.4s ease-in-out;
        }
        
        .conflict-warning strong {
            color: #007B8A;
        }
        
        .conflict-warning p {
            margin: 0.8rem 0;
            color: #555;
        }
        
        .conflict-choices {
            display: flex;
            gap: 1.2rem;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 1.2rem;
        }

        .menu-rename-form .menu-rename-label {
            display: block;
            font-size: 0.82rem;
            color: #808080;
            margin: 0.75rem 0 0.35rem;
            text-align: left;
        }

        .menu-rename-form #menu-libelle-input {
            width: 100%;
            box-sizing: border-box;
            padding: 0.55rem 0.75rem;
            border: 1px solid #007B8A;
            border-radius: 10px;
            font-size: 0.95rem;
            background: #fff;
            color: #444;
        }

        .menu-rename-form #menu-libelle-input:focus {
            outline: none;
            background: #F6F5F2;
        }

        .menu-rename-dates {
            font-size: 0.85rem;
            color: #808080;
            margin: 0.5rem 0 0;
        }
        
        /* ===== Préparation – style admin ===== */
        /* Respiration globale avant le footer */
        .dashboard-prep {
          padding-bottom: 4rem; /* voire 5rem si footer visuellement lourd */
        }

        .dashboard-prep h3 {
          margin-bottom: 0.5rem;
          padding-bottom: 2rem;
        }
        
        .prep-categorie h4 {
          margin: 1.2rem 0 0.4rem;
          font-size: 1.05rem;
          font-weight: 600;
        }
        
        .prep-jour summary {
          font-weight: 600;
          margin: 0.4rem 0;
          cursor: pointer;
        }
        
        /* Table compacte */
        .prep-table {
          width: 100%;
          border-collapse: collapse;
          table-layout: fixed;
          font-size: 0.9rem;
          margin-bottom: 0.5rem;
        }
        
        .prep-table thead th {
          text-align: left;
          font-weight: 600;
          padding: 6px 8px;
          border-bottom: 1px solid #007B8A;
          white-space: nowrap;
          line-height: 1.25;
        }
        
        .prep-table td {
          padding: 4px 6px;
          vertical-align: top;
          border-bottom: 1px solid #eeee;
          line-height: 1.25;
        }
        
        /* Colonnes bien cadrées */
        .prep-table th:nth-child(1),
        .prep-table td:nth-child(1) {
          width: 75px; /* Jour */
        }
        
        .prep-table th:nth-child(2),
        .prep-table td:nth-child(2) {
          width: 36px; /* checkbox */
        }
        
        .prep-table th:nth-child(3),
        .prep-table td:nth-child(3) {
          width: 150px; /* Quantité */
        }
        
        .prep-table th:nth-child(4),
        .prep-table td:nth-child(4) {
          width: auto; /* Préparation (flexible) */
        }
        
        .prep-table th:nth-child(5),
        .prep-table td:nth-child(5) {
          width: 200px; /* Conservation */
        }
        
        /* Checkbox discrète */
        .prep-check {
          transform: scale(0.9);
          margin-top: 2px;
        }
        
        /* Réduction du vide visuel */
        .prep-table tr:last-child td {
          border-bottom: none;
        }
        
        /* Détails <details> plus propres */
        .prep-jour {
          margin-bottom: 0.6rem;
        }
        
        /* Dernière table du dernier jour */
        .prep-categorie:last-child {
          margin-bottom: 1.5rem;
        }
        
        .prep-jour:last-child {
          margin-bottom: 0.8rem;
        }
        
        /* ===== Détails catégories – flèche à gauche ===== */
        .prep-categorie summary {
          list-style: none;
          cursor: pointer;
          display: flex;
          align-items: center;
          gap: 0.6rem;              /* espace flèche ↔ titre */
          padding: 0.6rem 0;
        }
        
        .prep-categorie summary::-webkit-details-marker {
          display: none;
        }
        
        /* Flèche custom */
        .prep-categorie summary::before {
          content: "▸";
          font-size: 1.1rem;
          color: #007B8A;
          transition: transform 0.2s ease;
          flex-shrink: 0;
        }
        
        /* Flèche ouverte */
        .prep-categorie[open] summary::before {
          transform: rotate(90deg);
        }
        
        /* Titre propre */
        .prep-categorie summary h4 {
          margin: 0;
        }
        
        /* Onglets préparation */
        .prep-tabs {
          display: flex;
          gap: 0.75rem;
          margin-bottom: 1.5rem;
        }
        
        .prep-tab {
          background: #F6F5F2;
          color: #007B8A;              /* texte courant */
          border: 1px solid #007B8A;   /* accent discret */
          border-radius: 999px;
          padding: 0.55rem 1.4rem;
          font-size: 0.95rem;
          font-family: Tahoma, sans-serif;
          font-weight: 500;
          cursor: pointer;
          transition: background 0.2s ease, color 0.2s ease;
        }
        
        /* Hover : accent sarcelle */
        .prep-tab:hover {
          background: #007B8A;
          color: #F6F5F2;
        }
        
        /* Onglet actif */
        .prep-tab.active {
          background: #007B8A;
          color: #F6F5F2;
          cursor: default;
        }
        
        /* Sécurité : pas de variation au hover sur l’actif */
        .prep-tab.active:hover {
          background: #007B8A;
          color: #F6F5F2;
        }
        
        /* Jour passé */
        .prep-jour.jour-termine {
          opacity: 0.55;
        }
        
        /* Empêcher l’interaction */
        .prep-jour.jour-termine summary {
          cursor: default;
        }
        
        /* Badge discret */
        .badge-termine {
          margin-left: .5rem;
          font-size: .7rem;
          padding: .15rem .45rem;
          border-radius: 999px;
          background: #eee;
          color: #666;
        }
        
        /* Hover discret sur toute la ligne */
        .prep-table tbody tr {
          transition: background-color 0.15s ease;
        }
        
        .prep-table tbody tr:hover {
          background-color: rgba(0, 128, 128, 0.06); /* très léger, ajustable */
        }
        
        /* Curseur clair = action possible */
        .prep-table tbody tr:hover {
          cursor: pointer;
        }
        
        /* Agrandir légèrement la zone cliquable de la checkbox */
        .prep-table .prep-check {
          cursor: pointer;
        }
        
        /* Liste d'épicerie */
        .is-done {
          opacity: 0.5;
          text-decoration: line-through;
        }
        
        .liste-epicerie-wrapper {
          max-width: 820px;
          min-height: 600px;
          padding-left: 2.5rem;
        }

        
        /* Titres principaux */
        .liste-epicerie-wrapper h4 {
          font-weight: 600;
          margin-top: 2rem;
          padding-bottom: 0.25rem;
          border-bottom: 1px solid rgba(0,0,0,0.1);
        }
        
        /* Rayon */
        .rayon summary {
          font-weight: 600;
          cursor: pointer;
          margin: 0.5rem 0 0.2rem;
        }
        
        /* Ingrédients */
        .rayon li {
          margin: 0.25rem 0;
          font-weight: 500;
        }
        
        .rayon li label {
          display: flex;
          align-items: center;
          gap: 0.6rem;
        }
        
        .rayon ul {
          list-style: none;
          padding-left: 1.5rem;
        }
        
        .ingredient {
          color: #007B8A; /* gris WP */
          font-weight: 400;
        }
        
        .quantite {
          color: rgba(68,68,68,0.65);
          font-size: 0.95em;
        }
        
        
    /* ===== Liste d'épicerie ===== */
    .collapsible {
        background-color: #f6f6f6;
        color: #007B8A;
        cursor: pointer;
        padding: 10px;
        margin-top: 10px;
        font-weight: bold;
        border: 1px solid #ccc;
    }
    .content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
        padding: 10px;
        background: #fff;
        border: 1px solid #ccc;
        border-top: none;
    }
    
    /* état ouvert */
    .content.is-open {
        max-height: 1000px; /* valeur large mais stable */
    }
 
    /* Ajout manuel */
    .ajout-manuel-liste {
        display: flex;
        align-items: center;
        gap: 10px;
        max-width: 400px;
        margin-bottom: 24px;
    }

    .ajout-manuel-liste input {
        flex: 1;
        min-width: 0;
    }

    .ajout-manuel-liste button {
        white-space: nowrap;
    }
    
    .table-ingredients {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 1rem;
        font-size: 15px;
        table-layout: fixed;
    }
    .table-ingredients th, .table-ingredients td {
        padding: 6px 8px;
        border-bottom: 1px solid #ddd;
    }
    .table-ingredients th:first-child,
    .table-ingredients td:first-child {
        width: 40px;
        text-align: center;
    }
    .table-ingredients th:nth-child(2),
    .table-ingredients td:nth-child(2) {
        width: 65%;
        text-align: left;
    }
    .table-ingredients th:nth-child(3),
    .table-ingredients td:nth-child(3) {
        width: 25%;
        text-align: right;
    }

            .menu-card-body::before {
                content: "";
                position: absolute;
                inset: 0;
                background-image: url('https://weeknprep.ca/wp-content/uploads/2025/05/Logo_WeekNPrep-2couleurs.png');
                background-repeat: no-repeat;
                background-position: center;
                background-size: 60%;
                opacity: 0.10;
                pointer-events: none;
                z-index: 0;
            }

            .menu-card-body > * {
                position: relative;
                z-index: 1;
            }

.site-footer {
    min-height: 200px;
}

        /* =========================
        RESPONSIVE GLOBAL
        ========================= */
        @media (max-width: 1024px) {
            .menu-cards {
                grid-template-columns: repeat(2, 1fr);
                align-items: start;
            }

            .menu-card {
                height: auto;
                max-width: none;
            }

            .menu-card-body {
                flex: 0 0 auto;
            }
        }

        @media (max-width: 768px) {

            #modifier-panel {
                width: 100%;
                right: -100%;
            }

            #modifier-panel.open {
                right: 0;
            }

            .recette-thumb {
                width: 55px;
                height: 55px;
            }

            .panel-content {
                padding: 1rem;
            }

            .recette-item {
                padding: 0.7rem;
            }
        }

        @media (max-width: 550px) {
            .menu-cards {
                grid-template-columns: 1fr;
            }
        }
        
        @media print {
            input[type="checkbox"] {
                display: none;
            }
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-8px); }
            to   { opacity: 1; transform: translateY(0); }
        }

    /* =========================
    PREP MOBILE
    ========================= */

    @media (max-width: 768px) {

    .prep-table thead {
        display: none;
    }

    .prep-table,
    .prep-table tbody {
        display: block;
    }

    .prep-ingredient-row {
        display: block;
        width: 100%;
        margin-top: 2rem;
    }

    .prep-ingredient-row td {
        display: block;
        width: 100%;
        min-width: 100%;
        padding: 0;
        border: none;
        font-size: 1.1rem;
        color: #007B8A;
    }

    .prep-ligne-jour {
        display: block;

        margin-top: 1rem;
        padding: 1rem;

        border-radius: 14px;
        background: #fff;

        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

    .prep-ligne-jour td {
        display: block;

        width: 100%;
        padding: 0.35rem 0;

        border: none;
    }

    .prep-ligne-jour td[data-label]::before {
        content: attr(data-label);

        display: block;

        margin-bottom: 0.2rem;

        font-size: 0.8rem;
        font-weight: 600;
        color: #007B8A;

        letter-spacing: 0.03em;
    }

    .prep-ligne-jour td:first-child {
        font-size: 1rem;
        font-weight: 700;
        color: #007B8A;
    }

    .prep-check {
        margin-bottom: 0.5rem;
    }
}

    /* =========================
    PREP SOIR MOBILE
    ========================= */

    @media (max-width: 768px) {

    .prep-ligne-soir {
        display: block;

        margin-top: 1rem;
        padding: 1rem;

        border-radius: 14px;
        background: #fff;

        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

    .prep-ligne-soir td {
        display: block;

        width: 100%;
        padding: 0.35rem 0;

        border: none;

        word-break: normal !important;
        overflow-wrap: normal !important;
        white-space: normal !important;
    }

    .prep-ligne-soir td[data-label]::before {
        content: attr(data-label);

        display: block;
        width: 100%;

        margin-bottom: 0.2rem;

        font-size: 0.8rem;
        font-weight: 600;
        color: #007B8A;

        letter-spacing: 0.03em;

        word-break: normal !important;
        overflow-wrap: normal !important;
        white-space: normal !important;
    }

    .prep-ligne-soir,
    .prep-ligne-jour {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }

    .prep-table,
    .prep-table tbody {
        width: 100%;
    }

    .prep-ligne-soir,
    .prep-ligne-jour {
        display: block;
        width: 100%;
    }

    .prep-ligne-soir td,
    .prep-ligne-jour td {
        display: block;
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .prep-table tr {
        display: block;
        width: 100%;
    }

    .prep-tabs {
        display: flex;
        flex-direction: column;
        align-items: center;

        gap: 0.7rem;
    }

    .prep-tab {
        width: 100%;
        max-width: 260px;

        padding: 0.7rem 1rem;

        border-radius: 30px;

        font-size: 0.95rem;
        line-height: 1.1;

        display: flex;
        align-items: center;
        justify-content: center;

        text-align: center;
    }
}
