/* Belenvert Primeur, version 2 : les six pages des fermes */

/* En-tête de la ferme */
.farm-head { padding-bottom: 40px; }
.farm-head-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.farm-pin { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-weight: 700; color: var(--ochre-text); }
.farm-pin b {
  display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: var(--ochre); color: var(--ink-deep); border: 2px solid var(--ink); font-size: 1rem;
}
.farm-head h1 { margin-bottom: 14px; }
.farm-sign {
  width: 168px; height: 168px; display: grid; place-items: center; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 0 0 8px var(--paper-2);
}
.farm-sign .sign { width: 104px; height: 104px; }

.farm-facts {
  list-style: none; margin: 30px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.farm-facts li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.farm-facts b { display: block; font: 700 1.5rem/1.15 var(--serif); color: var(--ink); }
.farm-facts sup { font-size: .55em; }
.farm-facts span { display: block; margin-top: 4px; font-size: .9rem; color: var(--ink-2); }

/* Où */
.farm-where { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.farm-where p { margin: 0 0 12px; }
.where-big { font: 700 1.25rem/1.35 var(--serif); }
.farm-where a { color: var(--ochre-text); font-weight: 700; }
.mini-map .ghost circle { fill: var(--card); stroke: #8A8F70; stroke-width: 1.5; }
.mini-map .ghost text { font: 700 10px var(--sans); fill: #6B715B; }
.mini-map .route { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 7 6; stroke-linecap: round; }
.mini-map .km { font-weight: 700; fill: var(--ochre-text); }
.mini-map .pin.is-on .dot { transform: scale(1.2); }

/* Ce qu'il cultive */
.farm-grow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.farm-grow p { margin: 0 0 12px; font-size: 1.05rem; max-width: 36em; }
.crops { list-style: none; margin: 8px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.crops li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 0; border-bottom: 1px dotted var(--dots); }
.crops b { font: 700 1.15rem/1.3 var(--serif); }
.crops span { font-size: .92rem; color: var(--ink-2); }

/* Cette semaine */
.week-box { max-width: 640px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 22px 18px; }
.week-box .prices { border-top: 0; }
.week-box .prices li { padding: 11px 0; font-size: 1.02rem; }
.week-box .prices em { display: inline; margin-left: 6px; font-size: .88rem; }
.week-more { margin: 12px 0 0; }
.week-more a, .year-more a, .others-more a { color: var(--ochre-text); font-weight: 700; }

/* Au fil de l'année */
.year { list-style: none; margin: 0; padding: 0; max-width: 900px; }
.year li { display: grid; grid-template-columns: minmax(150px, 2fr) minmax(0, 5fr); gap: 8px 20px; align-items: center; padding: 10px 0; border-bottom: 1px dotted var(--dots); }
.year .year-head { padding: 0 0 6px; border-bottom: 1px solid var(--line); }
.y-name b { display: block; font: 700 1.08rem/1.25 var(--serif); }
.y-name small { display: block; font-size: .86rem; color: var(--ink-2); }
.y-bar { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
.y-bar i { display: block; height: 22px; border-radius: 4px; font-style: normal; }
.year-head .y-bar i { height: auto; text-align: center; font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.year-head .y-bar i.now { color: var(--ochre-text); }
.y-bar i.on { background: var(--ochre); }
.y-bar i.off { background: transparent; border: 1px solid var(--line); }
.y-bar i.now:not(:empty) { text-decoration: underline; text-underline-offset: 3px; }
.y-bar i.now.on, .y-bar i.now.off { box-shadow: 0 0 0 2px var(--ink); }
.year-more { margin: 16px 0 0; }

/* Dans les paniers */
.in-baskets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.in-baskets li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.in-baskets li.none { background: transparent; border-style: dashed; }
.in-baskets h3 { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 6px; font-size: 1.15rem; }
.in-baskets h3 span { color: var(--ochre-text); white-space: nowrap; }
.in-baskets p { margin: 0; color: var(--ink-2); }
.in-baskets li:not(.none) p { color: var(--ink); }
.none-note { margin: 0; max-width: 40em; font-size: 1.05rem; }
.baskets-cta { margin: 22px 0 0; }

/* Les autres producteurs */
.others { padding: 52px 0; }
.others h2 { margin-bottom: 18px; }
.others-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.others-list a {
  display: flex; gap: 10px; align-items: flex-start; height: 100%; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; line-height: 1.3;
}
.others-list a:hover { border-color: var(--ochre); }
.others-list b {
  flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ochre); color: var(--ink-deep); border: 1.5px solid var(--ink); font-size: .85rem;
}
.others-list span { font-weight: 700; }
.others-list small { display: block; margin-top: 2px; font-weight: 500; font-size: .85rem; color: var(--ink-2); }
.others-more { margin: 18px 0 0; }

@media (max-width: 1080px) {
  .others-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .farm-where, .farm-grow { grid-template-columns: 1fr; gap: 24px; }
  .farm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .in-baskets { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 600px) {
  .mini-map .ghost circle { r: 11px; }
  .mini-map .ghost text { font-size: 13px; transform: translateY(1px); }
}
@media (max-width: 640px) {
  .farm-head-in { grid-template-columns: 1fr; gap: 18px; }
  .farm-sign { order: -1; width: 104px; height: 104px; box-shadow: 0 0 0 6px var(--paper-2); }
  .farm-sign .sign { width: 66px; height: 66px; }
  .others-list { grid-template-columns: 1fr 1fr; }
  .year li { grid-template-columns: 1fr; gap: 6px; }
  .year .year-head .y-name { display: none; }
  .y-bar i { height: 18px; }
}
@media (max-width: 420px) {
  .farm-facts { gap: 10px; }
  .farm-facts li { padding: 12px; }
  .farm-facts b { font-size: 1.25rem; }
  .others-list { grid-template-columns: 1fr; }
  .week-box { padding: 6px 16px 14px; }
}
