/* /ma-semaine en longue page (8 nov. 2026, plans validés par Adib) : préfixe sl-. Chargée après features-longue.css
   et da.css (les pièces ms- des menus y restent). Fond blanc et boîtes arrondies, jamais deux boîtes de suite. */

/* ---- 01 · les trois questions ---- */
.fl .fl-tete + .sl-quiz { margin-top: 0; }
.sl-quiz { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .75fr) minmax(0, 1.05fr); gap: 20px; align-items: stretch; }
.sl-quiz__q { margin: 0; padding: 22px; border: 0; border-radius: 20px; background: #F2F0EB; min-width: 0; }
.sl-quiz__q legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 0; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 17px; line-height: 1.3; color: #111827; }
.sl-quiz__q legend span { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: #111827; color: #fff; font-size: 13px; }
.sl-choix { clear: both; display: grid; gap: 10px; }
.sl-choix--trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sl-choix--deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sl-choix label { display: flex; cursor: pointer; }
.sl-choix input { position: absolute; opacity: 0; pointer-events: none; }
.sl-carte { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; background: #fff; transition: background-color .15s, color .15s, transform .15s; }
.sl-carte b { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 15px; line-height: 1.25; color: #111827; }
.sl-carte small { font-size: 13px; line-height: 1.35; color: #4B5563; }
.sl-carte__icone { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 4px; border-radius: 10px; background: #ECFDF5; color: #047857; }
.sl-carte__icone svg { width: 22px; height: 22px; }
.sl-carte--enseigne { align-items: center; justify-content: center; gap: 8px; text-align: center; }
.sl-carte--enseigne img { width: auto; height: 34px; max-width: 100%; object-fit: contain; }
.sl-choix label:hover .sl-carte { transform: translateY(-2px); }
.sl-choix input:checked + .sl-carte { background: #111827; }
.sl-choix input:checked + .sl-carte b { color: #fff; }
.sl-choix input:checked + .sl-carte small { color: rgba(255, 255, 255, .78); }
.sl-choix input:checked + .sl-carte .sl-carte__icone { background: #047857; color: #fff; }
.sl-choix input:checked + .sl-carte--enseigne { background: #fff; box-shadow: inset 0 0 0 3px #111827; }
.sl-choix input:checked + .sl-carte--enseigne b { color: #111827; }
.sl-choix input:focus-visible + .sl-carte { outline: 3px solid #047857; outline-offset: 2px; }
.sl-foyer { clear: both; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 14px; background: #fff; }
.sl-foyer button { flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #F2F0EB; color: #111827; font-size: 24px; font-weight: 800; line-height: 1; cursor: pointer; transition: background-color .15s, color .15s; }
.sl-foyer button:hover { background: #047857; color: #fff; }
.sl-foyer p { margin: 0; text-align: center; font-size: 14px; font-weight: 600; color: #4B5563; }
.sl-foyer output { display: block; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 40px; line-height: 1; color: #111827; }
.sl-quiz__note { margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; color: #4B5563; }
.sl-quiz__pied { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 20px; }
.sl-quiz__aide { margin: 0; font-size: 14px; color: #4B5563; }
.sl-quiz__aide.est-alerte { color: #B91C1C; font-weight: 700; }
.sl-quiz__pied .ec-bouton { border: 0; cursor: pointer; font-family: 'Montserrat', sans-serif; }

/* ---- 02 · les menus de la semaine, dans l'émeraude ---- */
.sl-table-glisse { overflow-x: auto; scrollbar-width: none; border-radius: 18px; background: #fff; }
.sl-table-glisse::-webkit-scrollbar { display: none; }
.sl-table { width: 100%; border-collapse: collapse; font-family: 'Montserrat', sans-serif; color: #111827; }
.sl-table th, .sl-table td { padding: 14px 16px; text-align: left; background: linear-gradient(#E5E7EB, #E5E7EB) bottom / 100% 1px no-repeat; }
.sl-table tbody tr:last-child th, .sl-table tbody tr:last-child td { background: none; }
.sl-table thead th { font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #4B5563; }
.sl-table tbody th { font-weight: 800; font-size: 15.5px; }
.sl-table td a { display: inline-flex; align-items: baseline; gap: 2px; padding: 6px 10px; border-radius: 8px; background: #F2F0EB; font-weight: 800; font-size: 15.5px; color: #111827; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.sl-table td a:hover { background: #047857; color: #fff; }
.sl-table td a.sl-table__bas { background: #FACC15; }
.sl-table td a.sl-table__bas:hover { background: #111827; color: #fff; }
.sl-table td a.sl-table__passe { color: #4B5563; }
.sl-table sup { font-size: 11px; }
.sl-table__vide { font-size: 13px; color: #6B7280; }
.sl-table__note { margin: 14px 0 0; font-size: 14px; color: rgba(255, 255, 255, .88); }

/* ---- 03 · comment Éco bâtit ces menus ---- */
.sl-etapes { list-style: none; counter-reset: sl; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; }
.sl-etapes li { counter-increment: sl; margin: 0; padding: 24px 0 0; background: linear-gradient(#111827, #111827) top / 100% 2px no-repeat; }
.sl-etapes li::before { content: counter(sl); display: block; margin-bottom: 10px; font-family: 'Caveat', cursive; font-weight: 700; font-size: 52px; line-height: .8; color: #047857; }
.sl-etapes b { display: block; margin-bottom: 8px; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 19px; letter-spacing: -.02em; color: #111827; }
.sl-etapes p { margin: 0; font-size: 15.5px; line-height: 1.6; color: #4B5563; }

/* ---- 05 · Pro, dans le sable ---- */
.sl-pro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.sl-pro__texte { margin: 22px 0 0; font-size: 17px; line-height: 1.6; color: #374151; }
.sl-pro__semaine { margin: 18px 0 0; font-size: 15px; line-height: 1.5; }
.sl-pro__semaine a { color: #111827; text-decoration: none; }
.sl-pro__semaine a:hover b { color: #047857; }
.sl-pro__liste { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.sl-pro__liste li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 16px 18px; border-radius: 16px; background: #fff; font-size: 16px; line-height: 1.4; color: #374151; }
.sl-pro__liste li::before { content: "✓"; flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #047857; color: #fff; font-size: 14px; font-weight: 900; }
.sl-pro__liste b { color: #111827; }

/* ---- les menus : reçu (émeraude), jours 4 à 7 (ciel), garder, autres menus (sable) ---- */
.sl-recu { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.sl-recu__texte > p:not(.ec-surtitre):not(.fl-actions) { margin: 22px 0 0; font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .88); }
.sl-recu__texte strong { color: #fff; }
.sl-jours li { background: #fff !important; }
.fl-boite--ciel .ms-suite__jours + .fl-actions { margin-top: 28px; }
.sl-garder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.sl-garder__texte { margin: 22px 0 0; font-size: 17px; line-height: 1.65; color: #4B5563; }
.sl-garder .ec-bouton { border: 0; cursor: pointer; font-family: 'Montserrat', sans-serif; }
.fl .ms-foyer { align-self: end; }
.fl .ms-foyer__choix a { background: #F2F0EB; }
.fl .ms-foyer__choix a[aria-current] { background: #047857; color: #fff; }
.fl .ms-foyer__titre { color: #4B5563; }
.fl #repas .ms-repas { background: #F7F6F2; }
.fl #repas .ms-repas__moment, .fl #repas .ms-repas__nutri, .fl #repas .ms-jour__tete small { color: #4B5563; }   /* AA sur #F7F6F2 */
.fl .fl-boite--emeraude .ec-surtitre { color: #D1FAE5; }   /* AA sur l'émeraude : le petit texte mono passe à 5,0 */
.fl #liste .ms-liste__pied { margin-top: 10px; }
.sl-autres__titre { margin: 0 0 14px; font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #4B5563; }
.sl-tuiles + .sl-autres__titre { margin-top: 34px; }
.sl-tuiles { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; }
.sl-tuiles--trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sl-tuiles li { display: flex; margin: 0; }
.sl-tuile { position: relative; flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; border-radius: 18px; background: #fff; color: #111827; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.sl-tuile:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(17, 24, 39, .12); }
.sl-tuile small { font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #4B5563; }
.sl-tuile b { padding-right: 22px; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 17px; line-height: 1.25; letter-spacing: -.02em; }
.sl-tuile__prix { align-self: flex-start; margin-top: auto; padding: 3px 9px 4px; border-radius: 7px; background: #FACC15; font-weight: 900; font-size: 15px; }
.sl-tuile__prix small { font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; color: #111827; }
.sl-tuile i { position: absolute; top: 16px; right: 16px; font-style: normal; font-weight: 800; color: #047857; }

@media (max-width: 1023px) {
  .sl-quiz { grid-template-columns: 1fr; }
  .sl-etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .sl-pro, .sl-recu, .sl-garder { grid-template-columns: 1fr; }
  .sl-recu .ms-recu { justify-self: start; }
  .sl-tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sl-choix--trois { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sl-quiz__q { padding: 18px 16px; }
  .sl-quiz__pied { justify-content: stretch; }
  .sl-quiz__pied .ec-bouton { width: 100%; justify-content: center; }
  .fl-boite--emeraude .sl-table-glisse { margin: 0 -8px; }
  .sl-table { table-layout: fixed; }
  .sl-table th, .sl-table td { padding: 9px 2px; text-align: center; }
  .sl-table th:first-child, .sl-table td:first-child { width: 27%; padding-left: 10px; text-align: left; }
  .sl-table thead th { font-size: 9.5px; letter-spacing: .02em; }
  .sl-table thead th:first-child { font-size: 0; }
  .sl-table tbody th { font-size: 12.5px; line-height: 1.25; hyphens: auto; }
  .sl-table td a { padding: 5px 4px; font-size: 12px; letter-spacing: -.02em; }
  .sl-etapes { grid-template-columns: 1fr; }
  .sl-tuiles, .sl-tuiles--trois { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sl-tuile { padding: 14px 14px 16px; }
  .sl-tuile b { font-size: 15px; }
  .sl-tuile__prix { font-size: 14px; }
  .fl .fl-tete .ms-foyer { align-self: start; }
}
