/**
 * Livre de recettes — Front-end styles (charte institutionnelle).
 *
 * Design sobre, institutionnel : bleu marine, fond gris très clair, cartes
 * blanches sur fond, police système, pas d'effet décoratif.
 *
 * © Jérôme Riboulet, 2026
 */

/* =================================================================
   Variables (charte)
   ================================================================= */
:root {
    /* Couleurs principales */
    --ldr-primary:       #1a365d;
    --ldr-primary-light: #2b6cb0;
    --ldr-accent:        #e53e3e;

    /* Texte */
    --ldr-text:          #2d3748;
    --ldr-text-light:    #718096;

    /* Fonds */
    --ldr-bg:            #f7fafc;
    --ldr-card-bg:       #ffffff;

    /* Bordures */
    --ldr-border:        #e2e8f0;

    /* Sémantique */
    --ldr-success:       #38a169;
    --ldr-warning:       #d69e2e;
    --ldr-danger:        #e53e3e;

    /* Rayon + ombres */
    --ldr-radius:        12px;
    --ldr-radius-sm:     8px;
    --ldr-shadow:        0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --ldr-shadow-lg:     0 4px 6px rgba(0,0,0,0.07), 0 10px 15px rgba(0,0,0,0.05);
}

/* =================================================================
   Scope global
   ================================================================= */
.ldr-page,
.ldr-recipe,
.ldr-archive,
.ldr-form,
.ldr-shopping-wrap,
.ldr-recipes-wrap,
.ldr-books-grid {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ldr-text);
    line-height: 1.6;
    box-sizing: border-box;
}

.ldr-page *,
.ldr-recipe *,
.ldr-form *,
.ldr-shopping-wrap *,
.ldr-recipes-wrap *,
.ldr-books-grid * { box-sizing: border-box; }

/* =================================================================
   Typographie
   ================================================================= */
.ldr-recipe-title,
.ldr-archive-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ldr-primary);
    line-height: 1.2;
    margin: 0 0 8px;
}

.ldr-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ldr-primary);
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ldr-primary);
}

.ldr-card-title,
.ldr-book-card-title,
.ldr-shopping-title,
.ldr-form-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ldr-text);
    margin: 0 0 6px;
    line-height: 1.3;
}
.ldr-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ldr-primary);
    margin: 0 0 20px;
}
.ldr-shopping-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ldr-primary);
}

/* =================================================================
   Boutons
   ================================================================= */
.ldr-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--ldr-primary);
    color: #fff;
    border: 2px solid var(--ldr-primary);
    border-radius: var(--ldr-radius-sm);
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.ldr-btn:hover {
    background: var(--ldr-primary-light);
    border-color: var(--ldr-primary-light);
    color: #fff;
}
.ldr-btn:disabled, .ldr-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.ldr-btn-primary { /* alias par défaut */ }

.ldr-btn-ghost {
    background: var(--ldr-card-bg);
    color: var(--ldr-text);
    border-color: var(--ldr-border);
}
.ldr-btn-ghost:hover {
    background: #edf2f7;
    border-color: var(--ldr-primary-light);
    color: var(--ldr-text);
}

.ldr-btn-danger {
    background: var(--ldr-card-bg);
    color: var(--ldr-danger);
    border-color: var(--ldr-border);
}
.ldr-btn-danger:hover {
    background: var(--ldr-danger);
    border-color: var(--ldr-danger);
    color: #fff;
}

.ldr-btn .dashicons { width: 16px; height: 16px; font-size: 16px; }

.ldr-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    padding: 0;
    background: var(--ldr-card-bg);
    color: var(--ldr-text-light);
    border: 1px solid var(--ldr-border);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s;
}
.ldr-btn-icon:hover { color: var(--ldr-danger); border-color: var(--ldr-danger); }

/* =================================================================
   Page recette (single)
   ================================================================= */
.ldr-page {
    background: var(--ldr-bg);
    padding: 32px 0;
    min-height: 60vh;
}

.ldr-recipe {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- En-tête avec image miniature --- */
.ldr-recipe-header {
    background: var(--ldr-card-bg);
    border: 1px solid var(--ldr-border);
    border-radius: var(--ldr-radius);
    box-shadow: var(--ldr-shadow);
    padding: 24px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 640px) {
    .ldr-recipe-header { grid-template-columns: 1fr; }
}

.ldr-recipe-image {
    margin: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--ldr-radius-sm);
    overflow: hidden;
    border: 1px solid var(--ldr-border);
    background: var(--ldr-bg);
}
.ldr-recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ldr-recipe-header-no-image .ldr-recipe-header { grid-template-columns: 1fr; }

.ldr-recipe-header-text { min-width: 0; }

.ldr-recipe-books {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.ldr-book-pill {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ldr-primary-light);
    background: #edf2f7;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
}
.ldr-book-pill:hover {
    background: var(--ldr-primary);
    color: #fff;
}

/* --- Bandeau de stats --- */
.ldr-recipe-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.ldr-stat {
    background: var(--ldr-bg);
    border: 1px solid var(--ldr-border);
    border-radius: var(--ldr-radius-sm);
    padding: 10px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}
.ldr-stat-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--ldr-text-light);
}
.ldr-stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ldr-primary);
}

.ldr-stat-portions { align-items: center; }
.ldr-portions-control {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: var(--ldr-card-bg);
    border: 1px solid var(--ldr-border);
    border-radius: 6px;
    padding: 2px;
}
.ldr-portions-minus,
.ldr-portions-plus {
    width: 24px; height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--ldr-primary);
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    border-radius: 4px;
    transition: background 0.2s;
}
.ldr-portions-minus:hover,
.ldr-portions-plus:hover { background: #edf2f7; }
.ldr-portions-input {
    width: 36px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ldr-primary);
    -moz-appearance: textfield;
    font-family: inherit;
}
.ldr-portions-input::-webkit-outer-spin-button,
.ldr-portions-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ldr-portions-suffix {
    font-size: 0.75rem;
    color: var(--ldr-text-light);
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --- Barre d'actions unique (une seule ligne) --- */
.ldr-recipe-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    background: var(--ldr-card-bg);
    border: 1px solid var(--ldr-border);
    border-radius: var(--ldr-radius);
    box-shadow: var(--ldr-shadow);
    padding: 14px 18px;
    margin-bottom: 20px;
}
.ldr-recipe-actions .ldr-btn {
    padding: 8px 14px;
    font-size: 13px;
}
.ldr-recipe-actions .ldr-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* --- Corps : 2 colonnes --- */
.ldr-recipe-body {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: start;
}
@media (max-width: 780px) {
    .ldr-recipe-body { grid-template-columns: 1fr; }
}

.ldr-recipe-ingredients,
.ldr-recipe-steps {
    background: var(--ldr-card-bg);
    border: 1px solid var(--ldr-border);
    border-radius: var(--ldr-radius);
    box-shadow: var(--ldr-shadow);
    padding: 22px 24px;
}
.ldr-recipe-ingredients { position: sticky; top: 24px; }
@media (max-width: 780px) { .ldr-recipe-ingredients { position: static; } }

/* --- Ingrédients --- */
.ldr-ingredients-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ldr-ingredient {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 0;
    border-bottom: 1px solid var(--ldr-border);
    font-size: 0.95rem;
}
.ldr-ingredient:last-child { border-bottom: none; }
.ldr-ing-qty {
    font-weight: 700;
    color: var(--ldr-primary);
    min-width: 44px;
}
.ldr-ing-unit { color: var(--ldr-text-light); font-size: 0.85rem; }
.ldr-ing-name { color: var(--ldr-text); flex: 1; }

/* --- Étapes (une ligne = une étape numérotée) --- */
.ldr-steps-list {
    list-style: none !important;
    counter-reset: ldr-step;
    padding: 0 !important;
    margin: 0 !important;
}
.ldr-steps-list li,
.ldr-step {
    list-style: none !important;
}
.ldr-step:last-child { border-bottom: none !important; margin-bottom: 0 !important; padding-bottom: 4px !important; }
.ldr-step-text { display: block; }
.ldr-step-text p { margin: 0; }
.ldr-step-text p + p { margin-top: 8px; }

/* --- Anti-soulignement (themes agressifs) --- */
.ldr-card-link,
.ldr-card-link:hover,
.ldr-card-link:focus,
.ldr-card-link:visited,
.ldr-book-card,
.ldr-book-card:hover,
.ldr-book-card:focus,
.ldr-book-card:visited,
.ldr-book-pill,
.ldr-book-pill:hover,
.ldr-book-pill:focus,
.ldr-book-pill:visited,
.ldr-pagination a,
.ldr-pagination a:hover,
.ldr-pagination a:focus,
.ldr-recipe-actions a,
.ldr-recipe-actions a:hover {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none;
}

/* --- Notes & source --- */
.ldr-recipe-notes,
.ldr-recipe-source {
    margin-top: 20px;
    padding: 14px 18px;
    background: var(--ldr-bg);
    border-left: 3px solid var(--ldr-primary-light);
    border-radius: var(--ldr-radius-sm);
    font-size: 0.9rem;
    color: var(--ldr-text);
}
.ldr-recipe-notes h2,
.ldr-recipe-source h2 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ldr-primary);
    border: none;
    padding: 0;
    margin: 0 0 6px;
}
.ldr-source-label {
    font-weight: 700;
    color: var(--ldr-primary);
}

.ldr-recipe-copyright {
    text-align: center;
    margin: 32px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--ldr-border);
    font-size: 0.8rem;
    color: var(--ldr-text-light);
}

/* =================================================================
   Archive / grille de recettes
   ================================================================= */
.ldr-recipes-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.ldr-archive { padding: 32px 0; background: var(--ldr-bg); }
.ldr-archive-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 28px;
}
.ldr-archive-title { margin-bottom: 6px; }
.ldr-archive-subtitle {
    color: var(--ldr-text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* --- Barre de recherche --- */
.ldr-search-bar {
    background: var(--ldr-card-bg);
    border: 1px solid var(--ldr-border);
    border-radius: var(--ldr-radius);
    box-shadow: var(--ldr-shadow);
    padding: 18px 22px;
    margin-bottom: 24px;
}
.ldr-search-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.ldr-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
}
.ldr-field-grow { flex: 1 1 220px; }
.ldr-field-full { flex: 1 1 100%; }
.ldr-field .ldr-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--ldr-text-light);
}
.ldr-search-bar input[type="search"],
.ldr-search-bar select {
    padding: 8px 12px;
    border: 2px solid var(--ldr-border);
    border-radius: var(--ldr-radius-sm);
    font-family: inherit;
    font-size: 14px;
    color: var(--ldr-text);
    background: var(--ldr-card-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ldr-search-bar input[type="search"]:focus,
.ldr-search-bar select:focus {
    outline: none;
    border-color: var(--ldr-primary-light);
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}
.ldr-search-bar .ldr-btn { padding: 10px 18px; }

.ldr-no-results {
    text-align: center;
    padding: 50px 20px;
    color: var(--ldr-text-light);
    background: var(--ldr-card-bg);
    border: 1px dashed var(--ldr-border);
    border-radius: var(--ldr-radius);
    font-size: 0.95rem;
}

/* --- Grille de cartes --- */
.ldr-recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.ldr-card {
    background: var(--ldr-card-bg);
    border: 1px solid var(--ldr-border);
    border-radius: var(--ldr-radius);
    box-shadow: var(--ldr-shadow);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}
.ldr-card:hover {
    box-shadow: var(--ldr-shadow-lg);
    transform: translateY(-2px);
}
.ldr-card-link { display: block; color: inherit; text-decoration: none; }
.ldr-card-image {
    aspect-ratio: 4 / 3;
    background: var(--ldr-bg);
    overflow: hidden;
}
.ldr-card-image img { width: 100%; height: 100%; object-fit: cover; }
.ldr-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; height: 100%;
    color: var(--ldr-border);
    font-size: 3rem;
}
.ldr-card-body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.ldr-card-books {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--ldr-primary-light);
    margin-bottom: 4px;
}
.ldr-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ldr-text);
    margin: 0 0 10px;
    line-height: 1.3;
}
.ldr-card-meta {
    list-style: none;
    padding: 0;
    margin: auto 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--ldr-text-light);
}
.ldr-card-meta li { display: flex; align-items: center; gap: 3px; }
.ldr-card-meta .dashicons { font-size: 14px; width: 14px; height: 14px; }

/* --- Pagination --- */
.ldr-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 32px 0 16px;
    flex-wrap: wrap;
}
.ldr-pagination a,
.ldr-pagination span,
.ldr-pagination .ldr-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: var(--ldr-card-bg);
    color: var(--ldr-text);
    border: 1px solid var(--ldr-border);
    border-radius: var(--ldr-radius-sm);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.ldr-pagination a:hover,
.ldr-pagination .ldr-page:hover {
    border-color: var(--ldr-primary-light);
    color: var(--ldr-primary);
}
.ldr-pagination .is-current,
.ldr-pagination .current {
    background: var(--ldr-primary);
    border-color: var(--ldr-primary);
    color: #fff;
}

/* =================================================================
   Grille des livres (taxonomie)
   ================================================================= */
.ldr-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.ldr-book-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--ldr-card-bg);
    border: 1px solid var(--ldr-border);
    border-radius: var(--ldr-radius);
    overflow: hidden;
    box-shadow: var(--ldr-shadow);
    transition: all 0.2s;
}
.ldr-book-card:hover {
    box-shadow: var(--ldr-shadow-lg);
    transform: translateY(-2px);
}
.ldr-book-card .ldr-book-image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--ldr-bg);
}
.ldr-book-card .ldr-book-image img { width: 100%; height: 100%; object-fit: cover; }
.ldr-book-card .ldr-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 2.5rem;
    color: var(--ldr-border);
}
.ldr-book-body { padding: 14px 18px 18px; }
.ldr-book-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ldr-primary);
    margin: 0 0 4px;
}
.ldr-book-count {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ldr-text-light);
    margin: 0;
}

/* =================================================================
   Formulaire de saisie / édition
   ================================================================= */
.ldr-form {
    max-width: 820px;
    margin: 0 auto;
    background: var(--ldr-card-bg);
    border: 1px solid var(--ldr-border);
    border-radius: var(--ldr-radius);
    box-shadow: var(--ldr-shadow);
    padding: 28px 30px;
}
.ldr-form-hint {
    margin: -10px 0 18px;
    padding: 10px 14px;
    background: #bee3f8;
    color: #2a4365;
    border-radius: var(--ldr-radius-sm);
    border-left: 3px solid var(--ldr-primary-light);
    font-size: 0.85rem;
}
.ldr-form-hint a { color: var(--ldr-primary); font-weight: 600; }
.ldr-form .ldr-field { flex: 1 1 180px; }
.ldr-form label:not(.ldr-field) { display: block; margin-bottom: 6px; }
.ldr-form .ldr-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--ldr-text-light);
    display: block;
    margin-bottom: 4px;
}
.ldr-form input[type="text"],
.ldr-form input[type="url"],
.ldr-form input[type="number"],
.ldr-form textarea,
.ldr-form select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--ldr-border);
    border-radius: var(--ldr-radius-sm);
    font-family: inherit;
    font-size: 14px;
    color: var(--ldr-text);
    background: var(--ldr-card-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ldr-form input:focus,
.ldr-form textarea:focus,
.ldr-form select:focus {
    outline: none;
    border-color: var(--ldr-primary-light);
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}
.ldr-form textarea { min-height: 110px; resize: vertical; }

.ldr-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
}
.ldr-form-section {
    border: none;
    padding: 0;
    margin: 20px 0;
}
.ldr-form-section legend {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ldr-primary);
    margin-bottom: 12px;
    padding: 0;
}

/* Form rows responsive collapse */
@media (max-width: 680px) {
    .ldr-form form .ldr-form-grid[style*="grid-template-columns: 2fr"],
    .ldr-form .ldr-form-grid[style*="2fr 1.2fr"] {
        grid-template-columns: 1fr !important;
    }
    .ldr-form .ldr-form-grid[style*="1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}
.ldr-form-ing-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.ldr-form-ing-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr auto;
    gap: 8px;
    align-items: center;
}
@media (max-width: 580px) {
    .ldr-form-ing-row { grid-template-columns: 1fr 1fr auto; }
    .ldr-form-ing-row .ldr-ing-unit { grid-column: span 2; }
}

/* Quick-pick ingrédients du placard */
.ldr-ing-library {
    margin-top: 10px;
    padding: 12px 14px;
    background: var(--ldr-bg);
    border: 1px solid var(--ldr-border);
    border-radius: var(--ldr-radius-sm);
}
.ldr-ing-library-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--ldr-text-light);
    margin: 0 0 8px;
}
.ldr-ing-library-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ldr-ing-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: var(--ldr-card-bg);
    border: 1px solid var(--ldr-border);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--ldr-text);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.ldr-ing-chip:hover {
    background: var(--ldr-primary);
    color: #fff;
    border-color: var(--ldr-primary);
}
.ldr-ing-chip::before { content: '+'; font-weight: 700; }

.ldr-hint { color: var(--ldr-text-light); font-size: 0.75rem; }

.ldr-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--ldr-border);
}
.ldr-form-status { font-size: 0.85rem; color: var(--ldr-text-light); }
.ldr-form-status.is-success { color: var(--ldr-success); font-weight: 600; }
.ldr-form-status.is-error { color: var(--ldr-danger); font-weight: 600; }

.ldr-notice {
    padding: 16px 20px;
    background: #bee3f8;
    color: #2a4365;
    border-radius: var(--ldr-radius-sm);
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =================================================================
   Liste de courses
   ================================================================= */
.ldr-shopping-wrap {
    max-width: 760px;
    margin: 0 auto;
    background: var(--ldr-card-bg);
    border: 1px solid var(--ldr-border);
    border-radius: var(--ldr-radius);
    box-shadow: var(--ldr-shadow);
    padding: 24px 28px;
}
.ldr-shopping-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ldr-primary);
}
.ldr-shopping-tools { display: flex; gap: 6px; }
.ldr-shopping-tools .ldr-btn { padding: 6px 14px; font-size: 0.8rem; }

.ldr-shopping-items {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ldr-shopping-item {
    display: flex;
    align-items: center;
    padding: 10px 4px;
    border-bottom: 1px solid var(--ldr-border);
    gap: 10px;
    transition: opacity 0.2s;
}
.ldr-shopping-item:last-child { border-bottom: none; }
.ldr-shopping-label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}
.ldr-shopping-check {
    width: 18px;
    height: 18px;
    accent-color: var(--ldr-primary);
    cursor: pointer;
    flex-shrink: 0;
}
.ldr-shopping-text {
    flex: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.ldr-shopping-qty { font-weight: 700; color: var(--ldr-primary); }
.ldr-shopping-unit { color: var(--ldr-text-light); font-size: 0.85rem; }
.ldr-shopping-name { color: var(--ldr-text); }
.ldr-shopping-source {
    display: block;
    width: 100%;
    font-size: 0.75rem;
    color: var(--ldr-text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}
.ldr-shopping-item.is-checked .ldr-shopping-text {
    text-decoration: line-through;
    color: var(--ldr-text-light);
    opacity: 0.65;
}
.ldr-shopping-item.is-checked .ldr-shopping-qty { color: var(--ldr-text-light); }
.ldr-shopping-remove {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--ldr-text-light);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
}
.ldr-shopping-remove:hover { background: var(--ldr-danger); color: #fff; }

.ldr-shopping-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--ldr-text-light);
    font-size: 0.95rem;
}

/* =================================================================
   Toast
   ================================================================= */
.ldr-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: var(--ldr-primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--ldr-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--ldr-shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 9999;
}
.ldr-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.ldr-toast.is-success { background: var(--ldr-success); }
.ldr-toast.is-error   { background: var(--ldr-danger); }

/* =================================================================
   Mode édition inline
   ================================================================= */
.ldr-single-main.ldr-edit-mode {
    padding: 32px 0;
    background: var(--ldr-bg);
    min-height: 60vh;
}

/* =================================================================
   Utilitaires + empty
   ================================================================= */
.ldr-empty {
    color: var(--ldr-text-light);
    font-style: italic;
    font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
    .ldr-card, .ldr-book-card { transition: none !important; }
}
