/* La Flomagerie – blocs boutique (plateaux, commande, horaires, coordonnées). Mobile d'abord. */
.flo-cmd *, .flo-cmd *::before { box-sizing: border-box; }
.flo-plateaux, .flo-cmd, .flo-horaires, .flo-infos, .flo-fil-ariane {
	--fc-fond: var(--wp--preset--color--ardoise, #4b4c50);
	--fc-fond-2: var(--wp--preset--color--nuit, #3a3b3e);
	--fc-texte: var(--wp--preset--color--creme, #faf5ee);
	--fc-paille: var(--wp--preset--color--paille, #ccc4a0);
	--fc-paille-clair: var(--wp--preset--color--paille-clair, #e6dfc8);
	--fc-encre: var(--wp--preset--color--encre, #2b2b2d);
	--fc-ligne: rgba(204, 196, 160, .28);
	--fc-titre: var(--wp--preset--font-family--titre, Oswald, sans-serif);
	--fc-machine: var(--wp--preset--font-family--machine, monospace);
	--fc-erreur: #ffb4a8;
}
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }

/* ---------- Plateaux ---------- */
.flo-plateaux { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .flo-plateaux { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .flo-plateaux { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1500px) { .flo-plateaux { grid-template-columns: repeat(4, 1fr); } }
.flo-plateau { background: var(--fc-fond); color: var(--fc-texte); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: inset 0 0 0 1px var(--fc-ligne); }
.flo-plateau__media { position: relative; aspect-ratio: 4 / 3; background: var(--fc-fond-2); }
.flo-plateau__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flo-plateau__vide { display: grid; place-items: center; height: 100%; color: var(--fc-paille); }
.flo-plateau__badge { position: absolute; top: .75rem; left: .75rem; background: var(--fc-paille); color: var(--fc-encre); font-family: var(--fc-machine); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; padding: .3rem .7rem; border-radius: 999px; }
.flo-plateau__corps { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.flo-plateau__nom { margin: 0; font-family: var(--fc-titre); text-transform: uppercase; font-size: 1.35rem; letter-spacing: .03em; line-height: 1.15; }
.flo-plateau__meta { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: .75rem; font-size: 1rem; }
.flo-plateau__pers { display: inline-flex; align-items: center; gap: .4rem; color: var(--fc-paille-clair); }
.flo-plateau__pers .flo-icon { color: var(--fc-paille); }
.flo-plateau__prix { font-family: var(--fc-titre); font-size: 1.5rem; font-weight: 600; color: var(--fc-paille); }
.flo-plateau__desc { margin: 0; color: var(--fc-paille-clair); }
.flo-plateau__compo { list-style: none; margin: 0; padding: .6rem 0 0; border-top: 1px dashed var(--fc-ligne); columns: 1; font-size: .98rem; }
@media (min-width: 420px) { .flo-plateau__compo { columns: 2; column-gap: 1rem; } }
.flo-plateau__compo li { break-inside: avoid; padding: .15rem 0 .15rem 1rem; position: relative; }
.flo-plateau__compo li::before { content: ""; position: absolute; left: 0; top: .72em; width: .45rem; height: .45rem; border-radius: 50%; border: 1.5px solid var(--fc-paille); }
.flo-plateau__cta { margin-top: auto; padding-top: .5rem; }
.flo-plateau__cta .wp-block-button__link { width: 100%; }

/* ---------- Commande ---------- */
.flo-cmd { color: var(--fc-texte); }
.flo-cmd__form { display: grid; gap: 1.5rem; }
.flo-etape { border: 0; margin: 0; padding: 1.1rem; background: var(--fc-fond); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--fc-ligne); min-width: 0; }
@media (min-width: 640px) { .flo-etape { padding: 1.5rem 1.75rem; } }
.flo-etape__titre { font-family: var(--fc-titre); text-transform: uppercase; letter-spacing: .04em; font-size: 1.35rem; display: flex; align-items: center; gap: .65rem; padding: 0; margin-bottom: .5rem; float: left; width: 100%; }
.flo-etape__titre + * { clear: both; }
.flo-etape__num { width: 2rem; height: 2rem; border-radius: 50%; display: inline-grid; place-items: center; background: var(--fc-paille); color: var(--fc-encre); font-size: 1.05rem; flex: none; }
.flo-etape__aide, .flo-champ__aide { color: var(--fc-paille-clair); font-size: .95rem; margin: .25rem 0 .75rem; }

.flo-choix-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
@media (min-width: 900px) { .flo-choix-liste { grid-template-columns: 1fr 1fr; } }
.flo-choix { display: grid; grid-template-columns: 64px 1fr; grid-template-areas: "media infos" "qte qte"; gap: .6rem .85rem; align-items: center; padding: .75rem; border-radius: 12px; background: var(--fc-fond-2); box-shadow: inset 0 0 0 1px var(--fc-ligne); transition: box-shadow .2s ease, background .2s ease; }
@media (min-width: 420px) { .flo-choix { grid-template-columns: 72px 1fr auto; grid-template-areas: "media infos qte"; } }
.flo-choix.est-choisi { box-shadow: inset 0 0 0 2px var(--fc-paille); background: color-mix(in srgb, var(--fc-fond-2) 85%, var(--fc-paille)); }
.flo-choix__media { grid-area: media; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--fc-fond-2), 0 0 0 3.5px var(--fc-paille); }
@media (min-width: 420px) { .flo-choix__media { width: 72px; height: 72px; } }
.flo-choix__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flo-choix__vide { display: grid; place-items: center; width: 100%; height: 100%; color: var(--fc-paille); background: var(--fc-fond); }
.flo-choix__infos { grid-area: infos; display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.flo-choix__nom { font-family: var(--fc-titre); text-transform: uppercase; font-size: 1.1rem; letter-spacing: .03em; line-height: 1.2; }
.flo-choix__meta { color: var(--fc-paille); font-weight: 600; }
.flo-choix__compo summary { cursor: pointer; color: var(--fc-paille-clair); font-size: .92rem; min-height: 32px; display: flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.flo-choix__compo p { margin: .25rem 0 0; font-size: .92rem; color: var(--fc-paille-clair); }
.flo-qte { grid-area: qte; display: flex; align-items: center; justify-content: flex-end; gap: .35rem; }
.flo-qte__btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--fc-paille); background: transparent; color: var(--fc-paille); font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; touch-action: manipulation; }
.flo-qte__btn[data-delta="1"] { background: var(--fc-paille); color: var(--fc-encre); }
.flo-qte__btn:hover { filter: brightness(1.08); }
.flo-qte__val { width: 3rem; height: 44px; text-align: center; font-size: 1.15rem; font-weight: 700; border: 0; background: transparent; color: var(--fc-texte); -moz-appearance: textfield; appearance: textfield; }
.flo-qte__val::-webkit-inner-spin-button, .flo-qte__val::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.flo-champ { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; border: 0; padding: 0; min-width: 0; }
.flo-champ > label, .flo-champ > legend { font-weight: 600; font-size: 1rem; padding: 0; }
.flo-facultatif { font-weight: 400; color: var(--fc-paille-clair); }
.flo-champ input[type="text"], .flo-champ input[type="email"], .flo-champ input[type="tel"], .flo-champ input[type="date"], .flo-champ textarea {
	width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: 10px; border: 1.5px solid var(--fc-ligne);
	background: var(--fc-texte); color: var(--fc-encre); font-size: 1.0625rem; /* ≥16px : pas de zoom iOS */
}
.flo-champ input[type="date"] { max-width: 260px; }
.flo-champ :is(input, textarea):focus { border-color: var(--fc-paille); outline: 2px solid var(--fc-paille); outline-offset: 1px; }
.flo-champ [aria-invalid="true"] { border-color: var(--fc-erreur); box-shadow: 0 0 0 1px var(--fc-erreur); }
.flo-champ__erreur { color: var(--fc-erreur); font-weight: 600; margin: .2rem 0 0; font-size: .95rem; }
.flo-champ__erreur::before { content: "⚠ "; }
.flo-etape > .flo-champ__erreur { margin-bottom: .75rem; }
.flo-grille-2 { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .flo-grille-2 { grid-template-columns: 1fr 1fr; } }

.flo-segments { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; max-width: 460px; }
.flo-segment { position: relative; cursor: pointer; }
.flo-segment input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.flo-segment span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 64px; padding: .5rem; border-radius: 12px; border: 1.5px solid var(--fc-ligne); background: var(--fc-fond-2); text-align: center; line-height: 1.25; }
.flo-segment strong { font-family: var(--fc-titre); text-transform: uppercase; letter-spacing: .05em; font-weight: 500; }
.flo-segment small { color: var(--fc-paille-clair); font-size: .88rem; }
.flo-segment input:checked + span { border-color: var(--fc-paille); background: var(--fc-paille); color: var(--fc-encre); }
.flo-segment input:checked + span small { color: var(--fc-encre); }
.flo-segment input:focus-visible + span { outline: 2px solid var(--fc-texte); outline-offset: 2px; }
.flo-segment.est-indispo { cursor: not-allowed; opacity: .5; }
.flo-segment.est-indispo span { text-decoration: line-through; }

.flo-pot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.flo-recap {
	position: sticky; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
	padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom)); margin: 0 calc(-1 * clamp(1rem, 5vw, 2.5rem));
	background: var(--fc-fond-2); border-top: 1px solid var(--fc-ligne); box-shadow: 0 -8px 24px rgba(0, 0, 0, .25);
}
@media (min-width: 640px) { .flo-recap { margin: 0; border-radius: 14px; border: 1px solid var(--fc-ligne); } }
.flo-recap__texte { margin: 0; font-family: var(--fc-titre); text-transform: uppercase; letter-spacing: .04em; font-size: 1.1rem; }
.flo-recap__envoyer { flex: 1 1 auto; min-height: 52px; border: 0; cursor: pointer; background: var(--fc-paille); color: var(--fc-encre); border-radius: 999px; padding: .85rem 1.4rem; font-family: var(--fc-titre); text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem; }
@media (min-width: 640px) { .flo-recap__envoyer { flex: 0 0 auto; } }
.flo-recap__envoyer:hover { background: var(--fc-texte); }
.flo-recap__envoyer[disabled] { opacity: .7; cursor: progress; }
.flo-cmd__note { font-size: .95rem; color: var(--fc-paille-clair); margin: 0; }
.flo-cmd__alerte { background: #5a2e2a; color: #fff; border-left: 4px solid var(--fc-erreur); padding: .9rem 1rem; border-radius: 10px; font-weight: 600; }
.flo-cmd__merci, .flo-cmd__ferme { background: var(--fc-fond); border-radius: 14px; padding: 2rem 1.5rem; text-align: center; box-shadow: inset 0 0 0 2px var(--fc-paille); }
.flo-cmd__merci .flo-icon { color: var(--fc-paille); }
.flo-cmd__merci h2 { margin: .5rem 0; }
.flo-cmd__merci ul { list-style: none; padding: 0; margin: 1rem auto 0; max-width: 34rem; text-align: left; display: grid; gap: .3rem; }
.flo-cmd__merci:focus { outline: none; }

/* ---------- Horaires ---------- */
.flo-horaires__statut { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; margin: 0 0 .6rem; }
.flo-horaires__statut::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: currentColor; }
.flo-horaires__statut.est-ouvert { color: #b9e4a5; }
.flo-horaires__statut.est-ferme { color: var(--fc-paille-clair); }
.flo-horaires__table { width: 100%; border-collapse: collapse; }
.flo-horaires__table th, .flo-horaires__table td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--fc-ligne); vertical-align: top; }
.flo-horaires__table th { font-weight: 600; padding-right: 1rem; }
.flo-horaires__liste { margin: 0; display: grid; gap: .35rem; }
.flo-horaires__liste .flo-horaires__ligne { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; }
.flo-horaires__liste dt { font-weight: 600; }
.flo-horaires__liste dd { margin: 0; }
.flo-horaires .est-aujourdhui { color: var(--fc-paille); }
.flo-horaires .est-aujourdhui th::after, .flo-horaires .est-aujourdhui dt::after { content: " · aujourd’hui"; font-weight: 400; font-size: .85em; }
.flo-horaires__note { font-family: var(--fc-machine); font-size: .88rem; color: var(--fc-paille-clair); margin: .75rem 0 0; }

/* ---------- Coordonnées ---------- */
.flo-infos__liste { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .7rem; }
.flo-infos__liste li { display: grid; grid-template-columns: 24px 1fr; gap: .7rem; align-items: start; }
.flo-infos__liste .flo-icon { color: var(--fc-paille); margin-top: .15rem; }
.flo-infos__liste a { min-height: 24px; display: inline-block; }

/* ---------- Fil d'Ariane ---------- */
.flo-fil-ariane ol { list-style: none; margin: 0 0 .5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.flo-fil-ariane li + li::before { content: "›"; margin-right: .5rem; color: var(--fc-paille); }

/* Sections claires */
:is(.has-creme-background-color, .has-lin-background-color) :is(.flo-horaires, .flo-infos) { --fc-paille-clair: #5c5340; --fc-paille: #6b6040; --fc-ligne: rgba(43, 43, 45, .18); }
