/* Sel des Coteaux - accueil natif (remplace Creative Elements). Chargé par index.tpl. */

.mlh-home { background: #fff; padding: 40px 55px; margin: 0 0 20px; }  /* comme .page-content.page-cms */
.mlh-home h1.mlh-h1 { font-size: 2rem; line-height: 1.25; margin: 10px 0 20px; }
.mlh-home h2 { font-size: 24px; line-height: 1.4; margin: 0 0 16px; }
/* Texte courant : mêmes valeurs que le widget Éditeur de texte de CE (16 px, #232323) */
.mlh-home p, .mlh-faq__answer { font-size: 16px; line-height: 1.35; color: #232323; font-weight: 300; }  /* texte courant en 300 (essai) */
.mlh-home h2 a { color: inherit; }
.mlh-home h3 { font-size: 1.25rem; margin: 0 0 12px; }
.mlh-section { margin: 36px 0; }
.mlh-text p { text-align: justify; margin-bottom: 14px; }

/* Bannières : défilement CSS + flèches, points et lecture auto (script de index.tpl) */
.mlh-slider-wrap { position: relative; }
.mlh-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mlh-slider::-webkit-scrollbar { display: none; }
.mlh-slider a { flex: 0 0 100%; scroll-snap-align: start; display: block; }
.mlh-slider img { width: 100%; height: auto; display: block; }
.mlh-slider__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.75); color: #333; font-size: 26px; line-height: 34px; padding: 0; cursor: pointer; }
.mlh-slider__nav:hover { background: #fff; }
.mlh-slider__nav--prev { left: 10px; }
.mlh-slider__nav--next { right: 10px; }
.mlh-slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.mlh-slider__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #ccc; cursor: pointer; }
.mlh-slider__dots button.is-active { background: #9f1642; }
.mlh-slider-wrap--mobile { display: none; }
@media (max-width: 767.98px) {
  .mlh-slider-wrap--desktop { display: none; }
  .mlh-slider-wrap--mobile { display: block; }
  .mlh-home h1.mlh-h1 { font-size: 1.5rem; }
  .mlh-home { padding: 15px; }
  .mlh-home h2 { font-size: 20px; }
  .mlh-home h2.mlh-lead { display: none; }   /* titre d'introduction masqué sur mobile */
}

/* Produits : la grille .products / .product-miniature vient du thème Classic */
.mlh-products { margin: 0; }

/* Cartes recettes + publications (reprend les règles du widget Articles de CE) */
.mlh-cards .ce-articles, .mlh-recettes .ce-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mlh-cards .ce-article { position: relative; display: flex; flex-direction: column; gap: 20px; }
.mlh-cards .ce-article__thumbnail { display: block; overflow: hidden; }
.mlh-cards .ce-article__thumbnail img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: all 800ms; }
.mlh-cards .ce-article:hover .ce-article__thumbnail img { transform: scale(1.05); }
.mlh-cards .ce-article__title { font-size: 1.1rem; line-height: 1.4; margin: 0 0 8px; }
.mlh-cards .ce-article__title a { color: inherit; }
.mlh-cards .ce-article__excerpt { margin: 0 0 8px; }
.mlh-cards .ce-article__text { display: flex; flex-direction: column; flex: 1 1 auto; }
.mlh-cards .ce-article__cta { display: block; text-align: right; margin-top: auto; padding-top: 8px; }  /* liens alignés en bas des cartes */
.mlh-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.mlh-head h2 { margin: 0; }
.mlh-head__all { white-space: nowrap; text-align: right; }
.mlh-cards .ce-article__link { position: absolute; inset: 0; }
@media (max-width: 991.98px) { .mlh-cards .ce-articles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .mlh-cards .ce-articles { grid-template-columns: 1fr; } }

/* FAQ : accordéon <details> natif */
.mlh-faq__item { border-bottom: 1px solid #ddd; padding: 12px 0; }
.mlh-faq__item summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
.mlh-faq__item summary::-webkit-details-marker { display: none; }
.mlh-faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 0; font-size: 1.3rem; line-height: 1.2; }
.mlh-faq__item[open] summary::after { content: "\2212"; }
.mlh-faq__answer { padding-top: 10px; text-align: justify; }

.mlh-promo img { width: 100%; height: auto; display: block; }

/* Mobile : titre de section sur une ligne, lien « Toutes nos… » dessous */
@media (max-width: 575.98px) {
  .mlh-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .mlh-head h2 { white-space: nowrap; }
  .mlh-head__all { white-space: normal; text-align: left; }
}

/* Demi-gras : Plus Jakarta Sans (chargée dans custom.css) dispose de la graisse 600. */
.mlh-home strong, .mlh-home b,
.mlh-home .ce-article__title, .mlh-home .ce-article__title a,
.mlh-faq__item summary {
  font-weight: 600;
}
.mlh-home .product-title, .mlh-home .product-title a { font-weight: 400; }
