/*
 * menu-gratuit — palette strictement identique au TDB :
 * #007B8A (teal), #F6F5F2 (greige), #808080 (texte), #ddd (bordure), #fff (cartes)
 */

.wnp-mg-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem 2.5rem;
    font-family: Tahoma, sans-serif;
    color: #808080;
}

.wnp-mg-section {
    margin-top: 1.5rem;
}

.wnp-mg-section-head {
    text-align: center;
    margin-bottom: 1.25rem;
}

.wnp-mg-section-title {
    margin: 0 0 0.35rem;
    font-family: "Book Antiqua", serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #007B8A;
}

.wnp-mg-section-title--sm {
    font-size: 1.35rem;
}

.wnp-mg-section-sub {
    margin: 0.35rem 0 0;
    font-size: 0.92rem;
    color: #808080;
}

/* Dates — titre de section du menu */
.wnp-mg-dates-label {
    margin: 0;
    font-family: "Book Antiqua", serif;
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.3;
    color: #007B8A;
}

.wnp-mg-note-text strong {
    font-weight: 700;
    color: inherit;
}

/* Cartes — copie visuelle exacte du TDB (classes propres, pas .menu-card) */
.wnp-mg-menu-zone {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.wnp-mg-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(200px, 260px));
    justify-content: center;
    align-items: stretch;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wnp-mg-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 0.25s ease, box-shadow 0.15s ease;
}

.wnp-mg-card-body {
    flex: 1 1 auto;
    padding: 0.85rem 0.9rem 0.55rem;
}

.wnp-mg-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-mg-menu-zone .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;
}

.wnp-mg-card-media {
    flex: 0 0 auto;
    height: 140px;
    overflow: hidden;
    border-radius: 0 0 19px 19px;
    background: #f0efea;
}

.wnp-mg-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.wnp-mg-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.wnp-mg-card h4,
.wnp-mg-card h4.wnp-mg-card-jour {
    margin: 0 0 0.6rem;
    padding: 0;
    color: #007B8A;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: "Book Antiqua", serif;
    line-height: 1.3;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.wnp-mg-card-jour .wnp-spec-badge {
    margin-left: 0;
    font-size: 0.7rem;
    height: 1.4rem;
    padding: 0 0.5rem;
}

.wnp-mg-card .wnp-mg-recette-nom,
.wnp-mg-card p.wnp-mg-recette-nom {
    margin: 0 !important;
    margin-block: 0 !important;
    padding: 0;
    padding-right: 18px;
    color: #808080;
    line-height: 1.25;
    font-size: 0.95rem;
    font-family: Tahoma, sans-serif;
}

.wnp-mg-card .wnp-mg-recette-nom + .wnp-mg-recette-nom {
    margin-top: 0.15rem !important;
}

.wnp-mg-recette-lien {
    color: #007B8A;
    font-weight: 400;
    text-decoration: none;
}

.wnp-mg-recette-lien:hover {
    text-decoration: underline;
}

.wnp-mg-plat-lock {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    margin-left: 0.2rem;
    vertical-align: 0.05rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c07820'%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;
    opacity: 0.85;
}

.wnp-mg-recette-nom--vide em {
    color: #808080;
    font-size: 0.9rem;
    opacity: 0.75;
}

.wnp-mg-note {
    margin: 1.5rem auto 0;
    max-width: 720px;
    text-align: center;
    color: #808080;
}

.wnp-mg-note-title {
    margin: 0 0 0.45rem;
    font-family: "Book Antiqua", serif;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
    color: #007B8A;
}

.wnp-mg-note-text {
    margin: 0 0 1.1rem;
    font-size: 0.95rem;
    line-height: 1.65;
}

.wnp-mg-note-btn {
    display: inline-block;
    margin-top: 0.15rem;
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
    padding: 0.7rem 1.5rem;
}

.wnp-mg-trust {
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #808080;
    opacity: 0.9;
}

.wnp-mg-empty {
    text-align: center;
    padding: 2rem 1rem;
    background: #F6F5F2;
    border-radius: 16px;
    color: #808080;
}

/* Prep aperçu — calqué sur le TDB (tdb-style.css chargé en amont) */
.wnp-mg-section--prep {
    padding: 1.5rem 1.25rem;
    background: #F6F5F2;
    border: 1px solid #ddd;
    border-radius: 20px;
}

.wnp-mg-prep-zone {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 1rem 1.15rem 1.5rem;
}

.wnp-mg-prep-zone.dashboard-prep {
    padding-bottom: 1.5rem;
}

.wnp-mg-prep-heading {
    margin: 0 0 0.35rem;
    font-family: "Book Antiqua", serif;
    font-size: 1.2rem;
    color: #007B8A;
}

.wnp-mg-prep-total-line {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: #808080;
}

.wnp-mg-prep-note {
    font-size: 0.82rem;
    color: #808080;
    opacity: 0.85;
}

.wnp-mg-prep-weekend {
    margin-bottom: 1.5rem;
}

.wnp-mg-prep-soir {
    padding-top: 0.5rem;
    border-top: 1px solid #ddd;
}

.wnp-mg-prep-cta {
    margin: 0.65rem 0 0.85rem;
    text-align: center;
}

.wnp-mg-btn--prep {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    font-weight: 500;
}

.wnp-mg-prep-check--demo {
    pointer-events: none;
    opacity: 0.65;
}

/* Table prep — sans lignes, hover discret comme le TDB */
.wnp-mg-wrap .prep-table,
.wnp-mg-wrap .prep-table thead,
.wnp-mg-wrap .prep-table tbody,
.wnp-mg-wrap .prep-table tr,
.wnp-mg-wrap .prep-table th,
.wnp-mg-wrap .prep-table td {
    border: none !important;
    box-shadow: none;
}

.wnp-mg-wrap .prep-table tbody tr.prep-ligne-jour,
.wnp-mg-wrap .prep-table tbody tr.prep-ligne-soir {
    transition: background-color 0.15s ease;
}

.wnp-mg-wrap .prep-table tbody tr.prep-ligne-jour:hover,
.wnp-mg-wrap .prep-table tbody tr.prep-ligne-soir:hover {
    background-color: rgba(0, 123, 138, 0.06);
}

.wnp-mg-wrap .prep-jour summary {
    font-weight: 600;
    cursor: pointer;
    color: #007B8A;
}

.wnp-mg-wrap .prep-jour h4 {
    margin: 0.75rem 0 0.35rem;
    font-size: 1rem;
    color: #007B8A;
}

/* Kit PDF — capture courriel */
.wnp-mg-section--kit {
    text-align: center;
    padding: 2rem 1.25rem;
    background: #F6F5F2;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-top: 2rem;
}

.wnp-mg-kit-title {
    margin-bottom: 0.85rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.35;
}

.wnp-mg-kit-text {
    margin: 0 auto 1.35rem;
    max-width: 620px;
    line-height: 1.55;
    color: #808080;
    font-size: 0.95rem;
}

.wnp-mg-kit-form {
    max-width: 640px;
    margin: 0 auto;
}

.wnp-mg-kit-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    align-items: center;
}

.wnp-mg-kit-input--prenom {
    flex: 0 1 160px;
}

.wnp-mg-kit-input--email {
    flex: 1 1 220px;
}

.wnp-mg-kit-input {
    min-width: 0;
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 2.75rem;
    box-sizing: border-box;
    padding: 0.6rem 0.85rem;
    border: 1px solid #007B8A;
    border-radius: 999px;
    font-size: 0.95rem;
    font-family: Tahoma, sans-serif;
    color: #444;
    background: #fff;
    line-height: 1.35;
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
}

.wnp-mg-kit-input::placeholder {
    color: #808080;
    opacity: 0.85;
}

.wnp-mg-kit-input:focus {
    outline: none;
    background: #F6F5F2;
    box-shadow: 0 0 0 2px rgba(0, 123, 138, 0.15);
}

.wnp-mg-kit-submit {
    flex: 0 0 auto;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.wnp-mg-kit-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.wnp-mg-kit-feedback {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.wnp-mg-kit-feedback--error {
    color: #b04545;
}

.wnp-mg-kit-feedback--success {
    color: #007B8A;
}

.wnp-mg-section--kit .wnp-mg-trust {
    text-align: center;
    margin-top: 0.9rem;
}

.wnp-mg-section--kit {
    scroll-margin-top: 1.5rem;
}

/* CTA — boutons TDB (legacy, autres sections) */
.wnp-mg-section--cta {
    text-align: center;
    padding: 2rem 1.25rem;
    background: #F6F5F2;
    border-radius: 20px;
    margin-top: 2rem;
}

.wnp-mg-cta-text {
    margin: 0 auto 1.25rem;
    max-width: 560px;
    line-height: 1.55;
    color: #808080;
}

.wnp-mg-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.wnp-mg-btn {
    display: inline-block;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: Tahoma, sans-serif;
    text-decoration: none !important;
    line-height: 1.2;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.wnp-mg-btn--primary {
    background: #007B8A;
    color: #F6F5F2 !important;
    border: 1px solid #007B8A;
}

.wnp-mg-btn--primary:hover {
    background: #F6F5F2;
    color: #007B8A !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.wnp-mg-btn--outline {
    background: transparent;
    color: #007B8A !important;
    border: 1px solid #007B8A;
}

.wnp-mg-btn--outline:hover {
    background: #007B8A;
    color: #F6F5F2 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1024px) {
    .wnp-mg-cards {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
        align-items: start;
    }

    .wnp-mg-card {
        max-width: none;
        height: auto;
    }

    .wnp-mg-card-body {
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .wnp-mg-wrap {
        padding: 0 0.75rem 2rem;
    }

    .wnp-mg-section-title,
    .wnp-mg-section-title--sm {
        font-size: 1.15rem;
    }

    .wnp-mg-section--prep,
    .wnp-mg-section--kit {
        padding: 1.25rem 0.85rem;
    }

    .wnp-mg-prep-zone {
        padding: 0.85rem 0.75rem 1.25rem;
        overflow-x: visible;
    }

    .wnp-mg-wrap .prep-table {
        min-width: 0;
        width: 100%;
    }

    .wnp-mg-kit-title {
        font-size: 1.15rem;
    }

    .wnp-mg-kit-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .wnp-mg-kit-form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .wnp-mg-kit-input,
    .wnp-mg-kit-input--prenom,
    .wnp-mg-kit-input--email {
        flex: 0 0 auto;
        width: 100%;
        height: auto !important;
        max-height: none !important;
    }

    .wnp-mg-kit-submit,
    .wnp-mg-note-btn,
    .wnp-mg-btn--prep {
        width: 100%;
        white-space: normal;
        text-align: center;
    }

    .wnp-mg-note {
        padding: 0 0.25rem;
    }

    .wnp-mg-dates-label {
        font-size: 1.3rem;
    }

    .wnp-mg-note-title {
        font-size: 1.2rem;
    }

    .wnp-mg-note-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 550px) {
    .wnp-mg-cards {
        grid-template-columns: 1fr;
    }

    .wnp-mg-card {
        max-width: none;
    }

    .wnp-mg-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .wnp-mg-btn {
        text-align: center;
    }
}
