/* PanierConnect — portail membres */
:root { --green: #0a4535; --dark: #002d24; --bg: #f4f6f4; --line: #d5dcd5; }
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg);
       color: #22301f; }
header { display: flex; justify-content: space-between; align-items: center;
         flex-wrap: wrap; gap: 8px 16px;
         padding: 14px 28px; background: white; border-bottom: 3px solid var(--green); }
nav { display: flex; flex-wrap: wrap; align-items: center; }
.burger { display: none; background: none; border: none; font-size: 26px;
          color: var(--dark); cursor: pointer; padding: 2px 10px; margin-left: auto; }
.burger:hover { background: #eef2ee; border-radius: 8px; }
@media (max-width: 720px) {
  .burger { display: block; }
  nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  nav.open { display: flex; }
  nav a { margin: 0; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  nav a.active { border-bottom-color: var(--green); }
}
.brand { display: flex; gap: 12px; align-items: center; }
.logo { font-size: 30px; }
h1 { margin: 0; font-size: 20px; color: var(--dark); }
header small { color: #667; }
nav a { margin-left: 18px; cursor: pointer; color: #33422f; text-decoration: none;
        padding: 6px 2px; border-bottom: 2px solid transparent; }
nav a.active, nav a:hover { color: var(--dark); border-bottom-color: var(--green); }
.badge { background: var(--green); color: white; border-radius: 10px; padding: 1px 7px;
         font-size: 11px; margin-left: 3px; }
main { max-width: 1080px; margin: 26px auto; padding: 0 20px; }
.narrow { max-width: 460px; }
h2 { color: var(--dark); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { background: white; border: 1px solid var(--line); border-radius: 12px;
        padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.card img { width: 100%; height: 130px; object-fit: cover; border-radius: 8px; }
.card.small { padding: 10px 14px; }
.card.past { opacity: 0.45; }
.cardtitle { font-weight: 600; }
.big { font-size: 18px; color: var(--dark); font-weight: 700; }
.producer { color: #667; font-size: 12px; }
.note { color: #555; font-size: 13px; margin: 0; }
.pricebar { display: flex; justify-content: space-between; align-items: center;
            flex-wrap: wrap; row-gap: 4px; }
.price { font-weight: 700; color: var(--dark); white-space: nowrap; }
/* cartes équilibrées : le bouton d'achat s'ancre au BAS de la carte,
   quelle que soit la longueur des étiquettes au-dessus */
.card .qtyrow { margin-top: auto; padding-top: 6px; }
.tag { background: #fff3c4; border-radius: 8px; padding: 2px 8px; font-size: 11px; }
.tag.stock { background: #ffe4c4; color: #7a4a00; }
.tag.soldout { background: #f3d4d4; color: #8a1f1f; font-weight: 600; }
.promobox { background: #fff8e6; border: 2px solid #e8b93f; border-radius: 14px;
            padding: 14px 16px 18px; margin-bottom: 26px; }
.promobox h3 { margin: 2px 0 12px; color: #8a6100; }
.card.promocard { border-color: #e8b93f; box-shadow: 0 2px 6px rgba(232, 185, 63, 0.25); }
.familyhead { color: var(--dark); border-bottom: 2px solid var(--line);
              padding-bottom: 4px; margin: 26px 0 12px; }
.stockline { min-height: 18px; }
button:disabled { background: #b9c4b9; cursor: not-allowed; }
/* calendrier des récoltes */
.nextdist { background: var(--green); color: white; border-radius: 14px;
            padding: 18px 22px; margin: 16px 0 22px; max-width: 460px; }
.nextdist .ndlabel { font-size: 12px; text-transform: uppercase;
                     letter-spacing: .08em; opacity: .8; }
.nextdist .nddate { font-size: 26px; font-weight: 700; margin: 4px 0 2px; }
.nextdist .ndtime { font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.nextdist .ndmeta { opacity: .9; }
.nextdist .ndnote { margin-top: 8px; background: rgba(255, 255, 255, .15);
                    border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.calmonth { font-weight: 700; color: var(--dark); margin: 16px 0 6px;
            text-transform: capitalize; }
.calrow { display: flex; gap: 12px; align-items: baseline; background: white;
          border: 1px solid var(--line); border-radius: 10px;
          padding: 8px 14px; margin: 4px 0; max-width: 460px; }
.calrow .calwhen { font-weight: 600; min-width: 160px; }
.calrow.pastrow { opacity: .6; }
.pastbox { margin-top: 22px; max-width: 460px; }
.pastbox summary { cursor: pointer; color: #667; padding: 6px 0; }
.qtyrow { display: flex; gap: 8px; align-items: center; }
.qtyrow .qty { width: 64px; flex: none; }
.qtyrow button { flex: 1; }
.note.incart { color: var(--dark); font-weight: 600; }
.faq { max-width: 720px; }
.faq h3 { color: var(--dark); margin: 26px 0 10px; }
.faq details { background: white; border: 1px solid var(--line); border-radius: 10px;
               padding: 10px 14px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 2px; color: #444; line-height: 1.5; }
.faq details a { color: var(--green); text-decoration: underline; cursor: pointer; }
button { background: var(--green); color: white; border: none; border-radius: 8px;
         padding: 9px 16px; cursor: pointer; font-size: 14px; }
button:hover { background: var(--dark); }
input, select { padding: 9px 10px; border: 1px solid #c3ccc3; border-radius: 8px;
                font-size: 14px; }
form { display: flex; gap: 10px; }
form input { flex: 1; }
.info { background: #e8f1e8; border-left: 4px solid var(--green); padding: 10px 12px;
        border-radius: 6px; }
.cartbox { background: white; border: 1px solid var(--line); border-radius: 12px;
           padding: 18px; margin-top: 24px; max-width: 560px; }
.cartbox table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.cartbox td { padding: 6px 4px; border-bottom: 1px solid #eee; }
.cartbox .total td { font-weight: 700; border-bottom: none; }
.qty { width: 64px; }
.right { text-align: right; }
.del { color: #b00020; cursor: pointer; padding: 0 6px; }
label { display: block; margin: 10px 0; }
.list { width: 100%; border-collapse: collapse; background: white; border-radius: 10px;
        overflow: hidden; border: 1px solid var(--line); }
/* Jamais de débordement à droite : quand un tableau est plus large que son
   cadre, il DÉFILE horizontalement à l'intérieur — dans les fenêtres
   (modales) tout le temps, et partout sur écrans étroits ou tactiles.
   Sur grand écran PC, le rendu reste strictement le même qu'avant. */
.modal .list,
.overlay .list { display: block; max-width: 100%; overflow-x: auto;
                 -webkit-overflow-scrolling: touch; }
.modal .list > tbody,
.overlay .list > tbody { display: table; width: 100%;
                         border-collapse: collapse; }
@media (max-width: 1080px), (pointer: coarse) {
  .list { display: block; max-width: 100%; overflow-x: auto;
          -webkit-overflow-scrolling: touch; }
  /* le corps garde la PLEINE LARGEUR quand il y a la place,
     et défile dans le cadre quand il est trop large */
  .list > tbody { display: table; width: 100%; border-collapse: collapse; }
}
.list th { background: #eef2ee; text-align: left; padding: 8px 10px;
           border-bottom: 2px solid var(--green); }
.list th.right { text-align: right; }
.list td { padding: 7px 10px; border-bottom: 1px solid #eee; }
footer { text-align: center; color: #889; padding: 30px 0; font-size: 12px; }

/* ---- recettes (espace membre + console) ---- */
.reclist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
           gap: 14px; margin-top: 14px; }
.reccard { background: white; border: 1px solid var(--line); border-radius: 12px;
           overflow: hidden; cursor: pointer; transition: box-shadow .15s; }
.reccard:hover { box-shadow: 0 3px 12px rgba(0, 45, 36, .15); }
.reccard img { width: 100%; height: 130px; object-fit: cover; display: block; }
.recph { height: 130px; display: flex; align-items: center; justify-content: center;
         font-size: 44px; background: #eef2ee; }
.recbody { padding: 10px 12px 12px; }
.recdetail { background: white; border: 1px solid var(--line); border-radius: 12px;
             padding: 20px 24px; max-width: 720px; }
.recphoto { float: right; max-width: 240px; max-height: 180px; border-radius: 10px;
            margin: 0 0 10px 16px; object-fit: cover; }
.recpersons { margin: 10px 0 4px; }
.recpersons button { padding: 2px 12px; font-size: 16px; line-height: 1.4;
                     margin: 0 4px; }
.recing li, .recsteps li { margin: 4px 0; line-height: 1.5; }
.rectip { background: #f3f7f1; border-left: 3px solid var(--green);
          padding: 8px 12px; border-radius: 0 8px 8px 0; }
@media (max-width: 640px) {
  .recphoto { float: none; display: block; margin: 0 auto 12px; max-width: 100%; }
  .recfilters select, .recfilters input { width: 100%; }
}

/* ---- écrans TACTILES (tablettes, style app Android) --------------------
   S'active dès que l'appareil se pilote au doigt (pointer: coarse) :
   cibles plus grandes, textes plus lisibles, tableaux plus aérés. */
@media (pointer: coarse) and (min-width: 641px) {
  body { font-size: 16.5px; }
  nav a { padding: 14px 10px; margin-left: 8px; font-size: 17px; }
  h1 { font-size: 22px; }
  h2 { font-size: 24px; }
}
@media (pointer: coarse) {
  button { min-height: 46px; font-size: 16px; padding: 11px 18px; }
  input, select, textarea { min-height: 46px; font-size: 16px;
                            padding: 10px 12px; }
  input[type="checkbox"], input[type="radio"] {
    min-height: 22px; width: 22px; height: 22px; }
  .tag { font-size: 12.5px; padding: 4px 10px; }
  .badge { font-size: 12px; padding: 2px 9px; }
  main table th, main table td { padding: 12px 10px; font-size: 15.5px; }
  .qtyrow .qty { width: 82px; }
  .card { padding: 16px; }
  .faq details { padding: 14px 16px; }
  .faq summary { padding: 4px 0; }
  .recpersons button { min-height: 40px; padding: 4px 18px; }
}
