/* Petit Brunch Box — Frontend CSS v1.1 */
:root { --pbb-bleu:#9BBDC8; --pbb-bleu-dark:#6a9aaa; --pbb-bleu-light:#daeaf0; --pbb-or:#B8962E; --pbb-or-light:#f5edd4; --pbb-creme:#FAF7F2; --pbb-texte:#1a1a18; --pbb-texte-doux:#5a5a52; --pbb-radius:1.5rem; }

/* GRID */
.pbb-grid { display:grid; gap:1rem; }
.pbb-grid-cols-2 { grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); }
.pbb-grid-cols-3 { grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); }
@media(max-width:600px) { .pbb-grid { grid-template-columns:1fr !important; } }
.pbb-grid-empty { text-align:center; padding:3rem; color:var(--pbb-texte-doux); }

.pbb-card { background:#fff; border-radius:var(--pbb-radius); overflow:hidden; box-shadow:0 2px 12px rgba(0,0,0,.06); transition:transform .25s,box-shadow .25s; }
.pbb-card:hover { transform:translateY(-3px); box-shadow:0 8px 28px rgba(0,0,0,.1); }
.pbb-card-full { opacity:.55; pointer-events:none; }
.pbb-card-special { border:2px solid var(--pbb-or); }
.pbb-card-img { width:100%; height:180px; overflow:hidden; }
.pbb-card-img img { width:100%; height:100%; object-fit:cover; display:block; }
.pbb-card-body { padding:1.2rem 1.4rem 1.4rem; }
.pbb-badge { display:inline-block; background:var(--pbb-or); color:#fff; padding:.2rem .7rem; border-radius:1rem; font-size:.7rem; font-weight:600; margin-bottom:.5rem; }
.pbb-card-date { font-size:.75rem; color:var(--pbb-bleu-dark); font-weight:500; text-transform:uppercase; letter-spacing:.06em; margin-bottom:.3rem; }
.pbb-card-title { font-family:'Playfair Display',serif; font-size:1.15rem; color:var(--pbb-texte); margin-bottom:.4rem; line-height:1.2; }
.pbb-card-desc { font-size:.82rem; color:var(--pbb-texte-doux); line-height:1.5; margin-bottom:.8rem; font-weight:300; }
.pbb-card-footer { margin-bottom:.9rem; }
.pbb-card-price { font-family:'Playfair Display',serif; font-size:1.3rem; color:var(--pbb-or); font-weight:600; }
.pbb-card-price small { font-size:.7rem; color:var(--pbb-texte-doux); font-family:'DM Sans',sans-serif; font-weight:300; }

.pbb-btn { display:flex; align-items:center; justify-content:center; gap:.4rem; background:var(--pbb-or); color:#fff; border:2px solid var(--pbb-or); border-radius:2rem; padding:.75rem 1.5rem; font-family:'DM Sans',sans-serif; font-size:.88rem; font-weight:600; cursor:pointer; text-decoration:none; transition:all .2s; width:100%; box-sizing:border-box; }
.pbb-btn:hover { background:#9e7e1e; border-color:#9e7e1e; color:#fff; }
.pbb-btn-disabled { background:#ccc; border-color:#ccc; cursor:not-allowed; }
.pbb-btn-ghost { background:transparent; color:var(--pbb-texte); border-color:rgba(0,0,0,.15); width:auto; flex:0 0 auto; }
.pbb-btn-ghost:hover { border-color:var(--pbb-bleu-dark); color:var(--pbb-bleu-dark); background:transparent; }
.pbb-btn-primary { background:var(--pbb-bleu-dark); border-color:var(--pbb-bleu-dark); }
.pbb-btn-primary:hover { background:#5a8898; border-color:#5a8898; }

/* FORM */
.pbb-form-wrap { max-width:520px; margin:0 auto; position:relative; padding:1rem 0; overflow-x:hidden; box-sizing:border-box; }
.pbb-form-wrap *, .pbb-form-wrap *::before, .pbb-form-wrap *::after { box-sizing:border-box; max-width:100%; }
.pbb-form-header { text-align:center; margin-bottom:1.5rem; }
.pbb-form-title { font-family:'Playfair Display',serif; font-size:clamp(1.5rem,5vw,2rem); color:var(--pbb-texte); margin-bottom:.3rem; }
.pbb-form-date { font-size:.85rem; color:var(--pbb-bleu-dark); font-weight:500; margin-bottom:.4rem; }
.pbb-form-desc { font-size:.84rem; color:var(--pbb-texte-doux); font-weight:300; line-height:1.5; }

/* Progress — barre STABLE : tous les steps gardent la même largeur */
.pbb-progress { display:flex; margin-bottom:1.5rem; border-radius:1rem; overflow:hidden; background:var(--pbb-bleu-light); max-width:100%; }
.pbb-progress-step {
  flex:1 1 0; min-width:0; text-align:center;
  padding:.6rem .2rem; font-size:.68rem; font-weight:500;
  color:var(--pbb-bleu-dark); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  transition: background-color .25s, color .25s;
}
.pbb-progress-step span {
  display:inline-flex; align-items:center; justify-content:center;
  width:18px; height:18px; border-radius:50%; background:rgba(106,154,170,.2);
  font-weight:700; font-size:.6rem; margin-right:.3rem; vertical-align:middle; flex-shrink:0;
  transition: background-color .25s;
}
.pbb-progress-step.active { background:var(--pbb-bleu-dark); color:#fff; }
.pbb-progress-step.active span { background:rgba(255,255,255,.3); }
.pbb-progress-step.done { background:var(--pbb-bleu); color:#fff; }
/* Mobile : on cache le texte, on garde le numéro rond — SANS changer la largeur des steps */
@media(max-width:520px){
  .pbb-progress-step { font-size:0; padding:.55rem .15rem; }
  .pbb-progress-step span { font-size:.7rem; margin-right:0; width:24px; height:24px; }
}

.pbb-step h3 { font-family:'Playfair Display',serif; font-size:1.15rem; color:var(--pbb-texte); margin-bottom:1rem; }
.pbb-step { animation: pbbStepIn .25s ease-out; }
@keyframes pbbStepIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pbb-step-nav { display:flex; gap:.6rem; margin-top:1.2rem; flex-wrap:wrap; }
.pbb-step-nav .pbb-btn { flex:1; min-width:140px; }
@media(max-width:500px){
  .pbb-step-nav { flex-direction:column; }
  .pbb-step-nav .pbb-btn { width:100%; min-width:0; }
  .pbb-step h3 { font-size:1.05rem; }
}

/* Récapitulatif (step 4) — lisible sur mobile */
.pbb-recap { margin-bottom:1rem; }
@media(max-width:500px){
  .pbb-recap > div { padding:1rem .9rem !important; }
  .pbb-recap strong { font-size:.88rem !important; }
}

/* Points de retrait cards (step 2) */
.pbb-pickup-option { display:block; cursor:pointer; }
.pbb-pickup-option input[type=radio] { position:absolute; opacity:0; pointer-events:none; }
.pbb-pickup-card {
  display:block;
  background:#faf7f2;
  border:2px solid rgba(0,0,0,.08);
  border-radius:1rem; padding:1rem 1.1rem;
  transition:border-color .2s, background .2s, box-shadow .2s;
}
.pbb-pickup-option:has(input:checked) .pbb-pickup-card {
  border-color:var(--pbb-bleu-dark); background:white;
  box-shadow:0 2px 12px rgba(106,154,170,.12);
}
.pbb-pickup-card strong { display:block; font-size:.95rem; color:var(--pbb-texte); margin-bottom:.3rem; }
.pbb-pickup-detail { display:block; font-size:.8rem; color:var(--pbb-texte-doux); line-height:1.5; }
.pbb-pickup-list { display:flex; flex-direction:column; gap:.5rem; margin-bottom:1rem; }

/* Payment options (step 4) */
.pbb-payment-options { display:flex; flex-direction:column; gap:.5rem; margin-top:1rem; }
.pbb-payment-option { display:block; cursor:pointer; }
.pbb-payment-option input[type=radio] { position:absolute; opacity:0; pointer-events:none; }
.pbb-payment-card {
  display:block;
  background:#faf7f2;
  border:2px solid rgba(0,0,0,.08);
  border-radius:1rem; padding:.9rem 1.1rem;
  transition:border-color .2s, background .2s, box-shadow .2s;
}
.pbb-payment-option:has(input:checked) .pbb-payment-card {
  border-color:var(--pbb-or); background:white;
  box-shadow:0 2px 12px rgba(184,150,46,.12);
}
.pbb-payment-card strong { display:block; font-size:.92rem; color:var(--pbb-texte); margin-bottom:.2rem; }
.pbb-payment-card span { font-size:.8rem; color:var(--pbb-texte-doux); line-height:1.4; }

/* Total bar */
.pbb-total-bar {
  display:flex; justify-content:space-between; align-items:center;
  padding:.9rem 1.1rem; margin-top:1rem;
  background:linear-gradient(135deg, var(--pbb-bleu-light), #fff);
  border:1.5px solid rgba(155,189,200,.25);
  border-radius:1rem; font-weight:600;
}
.pbb-total-bar span { font-size:.9rem; color:var(--pbb-texte-doux); text-transform:uppercase; letter-spacing:.06em; }
.pbb-total-bar strong {
  font-family:'Playfair Display',serif; color:var(--pbb-or);
  font-size:1.5rem; font-weight:600;
}
.pbb-total-final { margin-top:1.2rem; border-color:var(--pbb-or); background:linear-gradient(135deg, #fff8ec, #fff); }

/* Success screen */
.pbb-step-success { text-align:center; padding:2rem 1rem; }
.pbb-success-icon { font-size:3.5rem; margin-bottom:.8rem; animation:pbbPop .5s ease both; }
.pbb-step-success h3 { font-family:'Playfair Display',serif; font-size:1.4rem; color:var(--pbb-texte); margin-bottom:.8rem; }
.pbb-step-success p { font-size:.9rem; color:var(--pbb-texte-doux); line-height:1.65; margin-bottom:1.2rem; }
@keyframes pbbPop { 0%{transform:scale(0)} 60%{transform:scale(1.15)} 100%{transform:scale(1)} }

/* ═══ STEP 4 — Récap & paiement (aligné, stable) ═══ */
.pbb-recap { margin-bottom:1.3rem; }

/* Card récap */
.pbb-recap-card {
  background:#faf7f2;
  border-radius:1rem;
  border:1.5px solid rgba(0,0,0,.06);
  padding:1.2rem 1.3rem;
}
.pbb-recap-title {
  font-family:'Playfair Display',serif;
  font-size:1.15rem; color:var(--pbb-texte);
  margin:0 0 .9rem;
}
.pbb-recap-lines { display:flex; flex-direction:column; gap:.1rem; }
.pbb-recap-line {
  display:flex; justify-content:space-between; align-items:center;
  padding:.45rem 0;
  font-size:.9rem; color:var(--pbb-texte-doux);
  border-bottom:1px dashed rgba(0,0,0,.08);
}
.pbb-recap-line:last-child { border-bottom:none; }
.pbb-recap-line strong { color:var(--pbb-texte); font-weight:700; margin-right:.3rem; }
.pbb-recap-amt { color:var(--pbb-texte); font-weight:600; white-space:nowrap; }

.pbb-recap-badge {
  display:flex; justify-content:space-between; align-items:center;
  padding:.6rem .8rem; margin-top:.6rem;
  border-radius:.5rem; font-size:.85rem; color:var(--pbb-texte);
  gap:.5rem;
}
.pbb-recap-badge-vege {
  background:#fff8ec; color:#7a6020;
  font-size:.82rem;
}
.pbb-recap-badge-pickup {
  background:var(--pbb-bleu-light);
}
.pbb-recap-badge-pickup strong { font-weight:600; }
.pbb-recap-time { color:var(--pbb-bleu-dark); font-weight:600; white-space:nowrap; }

.pbb-recap-total {
  display:flex; justify-content:space-between; align-items:center;
  margin-top:1rem; padding-top:.9rem;
  border-top:2px solid var(--pbb-or);
}
.pbb-recap-total span {
  font-size:.9rem; color:var(--pbb-texte);
  text-transform:uppercase; letter-spacing:.05em; font-weight:600;
}
.pbb-recap-total strong {
  font-family:'Playfair Display',serif;
  font-size:1.6rem; color:var(--pbb-or); font-weight:600;
}

@media(max-width:500px){
  .pbb-recap-card { padding:1rem .9rem; }
  .pbb-recap-title { font-size:1.05rem; margin-bottom:.7rem; }
  .pbb-recap-line { font-size:.85rem; padding:.4rem 0; }
  .pbb-recap-total strong { font-size:1.4rem; }
  .pbb-recap-badge { font-size:.8rem; padding:.55rem .7rem; flex-wrap:wrap; }
}


/* Section titres uniformes */
.pbb-section-title {
  font-size:.85rem; font-weight:600; color:var(--pbb-texte);
  margin:1.5rem 0 .7rem; display:flex; align-items:center; gap:.3rem;
}

/* Code promo — input & bouton même hauteur, alignés */
.pbb-promo-section {
  padding:1.2rem 0;
  border-top:1px dashed rgba(0,0,0,.1);
  border-bottom:1px dashed rgba(0,0,0,.1);
  margin:1.2rem 0;
}
.pbb-promo-label {
  display:block; font-size:.82rem; font-weight:600;
  color:var(--pbb-texte); margin-bottom:.5rem;
}
.pbb-promo-input-wrap {
  display:flex; gap:.5rem; align-items:stretch;
}
.pbb-promo-input-wrap input {
  flex:1 1 auto; min-width:0;
  height:44px; padding:0 .9rem;
  border:1.5px solid rgba(0,0,0,.12); border-radius:.7rem;
  font-family:inherit; font-size:.9rem; color:var(--pbb-texte);
  text-transform:uppercase; background:#fff;
  transition:border-color .2s;
  -webkit-appearance:none; box-sizing:border-box;
}
.pbb-promo-input-wrap input:focus {
  outline:none; border-color:var(--pbb-bleu-dark);
}
.pbb-promo-apply-btn {
  flex:0 0 auto;
  height:44px; padding:0 1.1rem;
  background:var(--pbb-bleu-light); color:var(--pbb-bleu-dark);
  border:1.5px solid var(--pbb-bleu-dark);
  border-radius:.7rem; font-family:inherit; font-size:.85rem; font-weight:600;
  cursor:pointer; white-space:nowrap;
  transition:background .2s;
  box-sizing:border-box;
}
.pbb-promo-apply-btn:hover { background:var(--pbb-bleu-dark); color:#fff; }
.pbb-promo-msg { margin:.5rem 0 0; font-size:.78rem; display:none; line-height:1.4; }

/* Payment section */
.pbb-payment-section { margin:1.2rem 0 1rem; }
.pbb-payment-section .pbb-section-title { margin-top:0; }

.pbb-payment-options { display:flex; flex-direction:column; gap:.5rem; }
.pbb-payment-option { display:block; cursor:pointer; }
.pbb-payment-option input[type=radio] {
  position:absolute; opacity:0; pointer-events:none; width:0; height:0;
}
.pbb-payment-card {
  display:block;
  background:#faf7f2;
  border:2px solid rgba(0,0,0,.08);
  border-radius:.9rem; padding:.95rem 1.1rem;
  transition:border-color .2s, background .2s, box-shadow .2s;
}
.pbb-payment-option:has(input:checked) .pbb-payment-card {
  border-color:var(--pbb-or); background:#fff;
  box-shadow:0 2px 12px rgba(184,150,46,.12);
}
.pbb-payment-card strong {
  display:block; font-size:.92rem; font-weight:600;
  color:var(--pbb-texte); margin-bottom:.2rem;
}
.pbb-payment-card span {
  display:block; font-size:.8rem; font-weight:300;
  color:var(--pbb-texte-doux); line-height:1.4;
}

/* Total bar — bien aligné, stable */
.pbb-total-bar {
  display:flex; justify-content:space-between; align-items:center;
  padding:1rem 1.2rem; margin-top:1.2rem;
  background:linear-gradient(135deg, var(--pbb-bleu-light), #fff);
  border:1.5px solid rgba(155,189,200,.3);
  border-radius:.9rem;
}
.pbb-total-bar > span {
  font-size:.85rem; font-weight:600; color:var(--pbb-texte-doux);
  text-transform:uppercase; letter-spacing:.06em;
}
.pbb-total-bar > strong {
  font-family:'Playfair Display',serif; color:var(--pbb-or);
  font-size:1.6rem; font-weight:600; line-height:1;
}
.pbb-total-final {
  border-color:rgba(184,150,46,.3);
  background:linear-gradient(135deg, #fff8ec, #fff);
}

/* Step nav — Retour + Confirmer alignés */
.pbb-step-nav {
  display:flex; gap:.6rem; margin-top:1.3rem;
}
.pbb-step-nav .pbb-btn { flex:1; min-width:0; }
.pbb-step-nav .pbb-btn-ghost { flex:0 0 auto; min-width:110px; }

@media(max-width:500px){
  .pbb-step-nav { flex-direction:column-reverse; }
  .pbb-step-nav .pbb-btn { width:100%; min-width:0; }
  .pbb-step-nav .pbb-btn-ghost { flex:1 1 auto; }
  .pbb-promo-input-wrap { flex-direction:column; }
  .pbb-promo-input-wrap input,
  .pbb-promo-apply-btn { width:100%; }
  .pbb-total-bar > strong { font-size:1.4rem; }
}

/* Qty controls — spans, not inputs */
.pbb-qty-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.9rem 0; border-bottom:1px solid rgba(0,0,0,.06); }
.pbb-qty-info { flex:1; }
.pbb-qty-info strong { display:block; font-size:.88rem; color:var(--pbb-texte); margin-bottom:.1rem; }
.pbb-qty-info span { font-size:.75rem; color:var(--pbb-texte-doux); font-weight:300; }
.pbb-qty-control { display:flex; align-items:center; gap:0; flex-shrink:0; }
.pbb-qty-btn { width:36px; height:36px; border:2px solid var(--pbb-bleu-light); background:var(--pbb-bleu-light); font-size:1.1rem; font-weight:600; cursor:pointer; color:var(--pbb-bleu-dark); transition:background .15s; line-height:1; display:flex; align-items:center; justify-content:center; }
.pbb-qty-btn:first-child { border-radius:2rem 0 0 2rem; }
.pbb-qty-btn:last-child { border-radius:0 2rem 2rem 0; }
.pbb-qty-btn:hover { background:var(--pbb-bleu); color:#fff; border-color:var(--pbb-bleu); }
.pbb-qty-value { width:40px; text-align:center; font-size:.95rem; font-weight:600; background:#fff; border-top:2px solid var(--pbb-bleu-light); border-bottom:2px solid var(--pbb-bleu-light); height:36px; line-height:32px; display:block; }

/* Fields */
.pbb-form-wrap .pbb-field { margin-bottom:1rem; }
.pbb-form-wrap .pbb-field label { display:block; font-size:.82rem; font-weight:500; color:var(--pbb-texte-doux); margin-bottom:.3rem; }
.pbb-form-wrap .pbb-field input,
.pbb-form-wrap .pbb-field textarea { width:100%; padding:.7rem .9rem; border:1.5px solid rgba(155,189,200,.35); border-radius:1rem; font-size:.88rem; font-family:'DM Sans',sans-serif; transition:border-color .2s; background:#fff; box-sizing:border-box; -webkit-appearance:none; }
.pbb-form-wrap .pbb-field select { width:100%; padding:.7rem 2.2rem .7rem .9rem; border:1.5px solid rgba(155,189,200,.35); border-radius:1rem; font-size:.88rem; font-family:'DM Sans',sans-serif; transition:border-color .2s; background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236a9aaa' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right .9rem center; box-sizing:border-box; -webkit-appearance:none; appearance:none; height:auto; min-height:42px; line-height:1.4; white-space:normal; overflow:visible; }
.pbb-form-wrap .pbb-field input:focus,
.pbb-form-wrap .pbb-field select:focus,
.pbb-form-wrap .pbb-field textarea:focus { outline:none; border-color:var(--pbb-bleu-dark); }
.pbb-field-hint { font-size:.75rem; color:var(--pbb-texte-doux); margin-top:.3rem; font-style:italic; }

/* Total bar */
.pbb-total-bar { display:flex; justify-content:space-between; align-items:center; background:var(--pbb-bleu-light); border-radius:1rem; padding:.9rem 1.2rem; margin:1.2rem 0; }
.pbb-total-bar span { font-size:.88rem; color:var(--pbb-bleu-dark); font-weight:500; }
.pbb-total-bar strong { font-family:'Playfair Display',serif; font-size:1.4rem; color:var(--pbb-bleu-dark); }
.pbb-total-final { background:var(--pbb-or-light); }
.pbb-total-final span,.pbb-total-final strong { color:var(--pbb-or); }

/* Pickup — radio hidden, card styled */
.pbb-pickup-list { display:flex; flex-direction:column; gap:.6rem; margin-bottom:1rem; }
.pbb-pickup-option { cursor:pointer; display:block; }
.pbb-pickup-option input[type="radio"] { position:absolute; opacity:0; width:0; height:0; pointer-events:none; }
.pbb-pickup-card { background:#fff; border:2px solid rgba(155,189,200,.25); border-radius:1rem; padding:1rem 1.2rem; transition:all .2s; }
.pbb-pickup-option input:checked + .pbb-pickup-card { border-color:var(--pbb-bleu-dark); background:var(--pbb-bleu-light); }
.pbb-pickup-card strong { display:block; font-size:.9rem; color:var(--pbb-texte); margin-bottom:.3rem; }
.pbb-pickup-detail { display:block; font-size:.78rem; color:var(--pbb-texte-doux); font-weight:300; line-height:1.4; }

/* Payment */
.pbb-payment-options { display:flex; flex-direction:column; gap:.6rem; margin-bottom:1rem; }
.pbb-payment-option { cursor:pointer; display:block; }
.pbb-payment-option input[type="radio"] { position:absolute; opacity:0; width:0; height:0; pointer-events:none; }
.pbb-payment-card { background:#fff; border:2px solid rgba(155,189,200,.25); border-radius:1rem; padding:1rem 1.2rem; transition:all .2s; }
.pbb-payment-option input:checked + .pbb-payment-card { border-color:var(--pbb-or); background:var(--pbb-or-light); }
.pbb-payment-card strong { display:block; font-size:.9rem; color:var(--pbb-texte); margin-bottom:.15rem; }
.pbb-payment-card span { font-size:.78rem; color:var(--pbb-texte-doux); font-weight:300; }

/* Recap */
.pbb-recap { background:#fff; border:1.5px solid rgba(155,189,200,.25); border-radius:1rem; padding:1rem 1.2rem; margin-bottom:1rem; font-size:.84rem; line-height:1.7; }

/* Step nav */
.pbb-step-nav { display:flex; gap:.7rem; margin-top:1rem; }
.pbb-step-nav .pbb-btn { flex:1; }

/* Success */
.pbb-step-success { text-align:center; padding:2rem 0; }
.pbb-success-icon { font-size:3rem; margin-bottom:.5rem; }
.pbb-step-success h3 { font-size:1.4rem; margin-bottom:.5rem; }
.pbb-step-success p { color:var(--pbb-texte-doux); margin-bottom:1.5rem; font-size:.9rem; line-height:1.6; }

/* Loading */
.pbb-loading { position:absolute; top:0; left:0; right:0; bottom:0; background:rgba(250,247,242,.92); display:flex; flex-direction:column; align-items:center; justify-content:center; z-index:10; border-radius:var(--pbb-radius); }
.pbb-spinner { width:32px; height:32px; border:3px solid var(--pbb-bleu-light); border-top-color:var(--pbb-bleu-dark); border-radius:50%; animation:pbb-spin .7s linear infinite; margin-bottom:.5rem; }
@keyframes pbb-spin { to{transform:rotate(360deg)} }

.pbb-form-closed { text-align:center; padding:2rem; background:#fff; border-radius:var(--pbb-radius); box-shadow:0 2px 12px rgba(0,0,0,.06); }
.pbb-form-closed p { color:var(--pbb-texte-doux); margin-bottom:1rem; }
.pbb-form-closed .pbb-btn { width:auto; display:inline-flex; }
