:root {
  --bg: #f7f4ee;
  --ink: #2e2a24;
  --muted: #736b5f;
  --line: #ded6c7;
  --accent: #7a4d25;
  --accent-ink: #fff;
  --ok: #2f6f3e;
  --warn: #8a6d1b;
  --err: #a12b2b;
  --card: #fffefa;
  --panel: #ece4d6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Iowan Old Style", Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; font-weight: 600; }

.container { max-width: 1040px; margin: 0 auto; padding: 2rem 1.25rem 3.5rem; }

/* header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 0.65rem 1.25rem; background: rgba(255, 254, 250, 0.96);
  border-bottom: 1px solid var(--line);
}
.site-header nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-header nav a:not(.btn) { text-decoration: none; color: var(--ink); }
.brand { display: flex; align-items: center; }
.brand img { display: block; width: 128px; height: auto; }
.inline { display: inline; margin: 0; }
button.link {
  background: none; border: none; color: var(--accent);
  font: inherit; cursor: pointer; padding: 0; text-decoration: underline;
}

/* buttons */
.btn {
  display: inline-block; padding: 0.6rem 1.1rem; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  border: 1px solid var(--accent); cursor: pointer; font: inherit;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled {
  cursor: not-allowed;
  filter: grayscale(0.4);
  opacity: 0.55;
}
.btn-ghost { background: transparent; color: var(--accent); }
.btn-small { padding: 0.35rem 0.7rem; font-size: 0.9rem; }
.btn-big { padding: 0.85rem 1.6rem; font-size: 1.15rem; font-weight: 700; border-radius: 10px; box-shadow: 0 4px 14px rgba(46, 42, 36, 0.22); }
.home-signup-line { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1rem 0 0; }
.home-explain { margin: 0 0 2rem; }
.home-steps {
  list-style: none; margin: 0.6rem 0 0.4rem; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.5rem;
  color: var(--ink); font-size: 0.98rem;
}
.home-steps li { display: inline-flex; align-items: center; gap: 0.3rem; }
.home-steps li + li::before { content: "→"; color: var(--accent); font-weight: 700; margin-right: 0.35rem; }
.home-steps .step-ico { height: 1.5rem; width: auto; vertical-align: middle; }
.home-steps .step-ico--mr { height: 1.4rem; }
@media (max-width: 560px) {
  .home-steps { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .home-steps li { flex-wrap: wrap; }
  .home-steps li + li::before { content: "↓"; display: block; width: 100%; margin: 0 0 0.1rem 0.4rem; }
}
.btn-danger { background: var(--err); border-color: var(--err); }
.link-muted { color: var(--muted); font-size: 0.85rem; margin-left: 0.8rem; }

/* messages */
.messages { list-style: none; max-width: 900px; margin: 1rem auto 0; padding: 0 1.2rem; }
.msg { padding: 0.7rem 1rem; border-radius: 6px; margin-bottom: 0.5rem; border: 1px solid var(--line); }
.msg.success, .state.ok { background: #eaf4ec; border-color: #cfe6d5; color: var(--ok); }
.msg.error, .state.ko { background: #f7e9e9; border-color: #e8cccc; color: var(--err); }
.msg.warning, .state.wait { background: #f7f1df; border-color: #e8ddb8; color: var(--warn); }
.state { padding: 0.6rem 1rem; border-radius: 6px; border: 1px solid var(--line); }

/* home */
.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

/* home — bandeau panettones */
.home-banner {
  position: relative;
  margin: -2rem -1.25rem 2.25rem;   /* de l'air avant « Prochaine fournée » */
  min-height: 210px;
  max-height: 46vh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}
.home-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 16, 12, 0.8) 0%,
    rgba(20, 16, 12, 0.28) 45%,
    rgba(20, 16, 12, 0.05) 100%
  );
}
.home-banner-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 1.4rem 1.5rem 1.2rem;
  color: #fff;
}
.home-banner-copy .eyebrow { color: #f0d9c4; margin-bottom: 0.5rem; }
.home-banner-copy h1 {
  margin: 0;
  color: #fff;
  font-size: 2.15rem;
  line-height: 1.1;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}
/* home — bande info */
.home-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.6rem;
  margin: 0 0 2.5rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.home-info span { position: relative; }
.home-info span + span::before {
  content: "·";
  position: absolute;
  left: -0.95rem;
}

/* home — présentation */
.atelier-presentation {
  max-width: 680px;
  margin: 0 0 2.5rem;
}
.atelier-presentation h2 {
  color: var(--accent);
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0 0 1.25rem;
}
.atelier-presentation p {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 1rem;
  text-align: justify;
}

/* home — réalisations (carousel) */
.realisations { margin: 2.5rem 0 1rem; }
.carousel { position: relative; margin-top: 1.25rem; }
.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.6rem;
}
.carousel-track::-webkit-scrollbar { height: 6px; }
.carousel-track::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}
.carousel-slide {
  flex: 0 0 min(72%, 340px);
  margin: 0;
  scroll-snap-align: start;
}
.carousel-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
}
.carousel-slide figcaption {
  margin-top: 0.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}
.carousel-nav {
  position: absolute;
  top: calc(50% - 1.25rem);
  transform: translateY(-50%);
  z-index: 2;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(46, 42, 36, 0.28);
}
.carousel-nav.prev { left: 0.25rem; }
.carousel-nav.next { right: 0.25rem; }
.carousel-nav:hover { filter: brightness(1.08); }
.carousel-nav:active { transform: translateY(-50%) scale(0.94); }

/* fournée + cards */
/* Annonce d'accueil (bakery.Announcement) — au-dessus des fournées.
   Mise en page en deux colonnes quand il y a une photo, une seule sinon :
   un `grid-template-columns` posé pour tous laisserait une colonne vide à
   la place de la photo absente. Sous 700 px, tout repasse en une colonne —
   et on pose `grid-template-columns: 1fr` AVANT la media query, sinon les
   deux blocs se mettraient côte à côte sans jamais revenir à la ligne. */
.annonce {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.3rem;
  align-items: center;
  margin: 0 0 2rem;
  padding: 1.1rem 1.2rem;
  background: var(--card, #fff);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent, #7a4d25);
  border-radius: 10px;
}
.annonce:has(.annonce-photo) { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) {
  .annonce:has(.annonce-photo) { grid-template-columns: 13rem minmax(0, 1fr); }
}
.annonce-photo {
  display: block; width: 100%; max-height: 11rem;
  object-fit: cover; border-radius: 8px;
}
.annonce-corps h2 { margin: 0.2rem 0 0; font-size: 1.35rem; line-height: 1.25; }
.annonce-texte { margin: 0.5rem 0 0; line-height: 1.6; }
.annonce-texte p { margin: 0 0 0.6rem; }
.annonce-texte p:last-child { margin-bottom: 0; }

/* Vente sur place : le LIEU, puisque c'est tout ce que le client a à retenir.
   Même grammaire visuelle que l'annonce (filet brun à gauche) — c'est la même
   nature d'information : « voilà où ça se passe ». */
.fournee-surplace {
  display: grid;
  gap: 0.2rem;
  margin: 0.9rem 0 1rem;
  padding: 0.8rem 1rem;
  background: var(--card, #fff);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent, #7a4d25);
  border-radius: 8px;
  font-size: 1.05rem;
}
.surplace-adr, .surplace-h { color: var(--muted); font-size: 0.95rem; }
.surplace-produits { margin: 0.6rem 0 1rem; padding-left: 1.1rem; line-height: 1.7; }
.surplace-produits .allergens { display: block; font-size: 0.88rem; margin: 0; }
.order-panel.is-surplace { opacity: 1; }

.fournee { margin: 0 0 2.5rem; }
/* mot du boulanger sur la fournée (ProductionPlan.description), sous le titre */
.fournee-desc { max-width: 680px; margin: 0.9rem 0 0.4rem; font-size: 1.02rem; line-height: 1.6; }
.fournee-desc p { margin: 0 0 0.7rem; }
.fournee h2, .space h2 { margin: 0; }
.section-heading {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
}
.section-heading > span,
.fournee-date { color: var(--muted); }
.insta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}
.insta-link svg { flex: 0 0 auto; }
.insta-link:hover { color: var(--accent); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin: 1rem 0; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 1rem; box-shadow: 0 1px 2px rgba(46, 42, 36, 0.04);
}
.card h3 { margin: 0 0 0.3rem; }
.card-photo {
  width: 100%; height: 160px; object-fit: cover;
  border-radius: 6px; margin-bottom: 0.6rem; display: block;
  background: var(--line);
}
.card-meta { margin: 0.2rem 0; }
/* le mot du boulanger sur un produit de la fournée (ProductionPlanItem.description) */
.item-desc { font-size: 0.95rem; margin: 0.2rem 0 0.4rem; }
.item-desc p { margin: 0 0 0.3rem; }
.card.is-out { opacity: 0.6; }
.allergens, .avail, .help, .note { color: var(--muted); font-size: 0.9rem; }
.tag { background: var(--err); color: #fff; padding: 0.05rem 0.4rem; border-radius: 4px; font-size: 0.8rem; }
.cta { margin-top: 1rem; }
.empty { color: var(--muted); font-style: italic; }

/* about */
.about { display: flex; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.about-photo {
  width: 220px;
  max-width: 50vw;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(46, 42, 36, 0.14);
}
.about-body { max-width: 640px; }
.about-body p { margin: 0 0 0.9rem; }
.about-body h2 { margin: 1.75rem 0 0.5rem; }
.about-todo { color: var(--muted); font-size: 0.9rem; }
.about-sign {
  color: var(--accent);
  font-style: italic;
  font-weight: 700;
  margin-top: 1.25rem;
}

/* forms */
.form-page, .space { max-width: 640px; }
.client-space { max-width: 900px; }
.space-header {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.space-header h1 { margin: 0; }
form label { display: block; margin: 0.8rem 0; }
form input[type=text], form input[type=email], form input[type=password],
form input[type=number], form select {
  display: block; width: 100%; padding: 0.5rem; margin-top: 0.25rem;
  border: 1px solid var(--line); border-radius: 6px; font: inherit; background: #fff;
}
form input[type=number] { width: 5rem; }
.help.error { color: var(--err); }

.order-panel,
.orders-panel {
  margin-top: 2rem;
}
.order-panel + .order-panel {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.order-products {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}
.order-product {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 1rem 1.1rem;
  /* [vignette (0 si pas de photo)] [infos] [quantité] */
  grid-template-columns: auto minmax(0, 1fr) minmax(150px, 190px);
  padding: 1rem;
}
.order-product.no-photo {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
}
.order-product.no-photo .order-product-main {
  grid-column: 1;
}
.order-product.no-photo .order-product-side {
  grid-column: 2;
}
.order-product-photo {
  grid-column: 1;
  width: 132px; height: 132px; object-fit: cover;
  border-radius: 6px; display: block;
  background: var(--line);
}
.order-product h3,
.order-product p {
  margin: 0;
}
.order-product-main {
  grid-column: 2;
  min-width: 0;
}
.order-product-main p {
  color: var(--muted);
}
.order-product-side {
  grid-column: 3;
  align-items: flex-end;
  display: grid;
  gap: 0.5rem;
}
.order-product-side label {
  margin: 0;
  width: 100%;
}
.order-product-side label span,
.availability {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
}
.order-product-side select {
  min-height: 42px;
  width: 100%;
}
.order-product.is-out {
  opacity: 0.62;
}
.delivery-choice {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 1rem 0;
  padding: 1rem;
}
.delivery-choice h3 {
  margin: 0 0 0.5rem;
}
.delivery-choice label {
  display: block;
}
.delivery-choice label span {
  display: block;
  margin-bottom: 0.3rem;
}
.delivery-choice select,
.delivery-choice input[type=text] {
  min-height: 44px;
  width: 100%;
}
.delivery-choice .help {
  margin: 0.4rem 0 0;
}

/* --- Sélecteur de point Mondial Relay --- */
.mr-picker {
  margin-top: 0.75rem;
  border-top: 1px dashed var(--line);
  padding-top: 0.75rem;
}
.mr-search {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.mr-search input {
  flex: 1;
  min-height: 44px;
}
.mr-map {
  height: 260px;
  border-radius: 8px;
  overflow: hidden;
  margin: 0.5rem 0;
}
.mr-results {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 240px;
  overflow-y: auto;
}
.mr-results button {
  width: 100%;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.mr-results button:hover {
  border-color: var(--accent);
}
.mr-results button span {
  font-size: 0.88rem;
  color: var(--muted);
}
.mr-gift { margin-top: 0.8rem; border-top: 1px dashed var(--line); padding-top: 0.6rem; }
.mr-gift-toggle { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; cursor: pointer; }
.mr-gift-fields { display: grid; gap: 0.5rem; margin-top: 0.5rem; }
.mr-gift-fields label { display: grid; gap: 0.2rem; }
.mr-gift-fields input { width: 100%; box-sizing: border-box; }
.mr-recap {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.mr-recap span {
  font-size: 0.9rem;
  color: var(--muted);
}
.pickup-recap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  text-align: left;
}
.promo-badge {
  background: #fff7e6;
  border: 1px solid #f0c674;
  border-radius: 8px;
  color: var(--accent);
  margin: 1rem 0;
  padding: 0.75rem 1rem;
}
.order-estimate [data-order-discount-row] {
  align-items: baseline;
  color: var(--ok);
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
}
.order-estimate [data-order-discount-row][hidden] {
  display: none;
}
.order-estimate [data-order-discount-row] span {
  color: inherit;
}
.order-estimate [data-order-discount-row] strong {
  font-size: 1rem;
}
.order-summary {
  align-items: center;
  background: var(--panel);
  border-left: 3px solid var(--accent);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding: 1rem;
}
.order-summary p {
  margin: 0;
}
.order-summary strong {
  display: block;
}
.order-estimate {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(3, auto);
  min-width: 330px;
  padding: 0.55rem 0.75rem;
}
.order-estimate span {
  color: var(--muted);
  display: block;
  font-size: 0.86rem;
}
.order-estimate strong {
  font-size: 1.25rem;
  line-height: 1.1;
  margin-top: 0.1rem;
  white-space: nowrap;
}
.order-estimate .help {
  grid-column: 1 / -1;
  margin: 0;
}
.order-history {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
.order-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}
.order-card header,
.order-actions {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}
.order-card h3 {
  margin: 0.15rem 0 0;
}
.order-ref {
  color: var(--muted);
  font-size: 0.9rem;
}
.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: 0.86rem;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
}
.status-pre_commande { background: #f7f1df; color: var(--warn); }
.status-commande { background: #eef2f6; color: #31506c; }
.status-payee { background: #eaf4ec; color: var(--ok); }
.status-annulee { background: #f7e9e9; color: var(--err); }
.order-lines {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 1rem 0;
  padding: 0.55rem 0;
}
.order-lines li {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.25rem 0;
}
.order-facts {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 1rem;
}
.order-facts div {
  min-width: 0;
}
.order-facts dt {
  color: var(--muted);
  font-size: 0.86rem;
}
.order-facts dd {
  font-weight: 600;
  margin: 0.1rem 0 0;
  overflow-wrap: anywhere;
}
.order-actions {
  align-items: center;
  min-height: 42px;
}

/* tables */
table { width: 100%; border-collapse: collapse; margin: 1rem 0; background: var(--card); }
th, td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.9rem; color: var(--muted); }
.order-table input { margin: 0; }

/* footer */
.site-footer {
  border-top: 1px solid var(--line); background: var(--card);
  padding: 1.5rem 1.2rem; text-align: center; color: var(--muted); font-size: 0.9rem;
}
.site-footer img { opacity: 0.7; }
.site-footer-legal { margin: 0.4rem 0 0; font-size: 0.82rem; }
.terms-accept { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.9rem 0; font-size: 0.92rem; }
.terms-accept input { margin-top: 0.25rem; flex: 0 0 auto; }
/* Mon espace — « Être prévenu des fournées » */
.notify-card { margin: 0 0 2rem; }
.notify-row { margin: 0.7rem 0; }
.notify-toggle { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.notify-toggle input { width: 1.15rem; height: 1.15rem; margin: 0; }
.install-howto { font-size: 0.92rem; margin: 0.3rem 0 0; }
.install-howto summary { cursor: pointer; color: var(--accent); }
.install-howto p { margin: 0.5rem 0 0; }
.site-footer-legal a { color: var(--muted); }
/* champ piège du formulaire de contact : hors écran, pas display:none (certains robots le respectent) */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* pages légales : un texte long et sobre, lisible ; les liens croisés en bas */
.legal .about-body { max-width: 720px; margin: 0 auto; }
.legal h1 { margin-bottom: 1.2rem; }
/* Un passage en gras reste DANS sa phrase (2026-11-23) : les titres sont déjà
   des paragraphes à eux seuls, un inline-block renvoyait le gras à la ligne. */
.legal .legal-nav { margin-top: 2rem; display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: 0.9rem; }

@media (max-width: 560px) {
  .container { padding: 1.25rem 1rem 2.5rem; }
  .site-header { align-items: flex-start; padding: 0.55rem 1rem; }
  .site-header nav { gap: 0.75rem; width: 100%; }
  .brand img { width: 104px; }
  .home-banner {
    margin: -1.25rem -1rem 0;
    min-height: 160px;
    max-height: 38vh;
  }
  .home-banner-copy { padding: 1.15rem 1rem 1rem; }
  .home-banner-copy h1 { font-size: 1.6rem; }
  .atelier-presentation { margin: 0 0 2rem; }
  .atelier-presentation h2 { font-size: 1.35rem; }
  .atelier-presentation p { font-size: 1rem; }
  .carousel-slide { flex-basis: 82%; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 0.25rem; }
  .space-header { align-items: flex-start; flex-direction: column; }
  .space-header .btn { width: 100%; text-align: center; }
  .order-product {
    align-items: stretch;
    grid-template-columns: 1fr;
  }
  .order-product-photo,
  .order-product-main,
  .order-product-side {
    grid-column: 1;
  }
  .order-product-photo {
    width: 100%;
    height: 150px;
  }
  .order-product-side {
    align-items: stretch;
  }
  .order-summary {
    align-items: stretch;
    flex-direction: column;
  }
  .order-estimate {
    grid-template-columns: 1fr;
    min-width: 0;
  }
  .order-summary .btn,
  .order-actions .btn {
    text-align: center;
    width: 100%;
  }
  .order-card header,
  .order-actions {
    flex-direction: column;
  }
  .order-facts {
    grid-template-columns: 1fr;
  }
  .about { flex-direction: column; }
  .about-photo { max-width: 70vw; }
}

/* --- Avis clients : formulaire (Mon espace) et vitrine (accueil) --------- */
.stars { color: #d99a2b; letter-spacing: 0.08em; font-size: 1.05rem; }
.review-block { margin-top: 0.8rem; border-top: 1px dashed var(--line); padding-top: 0.6rem; }
.review-block summary { cursor: pointer; font-weight: 600; }
.review-block summary .help { font-weight: 400; margin-left: 0.4rem; }
.review-form { display: grid; gap: 0.5rem; margin-top: 0.6rem; }
.review-form textarea { width: 100%; box-sizing: border-box; }
.review-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
/* Étoiles : 5 radios rendus en sens inverse pour que ~ :checked colore les précédentes */
.star-rating { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 0.1rem; }
.star-rating input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-rating label { font-size: 1.9rem; line-height: 1; color: var(--line); cursor: pointer; padding: 0 0.05rem; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #d99a2b; }
.star-rating input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
.reviews { margin-top: 1.5rem; }
.reviews-scroll {
  max-height: 22rem; overflow-y: auto; display: grid; gap: 0.7rem;
  padding: 0.2rem 0.4rem 0.2rem 0; scrollbar-width: thin;
}
.review { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.9rem; }
.review-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem; }
.review-meta { color: var(--muted); font-size: 0.9rem; }
.review p { margin: 0.4rem 0 0; }
.review-photo-field { display: grid; gap: 0.3rem; }
.review-photo-thumb { max-width: 160px; max-height: 120px; border-radius: 6px; object-fit: cover; }
/* Vignette d'avis : hauteur fixe, largeur libre — la photo accompagne le
   texte sans manger la carte (le clic ouvre l'original). */
.review-photo-link { display: inline-block; margin-top: 0.5rem; }
.review-photo {
  display: block; height: 110px; width: auto; max-width: 100%;
  border-radius: 8px; object-fit: cover;
}

/* Sélecteur de langue (pied de page) — discret : on ne change pas de langue
   tous les jours, mais il doit rester trouvable. */

/* ================================================================== */
/* LEFOURNIL.APP — la vitrine de la PLATEFORME (`/`).                 */
/*                                                                    */
/* Charte relevée sur la plaquette : terre cuite, sauge, crèmes. Elle  */
/* est propre à la plateforme et ne doit pas déteindre sur le site     */
/* d'un fournil, qui a son brun « levain » — d'où le préfixe `pf-` et  */
/* des variables redéclarées ici, jamais sur `:root`.                  */
/* ================================================================== */
 .pf-demande {
  --terre: #b73f1d;          /* le rouge du titre et du « .APP »        */
  --terre-clair: #ce5e3c;    /* les pastilles                           */
  --sauge: #62705b;
  --sauge-clair: #8a9a83;
  --creme: #fbf7f1;
  --creme-chaud: #f3e7d3;
  --peche: #f7dcbb;
  --encre: #1f1c19;
  --encre-douce: #6b6257;
}

/* --- Bandeau : le logo de la plaquette ----------------------------- */
/* Logo de la plateforme (04/11/2026) : moins allongé que le précédent
   (2,65 : 1 au lieu de 5,4 : 1), donc moins large pour une hauteur voisine. */
.brand--plateforme img { width: 170px; height: auto; }
@media (max-width: 520px) { .brand--plateforme img { width: 132px; } }

/* --- Titres de section --------------------------------------------- */
.pf-demande h2 {
  font-size: clamp(1.4rem, 3.6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.012em;
  color: var(--encre);
  margin: 0 0 1.2rem;
  text-wrap: balance;
}

/* --- Demande d'ouverture ------------------------------------------- */
.pf-demande { background: var(--creme-chaud); border-radius: 14px; padding: 1.9rem 1.5rem; margin: 3rem 0; }
.pf-demande-intro { margin: 0 0 1.3rem; color: var(--encre); }
.pf-form { max-width: 34rem; }
.pf-champ { margin: 0 0 1rem; }
.pf-form label { display: block; font-weight: 700; margin-bottom: 0.25rem; color: var(--encre); }
.pf-form input, .pf-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.62rem 0.78rem;
  border: 1px solid #ded2be;
  border-radius: 7px;
  background: #fff;
  color: var(--encre);
  font: inherit;
}
.pf-form input:focus, .pf-form textarea:focus {
  outline: 2px solid var(--terre);
  outline-offset: 1px;
}
.pf-form .btn { background: var(--terre); border-color: var(--terre); }
/* La formule et les conditions, avant le paiement (CHANTIER-OUVERTURE.md) :
   des boutons radio et une case, pas des champs pleine largeur. */
.pf-form input[type="radio"], .pf-form input[type="checkbox"] {
  width: auto; margin: 0 0.5rem 0 0; accent-color: var(--terre);
}
.pf-champ--plan > div > div { margin: 0.35rem 0; }
.pf-champ--plan > div label { display: flex; align-items: flex-start; font-weight: 600;
  background: #fff; color: #0f1b3d; border: 1px solid #ded2be; border-radius: 9px;
  padding: 0.6rem 0.75rem; cursor: pointer; }
.pf-champ--plan > div label:has(input:checked) { border-color: var(--terre); box-shadow: 0 0 0 2px var(--terre); }
.pf-champ--plan > div input { margin-top: 0.25rem; }
.pf-champ--accept_terms label { display: inline; font-weight: 400; }
.pf-aide { display: block; color: var(--encre-douce); font-size: 0.87rem; margin-top: 0.2rem; }
.pf-form ul.errorlist { margin: 0.3rem 0 0; padding-left: 1.1rem; color: var(--err); font-size: 0.9rem; }
.pf-rassure { color: var(--encre-douce); font-size: 0.9rem; margin: 0; }
/* Champ piège : hors écran plutôt que `display:none`, que certains robots
   savent détecter. `aria-hidden` le retire des lecteurs d'écran. */
.pf-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Aperçu du boulanger : sa boutique n'est pas encore en ligne et lui seul la
   voit. Bandeau voyant sur toutes les pages — se croire en ligne quand on ne
   l'est pas est la confusion à éviter. */
.apercu-bandeau {
  margin: 0;
  padding: 0.6rem 1.25rem;
  background: var(--warn);
  color: #fff;
  font-weight: 600;
  text-align: center;
}

/* La chaîne « tout au même endroit » : ce que l'outil réunit, dans l'ordre
   où un fournil le vit. Une puce terre cuite plutôt qu'un tiret : elle relie
   les éléments sans faire liste de courses. */

/* Bouton d'impression des pages légales : un contrat doit pouvoir sortir sur
   papier. Retiré de l'impression elle-même — un bouton imprimé ne sert à
   rien et fait du bruit sur un document qui engage. */
.legal-print {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}
.legal-print:hover { color: var(--ink); }
@media print {
  .legal-print, .site-header nav, .legal-nav a { display: none !important; }
  .legal, .about-body { max-width: none; }
}

/* Mentions d'étiquette sur une carte produit : discrètes sous la photo.
   Le client lit d'abord la photo et le prix ; la liste d'ingrédients doit
   être là sans écrire, pas se disputer la place avec eux.

   `.allergens` partageait la règle de `.avail`/`.help`/`.note` (0,9 rem) et
   ressortait donc PLUS GROS que les ingrédients juste au-dessus — ce qui
   faisait lire deux blocs au lieu d'un. Même taille, même italique : c'est
   une seule mention, celle de l'étiquette. Seule la couleur distingue
   l'allergène, et c'est suffisant. */
.mentions,
.allergens {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  font-style: italic;
}
.mentions { color: var(--muted); }
.surplace-produits .mentions,
.surplace-produits .allergens { display: block; }

/* Donner son avis depuis l'accueil, sans compte.

   Première version : un `<details>` replié, sous la liste des avis. Le
   boulanger ne l'a pas trouvé — et il avait raison : la liste défile sur
   22 rem, donc le repli n'arrivait à l'écran qu'après l'avoir parcourue,
   et une ligne de texte ne se lit pas comme un bouton. Le formulaire est
   maintenant déplié, et un vrai bouton le vise depuis l'en-tête de
   section, qui lui est toujours visible. */
/* Au-dessus des fournées, mais REPLIÉ : il se voit sans pousser le pain vers
   le bas. Ce qui avait échoué deux fois, ce n'était pas le repli — c'était sa
   place (sous une liste qui défile sur 22 rem) et son allure (une ligne de
   texte). Ici la poignée est une barre pleine largeur, dessinée comme un
   bouton, avec la phrase qui lève l'objection. */
.avis-donner {
  /* Le bandeau remonte de 2 rem (`margin-top: -2rem`) et colle ce qui le
     suit. Il « mordait » sur la barre d'avis, qui est maintenant le premier
     bloc de la page. */
  margin: 1.6rem 0;
  background: var(--card, #fff);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent, #7a4d25);
  border-radius: 10px;
}
.avis-donner > summary {
  cursor: pointer;
  padding: 0.75rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.8rem;
  list-style: none;          /* la flèche native, remplacée par la nôtre */
}
.avis-donner > summary::-webkit-details-marker { display: none; }
.avis-donner-titre { font-weight: 700; color: var(--accent); font-size: 1.05rem; }
.avis-donner-sous { color: var(--muted); font-size: 0.88rem; }
/* Le chevron : il dit que ça s'ouvre, et il pivote à l'ouverture. */
.avis-donner > summary::after {
  content: "›";
  margin-left: auto;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent);
  transition: transform .15s ease;
}
.avis-donner[open] > summary::after { transform: rotate(90deg); }
.avis-donner[open] > summary { border-bottom: 1px solid var(--line); }
.avis-donner > form { padding: 0 1.1rem 0.4rem; }
.avis-donner form { margin-top: 0.8rem; max-width: 34rem; }
.avis-donner p { margin: 0 0 0.9rem; }
.avis-donner label { display: block; font-weight: 600; margin-bottom: 0.2rem; }
.avis-donner input[type="text"],
.avis-donner textarea { width: 100%; }
.avis-note { border: 0; padding: 0; margin: 0 0 0.6rem; }
.avis-note legend { font-weight: 600; padding: 0; margin-bottom: 0.2rem; }
/* Champ piège : hors de l'écran plutôt que `display:none` — certains robots
   ignorent ce qui est explicitement masqué, et le remplissent quand même. */
.pot-de-miel {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}

/* Commande déposée au dépôt : le client peut venir la chercher. L'information
   la plus utile de la page ce jour-là — elle se voit sans être criarde. */
.livree {
  display: block;
  margin-top: 0.3rem;
  font-weight: 600;
  color: #2f7a3d;
}

/* ---------------------------------------------------------------------------
   Commandes récurrentes (espace professionnel)

   Le reste de l'espace pro n'a pas de CSS propre : il se contente des classes
   publiques. Cet écran en demande, et pour une raison précise — chaque ligne
   porte un formulaire (« Arrêter »), et sans mise en page chaque formulaire
   occupe sa propre ligne : la liste devient illisible, surtout sur un
   téléphone, là où le boulanger et ses clients la consultent.
   --------------------------------------------------------------------------- */
.pro-recur-intro { color: var(--muted); max-width: 46rem; }

.pro-recur-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }

.pro-recur {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  margin-bottom: 0.6rem;
}

/* Arrêtée : plus discrète, mais JAMAIS illisible — c'est encore une
   information, et la date d'effet est ce qu'on vient y lire. */
.pro-recur.est-arretee { background: var(--panel); }

.pro-recur-body { min-width: 0; }
.pro-recur-quoi { margin: 0; }
.pro-recur-quand { margin: 0.15rem 0 0; color: var(--muted); }
.pro-recur-arret { margin: 0.15rem 0 0; color: var(--warn); font-weight: 600; }

.pro-recur-actions form { margin: 0; }

.pro-recur-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

/* Un `grid-cols-1` explicite AVANT le premier `@media` : sans classe de
   colonnes à la largeur de départ, les champs se rangent côte à côte sans
   retour à la ligne — le piège Tailwind déjà payé côté admin, et il vaut
   aussi en CSS écrite à la main. */
@media (min-width: 40rem) {
  .pro-recur-form { grid-template-columns: 1fr 1fr; }
  .pro-recur-form button { grid-column: 1 / -1; justify-self: start; }
}

.pro-recur-semaine { margin-bottom: 1.25rem; }

.pro-recur-figee {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ---------------------------------------------------------------------------
   Espace professionnel : l'état d'une demande

   Ce qui a été refusé ou modifié doit se lire d'un coup d'œil, et rester
   LISIBLE : une ligne non retenue est encore une information — c'est ce que
   le client vient vérifier.
   --------------------------------------------------------------------------- */
.pro-ligne-refusee { color: var(--muted); text-decoration: line-through; }

.pro-ligne-modifiee,
.pro-order-origine {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--warn);
}

.pro-order-origine { color: var(--muted); }

/* « Déjà prévu par tes récurrences » : un rappel, pas une alerte — d'où le
   panneau neutre et non la couleur d'avertissement. */
.pro-deja-prevu {
  margin: 0.75rem 0 0;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.pro-deja-prevu p { margin: 0; }
.pro-deja-prevu ul { margin: 0.35rem 0; padding-left: 1.2rem; }
.pro-deja-prevu-note { color: var(--muted); font-size: 0.9em; }

/* ---------------------------------------------------------------------------
   Accueil : le bloc « Vous êtes un professionnel ? »

   Il n'est rendu que si le fournil a composé un catalogue professionnel (cf.
   `pro_ouvert` dans la vue) : une section qui promet un service que les
   données ne permettent pas est pire qu'une section absente.
   --------------------------------------------------------------------------- */
.home-pro {
  margin: 2.5rem 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.home-pro-intro { max-width: 46rem; color: var(--muted); }
.home-pro-cta { margin: 0.9rem 0 0; }

/* `.home-pro-points` et `.home-pro-cta .help` ont été SUPPRIMÉES le
   14/10/2026 avec les quatre puces qu'elles habillaient, et non juste laissées
   là « au cas où » : une règle que plus aucun gabarit n'emploie est du code
   mort, et elle fait croire au lecteur suivant que la section a encore une
   grille. Même raison que la méthode `clients_summary`, retirée du code et pas
   seulement de `list_display`. Le détail des capacités pro vit dans la notice
   du boulanger (la vitrine de la plateforme ne le détaille plus depuis le
   06/11/2026). */

/* ---------------------------------------------------------------------------
   L'astuce du boulanger, sur une carte de fournée

   Son avatar à gauche, son conseil à droite : une astuce signée se lit comme
   un conseil, une astuce anonyme comme une notice. Sans avatar, le texte
   occupe toute la largeur — l'astuce ne dépend pas de l'image.
   --------------------------------------------------------------------------- */
.item-astuce {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.9rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--panel);
}

.item-astuce-avatar {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.item-astuce-mot { min-width: 0; }
.item-astuce-mot p { margin: 0 0 0.3rem; }
.item-astuce-mot p:last-child { margin-bottom: 0; }

.item-astuce-titre {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.92em;
}

/* --- Choix de langue de la vitrine de la plateforme (web.langue_vitrine) --
   Deux drapeaux et leur code, dans le bandeau. La langue active est
   soulignée et n'est pas un lien ; l'autre se clique. */
.pf-langues { display: inline-flex; align-items: center; gap: .35rem; }
.pf-langue {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .15rem .35rem; border-radius: 6px; font-size: .85rem;
  border: 1px solid transparent; line-height: 1;
}
.pf-langue svg { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.pf-langue.est-active { border-color: var(--accent, #7a4d25); font-weight: 600; }
a.pf-langue:not(.btn) { opacity: .75; }
a.pf-langue:not(.btn):hover { opacity: 1; }

/* --- Boutique (chantier boutique, 22/10/2026) ------------------------ */
.boutique-form h2 { margin-top: 1.5rem; }
.boutique-semaine { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.boutique-semaine {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  padding: .6rem .8rem; border: 1px solid var(--line, #e5dccf); border-radius: 8px;
}
.boutique-semaine.is-out { opacity: .55; }
.boutique-semaine .help { margin-left: auto; }
.boutique-compte { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .boutique-compte { grid-template-columns: 1fr 1fr; } }
.boutique-compte label { display: flex; flex-direction: column; gap: .25rem; }

/* La page boutique : le texte sous le grand bandeau (22/10/2026) */
.boutique-texte { max-width: 720px; margin: 0 0 1.75rem; }

/* « Frais d'expédition offerts » sous un produit (22/10/2026) : en évidence */
.port-offert {
  display: inline-block; margin: 0.35rem 0; padding: 0.2rem 0.6rem;
  background: #fdf1df; color: #8a4b0f; border: 1px solid #f0c98f;
  border-radius: 999px; font-weight: 700; font-size: 0.9rem;
}

/* Bandeau sans texte (la photo porte son propre titre) et titre masqué à
   l'œil mais lu par les lecteurs d'écran (22/10/2026) */
/* L'image ENTIÈRE, sur TOUTE la largeur du bandeau : elle est composée par
   le boulanger, avec son titre dedans — la rogner comme le bandeau de
   l'accueil (object-fit: cover dans une hauteur bornée) coupait l'image et le
   titre (22/10/2026). Sa hauteur suit donc sa proportion : c'est le FORMAT de
   l'image qui la règle (2080 × 600 px ≈ 300 px de haut sur ordinateur).
   Un plafond de hauteur a été essayé, puis un fond flou pour combler les
   côtés : le premier laissait la bande à moitié vide, le second ne plaisait
   pas. */
.home-banner--image-seule {
  display: block;
  min-height: 0;
  max-height: none;
}
.home-banner--image-seule > img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
}
.home-banner--image-seule::after { display: none; }
.visuellement-masque {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* En-tête COMPACT de la boutique (22/10/2026) : petit logo, deux fois moins
   haut que l'en-tête des autres pages. La hauteur est celle du LOGO, donc on
   la fixe et la largeur suit — un logo allongé reste lisible. */
.site-header--compact { padding-top: 0.3rem; padding-bottom: 0.3rem; }
.site-header--compact .brand img { width: auto; height: 64px; max-width: 220px; object-fit: contain; }
@media (max-width: 560px) {
  .site-header--compact .brand img { width: auto; height: 46px; }
}

/* ================================================================== */
/* LEFOURNIL.APP — CHARTE « PUB » (04/11/2026)                         */
/*                                                                    */
/* Reprise de l'affiche publicitaire : orange vif en dégradé, bleu     */
/* nuit, crème chaud, typographie ronde et grasse en italique (Nunito, */
/* servie depuis nos statiques — aucun appel à Google pour le          */
/* visiteur). La charte précédente (terre cuite, sauge) était jugée    */
/* trop terne. Bornée à `body.pf-corps`, posée par `web/base.html`     */
/* quand la page n'est PAS celle d'un fournil : le site d'un fournil   */
/* garde son brun « levain ».                                          */
/* ================================================================== */
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito.166202cc391c.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-italic.e0eb96848e7e.woff2") format("woff2");
  font-weight: 700 900;
  font-style: italic;
  font-display: swap;
}

body.pf-corps {
  --pf-orange: #f2620f;
  --pf-orange-vif: #ff8a1f;
  --pf-orange-fonce: #d94606;
  --pf-degrade: linear-gradient(100deg, #ff8f22 0%, #f26510 55%, #e4480a 100%);
  --pf-nuit: #0f1b3d;
  --pf-nuit-douce: #4a5675;
  --pf-ombre: 0 10px 30px rgba(15, 27, 61, 0.09);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #fffaf3;
  color: var(--pf-nuit);
}
 body.pf-corps .pf-demande {
  --terre: #f2620f;
  --terre-clair: #ff8a1f;
  --sauge: #0f1b3d;
  --sauge-clair: #24366b;
  --creme: #ffffff;
  --creme-chaud: #fff1e0;
  --peche: #ffe3c6;
  --encre: #0f1b3d;
  --encre-douce: #4a5675;
}
body.pf-corps .site-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 0;
  box-shadow: 0 2px 14px rgba(15, 27, 61, 0.07);
  position: sticky;
  top: 0;
  z-index: 20;
}
body.pf-corps .brand--plateforme img { width: 150px; }
@media (max-width: 520px) { body.pf-corps .brand--plateforme img { width: 120px; } }

/* Les titres : gras, ronds, italiques — la voix de l'affiche. */
body.pf-corps h1, body.pf-corps h2, body.pf-corps h3 { font-family: inherit; }
body.pf-corps .pf-demande h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--pf-nuit);
  padding-bottom: 0.7rem;
  background: no-repeat left bottom / 9rem 0.75rem
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 144 12'%3E%3Cpath d='M3 9C40 2 104 1 141 6' fill='none' stroke='%23f2620f' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Les boutons : pastille orange en dégradé, et son pendant bleu nuit. */
body.pf-corps .btn {
  background: var(--pf-degrade);
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  padding: 0.7rem 1.4rem;
  box-shadow: 0 8px 20px rgba(242, 98, 15, 0.32);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
body.pf-corps .btn:hover { filter: none; transform: translateY(-1px);
  box-shadow: 0 11px 24px rgba(242, 98, 15, 0.4); }
body.pf-corps .btn-big { font-size: 1.08rem; padding: 0.9rem 1.7rem; }
body.pf-corps .btn-ghost{
  background: #fff;
  color: var(--pf-nuit);
  box-shadow: inset 0 0 0 2px var(--pf-nuit);
}
body.pf-corps .btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--pf-orange); color: var(--pf-orange); }
body.pf-corps .pf-form .btn { border: 0; }
body.pf-corps .pf-form .btn { background: var(--pf-degrade); }

/* La demande d'ouverture : le bleu nuit, et l'orange pour agir. */
body.pf-corps .pf-demande {
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 138, 31, 0.35) 0, rgba(255, 138, 31, 0) 45%),
    linear-gradient(150deg, #0f1b3d 0%, #1d2f63 100%);
  border-radius: 24px;
  color: #fff;
}
body.pf-corps .pf-demande h2 { color: #fff; }
body.pf-corps .pf-demande-intro, body.pf-corps .pf-demande .pf-form label,
body.pf-corps .pf-demande p { color: #eef1fa; }
body.pf-corps .pf-demande .pf-aide, body.pf-corps .pf-demande .pf-rassure { color: #bfc8e3; }
body.pf-corps .pf-demande a { color: #ffb36b; }
body.pf-corps .pf-demande ul.errorlist { color: #ffb4a0; }
body.pf-corps .pf-form input, body.pf-corps .pf-form textarea { border-radius: 12px; border-color: #ffd2ad; }
body.pf-corps .pf-form input:focus, body.pf-corps .pf-form textarea:focus { outline-color: var(--pf-orange); }

body.pf-corps a { color: var(--pf-orange-fonce); }
body.pf-corps .btn, body.pf-corps .btn:visited { color: #fff; }
body.pf-corps .btn-ghost, body.pf-corps .btn-ghost:visited { color: var(--pf-nuit); }

/* Le pied de page de la plateforme, en bleu nuit. */
body.pf-corps .site-footer { background: var(--pf-nuit); color: #d6dcef; border-top: 0; }
body.pf-corps .site-footer a { color: #ffb36b; }

/* ================================================================== */
/* LE SITE D'UN FOURNIL — CHARTE LEFOURNIL.APP ET MODE TOUCH          */
/* (2026-11-10, décision du boulanger : « le site pour les clients    */
/* d'un fournil doit avoir la même charte graphique que lefournil.app */
/* ainsi que l'approche en mode Touch […] les clients sont presque    */
/* tous sur mobile ou tablette »).                                    */
/*                                                                    */
/* Bornée à `body.fc`, posée par `web/base.html` quand la page est    */
/* celle d'un fournil : la vitrine de la plateforme garde son bloc    */
/* `pf-` ci-dessus. Le fournil garde SON logo, ses photos et ses      */
/* textes ; la charte (orange, bleu nuit, ciel, Nunito) est celle de  */
/* la plateforme, comme dans le mode Touch du boulanger.              */
/* Règles du mode Touch reprises : cibles ≥ 52 px, texte ≥ 17 px      */
/* (16 px minimum dans un champ, sans quoi iOS zoome), une barre      */
/* d'onglets en bas de l'écran du téléphone, des cartes blanches.     */
/* ================================================================== */
body.fc {
  --bg: #fffaf3;
  --ink: #0f1b3d;
  --muted: #4a5675;
  --line: #f1dcc7;
  --accent: #d94606;
  --accent-ink: #fff;
  --card: #ffffff;
  --panel: #fff1e0;
  --fc-orange: #f2620f;
  --fc-degrade: linear-gradient(100deg, #ff8f22 0%, #f26510 55%, #e4480a 100%);
  --fc-ombre: 0 10px 28px rgba(15, 27, 61, 0.09);
  --fc-cible: 52px;
  --fc-onglets: 68px;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 205, 120, 0.5) 0, rgba(255, 205, 120, 0) 40%),
    linear-gradient(170deg, #dce9f8 0%, #f6f2ec 30%, #fff6ea 70%, #ffe6c9 100%) fixed;
}
body.fc button, body.fc input, body.fc select, body.fc textarea { font-family: inherit; }
/* Une page courte (boutique fermée, connexion) garde son pied de page en bas
   de l'écran, pas au milieu. */
body.fc { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.fc > main { flex: 1 0 auto; width: 100%; }
body.fc :focus-visible { outline: 3px solid var(--fc-orange); outline-offset: 2px; }
body.fc .container { padding-top: 1.4rem; }

/* --- Titres : gras, italiques, soulignés d'un trait orange ---------- */
body.fc h1, body.fc h2, body.fc h3 { font-family: inherit; color: var(--ink); }
body.fc h1, body.fc h2 { font-weight: 900; font-style: italic; letter-spacing: -0.01em; }
body.fc h1 { font-size: clamp(1.7rem, 6vw, 2.3rem); }
body.fc main h1, body.fc .fournee > h2, body.fc .space h2, body.fc .client-space > section > h2 {
  padding-bottom: 0.55rem;
  background: no-repeat left bottom / 7rem 0.6rem
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 144 12'%3E%3Cpath d='M3 9C40 2 104 1 141 6' fill='none' stroke='%23f2620f' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}
body.fc h3 { font-weight: 800; }
/* Sur la photo du bandeau, le titre reste BLANC et sans trait : il se lit sur
   l'image (bleu nuit, il disparaissait dans un fond sombre). */
body.fc .home-banner-copy h1 { color: #fff; background: none; padding-bottom: 0; }
body.fc .home-banner-copy .eyebrow { color: #ffd2ad; }
body.fc .home-banner { margin: -1.4rem -1.25rem 2rem; }
body.fc .eyebrow { color: var(--accent); font-weight: 800; }

/* --- En-tête : blanc, collant, onglets en pastille ------------------ */
body.fc .site-header {
  position: sticky; top: 0; z-index: 30;
  padding: calc(0.45rem + env(safe-area-inset-top, 0px)) 1rem 0.45rem;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 0;
  box-shadow: 0 2px 14px rgba(15, 27, 61, 0.08);
}
body.fc .brand img { width: auto; max-width: 140px; max-height: 52px; }
body.fc .fc-nom { font-weight: 900; font-style: italic; font-size: 1.15rem; color: var(--ink);
  line-height: 1.1; max-width: 55vw; }
body.fc .brand { text-decoration: none; min-height: var(--fc-cible); }
body.fc .site-header nav { gap: 0.35rem; }
body.fc .site-header nav a:not(.btn), body.fc .site-header nav button.link {
  min-height: var(--fc-cible); display: inline-flex; align-items: center;
  padding: 0 1rem; border-radius: 999px; font-weight: 700;
  color: var(--ink); text-decoration: none;
}
body.fc .site-header nav a:not(.btn):hover, body.fc .site-header nav button.link:hover { background: #fff1e0; }
body.fc .site-header nav a[aria-current="page"]:not(.btn) {
  background: var(--fc-degrade); color: #fff; box-shadow: 0 6px 14px rgba(242, 98, 15, 0.3);
}

/* --- Boutons : pastille orange en dégradé --------------------------- */
body.fc .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: var(--fc-cible); padding: 0 1.4rem;
  background: var(--fc-degrade); color: #fff; border: 0; border-radius: 999px;
  font-weight: 800; text-align: center;
  box-shadow: 0 8px 20px rgba(242, 98, 15, 0.32);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
body.fc .btn:hover { filter: none; transform: translateY(-1px); box-shadow: 0 11px 24px rgba(242, 98, 15, 0.4); }
body.fc .btn, body.fc .btn:visited { color: #fff; }
body.fc .btn-small { min-height: 44px; padding: 0 1rem; font-size: 0.95rem; }
body.fc .btn-big { min-height: 60px; font-size: 1.12rem; padding: 0 1.8rem; border-radius: 999px; }
body.fc .btn-ghost, body.fc .btn-ghost:visited {
  background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink);
}
body.fc .btn-ghost:hover { color: var(--fc-orange); box-shadow: inset 0 0 0 2px var(--fc-orange); }
body.fc .btn-danger { background: var(--err); box-shadow: none; }
body.fc button.link { color: var(--accent); font-weight: 700; min-height: 44px; }
/* Le bouton qui valide une commande : toute la largeur, sous le pouce. */
body.fc .order-form button[type="submit"]:not(.link):not(.btn-small) { width: 100%; min-height: 60px; font-size: 1.1rem; }

/* --- Champs : grands, arrondis, 16 px au moins (iOS ne zoome pas) --- */
body.fc form input[type=text], body.fc form input[type=email], body.fc form input[type=password],
body.fc form input[type=tel], body.fc form input[type=number], body.fc form select, body.fc form textarea {
  min-height: var(--fc-cible); padding: 0.55rem 0.9rem; font-size: 17px;
  border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink);
}
body.fc form textarea { min-height: 7rem; }
body.fc form input:focus, body.fc form select:focus, body.fc form textarea:focus {
  border-color: var(--fc-orange); outline: none; box-shadow: 0 0 0 3px rgba(242, 98, 15, 0.18);
}
body.fc form label { font-weight: 700; }
body.fc input[type=checkbox], body.fc input[type=radio] { accent-color: var(--fc-orange); width: 1.35rem; height: 1.35rem; }
body.fc .terms-accept { font-size: 1rem; align-items: center; min-height: var(--fc-cible); }
body.fc .form-page { background: #fff; border-radius: 22px; box-shadow: var(--fc-ombre); padding: 1.3rem 1.2rem 1.5rem; margin: 0 auto; }
body.fc .form-page .btn { width: 100%; margin-top: 0.6rem; }

/* --- Cartes : blanches, arrondies, posées sur le ciel --------------- */
body.fc .card, body.fc .order-product, body.fc .delivery-choice, body.fc .order-card,
body.fc .annonce, body.fc .fournee-surplace, body.fc .order-estimate, body.fc .notify-card,
body.fc .home-pro, body.fc .reviews {
  background: #fff; border: 0; border-radius: 20px; box-shadow: var(--fc-ombre);
}
body.fc .annonce, body.fc .fournee-surplace { box-shadow: inset 4px 0 0 var(--fc-orange), var(--fc-ombre); }
body.fc .card-photo, body.fc .order-product-photo, body.fc .annonce-photo { border-radius: 14px; }
body.fc .card { padding: 1.1rem; }
body.fc .reviews, body.fc .home-pro { padding: 1.1rem 1.2rem; }
body.fc .order-summary { background: #fff1e0; border-left: 0; border-radius: 20px;
  flex-direction: column; align-items: stretch; }
body.fc .order-estimate { min-width: 0; }
body.fc .promo-badge { border-radius: 16px; }
body.fc .msg { border-radius: 14px; font-weight: 600; }
body.fc .status-pill { border-radius: 999px; font-weight: 800; }
body.fc .tag { border-radius: 999px; padding: 0.15rem 0.6rem; }
body.fc .section-heading { border-bottom: 0; }

/* --- Quantité : − valeur + au lieu d'une liste (web/quantite.js) ---- */
.fc-quantite { display: inline-flex; align-items: center; gap: 0.4rem; }
.fc-quantite button {
  width: var(--fc-cible, 52px); height: var(--fc-cible, 52px); border-radius: 999px;
  border: 2px solid var(--fc-orange, #f2620f); background: #fff; color: var(--fc-orange, #f2620f);
  font-size: 1.6rem; font-weight: 800; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.fc-quantite button:hover { background: #fff1e0; }
.fc-quantite button:disabled { opacity: 0.35; cursor: not-allowed; }
.fc-quantite output { min-width: 2.4ch; text-align: center; font-size: 1.45rem; font-weight: 900; }
.fc-quantite.est-choisie output { color: var(--fc-orange, #f2620f); }
/* La liste d'origine reste dans la page (elle part avec le formulaire, et
   my_space.js la lit) : hors de la vue, pas `display:none`. */
.fc-cache { position: absolute !important; width: 1px !important; height: 1px !important;
  min-height: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  border: 0 !important; padding: 0 !important; margin: -1px; }

/* --- Pied de page : bleu nuit ---------------------------------------- */
body.fc .site-footer { background: #0f1b3d; color: #d6dcef; border-top: 0; }
body.fc .site-footer a, body.fc .site-footer-legal a { color: #ffb36b; }

/* --- Onglets du bas : le téléphone et la tablette en portrait -------- */
.fc-onglets { display: none; }
@media (max-width: 900px) {
  body.fc { padding-bottom: calc(var(--fc-onglets) + env(safe-area-inset-bottom, 0px)); }
  body.fc .site-header nav .fc-nav-haut { display: none !important; }
  .fc-onglets {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 0.3rem 0.4rem calc(0.3rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -4px 18px rgba(15, 27, 61, 0.12);
  }
  .fc-onglets a {
    flex: 1 1 0; min-height: calc(var(--fc-onglets) - 0.6rem);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
    border-radius: 16px; color: var(--muted); text-decoration: none;
    font-size: 0.78rem; font-weight: 800; line-height: 1.1; text-align: center;
  }
  .fc-onglets a svg { width: 26px; height: 26px; stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .fc-onglets a[aria-current="page"] { color: var(--accent); background: #fff1e0; }
  .fc-onglets a:hover { color: var(--ink); }
}

/* --- Téléphone : une colonne, tout à portée de pouce ------------------ */
@media (max-width: 640px) {
  body.fc .container { padding-left: 0.9rem; padding-right: 0.9rem; }
  /* Le bandeau va d'un bord à l'autre : ses marges suivent celles du conteneur. */
  body.fc .home-banner { margin-left: -0.9rem; margin-right: -0.9rem; }
  body.fc .home-banner-copy h1 { font-size: 1.75rem; }
  body.fc .site-header { flex-wrap: nowrap; }
  body.fc .site-header nav { flex-wrap: nowrap; }
  body.fc .site-header nav .btn { min-height: 44px; padding: 0 0.9rem; font-size: 0.92rem; }
  body.fc .cards { grid-template-columns: 1fr; }
  body.fc .card-photo { height: 200px; }
  body.fc .order-product, body.fc .order-product.no-photo { grid-template-columns: 1fr; }
  body.fc .order-product-photo { width: 100%; height: 180px; }
  body.fc .order-product .order-product-main, body.fc .order-product .order-product-side,
  body.fc .order-product .order-product-photo { grid-column: 1; }
  body.fc .order-product-side { justify-items: start; align-items: center;
    grid-template-columns: 1fr auto; }
  body.fc .order-product-side label { display: contents; }
  body.fc .order-product-side label > span { display: none; }
  body.fc .space-header { flex-direction: column; align-items: stretch; }
}

/* Retour à la gestion, pour le boulanger connecté à l'admin (2026-11-11) :
   une pastille bleu nuit, à toutes les largeurs — la barre du bas est celle
   des clients. */
body.fc .site-header nav a.fc-gestion {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border-radius: 999px; background: #0f1b3d; color: #fff !important;
  font-weight: 800; font-size: 0.9rem; text-decoration: none; white-space: nowrap;
}
body.fc .site-header nav a.fc-gestion:hover { background: #1d2c57; }

/* Le bandeau d'aperçu (fournée pas encore publiée, site pas encore en ligne) :
   son lien de retour se lit sur le fond sombre (2026-11-11). */
body.fc .apercu-bandeau a { color: #fff; font-weight: 800; text-decoration: underline; }


/* Sommaire des dates quand plusieurs fournées sont ouvertes (2026-11-22). */
.fournees-dates { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 1rem; }
.fournees-dates span { font-weight: 700; }
.fournees-dates a { display: inline-flex; align-items: center; min-height: 44px; padding: .3rem 1rem;
  border-radius: 999px; border: 1.5px solid var(--accent, #d94606); color: var(--accent, #d94606);
  text-decoration: none; font-weight: 700; text-transform: capitalize; }
.fournees-dates a:hover, .fournees-dates a:focus-visible { background: var(--accent, #d94606); color: #fff; }

/* La fiche publique d'un produit, celle du QR code des chevalets (B7-04). */
.produit-fiche { max-width: 40rem; margin: 0 auto; }
.produit-fiche .produit-photo { display: block; width: 100%; max-width: 100%; border-radius: 16px;
  margin: 0 0 1rem; aspect-ratio: 4 / 3; object-fit: cover; }
.produit-fiche section { margin: 1.25rem 0; }
.produit-fiche h2 { font-size: 1.15rem; margin: 0 0 .4rem; }
.produit-allergenes { padding: .8rem 1rem; border-radius: 14px; background: var(--card);
  border: 1px solid var(--line); }
.produit-allergenes p { margin: .3rem 0; }
.produit-nutri table { margin: .4rem 0; }
.produit-nutri th, .produit-nutri td { padding: .35rem .6rem; border-bottom: 1px solid var(--line);
  text-align: left; }
.produit-nutri td { text-align: right; white-space: nowrap; }
.produit-nutri .produit-nutri-dont th { padding-left: 1.5rem; font-weight: 400; color: var(--muted); }
.produit-question { color: var(--muted); }
