/* 5. Le curseur du trop */

.trop { padding: clamp(14px, 2.4vh, 40px) var(--marge) clamp(40px, 8vh, 90px); background: linear-gradient(var(--haut), var(--bas)); color: var(--encre); }
.trop-tete { display: grid; grid-template-columns: auto minmax(0, 46ch); justify-content: space-between; gap: 6px 40px; align-items: end; }
.trop-tete .adresse { grid-column: 1 / -1; }
.trop-tete h2 { font: 400 clamp(2.3rem, 4.6vw, 4.8rem)/1 Famie, serif; }
.trop-tete p:last-child { font-size: 1.12rem; }

.trop-reglage { position: sticky; top: var(--entete); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 12px calc(-1 * var(--marge)) 16px; padding: 8px var(--marge); background: #2a1d35; color: #fff6e8; }
.trop-reglage label { font-weight: 600; }
.trop-reglage input { flex: 1 1 220px; accent-color: #ffd466; height: 40px; }
.trop-reglage output { min-width: 1.3em; font: 400 2.7rem/1 Famie, serif; text-align: right; color: #ffd466; }
@media (hover: hover) { .trop-reglage button:hover { background: #fff6e8; color: #2a1d35; } }

.trop-corps { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px clamp(20px, 3vw, 48px); align-items: start; }
/* La fenêtre a une hauteur fixe : l'écran d'entrée la couvre, le verdict reste tout près */
.fenetre { position: relative; height: clamp(340px, calc(100svh - 270px), 820px); overflow: hidden auto; container-type: inline-size; border: 10px solid #2a1d35; border-radius: 10px; background: #fff3dc; color: #2a1d35; }
.page-famie { min-height: 100%; display: flex; flex-direction: column; position: relative; --encre: #2a1d35; --papier: #fff6e8; --accent: #a02a3c; --sur-accent: #fff6e8; }
/* La barre passe devant la page : le menu ouvert ne peut pas être recouvert */
.f-barre { position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: center; padding: 10px 22px; }
.f-barre strong { font: 400 1.7rem/1 Famie, serif; }
.f-tiroir { position: relative; z-index: 4; }
#f-menu-liste { position: absolute; right: 0; top: calc(100% + 6px); width: 230px; padding: 8px 16px; background: #fffdf3; border: 2px solid #2a1d35; border-radius: 4px; transform-origin: 100% 0; }
#f-menu-liste li { display: flex; justify-content: space-between; padding: 8px 0; }
.f-accueil { flex: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 22px 22px; background: #f7dfb4; }
.f-miche img { width: min(100%, 36cqw); height: auto; }
.f-heures { font-weight: 600; }
.f-titre { margin: 8px 0 16px; font: 400 clamp(1.5rem, 5cqw, 4.6rem)/1.08 Famie, serif; }
.f-titre .masque, .f-titre .ligne { display: block; }
.f-titre .masque { overflow: clip; padding-bottom: .12em; }
.f-titre .ligne { width: max-content; max-width: 100%; }
.f-etat { margin-top: 10px; font-weight: 600; }
.f-bandeau { overflow: hidden; padding: 9px 0; background: #8c3b0f; color: #fff6e8; font-weight: 600; }
.f-bandeau p { width: max-content; white-space: nowrap; padding-left: 22px; }
.f-pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 20px 22px; }
.souleve { display: grid; gap: 2px; padding: 12px 14px; background: #fffdf3; border-bottom: 4px solid #d9a441; }
.souleve b { font: 400 1.3rem/1.1 Famie, serif; }
.f-prix { font-weight: 600; font-variant-numeric: tabular-nums; }
.f-pied { padding: 14px 22px; background: #2a1d35; color: #fff6e8; }
.f-entree { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 4px; background: #8c3b0f; color: #fff6e8; font: 400 1.4rem/1.2 Famie, serif; }
.f-entree span:first-child { font-size: 4.4rem; line-height: 1; }
.palpite { display: inline-block; }
/* L'appui n'existe dans cette page que si la case est cochée. Il est sur le bouton, la palpitation sur l'enveloppe autour. */
[data-motion="full"] .fenetre:not(.avec-appui) #f-reserver:active { scale: 1; }
.fenetre:not(.avec-appui) #f-reserver:active { background: #2a1d35; border-color: #2a1d35; color: #fff6e8; }
@media (hover: hover) {
  .fenetre:not(.avec-appui) #f-reserver:hover { background: #2a1d35; border-color: #2a1d35; color: #fff6e8; }
  [data-motion="full"] .avec-survol .souleve { transition: translate .25s ease-out; }
  [data-motion="full"] .avec-survol .souleve:hover { translate: 0 -14px; }
}
.bougerait { outline: 3px dashed #a02a3c; outline-offset: -3px; }

.trop-liste { min-width: 0; }
.trop-liste legend { font: 700 1.5rem/1.2 var(--titre); }
.trop-liste li { border-top: 1px solid var(--trait); }
.trop-liste label { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; padding: 7px 0; line-height: 1.22; cursor: pointer; }
.trop-liste input { width: 22px; height: 22px; margin: 0; }
.trop-liste b { font-weight: 600; }
.raison { display: block; font-size: .92rem; color: var(--doux); }
/* La raison n'apparaît que pour ce qui est coché : une ligne, une raison */
.trop-liste label:not(:has(:checked)) .raison { display: none; }
.trop-liste .utile :checked + span b { color: #1d5b3c; }
.trop-liste .inutile :checked + span b { color: var(--accent); }

.verdict { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 40px; align-items: end; margin-top: 14px; padding: 14px 24px; background: #2a1d35; color: #fff6e8; }
.verdict h3 { font: 400 clamp(1.5rem, 2.6vw, 2.3rem)/1.1 Famie, serif; }
.verdict dl { display: flex; flex-wrap: wrap; gap: 8px 34px; }
.verdict dt { font-size: .92rem; }
.verdict dd { font: 400 1.6rem/1.1 Famie, serif; color: #ffd466; }
.mesure-note { grid-column: 1 / -1; font-size: .92rem; }
html:not([data-motion]) #f-menu-liste { display: none; }
html:not([data-motion]) .trop-corps { grid-template-columns: minmax(0, 1fr); }
html:not([data-motion]) .fenetre { height: auto; }
html:not([data-motion]) #f-menu-liste { display: none; }
html:not([data-motion]) .trop-corps { margin-top: 18px; }

@media (max-width: 1000px) {
  .trop-tete, .trop-corps, .verdict { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .trop-reglage { position: static; }
  .fenetre { height: 520px; border-width: 6px; }
  .f-accueil { grid-template-columns: minmax(0, 1fr); padding-inline: 16px; }
  .f-miche { grid-row: 1; width: 150px; }
  .f-barre, .f-pains, .f-pied { padding-inline: 16px; }
  .f-pains { gap: 8px; }
  .souleve { padding: 10px 8px; }
  .souleve b { font-size: 1.05rem; }
  .verdict { padding: 18px; }
}
