/* =============================================================================
   mlrecettes.css - compléments propres aux recettes
   Sel des Coteaux · v1.0.0
   Chargée APRÈS mlpublications.css (variables --sdc-*, sections, sidebar, cartes).
   Nouvelles classes, toutes en ml-rec-* :
     ml-rec, ml-rec-cat, ml-rec-fiche, ml-rec-fiche__item, ml-rec-ingredients,
     ml-rec-ingredients__liste, ml-rec-etapes, ml-rec-etapes__liste, ml-rec-etape,
     ml-rec-etape__nom, ml-rec-etape__texte, ml-rec-astuce, ml-rec-filtres, ml-rec-filtre
   ============================================================================= */

/* ── FICHE : temps, rendement, sel ─────────────────────────────────────────── */
.ml-rec-fiche {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 30px;
    padding: 0;
    background: var(--sdc-creme);
    border: 1px solid var(--sdc-gris-200);
}
.ml-rec-fiche__item {
    flex: 1 1 110px;
    padding: 12px 16px;
    border-right: 1px solid var(--sdc-gris-200);
}
.ml-rec-fiche__item:last-child { border-right: none; }
.ml-rec-fiche dt {
    margin: 0 0 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--sdc-gris-500);
}
.ml-rec-fiche dd {
    margin: 0;
    font-family: var(--sdc-titre);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--sdc-gris-900);
}
.ml-rec-fiche dd a { color: var(--sdc-bordeaux); text-decoration: none; }
.ml-rec-fiche dd a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── INGRÉDIENTS ───────────────────────────────────────────────────────────── */
.ml-rec-ingredients { display: flow-root; }
.ml-rec-ingredients__liste {
    margin: 0;
    padding: 0;
    list-style: none;
}
.ml-rec-ingredients__liste li {
    position: relative;
    padding: 8px 0 8px 22px;
    border-bottom: 1px dashed var(--sdc-gris-200);
    font-size: 15.5px;
    line-height: 1.5;
    color: var(--sdc-gris-700);
}
.ml-rec-ingredients__liste li:last-child { border-bottom: none; }
/* Neutralise la puce ajoutée par le thème sur les listes de contenu (sinon puce en double) */
.ml-rec .ml-rec-ingredients__liste li { list-style: none !important; }
.ml-rec .ml-rec-ingredients__liste li::marker { content: none; }
.ml-rec-ingredients__liste li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 15px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sdc-bordeaux);
}

/* ── ÉTAPES ────────────────────────────────────────────────────────────────── */
.ml-rec-etapes__liste {
    margin: 0;
    padding: 0;
    list-style: none;
}
.ml-rec-etape {
    position: relative;
    margin: 0 0 18px;
    padding: 0 0 0 52px;
    min-height: 36px;
}
/* Numéro porté par data-n : numérotation continue même sur plusieurs sections Étapes */
.ml-rec-etape::before {
    content: attr(data-n);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    background: var(--sdc-bordeaux-pale);
    text-align: center;
    font-family: var(--sdc-titre);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sdc-bordeaux);
}
.ml-rec-etape__nom {
    display: block;
    margin: 6px 0 4px;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--sdc-gris-900);
}
.ml-rec-etape__texte { font-size: 15.5px; line-height: 1.7; color: var(--sdc-gris-700); }
.ml-rec-etape__texte p { margin: 0 0 .6em; }
.ml-rec-etape__texte p:last-child { margin-bottom: 0; }

/* Astuce sous la liste (ex : « ne pas saler avant la cuisson ») */
.ml-rec-astuce {
    margin: 8px 0 0;
    padding: 12px 16px;
    border-left: 3px solid var(--sdc-bordeaux);
    background: var(--sdc-bordeaux-pale);
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--sdc-gris-900);
}
.ml-rec-astuce p { margin: 0 0 .5em; }
.ml-rec-astuce p:last-child { margin-bottom: 0; }

/* ── PAGE CATÉGORIE : filtre par sel + appel à l'action ────────────────────── */
.ml-rec-filtres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
}
.ml-pub .ml-rec-filtre {
    padding: 7px 16px;
    background: #fff;
    border: 1px solid var(--sdc-gris-200);
    border-radius: 999px;
    font-family: var(--sdc-texte);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--sdc-gris-700);
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.ml-pub .ml-rec-filtre:hover { border-color: var(--sdc-bordeaux); color: var(--sdc-bordeaux); }
.ml-pub .ml-rec-filtre.is-actif { background: var(--sdc-bordeaux); border-color: var(--sdc-bordeaux); color: #fff; }
.ml-rec-cat .ml-cat__card[hidden] { display: none; }
.ml-rec-cat .ml-pub-cta { margin-top: 32px; }

/* ── SIDEBAR : bouton « Voir le sel » lisible (le thème recolore les liens du contenu) ── */
.ml-rec .ml-pub-sidebar .ml-pub-cta__btn,
.ml-rec .ml-pub-sidebar .ml-pub-cta__btn:visited,
.ml-rec .ml-pub-sidebar .ml-pub-cta__btn:hover,
.ml-rec .ml-pub-sidebar .ml-pub-cta__btn:focus {
    display: block;
    padding: 10px 14px;
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
}
.ml-rec .ml-pub-sidebar .ml-pub-cta__btn:hover { background: var(--sdc-bordeaux-fonce); }

/* ── SIDEBAR : « Dans cette recette » et « Autres recettes » alignés à gauche (le thème justifie le texte) ── */
.ml-rec .ml-pub-sidebar .ml-pub-toc a,
.ml-rec .ml-pub-sidebar .ml-pub-autres__titre {
    text-align: left !important;
    hyphens: none;
}

@media (max-width: 767px) {
    .ml-rec-fiche__item { flex-basis: 45%; border-right: none; border-bottom: 1px solid var(--sdc-gris-200); }
    .ml-rec-etape { padding-left: 46px; }
}
